alloc(newmem,4048,"DiabloImmortal.exe"+15C041F)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov rdi,[rax+rcx*8+10]

// rdi = id enemy
// rbx = 1
// rdx = 9 check > sub qword ptr [rax],01
// rsi = 13 16 image file path

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem
//mov byte ptr [rcx+6C],01 // test

cmp rdi,00000000
je exit01
mov [rax],rdi

exit01:
pop rax






exit:
jmp returnhere

"DiabloImmortal.exe"+15C041F:
jmp newmem
returnhere:

