alloc(newmem,4048,"DiabloImmortal.exe"+15AE5CE)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [r14+10],rsi
inc [rbp+18]

push rax

mov rax,newmem+500

cmp [rax],00000000
jne exit01
mov [rax],rsi

exit01:
pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+15AE5CE:
jmp newmem
nop
nop
nop
returnhere:

