This is a common frustration. If you registered your copy of The Battle for Middle-Earth, played online, then had to wipe your computer after a virus, the game may still be tied to that old registration and block you from playing online.
Your best bet is to reach out to the game's official support, explain the situation, and ask whether the registration can be reset so you can play again.