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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x258]
sub rsp, 0x340
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801fdc38]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov eax, dword [0x180208bd8]
test al, 1
jne 0x1800052a0
or eax, 1
mov dword [0x180208bd8], eax
mov qword [0x180208bc8], 7
mov qword [0x180208bc0], r13
mov word [0x180208bb0], r13w
lea rcx, [0x180175960]
call fcn.18011a41c
cmp qword [0x180208bc0], r13
je 0x1800052d4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x180208bb0]
mov rcx, rbx
call fcn.180016bb0
jmp 0x1800056a5
mov word [rbp + 0x20], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x22]
call fcn.18011a1e0
xor r9d, r9d
lea r8d, [r9 + 0x1a]
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x180005316
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
jmp 0x1800056a5
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x70]
call fcn.180015970
nop
mov r8d, 0x11
lea rdx, str.MozillaFirefox_
lea rcx, [rbp - 0x70]
call fcn.180015c50
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.180016bb0
nop
mov r8d, 0xd
lea rdx, str.profiles.ini
lea rcx, [rsp + 0x68]
call fcn.180015c50
mov word [rbp + 8], r13w
xor eax, eax
mov qword [rbp + 0xa], rax
mov dword [rbp + 0x12], eax
mov word [rbp + 0x16], ax
mov esi, r13d
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
lea r12, str.default
nop
mov r8d, 7
lea rdx, str.Profile
lea rcx, [rsp + 0x40]
call fcn.180015970
mov dword [rsp + 0x30], esi
inc esi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.180007ec0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180015b20
nop
cmp qword [rbp - 0x30], 8
jb 0x180005421
mov rcx, qword [rbp - 0x48]
call fcn.1801196dc
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [rbp + 8]
xor r8d, r8d
lea rdx, str.Name
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x18000563b
lea rax, [rbp + 8]
mov rdi, r12
sub rdi, rax
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x180005488
add rax, 2
test ecx, ecx
jne 0x180005475
test edx, edx
jne 0x1800053d0
mov edi, 0x104
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov edx, edi
lea rcx, [rbp - 0x48]
call fcn.1800061a0
nop
nop dword [rax]
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov rsi, qword [rbp - 0x48]
mov r9, rsi
xor r8d, r8d
lea rdx, str.Path
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [rdi - 1]
cmp ecx, eax
jne 0x18000550a
lea eax, [rdi + rdi]
mov edi, eax
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.1800061a0
jmp 0x1800054b0
mov r8, rsi
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
call fcn.180007ee0
mov rdi, rax
lea r12, [0x180208bb0]
cmp r12, rax
je 0x1800055ae
cmp qword [0x180208bc8], 8
jb 0x180005543
mov rcx, qword [0x180208bb0]
call fcn.1801196dc
mov qword [0x180208bc8], 7
mov qword [0x180208bc0], r13
mov word [0x180208bb0], r13w
cmp qword [rdi + 0x18], 8
jae 0x18000557b
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
mov rcx, r12
call fcn.180119850
jmp 0x180005588
mov rax, qword [rdi]
mov qword [0x180208bb0], rax
mov qword [rdi], r13
mov rax, qword [rdi + 0x10]
mov qword [0x180208bc0], rax
mov rax, qword [rdi + 0x18]
mov qword [0x180208bc8], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
cmp qword [rbp - 8], 8
jb 0x1800055be
mov rcx, qword [rbp - 0x20]
call fcn.1801196dc
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.180016bb0
nop
test rsi, rsi
je 0x1800055ef
mov rcx, rsi
call fcn.1801196dc
nop
cmp qword [rsp + 0x58], 8
jb 0x180005601
mov rcx, qword [rsp + 0x40]
call fcn.1801196dc
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
cmp qword [rbp - 0x80], 8
jb 0x180005626
mov rcx, qword [rsp + 0x68]
call fcn.1801196dc
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
jmp 0x180005695
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
cmp qword [rsp + 0x58], 8
jb 0x18000565d
mov rcx, qword [rsp + 0x40]
call fcn.1801196dc
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
cmp qword [rbp - 0x80], 8
jb 0x180005682
mov rcx, qword [rsp + 0x68]
call fcn.1801196dc
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
cmp qword [rbp - 0x58], 8
jb 0x1800056a5
mov rcx, qword [rbp - 0x70]
call fcn.1801196dc
mov rax, rbx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.180119820
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret