You really, really, really need to speak with an immigration attorney, and do that right quickly.
I do not believe you have standing to file for residency at this point. You've been out of status a long time, and your impending divorce is only going to complicate matters even further.

