Dear Concerned,
In reference to your notes be informed that you can very well file for custody of your daughter and will 100% get visiting rights. However, getting the custody of a 9 year old girl child would be difficult unless you stay with your parents (specially mother) and can show that you can give a better life to your daughter.
Once filed, decision on visitation rights would take at least 2-3 dates.
Procedurally, you need to hire a counsel wo would prepare the matter according to the brief received from you and the case will be filed in Family court of the Jurisdiction where the child resides. Once filed, summon will be sent from Court for the next date of hearing on which your wife will have to appear.
Kindly feel free to get in touch for further discussion on your subject.
Best of Luck...Stay blessed.