alloc(newmem,4048,"DiabloImmortal.exe"+6BF61C)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
movups [rsi],xmm0
mov rax,[rsi+00000090]


push rax

mov rax,newmem+500
cmp byte ptr [rsi+21],00
jne exit01
mov [rax],rsi
exit01:

pop rax



exit:
jmp returnhere

"DiabloImmortal.exe"+6BF61C:
jmp newmem
nop
nop
nop
nop
nop
returnhere:

