Function at 0x408510
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x418738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x420150]
xor eax, esp
push ebx
push edi
mov dword [esp + 0x40], eax
mov ebx, ecx
push 0x14
lea eax, [esp + 0x30]
push eax
lea ecx, [ebx + 0x50]
push ecx
mov dword [esp + 0x20], ebx
call fcn.0040ff10
add esp, 0xc
mov edi, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00407170
mov ecx, eax
call fcn.0040b820
test al, al
je 0x4088d2
cmp dword [ebx + 0x60], 0xffffffff
jne 0x408581
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x60], edx
mov eax, dword [ebx + 0x64]
cmp eax, 0xffffffff
push ebp
lea ebp, [ebx + 0x64]
jne 0x408594
mov eax, dword [esp + 0x24]
mov dword [ebp], eax
push esi
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebx + 0x30]
push esi
call fcn.00410160
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00407810
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x54], ecx
jne 0x4085c8
xor eax, eax
jmp 0x4085e0
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov eax, dword [esp + 0x20]
jb case.default.0x408601
cmp dword [ebx + 0x60], eax
jne case.default.0x408601
lea ecx, [eax - 1]
cmp ecx, 8
ja case.default.0x408601
jmp dword [ecx*4 + 0x4088f0]
push 0xe
push 3
push 1
push 1
jmp 0x408732
push 0xe
mov eax, edi
cdq
push 3
sub eax, edx
push 2
sar eax, 1
push eax
push ebp
lea eax, [esp + 0x24]
push eax
jmp 0x408738
mov eax, 0x55555556
imul edi
push 0xe
mov ecx, edx
push 3
shr ecx, 0x1f
push 3
add ecx, edx
push ecx
jmp 0x408732
push 0xe
push 4
push 4
push 1
push ebp
lea eax, [esp + 0x24]
push eax
jmp 0x408738
mov eax, edi
cdq
push 0xe
and edx, 3
push 3
add eax, edx
push 3
sar eax, 2
jmp 0x4086c8
mov eax, 0x66666667
imul edi
push 0xe
sar edx, 1
push 3
mov eax, edx
push 3
shr eax, 0x1f
add eax, edx
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00410830
add esp, 0x1c
test al, al
je 0x408741
push 3
push 2
push edi
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00410980
add esp, 0x14
jmp 0x408741
mov eax, 0x2aaaaaab
imul edi
push 0xe
mov eax, edx
push 4
shr eax, 0x1f
push 4
add eax, edx
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00410830
add esp, 0x1c
test al, al
je 0x408741
push 3
push 1
push edi
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00410980
add esp, 0x14
jmp 0x408741
push 0xe
mov eax, edi
cdq
push 4
and edx, 7
add eax, edx
push 4
sar eax, 3
push eax
push ebp
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00410830
add esp, 0x1c
test al, al
je 0x408741
push 3
push 2
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00410980
add esp, 0x14
jmp 0x408741
push 0xe
push 4
push 1
push edi
lea edx, [esp + 0x20]
push ebp
push edx
push esi
call fcn.00410830
add esp, 0x1c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40880b
mov eax, dword [esp + 0x20]
cmp eax, 4
mov ebx, 0xa
je 0x40879a
cmp eax, ebx
je 0x40879a
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x60], 4
je 0x408770
mov dword [ebp], 0xffffffff
push 0xe
push 4
push 4
push 1
push ebp
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00410830
add esp, 0x1c
test al, al
je 0x408792
mov dword [edi + 0x60], 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x408807
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x60], ebx
je 0x40888a
push 0
push 0
push 1
push 0x10
push esi
call fcn.00410280
push 0
push 0
push 1
mov edi, eax
push 0x11
push esi
mov dword [esp + 0x4c], edi
call fcn.00410280
add esp, 0x28
test edi, edi
mov dword [esp + 0x2c], eax
jl 0x4087fb
test eax, eax
jl 0x4087fb
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
mov dword [edx + 0x60], ebx
call fcn.004083f0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004083f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40888a
mov ebx, dword [esp + 0x1c]
mov al, byte [esp + 0x5c]
test al, al
mov eax, dword [esp + 0x14]
je 0x408827
mov dword [ebx + 0x60], 0xffffffff
mov dword [ebp], 0xffffffff
jmp 0x408849
mov edi, dword [eax]
cmp edi, eax
je 0x408849
lea ecx, [ecx]
mov edx, dword [edi + 8]
push 1
push edx
push esi
call fcn.0040ffa0
mov edi, dword [edi]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp edi, eax
jne 0x408830
mov byte [ebx + 0x68], 1
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x18], 0
je 0x40887d
mov esi, dword [ecx]
push ecx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x18]
add esp, 4
cmp esi, eax
mov ecx, esi
jne 0x408868
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov al, 1
jmp 0x4088d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x18], 0
je 0x4088c5
lea esp, [esp]
mov esi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x18]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x4088b0
push ecx
call sub.MFC71.DLL_operator_delete_1
add esp, 4
xor al, al
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop ebx
xor ecx, esp
call fcn.00417b01
add esp, 0x48
ret 4