Have you Applied for aufenthaltserlaubnis in ausländebehöder in your city.
Thinking of going to your home country to apply is not the best way. You have to apply first but is not 100% they accept your application but if they reject it they will give you another option to go back to your country then your lawyer have to appeal for the rejection.
I think in your case but too sure they will reject if you apply