Спасибо помогло. Доетого делал так [ENABLE] //code from here to '[DISABLE]' will be used to enable the cheat alloc(newmem,2048) //2kb should be enough label(returnhere) label(originalcode) label(exit) newmem: //this is allocated memory, you have read,write,execute access //place your code here originalcode: //fadd dword ptr [ecx+eax*4] значение 2 fadd dword ptr [ecx+eax*4] //добавляет в 2 раза больше значение = +4 fadd dword ptr [ecx+eax*4] //добавляет в 2 раза больше значение = +8 lea eax,[ecx+eax*4] exit: jmp returnhere "EMPIRES.EXE"+5E7DA: jmp newmem nop returnhere: [DISABLE] "EMPIRES.EXE"+5E7DA: fadd dword ptr [ecx+eax*4] lea eax,[ecx+eax*4] А вот и полный код с проверкой на поинтер на дерево и мясо, проверка проходит в одной функции. Игра на немецком языке поетому поинтер может быть другим. [ENABLE] //code from here to '[DISABLE]' will be used to enable the cheat alloc(newmem,2048) //2kb should be enough label(returnhere) label(holz) label(fleisch) label(exit) newmem: push ebp lea ebp, dword ptr [eax] cmp ebp, 0A4C614C pop ebp je holz push ebp lea ebp, dword ptr [eax] cmp ebp, 0A4C6148 pop ebp je fleisch jmp returnhere holz: fstp dword ptr [eax] mov dword ptr [eax], (float)5000 // перезаписать ret 000C jmp exit fleisch: fstp dword ptr [eax] mov dword ptr [eax], (float)5000 // перезаписать ret 000C jmp exit exit: jmp returnhere "EMPIRES.EXE"+5E7E0: jmp newmem returnhere: fstp dword ptr [eax] ret 000C [DISABLE] "EMPIRES.EXE"+5E7E0: fstp dword ptr [eax] ret 000C