alloc(newmem,4048,"DiabloImmortal.exe"+D17727)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem
//mov byte ptr [rcx+6C],01 // test

//cmp byte ptr[rbx+110],00
//jne exit01
//cmp [rbx+54],00000000
//je exit01
//cmp [rbx+5C],00000000
//je exit01
//mov [rbx+54],41F79320
//mov [rbx+5C],41C79AC6


mov [rax+8*1],rbx // rcx > chuyen thanh rbx+38 = id enemy //mov [rax+8],rsi
mov [rax+8*2],rcx // target id
mov [rax+8*3],rdx // target id


//exit01:
pop rax






exit:

addss xmm10,[rbx+54]

jmp returnhere

"DiabloImmortal.exe"+D17727:
jmp newmem
nop
returnhere:

