alloc(newmem,2048,"DiabloImmortal.exe"+82CB13) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
// sub rsp,00000080
// mov rsi,r8
// mov rdi,rcx
// cmp [rcx+50],dl

je DiabloImmortal.AK::WriteBytesMem::Size+478D73

exit:
jmp returnhere

"DiabloImmortal.exe"+82CB13:
jmp newmem
nop
returnhere:

