alloc(newmem,4048,"DiabloImmortal.exe"+D43A9D)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov r8,[r15+70]
mov rdx,[rbp-78]
// [r15+70] > 0 > 0 = gui_img_map34_standard
// r8+C4 = zoom
// r8+C8 = float x

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem

cmp [r8+C4],3F800000 // zoom
jne exit01
cmp [r8+C8],440F0000 // floay x
jne exit01
mov [rax+8*0],r15
mov [rax+8*1],r8
mov [rax+8*2],r8
exit01:
pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+D43A9D:
jmp newmem
nop
nop
nop
returnhere:

