alloc(newmem,4048,"DiabloImmortal.exe"+13863AC)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
//movups [rcx+rdx+10],xmm1
//mov eax,[rdx+r13+20]
mov [rcx+rdx+20],eax
mov eax,[rdx+r13+24]

// +20 = player x
// +18 = player y

push rax
mov rax,newmem+500
mov [rax],rcx
pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+13863AC:
jmp newmem
nop
nop
nop
nop
returnhere:

