You don't indicate where you were married, or where "my state" is, and those facts could alter the answers to some aspects of the case. In Nevada, at least, the legitimacy of the marriage is unrelated to parental rights and obligations; presuming you are in Nevada and Nevada law is relevant, you should consider our law of child custody, here, child support, here, and termination of parental rights, here. Then you should confer with family law specialist who knows all of this stuff very well to plan out exactly what to do and how to do it.
Answered on Jun 12th, 2017 at 8:31 AM