Please don't ever do this if you can help it
One of the disappointing legal trends in recent years has been "lawsuit funding" companies. Basically if you have a case pending and these companies can verify what it might be worth some day, they'll give you a loan that is only paid back if you win your case. If your case goes belly-up then you owe them nothing.
The catch is that they charge incredibly high interest rates. So if you borrow $10,000 you might find yourself paying back $15,000. Sure they are taking on a risk, but it's really predatory in our opinion. Beyond that I think it's a ripoff.
We've had lots of clients ask us about this over the years and since we encourage honesty and are honest ourselves, we always are blunt in our response. If a client gets this money or doesn't, the amount we as lawyers will receive doesn't change a bit. So when we tell you that it's a bad idea it is truly sincere.
The only time we could ever envision doing this is if you literally are going to lose your home. Even then we'd tell you to take a loan for the bare minimum. It's just not worth it.
We are workers' compensation attorneys that help people with Illinois work injuries anywhere in IL via our statewide network of attorneys. Contact us and we will answer your questions or find the right lawyer for your situation.