My question involves landlord-tenant law in the State of: New York
I used to live in NYC and moved back west last March. I was on a lease with my roommate, let's call her Beth, for a two bedroom apartment where we both contributed 1/2 of the total security deposit owed (~$7000). Since my lease wasn't up until June this year, I subleased my apartment to another tenant, let's call her Jen. I had a simple contract that ensured that she paid the rent and cost of any damages at until the end of my lease.
I asked the landlord (a big management company) as to whether I would get my security deposit back, even if my roommate Beth decided to renew her portion of the lease. The management company assured me that I would, multiple times, so I didn't think anything more of it.
When June was about to come around, I found out that my Beth and Jen were going to stay in the apartment for another year. Beth renewed her portion of the lease, and Jen took my place. When I called the landlord back to ask when the security deposit will be returned back to me, they informed me that i would have to get it from Jen and reassign my portion under their control to Jen whenever I settled it with her. Jen even had them come and get an inspection done around July that came up clean (she did it to mostly cover herself at the end of her lease).
It's been six months and Jen and her family have been uncooperative and have not been amicable in giving me my security deposit back. Since I'm not even in the city anymore and don't know what damages might be incurred in the time I've been gone, I really shouldn't have my money tied up there.
I feel like it's legally questionable for the management company to refuse to give me my security deposit back since I'm not even on the lease anymore. It's an amount upwards of ~$3500 and I'm desperate to get it back since I've fallen on some hard times.
What are my rights in this situation? What can I do to get that money back before Beth and Jen's lease is up (if they collectively, or one of them individually decides to renew the lease, my money could be tied up for years according to what the management company has said to me).
Any help would we greatly appreciated.

