Function at 0x407400
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e313c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
push edi
push 0x64
mov eax, dword [esi + 0x180]
push 1
push 0x405
push eax
call ebx
mov ecx, dword [esi + 0x140]
xor edi, edi
push edi
push 1
push 0x405
push ecx
call ebx
mov edx, dword [esi + 0x100]
push edi
push edi
push 0x14e
push edx
call ebx
push edi
mov ecx, esi
mov dword [esi + 0x1e0], edi
mov dword [esi + 0x1e4], edi
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [esi + 0x1c0]
push 0x5290b0
push edi
push 0x14c
push eax
call ebx
mov ecx, dword [esi + 0x1c0]
push edi
push eax
push 0x14e
push ecx
call ebx
mov dword [esp + 0x18], edi
push 0x53d440
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edi
call fcn.00404b30
mov eax, dword [0x53716c]
mov byte [esp + 0x30], 1
cmp eax, edi
jne 0x40750c
cmp dword [0x537168], edi
jne 0x40750c
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x30], 2
je 0x4074e0
push edi
mov ecx, eax
call fcn.00404a60
jmp 0x4074e2
xor eax, eax
mov edx, dword [0x528b70]
mov ecx, 0x53bea0
push edx
push 0x404a30
mov byte [esp + 0x38], 1
mov dword [0x537168], eax
call fcn.00402190
mov dword [0x53716c], 1
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [0x537168]
mov byte [esp + 0x34], 0
mov eax, dword [ecx]
call dword [eax + 8]
cmp ebp, edi
je 0x407796
push 0x53d440
lea ecx, [esp + 0x28]
call fcn.00404b30
mov eax, dword [0x53716c]
mov byte [esp + 0x34], 3
cmp eax, edi
jne 0x40759d
cmp dword [0x537168], edi
jne 0x40759d
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x34], 4
je 0x407571
push edi
mov ecx, eax
call fcn.00404a60
jmp 0x407573
xor eax, eax
mov ecx, dword [0x528b70]
mov byte [esp + 0x34], 3
push ecx
push 0x404a30
mov ecx, 0x53bea0
mov dword [0x537168], eax
call fcn.00402190
mov dword [0x53716c], 1
mov ecx, dword [esp + 0x24]
mov ebp, dword [0x537168]
mov byte [esp + 0x34], 0
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [eax + 0xa0]
test eax, eax
jl 0x407796
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x407796
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x38]
mov eax, dword [esp + 0x1c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [esp + 0x10], edi
push 0x53d440
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 5
call fcn.00404b30
mov eax, dword [0x53716c]
mov byte [esp + 0x34], 6
cmp eax, edi
jne 0x407663
cmp dword [0x537168], edi
jne 0x407663
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x34], 7
je 0x407637
push edi
mov ecx, eax
call fcn.00404a60
jmp 0x407639
xor eax, eax
mov edx, dword [0x528b70]
mov ecx, 0x53bea0
push edx
push 0x404a30
mov byte [esp + 0x3c], 6
mov dword [0x537168], eax
call fcn.00402190
mov dword [0x53716c], 1
mov ecx, dword [esp + 0x24]
mov ebp, dword [0x537168]
mov byte [esp + 0x34], 5
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp]
lea edx, [esp + 0x10]
push edx
push ebp
call dword [ecx + 0xb8]
test eax, eax
mov eax, dword [esp + 0x10]
jl 0x407787
cmp eax, edi
je 0x407787
mov eax, dword [esi + 0x180]
push edi
push edi
push 0x400
push eax
call ebx
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
push 0x5290b0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
mov byte [esp + 0x3c], 8
call fcn.004048e0
mov ecx, eax
add esp, 8
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x10]
push ecx
push eax
mov byte [esp + 0x3c], 9
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebp, 0x528c24
mov dword [esp + 0x24], ebp
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40775b
cmp dword [esi + 0x1f0], edi
jle 0x40775b
mov ecx, dword [esi + 0x1ec]
mov edx, dword [ecx + edi*4]
push edx
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [ebp]
mov ecx, eax
mov eax, 0xae147ae1
imul edx
sar edx, 5
mov ecx, dword [ecx + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 1
push 0x405
push ecx
call ebx
mov eax, dword [esi + 0x1f0]
inc edi
add ebp, 4
cmp edi, eax
jl 0x407714
mov ebp, dword [esp + 0x24]
xor edi, edi
add ebp, 0x2c
cmp ebp, 0x528fec
mov dword [esp + 0x24], ebp
jl 0x4076f6
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
cmp eax, edi
mov byte [esp + 0x34], 0
je 0x407796
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov edx, dword [0x53d440]
mov ecx, 0x53d440
mov byte [esp + 0x34], 0xb
mov dword [esp + 0x28], 0x53d440
call dword [edx + 4]
mov eax, dword [0x53716c]
mov bl, 0xc
cmp eax, edi
mov byte [esp + 0x34], bl
pop ebp
jne 0x40781f
cmp dword [0x537168], edi
jne 0x40781f
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x30], 0xd
je 0x4077f5
push edi
mov ecx, eax
call fcn.00404a60
jmp 0x4077f7
xor eax, eax
mov dword [0x537168], eax
mov eax, dword [0x528b70]
push eax
push 0x404a30
mov ecx, 0x53bea0
mov byte [esp + 0x38], bl
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov esi, dword [0x537168]
mov ecx, 0x53d440
mov byte [esp + 0x30], 0xb
call dword [edx + 8]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0043f6b0
mov ecx, dword [esp + 0x10]
test eax, eax
jl 0x407873
cmp ecx, edi
je 0x407873
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0x529188
push ecx
call dword [edx]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4078c6
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edi
mov byte [esp + 0x30], 0xa
je 0x40788a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, edi
mov byte [esp + 0x30], 0
je 0x407899
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
cmp eax, edi
pop edi
pop esi
pop ebx
je 0x4078b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x10]
jmp 0x407877