alloc(newmem,2048,"DiabloImmortal.exe"+6BA930) 
label(returnhere)
label(originalcode)
label(exit)
label(exit01)
label(jne01_1)
label(jne01_2)
label(jne01_3)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
// rcx + 0 = text item
// rcx + 10 = float x > mouse x
// rcx + 14 = float y > sizey 534-359=mousey
// rcx+90 = fontC
// rcx+100 = color player = 30 npc xanh = 4E npc xanh = 48
// item gold = 2A Enegry = 48
// rcx+108 = name tat = 1 bat = 0

mov rcx,[rdi]
lea r8,[rsp+00000080]

cmp [rcx+90],746E6F66 // kiem tra text font
jne exit


push rax // address

mov rax,28482960900 // address 0x0 value vtmem

add rax,8
cmp [rax],00000000 // = 0
jne jne01_1
mov [rax],rcx
jne01_1:

add rax,8
cmp [rax],00000000 // = 0
jne jne01_2
cmp [rax-8],rcx // = 0
je jne01_2
mov [rax],rcx
jne01_2:

add rax,8
cmp [rax],00000000 // = 0
jne jne01_3
cmp [rax-8],rcx // = 0
je jne01_3
cmp [rax-16],rcx // = 0
je jne01_3
mov [rax],rcx
jne01_3:


exit01:
pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+6BA930:
jmp newmem
nop
nop
nop
nop
nop
nop
returnhere:

