It is a well known principle that we must make sure that the people we give tzeddakah to are definitely poor and not scammers/fraudsters (see Yoreh De'ah 251:10).
I am sure this principle is not directly related to my question, but in general, Torah makes it a moral imperative that we should be careful who we give our money to. If giving our money to a thief is so questionable, then what about giving our money to businesses whose conduct is immoral?
In this case, it is not tzeddakah; they are giving us a service or product which we are paying for. However, by providing them with a profit, they are able to continue and even grow their operation, and more immoral conduct will take place. One is also, in theory, showing support for them, which raises questions of chillul Hashem.
There are 3 general levels to this question. I am personally most interested in the last, weakest case and will award the bounty to whoever can answer, but would also be keen to see answers for the other cases.
Strong case of immoral conduct
A typical example would be a company that is known to use terrible working conditions in what is effectively slavery. A pretty uncontroversial example is the granite counter-top industry, or the construction industry in Dubai.
Case of conduct antithetical to Torah hashkafa
Another example might be a company who donates to causes that are not aligned with Torah, such as gay marriage, late term abortion, transition surgery for minors.
More subtle cases of political issues
More subtle examples might be companies that support a political party that is anti-Israel, or in favour of anti-Torah policies, or who deplatform Jewish or Torah-aligned speakers (for their alignment with Torah) or who themselves boycott Jewish institutions or Israel; companies that pollute and wreck the climate or don't pay tax, or it has been claimed that they discriminate against race and sex etc. I.e. things that can get quite political, and we can't really be completely sure what is really going on, in today's crazy political confusion.
What is the halacha for doing legitimate business with such companies? How exactly should we arrive at the conclusion of which companies are aligned with Torah and which are not?
NOTE: I am not looking for an itemized list of all possible evils a company can partake in and a yes/no for each - the examples given are just to help explain the question. I am looking for general support/lack of support and discussion regarding the principles of doing business with immoral businesses, to whatever level of detail is available. Thank you.