So you plan on staying in the home with your sons and figured you can afford it. Your wife has moved out so she can’t really demand anything. She can scream and yell and threaten yet I think the lawyer friend you talked to is correct in that she can’t force you to give up your family home just because she feels entitled. Let her pay for a lawyer. It’s very possible she is trying to bully you into getting her way.
It’s not surprising she is hitting the bars with her drinking buddies. She will find out the hard way these are not real friends.
I hope you cancelled any credit cards she can rack up debt on as well as any bank accounts she can deplete.