alloc(newmem,2048,"DiabloImmortal.exe"+6ABAF9) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:



// rcx + 59 = bat 1 tat 0
// rcx + 50 > float hp xy + float xy enemy

//rcx + 60 = size y float
//rcx + 64 = size x float
//rcx + 68 = size z float



// mov rcx,[rcx+00000090]
// cmp byte ptr [rcx+59],00 // bat 1 tat 0
// je 7FF7085EBCC8
// mov rax,[7FF70B8E0900]
// movss xmm0,[rbx+08]
// comiss xmm0,[rax+08]
jae DiabloImmortal.AK::WriteBytesMem::Size+331EC8  // nop bat all bar hp
// movss xmm1,[rcx+64]
// movss xmm0,[rbx+0C]





exit:
jmp returnhere

"DiabloImmortal.exe"+6ABAF9:
jmp newmem
nop
returnhere:

