Function at 0x421a68
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x421d30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406240
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.00421758
lea edx, [ebp - 0x11]
mov ecx, 8
mov eax, dword [ebp - 8]
call fcn.004062a4
lea eax, [ebp - 0x11]
mov edx, 0x4285d4
mov ecx, 8
call fcn.00402ef0
je 0x421ae5
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 9
jmp 0x421d15
mov byte [ebp - 0x12], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x421b2e
push 0
mov eax, dword [ebp - 8]
call fcn.00406240
sub eax, dword [ebp - 0x28]
imul eax, eax, 0x64
push eax
mov eax, dword [ebp - 8]
call fcn.00406280
sub eax, dword [ebp - 0x28]
pop edx
xchg edx, eax
mov ecx, edx
xor edx, edx
div ecx
push eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
test al, al
je 0x421d02
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 8]
call fcn.004062a4
cmp eax, 4
jae 0x421b76
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0xa
mov eax, dword [ebp - 4]
call fcn.00421dc0
test al, al
je 0x421b68
mov eax, dword [ebp - 4]
mov edx, dword [0x421d40]
call fcn.00421e18
test eax, eax
jne 0x421b6c
xor eax, eax
jmp 0x421b6e
mov al, 1
mov byte [ebp - 9], al
jmp 0x421d15
mov eax, dword [ebp - 0x18]
call fcn.0041ec10
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 8]
call fcn.004062a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x23c]
cmp dword [eax + 0x1c], 0
jne 0x421bcb
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.004041f0
mov eax, dword [ebp - 0x2c]
mov edx, 0x421d4c
call fcn.0040438c
je 0x421bcb
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0xb
jmp 0x421d15
cmp byte [ebp - 0x12], 0
je 0x421bf0
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.004041f0
mov eax, dword [ebp - 0x30]
mov edx, 0x421d5c
call fcn.0040438c
je 0x421c0f
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.004041f0
mov eax, dword [ebp - 0x34]
mov edx, 0x421d6c
call fcn.0040438c
jne 0x421c2c
mov eax, dword [ebp - 8]
call fcn.00406240
mov edx, eax
add edx, dword [ebp - 0x18]
add edx, 4
mov eax, dword [ebp - 8]
call fcn.00406260
jmp 0x421cdf
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.004041f0
mov eax, dword [ebp - 0x38]
mov edx, 0x421d5c
call fcn.0040438c
jne 0x421c4f
mov byte [ebp - 0x12], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00421ec0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x421c6f
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0xc
jmp 0x421d15
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.004041f0
mov eax, dword [ebp - 0x3c]
call fcn.0041eb00
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x21]
cmp dword [eax*4 + 0x4285dc], 0
je 0x421cc9
mov eax, dword [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov ebx, dword [eax*4 + 0x4285dc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
call ebx
test al, al
je 0x421d02
cmp byte [ebp - 0x12], 0
je 0x421cdf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x421d02
jmp 0x421cdf
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.0041edb4
test al, al
je 0x421d02
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.004041f0
mov eax, dword [ebp - 0x40]
mov edx, 0x421d7c
call fcn.0040438c
jne 0x421ae9
cmp byte [ebp - 0x12], 0
jne 0x421d11
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0xd
jmp 0x421d15
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421d37
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00404008
ret