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

Disassembly:
push 0x3b4
mov eax, 0x490c31
call fcn.00474ec1
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x308], esi
cmp dword [0x4bfb94], ebx
je 0x4146a1
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x304], esp
push str.GetFFIncumbentHPR_in
call fcn.00409f78
mov ecx, 0x4bfcf0
call fcn.004437f6
push 0x49bf38
lea ecx, [ebp - 0x250]
call fcn.0040a4c4
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4146f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea eax, [ebp - 0x250]
push eax
mov ecx, edi
call fcn.0040a4f5
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.0040bba0
mov eax, edi
jmp 0x414af5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x26c]
mov dword [esi], 2
call fcn.0040a4c4
lea ecx, [ebp - 0x2a4]
push str.MozillaFirefox
push ecx
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00418f59
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.0040bba0
lea eax, [ebp - 0x234]
push str.profiles.ini
push eax
lea edi, [ebp - 0x2a4]
call fcn.0040fa7f
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 5
call fcn.0045772c
add esp, 0xc
test al, al
jne 0x41479f
mov ecx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x250]
push eax
call fcn.0040a4f5
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0040bba0
push ebx
push 1
lea ecx, [ebp - 0x2a4]
call fcn.0040bba0
push ebx
push 1
jmp 0x414ae4
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4147b4
lea eax, [ebp - 0x234]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x49bf38
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jle 0x414769
push str.prefs.js
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x304], esp
mov edi, 0x49c6b8
push edi
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x310], esp
push 0x49d64c
call fcn.0040a4c4
sub esp, 0x1c
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x30c], esp
push eax
mov byte [ebp - 4], 7
call fcn.0040a4c4
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 5
call fcn.00456d94
mov esi, eax
push edi
lea eax, [ebp - 0x2dc]
push eax
lea edi, [ebp - 0x2a4]
mov byte [ebp - 4], 8
call fcn.0040fa7f
add esp, 0x60
mov ecx, eax
mov eax, esi
lea edi, [ebp - 0x2f8]
mov byte [ebp - 4], 9
call fcn.00418f84
lea ecx, [ebp - 0x26c]
push ecx
mov esi, eax
mov byte [ebp - 4], 0xa
call fcn.00418f59
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xb
call fcn.0040ba5a
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x26c]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x2f8]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x2dc]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 5
call fcn.0040bba0
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4148dc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.004175ea
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x3c0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x3b4], 6
je 0x41491d
mov ecx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x250]
push eax
call fcn.0040a4f5
mov dword [ebp - 0x300], edi
jmp 0x414ab9
mov dword [ebp - 0x274], 0xf
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
mov byte [ebp - 4], 0xd
jmp 0x414991
cmp dword [ebp - 0x278], ebx
je 0x414991
push str.user_pref__browser.startup.homepage____
lea ecx, [ebp - 0x26c]
call fcn.00409f78
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x41496a
lea eax, [ebp - 0x26c]
push dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x288]
call fcn.004181be
cmp eax, ebx
jge 0x4149c6
push ebx
push edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00401524
lea eax, [ebp - 0x288]
push eax
lea esi, [ebp - 0x3c0]
call fcn.00418fcd
pop ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx eax, al
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x414939
jmp 0x414a81
push 0xffffffffffffffff
mov ecx, 0xfde9
push ecx
push ecx
mov ecx, dword [ebp - 0x25c]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x30c], esp
push 0x3e8
add ecx, eax
push ecx
lea eax, [ebp - 0x288]
push eax
call fcn.004170c6
lea eax, [ebp - 0x2c0]
push eax
call fcn.00456b26
add esp, 0x2c
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xf
call fcn.0040ba5a
push ebx
push edi
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xe
call fcn.0040bba0
mov esi, 0x49d9e4
push esi
call fcn.0046faa4
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp - 0x234]
call fcn.0041835a
cmp eax, ebx
jle 0x414a70
push eax
push ebx
lea eax, [ebp - 0x234]
push eax
lea esi, [ebp - 0x2c0]
call fcn.0040a5d3
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x10
call fcn.0040ba5a
push ebx
push edi
mov ecx, esi
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00401524
lea esi, [ebp - 0x3c0]
call fcn.004176ba
mov eax, dword [ebp - 0x308]
mov ecx, dword [ebp - 0x2fc]
mov dword [eax], ebx
lea eax, [ebp - 0x250]
push eax
call fcn.0040a4f5
push ebx
push edi
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x300], edi
call fcn.00401524
lea eax, [ebp - 0x3c0]
mov byte [ebp - 4], 5
call fcn.00414637
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x2a4]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x250]
call fcn.0040bba0
mov eax, dword [ebp - 0x2fc]
call fcn.00474f44
ret