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

Disassembly:
push 0x2d8
mov eax, 0x720f37
call fcn.0054dced
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x280], eax
call fcn.00421999
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x21a]
push ebx
push eax
mov word [ebp - 0x21c], bx
call fcn.0054b920
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
jne 0x4a7135
xor al, al
call fcn.0054dd70
ret
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00452856
push str.Mozilla
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2c8]
push eax
mov dword [ebp - 4], ebx
call fcn.0040be01
add esp, 0xc
mov edi, str.Firefox
push edi
push eax
lea eax, [ebp - 0x2e4]
push eax
mov byte [ebp - 4], 1
call fcn.0040be01
add esp, 0xc
mov esi, str.profiles.ini
push esi
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 2
call fcn.0040be01
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.00401ebc
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.00401f4f
push ebx
push 1
lea ecx, [ebp - 0x2e4]
call fcn.00401f4f
push ebx
push 1
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], bl
call fcn.00401f4f
sub esp, 0x1c
lea eax, [ebp - 0x254]
mov dword [ebp - 0x278], esp
mov ecx, esp
push eax
call fcn.00407bbe
call fcn.00455690
add esp, 0x1c
cmp al, bl
jne 0x4a72eb
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00452856
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.00401ebc
push ebx
push 1
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.00401f4f
push str.Roaming
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0040be01
add esp, 0xc
push str.Mozilla
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 5
call fcn.0040be01
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x2e4]
push eax
mov byte [ebp - 4], 6
call fcn.0040be01
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x2c8]
push eax
mov byte [ebp - 4], 7
call fcn.0040be01
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
call fcn.00401ebc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x2c8]
call fcn.00401f4f
push ebx
push edi
lea ecx, [ebp - 0x2e4]
call fcn.00401f4f
push ebx
push edi
lea ecx, [ebp - 0x238]
call fcn.00401f4f
push ebx
push edi
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], bl
call fcn.00401f4f
jmp 0x4a72ee
xor edi, edi
inc edi
sub esp, 0x1c
lea eax, [ebp - 0x254]
mov dword [ebp - 0x278], esp
mov ecx, esp
push eax
call fcn.00407bbe
call fcn.00455690
add esp, 0x1c
cmp al, bl
lea ecx, [ebp - 0x254]
jne 0x4a7323
push ebx
push edi
call fcn.00401f4f
jmp 0x4a712d
lea eax, [ebp - 0x270]
push eax
call fcn.00452a80
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0xa
call fcn.004a7836
mov dword [ebp - 0x278], eax
mov dword [esp], 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0054b920
add esp, 0xc
cmp dword [ebp - 0x278], 2
jne 0x4a73b5
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x4a7392
lea eax, [ebp - 0x26c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push ebx
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4a74bd
cmp dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], ebx
jle 0x4a74bd
push dword [ebp - 0x27c]
lea esi, [ebp - 0x290]
call fcn.00519c4a
push eax
lea ecx, [ebp - 0x238]
call fcn.00407bbe
push str.General
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 0xb
call fcn.004070eb
test al, al
pop ecx
jne 0x4a743f
mov ecx, dword [ebp - 0x26c]
push 8
pop esi
cmp dword [ebp - 0x258], esi
jae 0x4a7414
lea ecx, [ebp - 0x26c]
cmp dword [ebp - 0x220], esi
mov eax, dword [ebp - 0x234]
jae 0x4a7428
lea eax, [ebp - 0x234]
push ecx
push ebx
push str.Default
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
neg eax
sbb al, al
inc al
jne 0x4a746a
push ebx
push edi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xa
call fcn.00401f4f
inc dword [ebp - 0x27c]
mov eax, dword [ebp - 0x27c]
cmp eax, dword [ebp - 0x278]
jl 0x4a73c7
jmp 0x4a74bd
cmp dword [ebp - 0x258], esi
mov ecx, dword [ebp - 0x26c]
jae 0x4a747e
lea ecx, [ebp - 0x26c]
cmp dword [ebp - 0x220], esi
mov eax, dword [ebp - 0x234]
jae 0x4a7492
lea eax, [ebp - 0x234]
push ecx
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push str.Path
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push edi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xa
call fcn.00401f4f
cmp word [ebp - 0x21c], bx
jne 0x4a74fc
mov byte [ebp - 0x271], bl
lea esi, [ebp - 0x290]
call fcn.0041c7eb
push ebx
push edi
lea ecx, [ebp - 0x270]
call fcn.00401f4f
push ebx
push edi
lea ecx, [ebp - 0x254]
call fcn.00401f4f
mov al, byte [ebp - 0x271]
jmp 0x4a712f
push 2
lea eax, [ebp - 0x21a]
push 0x7c162c
push eax
call fcn.006ca18f
add esp, 0xc
test eax, eax
jne 0x4a7550
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0044e7ba
pop ecx
pop ecx
mov ecx, dword [ebp - 0x280]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 0xc
call fcn.00401ebc
push ebx
push edi
lea ecx, [ebp - 0x2ac]
call fcn.00401f4f
jmp 0x4a760f
lea edi, [ebp - 0x2ac]
lea ecx, [ebp - 0x254]
call fcn.00452ab1
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 0xd
call fcn.00452842
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xe
call fcn.00401ebc
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.00401f4f
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00401f4f
lea eax, [ebp - 0x21c]
push eax
lea edi, [ebp - 0x254]
call fcn.00452a47
lea eax, [ebp - 0x2ac]
push eax
mov ecx, edi
call fcn.00452a80
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 8
jb 0x4a75d6
mov eax, dword [eax + 4]
jmp 0x4a75d9
add eax, 4
push eax
lea ecx, [ebp - 0x270]
call fcn.0040184f
push ebx
push 1
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xa
call fcn.00401f4f
mov ecx, dword [ebp - 0x280]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x270]
push eax
call fcn.00401ebc
xor edi, edi
inc edi
mov byte [ebp - 0x271], 1
jmp 0x4a74cc