Function at 0x407450
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e082c
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 0x5260a8
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 0x53a380
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edi
call fcn.00404b80
mov eax, dword [0x53404c]
mov byte [esp + 0x30], 1
cmp eax, edi
jne 0x40755c
cmp dword [0x534048], edi
jne 0x40755c
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x30], 2
je 0x407530
push edi
mov ecx, eax
call fcn.00404ab0
jmp 0x407532
xor eax, eax
mov edx, dword [0x525b68]
mov ecx, 0x538d90
push edx
push 0x404a80
mov byte [esp + 0x38], 1
mov dword [0x534048], eax
call fcn.00402180
mov dword [0x53404c], 1
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [0x534048]
mov byte [esp + 0x34], 0
mov eax, dword [ecx]
call dword [eax + 8]
cmp ebp, edi
je 0x4077e6
push 0x53a380
lea ecx, [esp + 0x28]
call fcn.00404b80
mov eax, dword [0x53404c]
mov byte [esp + 0x34], 3
cmp eax, edi
jne 0x4075ed
cmp dword [0x534048], edi
jne 0x4075ed
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x34], 4
je 0x4075c1
push edi
mov ecx, eax
call fcn.00404ab0
jmp 0x4075c3
xor eax, eax
mov ecx, dword [0x525b68]
mov byte [esp + 0x34], 3
push ecx
push 0x404a80
mov ecx, 0x538d90
mov dword [0x534048], eax
call fcn.00402180
mov dword [0x53404c], 1
mov ecx, dword [esp + 0x24]
mov ebp, dword [0x534048]
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 0x4077e6
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4077e6
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 0x53a380
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 5
call fcn.00404b80
mov eax, dword [0x53404c]
mov byte [esp + 0x34], 6
cmp eax, edi
jne 0x4076b3
cmp dword [0x534048], edi
jne 0x4076b3
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x34], 7
je 0x407687
push edi
mov ecx, eax
call fcn.00404ab0
jmp 0x407689
xor eax, eax
mov edx, dword [0x525b68]
mov ecx, 0x538d90
push edx
push 0x404a80
mov byte [esp + 0x3c], 6
mov dword [0x534048], eax
call fcn.00402180
mov dword [0x53404c], 1
mov ecx, dword [esp + 0x24]
mov ebp, dword [0x534048]
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 0x4077d7
cmp eax, edi
je 0x4077d7
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 0x5260a8
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.00404920
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, 0x525c1c
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 0x4077ab
cmp dword [esi + 0x1f0], edi
jle 0x4077ab
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 0x407764
mov ebp, dword [esp + 0x24]
xor edi, edi
add ebp, 0x2c
cmp ebp, 0x525fe4
mov dword [esp + 0x24], ebp
jl 0x407746
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 0x4077e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov edx, dword [0x53a380]
mov ecx, 0x53a380
mov byte [esp + 0x34], 0xb
mov dword [esp + 0x28], 0x53a380
call dword [edx + 4]
mov eax, dword [0x53404c]
mov bl, 0xc
cmp eax, edi
mov byte [esp + 0x34], bl
pop ebp
jne 0x40786f
cmp dword [0x534048], edi
jne 0x40786f
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x30], 0xd
je 0x407845
push edi
mov ecx, eax
call fcn.00404ab0
jmp 0x407847
xor eax, eax
mov dword [0x534048], eax
mov eax, dword [0x525b68]
push eax
push 0x404a80
mov ecx, 0x538d90
mov byte [esp + 0x38], bl
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov esi, dword [0x534048]
mov ecx, 0x53a380
mov byte [esp + 0x30], 0xb
call dword [edx + 8]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0043f3a0
mov ecx, dword [esp + 0x10]
test eax, eax
jl 0x4078c3
cmp ecx, edi
je 0x4078c3
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0x526180
push ecx
call dword [edx]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x407916
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 0x4078da
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, edi
mov byte [esp + 0x30], 0
je 0x4078e9
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 0x407902
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 0x4078c7