Function at 0x417a70
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.00404a40
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.00417090
lea edx, [ebp - 9]
mov ecx, 8
mov eax, esi
call fcn.00404a60
lea eax, [ebp - 9]
mov edx, 0x42873c
mov ecx, 8
call 0x400a24
je 0x417ae4
mov byte [ebx + 0x30], 9
jmp 0x417cf0
mov byte [ebp - 0xa], 0
cmp word [ebx + 0x1a], 0
je 0x417b24
push 0
mov eax, esi
call fcn.00404a40
sub eax, dword [ebp - 0x20]
imul eax, eax, 0x64
push eax
mov eax, esi
call fcn.00404a54
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 0x417ce0
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
call fcn.00404a60
cmp eax, 4
jae 0x417b66
mov byte [ebx + 0x30], 0xa
mov eax, ebx
call fcn.00417e98
test al, al
je 0x417b58
mov eax, ebx
mov edx, dword [0x419d1c]
call fcn.00417edc
test eax, eax
jne 0x417b5c
xor eax, eax
jmp 0x417b5e
mov al, 1
mov byte [ebp - 1], al
jmp 0x417cf0
mov eax, dword [ebp - 0x10]
call fcn.00413940
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
call fcn.00404a60
mov eax, dword [ebx + 0x23c]
cmp dword [eax + 0x1c], 0
jne 0x417bb4
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004018dc
mov eax, dword [ebp - 0x24]
mov edx, 0x419d28
call fcn.00401a40
je 0x417bb4
mov byte [ebx + 0x30], 0xb
jmp 0x417cf0
cmp byte [ebp - 0xa], 0
je 0x417bd9
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004018dc
mov eax, dword [ebp - 0x28]
mov edx, 0x419d38
call fcn.00401a40
je 0x417bf8
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004018dc
mov eax, dword [ebp - 0x2c]
mov edx, 0x419d48
call fcn.00401a40
jne 0x417c13
mov eax, esi
call fcn.00404a40
mov edx, eax
add edx, dword [ebp - 0x10]
add edx, 4
mov eax, esi
call fcn.00404a4c
jmp 0x417cbd
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004018dc
mov eax, dword [ebp - 0x30]
mov edx, 0x419d38
call fcn.00401a40
jne 0x417c36
mov byte [ebp - 0xa], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00417f78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x417c52
mov byte [ebx + 0x30], 0xc
jmp 0x417cf0
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004018dc
mov eax, dword [ebp - 0x34]
call fcn.004135d8
mov byte [ebp - 0x19], al
xor eax, eax
mov al, byte [ebp - 0x19]
cmp dword [eax*4 + 0x428744], 0
je 0x417ca8
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 0x417ce0
cmp byte [ebp - 0xa], 0
je 0x417cbd
cmp byte [ebx + 0x20], 0
jne 0x417ce0
jmp 0x417cbd
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, esi
call fcn.00413b08
test al, al
je 0x417ce0
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.004018dc
mov eax, dword [ebp - 0x38]
mov edx, 0x419d58
call fcn.00401a40
jne 0x417ae8
cmp byte [ebp - 0xa], 0
jne 0x417cec
mov byte [ebx + 0x30], 0xd
jmp 0x417cf0
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.004016b8
ret