//alloc(newmem,4048,"DiabloImmortal.exe"+15C061A) cu
alloc(newmem,2048,"DiabloImmortal.exe"+1E17A58)
label(returnhere)
label(originalcode)
label(exit)
label(exit01)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
// mov rax,[r8+28]
// lea rcx,[rcx+rcx*2]
// cmp [rax+rcx*8+08],r12

mov rdi,[rax+rcx*8+10]
// inc [rdi]

// [rax+rcx*8+10] = rax+3610 > target enemy


cmp rcx,000006C0
jne exit01
cmp [rax+3610],5CBF7508
je exit01
mov [1D6AEAD0000],rax

exit01:



exit:
jmp returnhere

//"DiabloImmortal.exe"+15C061A: cu
"DiabloImmortal.exe"+1E17A58:
jmp newmem
returnhere:

