So that it will always turn it on no matter what. MF_ENABLED is equal to 0,
so what we're gonna do here is to make sure it pushes 0, so we're gonna
make eax 0 no matter what:
:0042E13D 7427 je 0042E166
:0042E13F F6462002 test [esi+20], 02
:0042E143 7521 jne 0042E166
:0042E145 33C0 xor eax, eax
:0042E147 8AC3 mov al, bl
:0042E149 8B04855CD74300 mov eax, dword ptr [4*eax+0043D75C]
:0042E150 83C800 or eax, 00000000
Changes to this:
:0042E13D 90 nop
:0042E13E 90 nop
:0042E13F F6462002 test [esi+20], 02
:0042E143 90 nop
:0042E144 90 nop
:0042E145 33C0 xor eax, eax
:0042E147 90 nop
:0042E148 90 nop
:0042E149 90 nop
:0042E14A 90 nop
:0042E14B 90 nop
:0042E14C 90 nop
:0042E14D 90 nop
:0042E14E 90 nop
:0042E14F 90 nop
:0042E150 90 nop
:0042E151 90 nop
:0042E152 90 nop
Here we xor eax with eax aka mov eax,0 .. so eax is zero.. easy. now try it
out and see for your self. No matter what we do, it will always enable the
menu item.
That's it ...
-wOODY^dRN