Can i get esic maternity treatment if company terminate me in 7th month pregnancy??

I have joined a company on 11th june 2018.after that 1 month i know that i am pregnant and i informed to my company also. After 4month completed i have faced some complications in my pregnancy and esic reffered me aims hospital.during this i tooked 3-4 off in a month and informed to hr department as well as i submitted my doctor prescription or test reports in my office because my hr wants proof.after all everything is fine. Now i am 7month pregnant and i informed to my management that i will go on maternity leaves from next month. But suddenly company informed me that we terminate you because of too much leaves (when i tooked all leaves for my medical reason) and your are on probation period of 6 month and it is cleared mentioned on appointment letter that company will terminate you any time in your probation period without any notice or without any reason in written. Now management informed me on 6th dec 2018 that you are terminated and we will not provide you any written letter because you are on probation petiod till 11th dec.Now in 7th month pregnancy What should i do please suggest helpful as i am registered in esic and getting all the treatment from esic only. Is esic also stop my treatment now.??