//alloc(newmem,4048,"DiabloImmortal.exe"+201D233)
alloc(newmem,4048,"DiabloImmortal.exe"+C6CF18)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
movss xmm0,[rax+08]
//movss [rsp+28],xmm0
//movss xmm1,[rax+0C]
//movss [rsp+2C],xmm1

// rax+8 = rdi+418+8 = float hp120
// rax+0 = rdi+418+0 = y1 41100000
// rax+4 = rdi+418+4 = x  4421D99A
// rax+B8 = rdi+418+B8 = x  42860000
// rax+C = rdi+418+C = y2

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem

cmp [rdi+418+0],41100000
jne exit01
//cmp [rdi+418+B8],42860000
//jne exit01
cmp [rdi+418+C],41819999
jne exit01

mov [rax],rdi
exit01:

pop rax





exit:
jmp returnhere
//"DiabloImmortal.exe"+201D233:
"DiabloImmortal.exe"+C6CF18:
jmp newmem
returnhere:

