alloc(newmem,4048,"DiabloImmortal.exe"+D16B47)
label(returnhere)
label(originalcode)
label(exit)
label(exit01)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
addss xmm10,[rbx+54]
// movss xmm0,[rbx+58]
// addss xmm0,xmm14
// addss xmm9,xmm6

// rbx+54 = x
// rbx+5C = y

push rax

mov rax,newmem+500
cmp byte ptr [rax+500],1
jne exit01

mov [rbx+5C],426623D9 // t
mov [rbx+54],C299C4C5 // x
exit01:

pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+D16B47:
jmp newmem
nop
returnhere:

