Listen D, here's what is most important right now.
First and foremost, take care of yourself - eat, sleep, exercise. Make sure your kids are taken care of.
Now, roll up your sleeves and get to work. This is a time of real growth for you if you open yourself up to it.
Think about the things in your marriage that werent good. Figure out your part in that. Think about the things about yourself that you feel need changing.
Then, start on the journey. Look way inside. It's not going to be easy. This is hard stuff. Really hard. But, it could reap huge rewards.
Your wife has a lot of stuff she is trying to figure out. Let her.
You have to decide what you want. If you want to see if you can have this marriage, you have to do the work. There are no guarantees, but, I can promise you will come out of this a better, stronger person.