Function at 0x411cdc
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 0x411377
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x30], 0
mov byte [ebp - 1], 0
mov eax, esi
call fcn.00405e78
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.00411328
lea edx, [ebp - 9]
mov ecx, 8
mov eax, esi
call fcn.00405e94
lea eax, [ebp - 9]
mov edx, 0x416adc
mov ecx, 8
call fcn.00403590
je 0x411d50
mov byte [ebx + 0x30], 9
jmp 0x411f5c
mov byte [ebp - 0xa], 0
cmp word [ebx + 0x1a], 0
je 0x411d90
push 0
mov eax, esi
call fcn.00405e78
sub eax, dword [ebp - 0x20]
imul eax, eax, 0x64
push eax
mov eax, esi
call fcn.00405e8c
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 0x411f4c
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
call fcn.00405e94
cmp eax, 4
jae 0x411dd2
mov byte [ebx + 0x30], 0xa
mov eax, ebx
call fcn.0041206c
test al, al
je 0x411dc4
mov eax, ebx
mov edx, dword [0x411388]
call fcn.004120b0
test eax, eax
jne 0x411dc8
xor eax, eax
jmp 0x411dca
mov al, 1
mov byte [ebp - 1], al
jmp 0x411f5c
mov eax, dword [ebp - 0x10]
call fcn.0040ef98
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
call fcn.00405e94
mov eax, dword [ebx + 0x23c]
cmp dword [eax + 0x1c], 0
jne 0x411e20
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00404170
mov eax, dword [ebp - 0x24]
mov edx, 0x411394
call fcn.004042d4
je 0x411e20
mov byte [ebx + 0x30], 0xb
jmp 0x411f5c
cmp byte [ebp - 0xa], 0
je 0x411e45
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00404170
mov eax, dword [ebp - 0x28]
mov edx, 0x4113a4
call fcn.004042d4
je 0x411e64
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00404170
mov eax, dword [ebp - 0x2c]
mov edx, 0x4113b4
call fcn.004042d4
jne 0x411e7f
mov eax, esi
call fcn.00405e78
mov edx, eax
add edx, dword [ebp - 0x10]
add edx, 4
mov eax, esi
call fcn.00405e84
jmp 0x411f29
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00404170
mov eax, dword [ebp - 0x30]
mov edx, 0x4113a4
call fcn.004042d4
jne 0x411ea2
mov byte [ebp - 0xa], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.0041214c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x411ebe
mov byte [ebx + 0x30], 0xc
jmp 0x411f5c
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00404170
mov eax, dword [ebp - 0x34]
call fcn.0040ec90
mov byte [ebp - 0x19], al
xor eax, eax
mov al, byte [ebp - 0x19]
cmp dword [eax*4 + 0x416ae4], 0
je 0x411f14
mov eax, dword [ebp - 0x10]
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
mov edi, dword [eax*4 + 0x416ae4]
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 0x18]
call edi
test al, al
je 0x411f4c
cmp byte [ebp - 0xa], 0
je 0x411f29
cmp byte [ebx + 0x20], 0
jne 0x411f4c
jmp 0x411f29
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, esi
call fcn.0040f0bc
test al, al
je 0x411f4c
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00404170
mov eax, dword [ebp - 0x38]
mov edx, 0x4113c4
call fcn.004042d4
jne 0x411d54
cmp byte [ebp - 0xa], 0
jne 0x411f58
mov byte [ebx + 0x30], 0xd
jmp 0x411f5c
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41137e
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00404034
ret