Jj and Timo, there are many versions of notepad.exe from different OS's and different regional versions of those OS's as well.
I stand by what I said. Without source code, questions still remain.
Examining notepad.exe from windows xp, windows 7 and windows 10 in ollydbg and comparing to the exe here does not change my view. Maybe someone should send these ECpad files to Microsoft for their analysis...
@ learn64bit: Please explain what you are doing. Post the source code so you can prove me wrong. Or even what link options are you using? The executable you posted requires specific options for linking.
If I am right, which version of Windows are you running?
edited for clarity