A dad in need

One of my best friends is a dad who is currently in a terrible custody battle. The mother is mentally ill and has sexually abused her daughter in the past, but since she is mom she has been given every benefit.

The battle has gone on so long that dad has run out of money and his lawyer has left him. If anyone knows of some agency that can assist him legally, since he is low on funds and owes his previous lawyer quite a bit of money.

Any advice would be appreciated.