I regularly see companies (i.e. P&L, Balance sheets, technology spend, etc) in the small/mid cap space (EBITDA of anywhere between $500k-$10M) and you'd be amazed at how poorly documented businesses are that still are able to generate serious profits.
If the books aren't done properly, and you want to sell, but still can demonstrate profitability, there will be someone who will buy at some price.
Money can solve also the problem where you can pay someone to go through your accounts etc, and make the books from ground up. Of course it is going to be expensive, and you need a good accountant for that.