There is a process known as company due diligence, which is commonly used before the sale of a business, financial investment by private equity funds, and bank loan funding by banks, etc. In the process, the financial, legal and compliance aspects of the company are usually reviewed and documented.