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

Disassembly:
push 0xffffffffffffffff
push 0x403588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc8]
xor ebx, ebx
push eax
push 0x64
mov dword [esp + 0x13c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0xc8]
lea edx, [esp + 0x14]
push ecx
push str._scontrolProc.ini
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x30]
push eax
push 0x96
push ecx
push 0x406220
push str.counts
push str.APP_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebp, dword [esi + 0xa4]
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x24], eax
je 0x401e0c
lea edi, [ebp + 8]
xor ebx, ebx
mov ecx, edi
call fcn.00401610
add edi, 8
mov eax, ebx
dec ebx
test eax, eax
jne 0x401df2
mov ebp, dword [ebp]
test ebp, ebp
jne 0x401ded
xor ebx, ebx
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xa4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
mov eax, dword [esp + 0x24]
mov dword [esi + 0xb4], ebx
cmp eax, ebx
jle 0x402040
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString_1
push ebx
lea ecx, [esp + 0x1c]
push str.item_d
push ecx
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x30]
push edx
push 0x96
push eax
push 0x406220
push ecx
push str.APP_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call fcn.00402e8a
push 0x40605c
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 4
call sub.MFC42.DLL_CString::Find
mov edi, eax
lea eax, [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, edi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xb0]
mov ebp, dword [esi + 0xa8]
test eax, eax
jne 0x401f8d
mov eax, dword [esi + 0xb8]
push 0x10
lea ecx, [esi + 0xb4]
push eax
push ecx
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0xb8]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x401f8d
inc ecx
mov edx, dword [esi + 0xb0]
mov dword [eax], edx
mov dword [esi + 0xb0], eax
sub eax, 0x10
dec ecx
jne 0x401f79
mov edi, dword [esi + 0xb0]
push 1
mov eax, dword [edi]
mov dword [esi + 0xb0], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xac]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xac], edx
call fcn.00401660
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x20]
lea ecx, [ebp + 4]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x401fe3
mov dword [eax], edi
jmp 0x401fe9
mov dword [esi + 0xa4], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xa8], edi
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x401e41
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret