alloc(newmem,2048,"DiabloImmortal.exe"+D16B47) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
// +54 = x
// +5C = y

push rax
mov rax,28B0C7B0000
mov [rax],rbx
pop rax

addss xmm10,[rbx+54]
// movss xmm0,[rbx+58]
// addss xmm0,xmm14
// addss xmm9,xmm6
// addss xmm9,[rbx+5C]

exit:
jmp returnhere

"DiabloImmortal.exe"+D16B47:
jmp newmem
nop
returnhere:

