True, this is what the field of accounting theory is all about: how do you best represent the finances of a company? The best way to do so depends heavily on the type of company you're talking about and who wants to know the information, but many companies choose to keep multiple sets of books--one that follows the IRS's rules (this one is required), one that follows the SEC's rules (required if they are a publicly traded corporation), one for non-public investors, and one used internally allows management to make strategic decisions and departments to make plans.
The existence of various ways of considering the finances of a corporation don't necessarily mean that any one method is "wrong". But when you get into questions of "is it profitable?" The answer depends a lot on who's asking.
In any one month, more money may go out of your checking account than came in, but does that mean you lost money that month? Maybe some of the outgoing money was paying for a year's worth of an expensive service, or was an investment in some other company, or was the purchase of some assets that will allow you to become more productive. In those cases, while your cash flow may be negative, you can keep a set of books that spreads the cost of a year's worth of service over the entire year, even if you pay it all at once on January 1. Or a building you might want to spread the cost out over the duration of any loans you took out to pay for part of it, or if you paid cash, you still may want to spread the expense out over the 15 year expected lifetime of the asset.
Obviously the IRS and SEC rules have to be pretty standard across the board, but within any particular industry or business model, a different representation may provide investors or management with a more accurate picture than the IRS or SEC rules would allow.
Obviously all of these can be abused, and investors should be skeptical and do due diligence, but even 100% honest businesses may report a loss to the IRS, a profit to investors, and a break-even for the SEC. They aren't necessarily trying to scam anyone.
Pretty much everything you mention in this paragraph is covered by accounting rules a student would learn in year 1. Cash flow isn't profitability. Spending on assets is capitalized, and they depreciate according to rules, not what you "may want" to do.
Yes, there is always some leeway to play fast and loose with accounting, and companies are always trying "adjust" earnings to suit to their business model. 4 times out of 5, it's horsecrap. That's why we have GAAP.
Sure, but to take depreciation as an example, the rules do not necessarily match reality. Sometimes an asset's practical life is longer than the rules allow, sometimes it is less. These factors do not just depend on the asset, itself, they depend on how the asset is used. If a company goes under, the resale value of the asset may be worth more or less than its carrying value depending on outside economic conditions, technology changes, or what have you. Even the most earnest accountant can get things very wrong.
Yep, that's the point I was trying to make. Most people, presumably including the parent commentator, have not taken any accounting, and don't think about all the simple, obvious examples I listed.