Function at 0x40b850
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47614c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.0041c080
xor ebx, ebx
push 5
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], ebx
call fcn.0041cd00
push 2
lea ecx, [esp + 0x30]
call fcn.0041cd40
push 3
lea ecx, [esp + 0x30]
call fcn.0041cd10
mov ecx, dword [ebp + 0x80]
cmp ecx, ebx
jne 0x40b8ae
mov dword [esp + 0x14], ebx
jmp 0x40b8bd
mov eax, dword [ebp + 0x84]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
jbe 0x40bab5
jmp 0x40b8d0
push 0
push 1
push 0
push 0
call fcn.00407550
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ecx*4]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call dword [0x47f138]
mov eax, dword [0x4db7c0]
push esi
lea edx, [esi + 0x40]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s_s
push ecx
mov byte [esp + 0x68], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
push 0x2e
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x30]
call fcn.0041cd60
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.0041cd70
lea ecx, [esp + 0x18]
call dword [0x47f138]
push 0x45
push str.IDS_MESSAGE
mov byte [esp + 0x5c], 4
call fcn.0040f390
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x100
call sub.MFC71.DLL_operator_new
add esp, 4
push esi
lea ecx, [esp + 0x1c]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str._s__s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0x58]
add esp, 0x10
push edi
push 0
push 0x46d
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
add ebx, 0x1e
mov eax, ebx
xor edx, edx
div dword [esp + 0x14]
xor ecx, ecx
push ecx
push 0x64
push ecx
add eax, 0xa
push eax
call fcn.004075d0
add esp, 0x10
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40ba5b
mov edi, dword [ebp + 0x90]
test edi, edi
lea ecx, [ebp + 0x8c]
jne 0x40ba26
xor edx, edx
jmp 0x40ba2e
mov edx, dword [ecx + 8]
sub edx, edi
sar edx, 2
test edi, edi
je 0x40ba4b
mov eax, dword [ecx + 0xc]
sub eax, edi
sar eax, 2
cmp edx, eax
jae 0x40ba4b
mov eax, dword [ecx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x40ba5b
mov eax, dword [ecx + 8]
lea edx, [esp + 0x28]
push edx
push 1
push eax
call fcn.00407d50
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 1
push 0
push 1
call fcn.00407550
add esp, 0x10
mov ecx, ebp
call fcn.0040cad0
test eax, eax
jne 0x40baeb
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40b8d0
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret