[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(dm,512)
label(th)
dm:
cmp [eax],#8200 //要替换的代码
jne th
mov [eax],#70102 //用作替换的代码
th:
mov ecx,[edi]
add eax,4
ret
02519B49:
CALL dm
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
02519B49:
mov ecx,[edi]
add eax,4
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(dm,512)
label(th)
dm:
cmp [eax],#8200 //要替换的代码
jne th
mov [eax],#70102 //用作替换的代码
th:
mov ecx,[edi]
add eax,4
ret
02519B49:
CALL dm
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
02519B49:
mov ecx,[edi]
add eax,4
