You should be able to legally download it in EA's Origin, although I can't remember how. You can either get/buy it in the Origin store, or you have to activate your BF1942 CD key in Origin.
All I can remember is that 1-2 years ago EA put BF1942 in the Origin store and I played some games.