We consider the optimal dividend distribution problem of a financial corporation whose surplus is modeled by a general diffusion process with both the drift and the diffusion coefficients depending on the external economic regime as well as the surplus itself through general functions. The aim...