alloc(newmem,4048,"DiabloImmortal.exe"+15B81A0)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [r14],rdi
add r14,08
// r14-1B8+78 = 00000234 // y 564
// r14-1B8+84 = 00000069 // sx 105
// r14-1B8+88 = 000001FD // sx 509



push rax // address
mov rax,newmem+500 // address 0x0 value vtmem
//mov byte ptr [rcx+6C],01 // test

cmp [r14-1B8],00000000
jne exit01
cmp byte ptr [r14+5],7F // id enemy
je exit01
cmp [r14-1B8+78],00000234 // y 564
jne exit01
cmp [r14-1B8+84],00000069 // sx 105
jne exit01
cmp [r14-1B8+88],000001FD // sx 509
jne exit01
mov [rax],r14
mov [rax+8],rdi

exit01:
pop rax

exit:

jmp returnhere

"DiabloImmortal.exe"+15B81A0:
jmp newmem
nop
nop
returnhere:

