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.
Well, except if you want to sell your company at some point in the future or actually have some idea of COGS or know how you are actually doing.