
//alloc(newmem,2048,"DiabloImmortal.exe"+925E0)
//alloc(newmem,2048,"DiabloImmortal.exe"+944A0)
//alloc(newmem,2048,"DiabloImmortal.exe"+94880)
//alloc(newmem,2048,"DiabloImmortal.exe"+96650)

alloc(newmem,2048,"DiabloImmortal.exe"+96650)

label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
// dung Navigation Paused char de tim neu mat base

// rbx = xmm0 = rdx+8
// rdx+8 > 0 = text name
// rdx+8 > 90 = text fontC
// rdx+8 > 10C = text font size
// rdx+8 > 108 = tat = 00000101 bat = 01000000


//mov rax,[rax] > ko du byte > call > mov [rsp+10],rbx
//mov rdx,rax
////lea rcx,[rbp+30]
////call 7FF68B6679D0

// rdx+0 = color hex
// rdx+7 = text

mov [rsp+10],rbx
//mov [rsp+18],rbp
//push rsi
//push rdi
//push r15
//sub rsp,20

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem


// ma sau khi ghi dung ten map luc chuyen vung xong bi xoa ten map trong memory
// #8c774a
cmp [rdx+0],37633823 // Elder Rift + Westmarch + Challenge Rift
jne exit01
cmp [rdx+3],61343737 // Elder Rift + Westmarch + Challenge Rift
jne exit01
mov [rax+8*20],1
mov [rax+8*21],rdx
exit01:

cmp [rdx+7],6C6C694B // Kill the Rift Guardian
jne exit02
cmp [rdx+15],72617547 // Kill the Rift Guardian
jne exit02
mov [rax+8*0],2
mov [rax+8*1],rdx
exit02:


cmp [rdx+7],65766E49 // Inventory Full
jne exit03
cmp [rdx+11],6C6C7546 // Inventory Full
jne exit03
mov [rax+8*10],3
mov [rax+8*11],rdx
exit03:

cmp [rdx+0],61306223 // Opening the Helliquary
jne exit04
cmp [rdx+3],39323261 // Opening the Helliquary
jne exit04
mov [rax+8*30],4
mov [rax+8*31],rdx
exit04:

cmp [rdx+0],37666123 // Quest BESIEGED
jne exit05
cmp [rdx+3],36343537 // Quest BESIEGED
jne exit05
mov [rax+8*40],5
mov [rax+8*41],rdx
exit05:

cmp [rdx+0],6976614E // Navigation Paused
jne exit06
cmp [rdx+B],73756150 // Navigation Paused
jne exit06
mov [rax+8*50],6
mov [rax+8*51],rdx
exit06:




cmp [rdx+0],63696C43 // Click to view the Helliquary ( Click
jne exit07
cmp [rdx+12],6C6C6548 // Click to view the Helliquary ( View
jne exit07
mov [rax+8*60],7
mov [rax+8*61],rdx
exit07:



// #8c774a > _8c774aElder Riftt xoa name map
cmp [rdx+0],37633823 // Elder Rift
jne exit08
cmp [rdx+D],74666952 // Elder Rift
jne exit08
mov byte ptr[rdx+7],00
mov [rax+8*20],1
mov [rax+8*21],rdx
exit08:

// #8c774a > _8c774 get xoa name map
cmp [rdx+0],37633823 // Elder Rift
jne exit09
cmp [rdx+8],7265646C // Elder Rift
jne exit09
mov [rax+8*20],1
mov [rax+8*21],rdx
exit09:


cmp [rdx+7],6C6C694B // Kill enemies quickly
jne exit10
cmp [rdx+14],63697571 // Kill enemies quickly
jne exit10
mov [rax+8*0],2
mov [rax+8*1],rdx
exit10:

cmp [rdx+B],6562614C // shop > Featured Label
jne exit11
mov [rax+8*71],rdx
exit11:

cmp [rdx+A],6562614C // shop > Featured Label
jne exit12
mov [rax+8*71],rdx
exit12:

cmp [rdx+9],6562614C // shop > Featured Label
jne exit13
mov [rax+8*71],rdx
exit13:


cmp [rdx+0],66303023 // #00ff2aClosing in: 02:23
jne exit14
cmp [rdx+8],69736F6C // losi
jne exit14
cmp [rdx+10],30203A6E // n: 0
jne exit14
mov [rax+8*81],rdx
exit14:



cmp [rdx+0],6E616C43 // Clans unlocked ( Clan
jne exit15
cmp [rdx+6],6F6C6E75 // Clans unlocked ( unlo
jne exit15
mov [rax+8*60],7
mov [rax+8*61],rdx
exit15:

cmp [rdx+0],6E65704F // Open Inventory to view ( Open
jne exit16
cmp [rdx+5],65766E49 // Open Inventory to view ( Inve
jne exit16
mov [rax+8*60],7
mov [rax+8*61],rdx
exit16:



pop rax









exit:
jmp returnhere



//"DiabloImmortal.exe"+925E0:
//"DiabloImmortal.exe"+944A0:
//"DiabloImmortal.exe"+94880:
//"DiabloImmortal.exe"+96650:


"DiabloImmortal.exe"+96650:


jmp newmem
returnhere:

