Although I think it is now legally acceptable (in Australia) to pay a dividend while still running an accumulated deficit (i.e. pay it out of capital rather than retained earnings), this is a relatively recent (2010) change and I'm not sure how common it is? It may depend on the company constitution.