The only thing you can do is be a good parent to your child, and be a good person to yourself. Have you tried sharing your concerns with your wife? Have you asked her what she needs in order to be happy? The only person you can change is yourself. You can stay in a difficult and unhappy marriage (I did, for nearly 20 years). The key is to be happy in spite of your circumstances. Be joyful, loving and kind even in the face of her behavior. I wish you all the best.