The opioid abuse and drug overdose crisis has tarred yet another of the nation’s business titans: McKinsey, a globally renowned consulting firm, has discovered that providing corporate clients sketchy advice about addictive, debilitating, and even lethal prescription medications can have consequences.

The firm, which has apologized for its conduct, has agreed to pay $573.9 million in a settlement with 47 states over consulting work it did for multiple Big Pharma companies, notably with Purdue Pharmaceuticals, the maker of the drug OxyContin.

Critics of Purdue, citing media investigations and in civil lawsuits filed by states and local governments, have argued that Purdue pioneered aggressive and deceptive advertising, marketing, and sales practices that fueled the abuse of powerful prescription painkillers and opened the door to overdoses of those drugs, synthetic versions of them, as well as illicit narcotics.