Reverse engineering is legal. The files that they distribute don't contain the copyrighted assets needed to actually play the game.
And in many countries of the world (including the US), not even looking at the copyrighted code is necessarily allowed. See the entire clean room thing.
Depends on how you reverse engineer. If you just throw a compiled binary into a decompiler, rename the variables and release that, you're probably breaking the copyright law in whichever country you reside.