Just remember that now's the time for reflection. How did you get here? What do YOU need to fix in yourself for a new relationship (either with her or another)? The legal stuff is pretty harsh at times so you might want to speak to your doctor if you're having stress problems like sleeping.
Live you life as if you're moving on. Get your life in order and guide your kids as best you can. Remember, you cannot fix anyone else, or even your relationship. All you can do is provide a good growing ground and then hope that the conditions are right for a good harvest.
It's autumn here on the southwest coast and temperatures are in the 10's. They say it'll be frost this weekend down here so I can hardly wait for the trees to start changing into their autumn coats even faster now.
You have a good weekend, too, Luke. Hug your kids, treat your wife with compassion but don't allow yourself to get walked on. That could be how you ended up here in the first place.