Function at 0x40a020
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40d840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::CFile
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], ebx
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x58]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::CString_2
mov esi, 0x40ea3c
or edi, 0xffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x68], 3
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x48]
push eax
push ebx
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 5
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40a14f
push 0x100
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBufferSetLength
push ebx
push 0x100
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFileException::GetErrorMessage
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x64], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0x40ea28
mov byte [esp + 0x64], bl
call fcn.0040cb50
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], edi
call fcn.0040cb50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
lea edx, [esi + 1]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebp
rep stosb byte es:[edi], al
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Read
mov edi, eax
cmp edi, esi
je 0x40a216
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
push esi
push edi
lea eax, [esp + 0x18]
push str.Read_File_Error__iTmp__d____iLen__d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x48], 0x40ea3c
lea ecx, [esp + 0x58]
mov byte [esp + 0x64], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0x40ea28
mov byte [esp + 0x64], bl
call fcn.0040cb50
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040cb50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x48]
push ecx
push 0x1001
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40a2da
push 0x100
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBufferSetLength
push ebx
push 0x100
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFileException::GetErrorMessage
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x48], 0x40ea3c
lea ecx, [esp + 0x58]
mov byte [esp + 0x64], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0x40ea28
mov byte [esp + 0x64], bl
call fcn.0040cb50
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040cb50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [0x4121c8]
mov eax, dword [str._9_8_7_6.5_4_3:2]
mov edx, dword [0x4121cc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [0x4121d0]
lea ecx, [esi + 0x64]
mov dword [esp + 0x40], edx
push ecx
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_operatornew
lea edx, [esp + 0x3c]
mov edi, eax
push edx
lea eax, [esp + 0x1c]
push str.____.__:
push eax
push edi
push esi
mov dword [esp + 0x2c], ebx
push ebp
mov dword [edi], ebx
call fcn.0040bea0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
push edi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
push ebp
call sub.MFC42.DLL_operatordelete
push edi
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x48], 0x40ea3c
lea ecx, [esp + 0x58]
mov byte [esp + 0x64], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0x40ea28
mov byte [esp + 0x64], bl
call fcn.0040cb50
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040cb50
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret