@lxo well I've been writing, selling, reselling and working for others doing so since about 1980, and if you were correct none of that would have been a viable business.
The hole in your argument is, "if it was legally obtained" and the point of software licenses is to both restrict the distribution and allowed use of those distributed copies.
If you breach the the terms you have not obtained the copy under the applicable law.