alloc(newmem,4048,"DiabloImmortal.exe"+2D9CA3)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
// mov rax,[rbx+38]
mov rsi,[rax]
mov rax,[r15]
// movss xmm1,[rax+10]
// ucomiss xmm1,xmm0

// [rax] = [enemy id]
// rsi = id enemy
// rbx+A8 = 736E6F4D Monster
// monter ngoai man hinh

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem
//mov byte ptr [rcx+6C],01 // test

cmp [rbx+A8],736E6F4D // Monster
jne exit01
mov [rax+0],rsi
mov [rax+8],rbx

exit01:
pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+2D9CA3:
jmp newmem
nop
returnhere:

