Of course it should be legal to reverse engineer software you own, but you have to actually have access to the software to reverse engineer it.
I can host and play a WotLK server locally, offline on my desktop with AI player bots with minimal issues thanks to the work of the community