alloc(newmem,2048,"DiabloImmortal.exe"+D3EBF2) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [rcx+28],r14d
mov [rcx+2C],esi

exit:
jmp returnhere

"DiabloImmortal.exe"+D3EBF2:
jmp newmem
nop
nop
returnhere:

