Function at 0x1800225c4
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6d0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov r14, rdx
mov rbx, qword [0x18015f768]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rbx
lea rax, [r11 - 0x668]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x180022680
lea rcx, [rbx - 0xc]
lea rbp, [0x18015f758]
or esi, 0xffffffff
cmp rcx, rbp
je 0x18002265a
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x18002265a
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022679
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022679
call fcn.1800d1434
xor eax, eax
jmp 0x180022a95
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rsp + 0x90]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180003e28
mov r11, qword [rsp + 0x30]
cmp dword [r11 - 8], 0
jle 0x1800226b8
lea rcx, [rsp + 0x30]
call fcn.1800cde54
lea rcx, str.MozillaFirefox_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.MozillaFirefox_
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180008324
lea r8, str.profiles.ini
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800084fc
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180003500
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
lea rbp, [0x18015f758]
or esi, 0xffffffff
cmp rcx, rbp
je 0x18002272f
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x18002272f
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
lea rdx, [rsp + 0x48]
lea rcx, [0x18015f720]
call fcn.1800ce3c8
test eax, eax
jne 0x18002278a
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022764
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022764
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022783
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022783
call fcn.1800d1434
xor eax, eax
jmp 0x180022a95
mov rax, qword [0x18015f768]
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov qword [rsp + 0x70], rax
xor r13d, r13d
mov r8d, r12d
lea rdx, str.profile_d
lea rcx, [rsp + 0x58]
call fcn.180008f64
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x2a0]
lea r8, [0x18010d528]
lea rdx, str.Name
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x38]
call fcn.1800041c0
nop
lea rcx, [rsp + 0x38]
call fcn.180003f8c
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharLowerW]
cmp dword [rbx - 8], 0
jl 0x180022869
lea rdx, str.default
mov rcx, rbx
call fcn.1800d1f00
test rax, rax
je 0x180022869
sub rax, rbx
sar rax, 1
test eax, eax
js 0x180022869
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x4b0]
lea r8, [0x18010d528]
lea rdx, str.Path
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x180022895
inc r12d
lea rcx, [rbx - 0xc]
cmp rcx, rbp
je 0x180022886
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022886
call fcn.1800d1434
cmp r12d, 0xa
jge 0x180022a13
jmp 0x1800227a1
lea r8, [rsp + 0x4b0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1800084fc
nop
lea rcx, [rsp + 0x50]
call fcn.180003f8c
mov rdi, qword [rsp + 0x50]
movsxd rax, dword [rdi - 8]
lea r12, [rdi + rax*2]
cmp rdi, r12
jae 0x1800228ed
cmp word [rdi], 0x2f
jne 0x1800228d7
mov eax, 0x5c
mov word [rdi], ax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
cmp rax, r12
jb 0x1800228c9
mov rdi, qword [rsp + 0x50]
cmp dword [rdi - 0xc], 0
jl 0x180022904
mov qword [rsp + 0x40], rdi
lock add dword [rdi - 0xc], 1
mov rbx, qword [rsp + 0x38]
jmp 0x180022928
mov rax, qword [0x18015f768]
mov qword [rsp + 0x40], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.180003e28
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x40]
lea rcx, [0x180162a58]
call fcn.180003500
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022978
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022973
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
mov rbx, qword [rsp + 0x38]
jmp 0x180022978
mov rbx, qword [rsp + 0x38]
mov r13d, 1
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1800229b2
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x1800229ad
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
mov rbx, qword [rsp + 0x38]
jmp 0x1800229b2
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0xc]
cmp rcx, rbp
je 0x1800229cc
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x1800229cc
call fcn.1800d1434
lea rdx, [rsp + 0x68]
lea rcx, vtable.CEntryInstaller.0
call fcn.18003b4b0
nop
mov rdx, rax
mov rcx, r14
call fcn.180003500
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022a13
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022a13
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022a33
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022a33
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022a53
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022a53
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022a73
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180022a73
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x180022a92
mov edx, esi
lock xadd dword [rcx], edx
add edx, esi
test edx, edx
jg 0x180022a92
call fcn.1800d1434
mov eax, r13d
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.1800d12b0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret