Function at 0x40bc70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41063e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [esp + 0x30]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x28], ebx
je 0x40bcc7
mov eax, dword [esi]
cmp eax, ebx
je 0x40bcc7
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
cmp esi, ebx
jne 0x40bcc3
push 0x8007000e
call fcn.0040ecf2
mov ebp, esi
jmp 0x40bcc9
xor ebp, ebp
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x40bcd8
call fcn.00404550
mov dword [edi + 8], ebx
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x28], 1
je 0x40bd18
push ebp
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi], eax
jne 0x40bd1a
cmp ebp, ebx
je 0x40bd1a
push 0x8007000e
call fcn.0040ecf2
jmp 0x40bd1a
xor esi, esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
push ecx
mov dword [edi + 8], esi
call fcn.004013e0
add esp, 4
push str.language.ini
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_operator
mov ecx, dword [edi + 4]
mov ebp, dword [eax]
cmp ecx, ebx
mov byte [esp + 0x28], 3
je 0x40bd59
call fcn.00404550
mov dword [edi + 4], ebx
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov byte [esp + 0x28], 4
je 0x40bd98
push ebp
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.0040ed3e
cmp eax, ebx
mov dword [esi], eax
jne 0x40bd9a
cmp ebp, ebx
je 0x40bd9a
push 0x8007000e
call fcn.0040ecf2
jmp 0x40bd9a
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [edi + 4], esi
mov byte [esp + 0x28], 2
call fcn.0040e8b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0040e8b6
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4157f0
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x30], 5
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CreateDefaultLanguageFile
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x34], 6
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ResourceManager
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
mov byte [esp + 0x34], bl
push eax
call fcn.00401500
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [edi + 0xc], eax
call fcn.0040e8b6
cmp dword [edi + 0xc], ebx
je 0x40be7f
mov ebp, 0x64
lea ecx, [esp + 0x10]
push ebp
push ecx
mov ecx, edi
call fcn.0040bef0
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40be76
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40be72
cmp esi, ebx
je 0x40be72
mov eax, dword [esi]
cmp eax, ebx
je 0x40be59
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40be69
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], ebx
inc ebp
cmp ebp, 0xf019
jbe 0x40be25
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x40bebb
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40bebb
mov eax, dword [esi]
cmp eax, ebx
je 0x40bea2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40beb2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4