alloc(newmem,4048,"DiabloImmortal.exe"+470594)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:

// rax = bar HP
// rcx = float xy hoac float HP ( on top layer )
// rbx =
// rsi =
// rdi = address

// rcx = rcx bar Hp > = rcx cua cmp byte ptr [rcx+6C],00
// [rbx-8] = rbx float x y > rbx cua cmp byte ptr [rcx+6C],00

push rax // address

//mov rax,newmem+500 // address 0x0 value vtmem

cmp byte ptr [rcx+6C],00
jne exit01

mov [rax+0],rcx // 6C bat = 0 tat = 1, +2C x y hps
mov [rax+8],rbx //  [rbx-8] = float x float y
mov [rax+10],rsi
mov [rax+18],rdi // rdi png

exit01:

pop rax





exit:


mov rcx,[rbx]
call DiabloImmortal.AK::WriteBytesMem::Size+308470

jmp returnhere

"DiabloImmortal.exe"+470594:
jmp newmem
nop
nop
nop
returnhere:

