Function at 0x4110dc
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.00405278
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.00410728
lea edx, [ebp - 9]
mov ecx, 8
mov eax, esi
call fcn.00405294
lea eax, [ebp - 9]
mov edx, 0x416adc
mov ecx, 8
call fcn.00402990
je 0x411150
mov byte [ebx + 0x30], 9
jmp 0x41135c
mov byte [ebp - 0xa], 0
cmp word [ebx + 0x1a], 0
je 0x411190
push 0
mov eax, esi
call fcn.00405278
sub eax, dword [ebp - 0x20]
imul eax, eax, 0x64
push eax
mov eax, esi
call fcn.0040528c
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 0x41134c
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
call fcn.00405294
cmp eax, 4
jae 0x4111d2
mov byte [ebx + 0x30], 0xa
mov eax, ebx
call fcn.0041146c
test al, al
je 0x4111c4
mov eax, ebx
mov edx, dword [0x411388]
call fcn.004114b0
test eax, eax
jne 0x4111c8
xor eax, eax
jmp 0x4111ca
mov al, 1
mov byte [ebp - 1], al
jmp 0x41135c
mov eax, dword [ebp - 0x10]
call fcn.0040e398
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
call fcn.00405294
mov eax, dword [ebx + 0x23c]
cmp dword [eax + 0x1c], 0
jne 0x411220
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00403570
mov eax, dword [ebp - 0x24]
mov edx, 0x411394
call fcn.004036d4
je 0x411220
mov byte [ebx + 0x30], 0xb
jmp 0x41135c
cmp byte [ebp - 0xa], 0
je 0x411245
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00403570
mov eax, dword [ebp - 0x28]
mov edx, 0x4113a4
call fcn.004036d4
je 0x411264
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00403570
mov eax, dword [ebp - 0x2c]
mov edx, 0x4113b4
call fcn.004036d4
jne 0x41127f
mov eax, esi
call fcn.00405278
mov edx, eax
add edx, dword [ebp - 0x10]
add edx, 4
mov eax, esi
call fcn.00405284
jmp 0x411329
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00403570
mov eax, dword [ebp - 0x30]
mov edx, 0x4113a4
call fcn.004036d4
jne 0x4112a2
mov byte [ebp - 0xa], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.0041154c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4112be
mov byte [ebx + 0x30], 0xc
jmp 0x41135c
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00403570
mov eax, dword [ebp - 0x34]
call fcn.0040e090
mov byte [ebp - 0x19], al
xor eax, eax
mov al, byte [ebp - 0x19]
cmp dword [eax*4 + 0x416ae4], 0
je 0x411314
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 0x41134c
cmp byte [ebp - 0xa], 0
je 0x411329
cmp byte [ebx + 0x20], 0
jne 0x41134c
jmp 0x411329
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, esi
call fcn.0040e4bc
test al, al
je 0x41134c
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.00403570
mov eax, dword [ebp - 0x38]
mov edx, 0x4113c4
call fcn.004036d4
jne 0x411154
cmp byte [ebp - 0xa], 0
jne 0x411358
mov byte [ebx + 0x30], 0xd
jmp 0x41135c
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.00403434
ret