A poker company I worked at created a second company off shore and it licensed the poker software from the UK registered one or some such shenanigans.
You definitely need a good lawyer that does this sort of thing. There are a lot of complications (in the UK at least) for share holders and their tax liabilities. A good lawyer needs to structure the company in such a way as to make it as simple as possible.
There are overheads. Host territories require 1 or more people to be employed within the host state for full incorporation. The more dodgy the place, the more reliable people cost. If you get it wrong they walk away with all your money and the host country doesn't really care.
To be fair the the poker company PKR.com incorporated in Guernsey (small island of the cost of france) and AFAIK it's all gone well for them so it can work. The thing is they see millions of dollars a day going through their account so it's worth it. They are a very legit Poker company and DO pay taxes in Guernsey but none to the UK government which are at a higher rate.
You definitely need a specialist lawyer. It's a moving goal post as countries change laws to try to stop this sort of thing. As goal posts move lawyers costs add up. You are looking at legal costs in the 25-50 thousand uk pounds (obviously I wasn't privy to the exact costs at PKR but I remember seeing the bosses face when the legal bills came in!).
Good luck.