Aye better doing it yourself come some agreement we your ex-wife once get lawyer it cost more and probably finish we same result.i was once told never put in what not will walk away in Thailand as you can't win in a Thai court as flange.if have kids put everything in children name as a trust fund so she can't sell it.
If your already in Thailand and going home best go to your embassy get a covering letter or temp one to get you home.i can't see any airline taking it never mind imo at airport.