Function at 0x402800
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x403988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xec]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x190
push eax
mov byte [esp + 0x48], 2
mov dword [esp + 0x24], 1
call edi
cmp eax, ebx
je 0x4028d9
mov ecx, dword [ebp + 0xec]
push ebx
push ebx
push 0x188
push ecx
call edi
mov edx, dword [ebp + 0xec]
push ebx
push eax
push 0x199
push edx
call edi
mov esi, eax
mov eax, dword [esi + 8]
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::operator_1
lea edx, [esi + 0x10]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esi + 0x14]
cmp esi, ebx
mov dword [esp + 0x2c], esi
jne 0x4028d9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
call dword [0x4063ec]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xac]
push 0xffff0000
push ebx
push 0x1101
push eax
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402a3c
cmp dword [esp + 0x20], 4
je 0x40291e
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push edx
push eax
mov ecx, ebp
call fcn.004022f0
jmp 0x402a82
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jle 0x402a82
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + 0xe8]
push 0x4061e0
lea ecx, [esp + 0x14]
call fcn.004031d0
lea edx, [esi + 0x64]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
push 0x4061d4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x4061c8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea eax, [esi - 0xc8]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
cmp dword [esi - 0xe4], ebx
je 0x4029cf
push 0x4060b0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push ebx
lea edi, [ebp + 0x8c]
push ebx
push ecx
push 1
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
xor ecx, ecx
mov cx, word [esi - 0xe8]
shl ecx, 0x10
or ecx, 2
jmp 0x402a0f
push 0x4060bc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push ebx
lea edi, [ebp + 0x8c]
push ebx
push edx
push 1
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
xor ecx, ecx
mov cx, word [esi - 0xe8]
shl ecx, 0x10
or ecx, 1
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push eax
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::SetItem
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
add esi, 0x1b0
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x402934
jmp 0x402a82
lea eax, [esp + 0x24]
push 0x4061bc
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
lea ecx, [ebp + 0x8c]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CTreeCtrl::InsertItem
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004031c4
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 4
call fcn.004031c4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call fcn.004031c4
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004031c4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret