alloc(newmem,2048,"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]
//cmp byte ptr [rax+5D],00


push rax
mov rax,22E87BF0000
mov [rax],rsi
pop rax

exit:
jmp returnhere

"DiabloImmortal.exe"+6BF61C:
jmp newmem
nop
nop
nop
nop
nop
returnhere:

