alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:

// DiabloImmortal.exe dectect process playing now

mov edx,[esi]
mov [edi],edx
add edi,04

exit:
jmp returnhere

"Agent.exe"+3BD357:
jmp newmem
nop
nop
returnhere:

