Dose anyone know the state of the register on program startup? ebp/esp and eip are obvious but what about the others.
Posted on 2002-06-27 11:31:52 by Kudos
Quite easy: undefined. Depending on register values in any way
(except that you have a valid stack and EIP == entrypoint) will make
your app work wrongly on different windows versions. Microsoft
really ought to have the PE loader zero out all registers, that'd
prevent people from bad coding.

Just like they ought to state that a HANDLE is a HANDLE and you
can't in f****** any way depend on the value of the handle, even
if a HMODULE might be the base address in current windows versions...
Posted on 2002-06-27 12:49:28 by f0dder