alloc(newmem,2048,"DiabloImmortal.exe"+6ABAD8) 
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

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem

cmp byte ptr [rcx+59],01
jne if01
cmp [rcx+60],(float)25
jne if01
cmp [rcx+64],(float)90
jne if01
cmp [rcx+68],(float)2
jne if01

mov [rax+8*1],rcx
if01:

pop rax





exit:
jmp returnhere

"DiabloImmortal.exe"+6ABAD8:
jmp newmem
nop
nop
returnhere:

