Please remove all files related to game. I mean, all files, from My documents to Program Files.
Reinstall the game. Patch each of the game if needed - Vanilla, TWC, TAD. Backup the age3y.exe.
Run the game and play a little.
Install WoL, base version and play a little.
Patch WoL, and run the game to see if the problem persists.
If the problem persists, backup the file age3y.exe (with a different name since the first is of the base game, and this one is of WoL).
Take the age3y.exe of the base game, and replace the age3y.exe of WoL with it.
Run the game, just to see if it has something to do with the executable.
If the game ran without any error message, then yes, it has something to do with the executable. So, download the unhardcode patch, and apply the patch to the age3y.exe, with all the features disabled.
Run the game. If you don't get any error message, then the error came probably from the WoL's executable. Otherwise, it's a problem with the unhardcode patch - WoL uses it.
However, I must warn you - and all the others which probably got the same error - that this error did not occur to the majority of the people who patched their copies. So, either it's a kind of incompatibility between your system and the unhardcode patch, or it's simply something that only @Daniel Pereira can solve.