//alloc(newmem,4048,"DiabloImmortal.exe"+D43A99)
alloc(newmem,4048,"DiabloImmortal.exe"+CA4416)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
lea r9,[rbp-20]
mov r8,[r15+70] // goc ko du byte > lui ve lea r9,[rbp-60]
//mov rdx,[rbp-78]
//mov rcx,r14

// [r15+70] > 0 > 0 = gui_img_map34_standard
// [r8+8] > 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"+CA4416:
//"DiabloImmortal.exe"+D43A99:
jmp newmem
nop
nop
nop
returnhere:

