Get a lawyer to draft a divorce memorandum, agreement, get it translated, ask your wife if she agrees, if so go to the amphur and 20 min later you are free and clear to apply for your visa, you get the documents their an then, you will still have to jump through some hoops at immigration, but you can as i have. Oh, very important, remember to get joint custody!!!