If you have thyroid
problem then let your TSH
come to normal and there is chance that your menstrual cycles will be fine after that.
When your TSH comes to nromal and still you do not get your cycles regularly then please check for LH, FSH, Testosterone
pelvis on 3rd or 4th day of your cycle. This will give me a clue why you have such a problem of irregular cycles.
Get back with reports. Take care.