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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9f4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], ecx
push 9
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
pop ecx
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
xor eax, eax
mov edi, 0x206
mov word [ebp - 0x7e8], ax
push edi
lea eax, [ebp - 0x7e6]
push esi
push eax
call fcn.10017e80
xor eax, eax
push edi
mov word [ebp - 0x5e0], ax
lea eax, [ebp - 0x5de]
push esi
push eax
call fcn.10017e80
xor eax, eax
push edi
mov word [ebp - 0x9f0], ax
lea eax, [ebp - 0x9ee]
push esi
push eax
call fcn.10017e80
add esp, 0x24
lea eax, [ebp - 0x7e8]
push 1
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10005cc2
push str.MozillaFirefox_
mov ebx, 0x104
lea eax, [ebp - 0x7e8]
push ebx
push eax
call fcn.1001af77
lea eax, [ebp - 0x7e8]
push eax
lea eax, [ebp - 0x5e0]
push ebx
push eax
call fcn.10018ee3
push str.profiles.ini
lea eax, [ebp - 0x7e8]
push ebx
push eax
call fcn.1001af77
push esi
push str.Profile_d
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.10018916
add esp, 0x34
lea eax, [ebp - 0x7e8]
push eax
push ebx
lea eax, [ebp - 0x9f0]
push eax
push esi
push str.Path
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x9f0]
push eax
lea eax, [ebp - 0x5e0]
push ebx
push eax
call fcn.1001af77
push str.prefs.js
lea eax, [ebp - 0x5e0]
push ebx
push eax
call fcn.1001af77
lea eax, [ebp - 0x5e0]
push eax
call fcn.10018631
add esp, 0x1c
jmp 0x10005be4
cmp word [ebp + eax*2 - 0x5e0], 0x2f
jne 0x10005be4
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x5e0], cx
dec eax
test eax, eax
jg 0x10005bce
xor eax, eax
mov dword [ebp - 0xc], esi
push 0x62
mov word [ebp - 0xa0], ax
mov ebx, esi
lea eax, [ebp - 0x9e]
push esi
push eax
call fcn.10017e80
xor eax, eax
push edi
mov word [ebp - 0x3d8], ax
lea eax, [ebp - 0x3d6]
push esi
push eax
call fcn.10017e80
push 0x11
pop ecx
push 0x13
mov esi, str.user_pref__network.proxy.http____
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0x10
mov esi, str.user_pref__network.proxy.http_port__
lea edi, [ebp - 0x1d0]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.user_pref__network.proxy.ssl____
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
push 0x12
pop ecx
push str.HTTP
movsw word es:[edi], word [esi]
mov esi, str.user_pref__network.proxy.ssl_port__
lea edi, [ebp - 0x180]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.HTTPS
push esi
call fcn.10018ea5
add esp, 0x20
test eax, eax
jne 0x10005c86
lea eax, [ebp - 0x130]
lea edi, [ebp - 0x1d0]
jmp 0x10005c9f
push esi
push esi
call fcn.10018ea5
pop ecx
pop ecx
test eax, eax
jne 0x10005cc2
lea eax, [ebp - 0xe8]
lea edi, [ebp - 0x180]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x5e0]
push 0x1003240c
push eax
mov dword [ebp - 4], edi
call fcn.1001b292
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10005d67
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea eax, [ebp - 0xa0]
push 0x32
push eax
call fcn.1001b3bd
add esp, 0xc
test eax, eax
je 0x10005d76
push dword [ebp - 8]
lea eax, [ebp - 0xa0]
push eax
call fcn.10018f5f
pop ecx
pop ecx
test eax, eax
je 0x10005db4
push dword [ebp - 8]
call fcn.10018631
lea eax, [ebp + eax*2 - 0xa0]
push eax
lea eax, [ebp - 0x3d8]
push 0x104
push eax
call fcn.10018ee3
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0xc], 1
push eax
xor edi, edi
call fcn.10018631
add esp, 0x14
test eax, eax
jle 0x10005d64
cmp word [ebp + edi*2 - 0x3d8], 0x22
jne 0x10005d52
xor eax, eax
mov word [ebp + edi*2 - 0x3d8], ax
lea eax, [ebp - 0x3d8]
inc edi
push eax
call fcn.10018631
pop ecx
cmp edi, eax
jl 0x10005d3d
mov edi, dword [ebp - 4]
push esi
call fcn.1001b371
pop ecx
test eax, eax
je 0x10005ccd
push esi
call fcn.1001b502
mov esi, dword [ebp - 0xc]
pop ecx
test esi, esi
je 0x10005e0d
lea eax, [ebp - 0x3d8]
push eax
call fcn.10018631
pop ecx
cmp eax, 0x28
lea eax, [ebp - 0x3d8]
push ebx
push eax
jbe 0x10005de2
push 0x10032410
call fcn.10001f93
add esp, 0xc
jmp 0x10005cc2
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10018f5f
pop ecx
pop ecx
test eax, eax
je 0x10005d67
push edi
call fcn.10018631
lea ecx, [ebp - 0xa0]
lea eax, [ecx + eax*2]
push eax
call fcn.1001b479
pop ecx
pop ecx
mov ebx, eax
jmp 0x10005d67
mov eax, str.HTTPS
push eax
push eax
push str._s_s:___s:_d
push 0x32
push dword [ebp - 0x10]
call fcn.10018916
push ebx
lea eax, [ebp - 0x3d8]
push eax
push str.0x03__P__s:_d
call fcn.10001f93
add esp, 0x28
mov eax, esi
jmp 0x10005cc4