Fortune’s investigation yields the first comprehensive picture of how one under-policed and far-flung generics company operated. It is not a tale of cutting corners or lax manufacturing practices but one of outright fraud, in which the company knowingly sold substandard drugs around the world — including in the U.S. — while working to deceive regulators. The impact on patients will likely never be known. But it is clear that millions of people worldwide got medicine of dubious quality from Ranbaxy.