Example:
You have this address
44DC50 - 8B 45 2C - mov eax,[ebp+0x2a]
When I execute the jump the game crashes... and try this in the following instruction
9D7F2C - 8B 41 34 - mov eax,[ecx+0x34]
9D7F2F - C3 - retn
9D7F30 - 8B 41 38 - mov eax,[ecx+0x38]
9D7F33 - 85 C0 - test eax,eax
And I wrote this code injection:
offset 0x9D7F2C
call 0x400390
nop
nop
offset 0x400390
mov dword ptr [ecx+0x34],0x3B9AC9FF
mov eax,[ecx+0x34]
retn
mov eax,[ecx+0x38]
ret
You have this address
44DC50 - 8B 45 2C - mov eax,[ebp+0x2a]
When I execute the jump the game crashes... and try this in the following instruction
9D7F2C - 8B 41 34 - mov eax,[ecx+0x34]
9D7F2F - C3 - retn
9D7F30 - 8B 41 38 - mov eax,[ecx+0x38]
9D7F33 - 85 C0 - test eax,eax
And I wrote this code injection:
offset 0x9D7F2C
call 0x400390
nop
nop
offset 0x400390
mov dword ptr [ecx+0x34],0x3B9AC9FF
mov eax,[ecx+0x34]
retn
mov eax,[ecx+0x38]
ret
