Function at 0x404520
Capabilities:
Get common file path
Get number of processors
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b5f2
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x435ad8]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x435ad8]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x104
xor esi, esi
lea ecx, [esp + 0x49]
push esi
push ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0x50], 0
call fcn.00418020
add esp, 0xc
cmp dword [ebp + 0xc], esi
jne 0x404598
lea edx, [esp + 0x44]
push edx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
jmp 0x404600
push 0x103
lea eax, [esp + 0x251]
push esi
push eax
mov byte [esp + 0x258], 0
call fcn.00418020
lea ecx, [esp + 0x258]
add esp, 0xc
push ecx
call fcn.00407920
lea eax, [esp + 0x250]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4045d0
sub eax, edx
je 0x40486a
lea edx, [esp + 0x24c]
push edx
push str._sAppDataRoaming
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.00414cf3
add esp, 0x10
push str.MozillaFirefox_
lea ecx, [esp + 0x48]
push 0x104
push ecx
call fcn.00414d2e
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x24]
call fcn.00406920
push str.profiles.ini
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x374], esi
call fcn.00405f10
add esp, 0xc
mov byte [esp + 0x368], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404667
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xff
lea ecx, [esp + 0x151]
push esi
push ecx
mov byte [esp + 0x158], 0
call fcn.00418020
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.004089fd
mov byte [esp + 0x368], 3
call fcn.004091c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4046b0
push 0x80004005
call fcn.004061d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x368], 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea ecx, [esp + 0x1c]
push str.Profile_d
push ecx
call fcn.004068b0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add esp, 0xc
push edx
push 0xff
lea eax, [esp + 0x154]
push eax
push 0x42f5ec
push str.Path
push edi
call ebx
lea eax, [esp + 0x14c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404710
sub eax, edx
je 0x40480a
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406920
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x36c], 5
call fcn.00405ae0
call fcn.004091c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4046a6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x368], 6
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.004068b0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
push ecx
lea ecx, [esp + 0x34]
call fcn.00408aaa
test eax, eax
je 0x4047ae
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
call fcn.00408fd9
mov byte [esp + 0x368], 5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x368], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, 0x64
jl 0x4046ce
lea eax, [edi - 0x10]
mov byte [esp + 0x368], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40482e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x368], 2
call fcn.00408a21
mov dword [esp + 0x368], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40486a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.004149ab
mov esp, ebp
pop ebp
ret