Function at 0x419a70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419d0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x30], 0
mov byte [ebp - 1], 0
mov eax, esi
call fcn.00406a40
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.00419090
lea edx, [ebp - 9]
mov ecx, 8
mov eax, esi
call fcn.00406a60
lea eax, [ebp - 9]
mov edx, 0x42873c
mov ecx, 8
call fcn.00402a24
je 0x419ae4
mov byte [ebx + 0x30], 9
jmp 0x419cf0
mov byte [ebp - 0xa], 0
cmp word [ebx + 0x1a], 0
je 0x419b24
push 0
mov eax, esi
call fcn.00406a40
sub eax, dword [ebp - 0x20]
imul eax, eax, 0x64
push eax
mov eax, esi
call fcn.00406a54
sub eax, dword [ebp - 0x20]
pop edx
xchg edx, eax
mov ecx, edx
xor edx, edx
div ecx
push eax
mov edx, ebx
xor ecx, ecx
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
test al, al
je 0x419ce0
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
call fcn.00406a60
cmp eax, 4
jae 0x419b66
mov byte [ebx + 0x30], 0xa
mov eax, ebx
call fcn.00419e98
test al, al
je 0x419b58
mov eax, ebx
mov edx, dword [0x419d1c]
call fcn.00419edc
test eax, eax
jne 0x419b5c
xor eax, eax
jmp 0x419b5e
mov al, 1
mov byte [ebp - 1], al
jmp 0x419cf0
mov eax, dword [ebp - 0x10]
call fcn.00415940
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
call fcn.00406a60
mov eax, dword [ebx + 0x23c]
cmp dword [eax + 0x1c], 0
jne 0x419bb4
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004038dc
mov eax, dword [ebp - 0x24]
mov edx, 0x419d28
call fcn.00403a40
je 0x419bb4
mov byte [ebx + 0x30], 0xb
jmp 0x419cf0
cmp byte [ebp - 0xa], 0
je 0x419bd9
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004038dc
mov eax, dword [ebp - 0x28]
mov edx, 0x419d38
call fcn.00403a40
je 0x419bf8
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004038dc
mov eax, dword [ebp - 0x2c]
mov edx, 0x419d48
call fcn.00403a40
jne 0x419c13
mov eax, esi
call fcn.00406a40
mov edx, eax
add edx, dword [ebp - 0x10]
add edx, 4
mov eax, esi
call fcn.00406a4c
jmp 0x419cbd
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004038dc
mov eax, dword [ebp - 0x30]
mov edx, 0x419d38
call fcn.00403a40
jne 0x419c36
mov byte [ebp - 0xa], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00419f78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x419c52
mov byte [ebx + 0x30], 0xc
jmp 0x419cf0
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004038dc
mov eax, dword [ebp - 0x34]
call fcn.004155d8
mov byte [ebp - 0x19], al
xor eax, eax
mov al, byte [ebp - 0x19]
cmp dword [eax*4 + 0x428744], 0
je 0x419ca8
mov eax, dword [ebp - 0x10]
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
mov edi, dword [eax*4 + 0x428744]
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 0x18]
call edi
test al, al
je 0x419ce0
cmp byte [ebp - 0xa], 0
je 0x419cbd
cmp byte [ebx + 0x20], 0
jne 0x419ce0
jmp 0x419cbd
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, esi
call fcn.00415b08
test al, al
je 0x419ce0
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004038dc
mov eax, dword [ebp - 0x38]
mov edx, 0x419d58
call fcn.00403a40
jne 0x419ae8
cmp byte [ebp - 0xa], 0
jne 0x419cec
mov byte [ebx + 0x30], 0xd
jmp 0x419cf0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419d12
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.004036b8
ret