alloc(newmem,2048,"DiabloImmortal.exe"+ED8EBA)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov rcx,[rsp+00000380]
//movzx ecx,byte ptr [rcx+00000132] // no se xoa rcx lên vứt xuống dưới cùng

push rax
mov rax,newmem+500 // vtmem

cmp byte ptr [rcx+160],01 // text LU CODEX + SKILL + SETTING + BLACKSMITH [rcx+C0]+50
jne if00
cmp byte ptr [rcx+132],00 // text LU CODEX + SKILL + SETTING + BLACKSMITH [rcx+C0]+50
jne if00
cmp [rcx+70],(float)47 // 67-20
jb if00
cmp [rcx+70],(float)87 // 67+20
ja if00
cmp [rcx+74],(float)405 // 425-20
jb if00
cmp [rcx+74],(float)445 // 425+20
ja if00
mov [rax+8*0],rcx
if00:


pop rax




exit:
jmp returnhere

"DiabloImmortal.exe"+ED8EBA:
jmp newmem
nop
nop
nop
returnhere:

