The other (illegal) way around is to obtain residency in country C, while living in country A. Then form the company in country B, open the bank account in country D, but inform B and D that you actually live in C - do not mention A to anybody, nor use you debit card in A.