Function at 0x40a370
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4342ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x1c], ecx
test dword [esi + 0x14], 0x4000
mov edi, dword [esi + 0x30]
je 0x40a641
mov esi, dword [edi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
call fcn.00402860
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
test esi, esi
je 0x40a3e3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x40a3e3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 1
mov word [ebp - 0x38], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x18]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.00408ec0
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40a467
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a45d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a71f
push edx
push ecx
call fcn.00411e0b
add esp, 8
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x40a48f
lea eax, [esi + 1]
cmp ecx, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov word [eax + esi], 0
jmp 0x40a55c
mov edx, 0x7fffffff
mov eax, edx
sub eax, esi
cmp eax, 1
jb 0x40a724
lea edi, [esi + 1]
or edi, 0xf
cmp edi, edx
jbe 0x40a4af
mov edi, edx
jmp 0x40a4c7
mov eax, ecx
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x40a4c0
mov edi, 0x7fffffff
jmp 0x40a4c7
add eax, ecx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.00408e70
lea ecx, [esi + 1]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
lea ecx, [esi + eax]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x1c], ecx
lea ecx, [esi + 1]
add ecx, eax
mov dword [ebp + 0x20], ecx
push esi
cmp edi, 0x10
jb 0x40a53a
mov esi, dword [ebp - 0x38]
push esi
push eax
call fcn.00413370
mov eax, dword [ebp + 0x1c]
inc edi
add esp, 0xc
mov byte [eax], 0
mov eax, dword [ebp + 0x20]
mov byte [eax], 0
mov eax, esi
cmp edi, 0x1000
jb 0x40a52e
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a72e
push edi
push esi
call fcn.00411e0b
add esp, 8
jmp 0x40a553
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00413370
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov byte [eax], 0
mov eax, dword [ebp + 0x20]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.00408ec0
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40a5ba
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a729
push edx
push ecx
call fcn.00411e0b
add esp, 8
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x38]
cmp edi, 0x10
push 1
cmovae eax, esi
push eax
push 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401c40
add esp, 0x14
sub eax, 0
je 0x40a5fb
sub eax, 1
mov eax, dword [ebp + 0x24]
je 0x40a5f6
mov byte [eax], 0
mov dword [ebx], 2
jmp 0x40a601
mov byte [eax], 1
jmp 0x40a601
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x40a6e7
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40a632
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a72e
push ecx
push esi
call fcn.00411e0b
add esp, 8
jmp 0x40a6e7
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 4
push eax
push dword [esi + 0x14]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x1c]
call fcn.004075d0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov esi, eax
test edi, edi
je 0x40a693
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40a693
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp byte [ebp - 0x70], 0
jne 0x40a6a1
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
jmp 0x40a6e1
lea eax, [ebp + 0x20]
push eax
push esi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00411037
mov edx, eax
add esp, 0x10
lea eax, [ebp - 0x70]
cmp dword [ebp + 0x1c], eax
je 0x40a6db
cmp dword [ebp + 0x20], 0
jne 0x40a6db
mov eax, dword [ebp + 0x24]
test edx, edx
setne cl
mov byte [eax], cl
test edx, edx
je 0x40a6e7
cmp edx, 1
je 0x40a6e7
jmp 0x40a6e1
mov eax, dword [ebp + 0x24]
mov byte [eax], 1
mov dword [ebx], 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401680
add esp, 8
test al, al
je 0x40a6fe
or dword [ebx], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], edx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20
call fcn.00416200
call fcn.00408700
call fcn.00416200
call fcn.00416200
int3