alloc(newmem,2048,"DiabloImmortal.exe"+6ABAD8) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov rcx,[rcx+00000090]

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem





cmp byte ptr [rcx+59],00
je if01

mov [rax+8*0],rbx
mov [rax+8*1],rcx
if01:




pop rax

exit:
jmp returnhere

"DiabloImmortal.exe"+6ABAD8:
jmp newmem
nop
nop
returnhere:

