First, you transfer money to the company account through the bank and give the money to the company. This habit is very good. If it's cash, it's in big trouble. Besides, your habits are good, and you have noticed the information.
So, in fact, as long as you understand and judge the nature of your contribution, you can decide how to deal with the money. There are two possibilities, and the results are as follows:
1, just wishing to transfer the money to the account of the other company. Then they are obliged to return the money, otherwise it belongs to unjust enrichment.
Be careful here: don't give them a chance to exploit loopholes. You noted the share capital, but you didn't note anything specific or the share capital of the company. You must never sign or authenticate anything.
2. The recognized share capital, and it is the share capital of the company. Then he's not the only one who decided to quit.
The law respects facts. If classified as share capital, how many shares do you own? There must be something clear in this. They need proof, not you. When the company says it is losing money, it's not just lip service. It needs to produce financial statements and detailed things. This document is not as easy to get as usual, and forging evidence will be punished.
Summary: Generally speaking, it is more likely that the court will decide that your money is not equity. You'd better go in this direction. Let the company pay back the money, otherwise the company's account will not be flat. How can the company write your money on the account when it receives it? It should be accounts payable (because you are not among the shareholders). Finally, it is better to borrow money.
What you should pay attention to is the problem of prescription. Deal with it as soon as possible and go to court as soon as possible. It's the worst if you put it off any longer.