Function at 0x1005ad50
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b2250
push eax
mov al, byte [esp + 0x28]
mov dword fs:[0], esp
sub esp, 0x2c
test al, 0x1e
push edi
mov edi, ecx
je 0x1005af37
push ebx
push ebp
push esi
call fcn.10057500
mov ebx, eax
mov ecx, ebx
call fcn.100557d0
xor ebp, ebp
mov ecx, 1
cmp eax, ebp
je 0x1005ac5e
mov edx, dword [eax + 0x28]
mov dword [esp + 0x10], ecx
cmp edx, ecx
je 0x1005ac62
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x6c]
cmp eax, ebp
jne 0x1005ac75
mov dl, byte [edi + 0x44]
mov dword [esp + 0x14], ecx
test dl, 4
jne 0x1005ac79
mov dword [esp + 0x14], ebp
xor ecx, ecx
mov edx, dword [edi + 0x3c]
cmp eax, 2
push edx
setne cl
dec ecx
and ecx, 3
mov esi, ecx
lea ecx, [esp + 0x30]
push esi
push ebp
call fcn.100ab43b
mov ecx, ebx
mov dword [esp + 0x44], ebp
call fcn.10054850
cmp dword [esp + 0x58], eax
jl 0x1005acbb
mov ecx, ebx
call fcn.10054860
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
mov eax, 0xc0c0c0
jge 0x1005acc0
mov eax, 0x808080
push eax
push esi
push ebp
lea ecx, [esp + 0x30]
call fcn.100ab43b
mov esi, dword [esp + 0x4c]
push 1
mov byte [esp + 0x48], 1
mov eax, dword [esi + 8]
push eax
push ebx
call fcn.1081ef5a
push eax
call fcn.100ab3b9
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov ecx, dword [ebp]
push ecx
push edx
mov ecx, edi
call fcn.100571d0
mov ebx, eax
mov eax, dword [ebp + 4]
mov ebp, dword [esp + 0x54]
push eax
push ebp
mov ecx, edi
call fcn.10057300
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1c]
push 1
push ecx
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
push ebp
call fcn.1082425f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc ecx
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x1c]
push 1
push eax
push ecx
push esi
call fcn.107b1b9a
test byte [esp + 0x64], 2
je 0x1005adbf
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
test eax, eax
jne 0x1005adc9
test edx, 0x40000
jne 0x1005adc9
mov ecx, dword [esp + 0x10]
mov eax, edx
and eax, 0x10
jne 0x1005ad83
cmp ecx, 1
je 0x1005ad90
cmp dword [esp + 0x14], 1
jne 0x1005adcd
cmp ecx, 1
je 0x1005ad90
test eax, eax
lea eax, [esp + 0x24]
je 0x1005ad94
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.100aaa22
mov edx, dword [esp + 0x50]
push ebp
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, esi
call fcn.100aaf13
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov ecx, esi
call fcn.100aaf5f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
jmp 0x1005adcd
mov ecx, dword [esp + 0x10]
test byte [esp + 0x64], 4
je 0x1005ae3e
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x1005ade3
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x1005ae3e
test edx, 0x80000
jne 0x1005ae3e
mov eax, edx
and eax, 0x20
jne 0x1005adfe
cmp ecx, 1
je 0x1005ae0b
cmp dword [esp + 0x14], 1
jne 0x1005ae3e
cmp ecx, 1
je 0x1005ae0b
test eax, eax
lea eax, [esp + 0x24]
je 0x1005ae0f
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.100aaa22
mov eax, dword [esp + 0x50]
push ebp
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.100aaf13
mov edx, dword [esp + 0x1c]
push ebp
push edx
mov ecx, esi
call fcn.100aaf5f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
test byte [esp + 0x64], 8
je 0x1005ae9c
test edx, 0x100000
jne 0x1005ae9c
mov eax, edx
and eax, 0x40
jne 0x1005ae60
cmp ecx, 1
je 0x1005ae6d
cmp dword [esp + 0x14], 1
jne 0x1005ae9c
cmp ecx, 1
je 0x1005ae6d
test eax, eax
lea eax, [esp + 0x24]
je 0x1005ae71
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.100aaa22
push ebp
lea eax, [esp + 0x38]
push ebx
push eax
mov ecx, esi
call fcn.100aaf13
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, esi
call fcn.100aaf5f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
test byte [esp + 0x64], 0x10
je 0x1005aefc
test edx, 0x200000
jne 0x1005aefc
mov eax, edx
and eax, 0x80
jne 0x1005aec0
cmp ecx, 1
je 0x1005aecd
cmp dword [esp + 0x14], 1
jne 0x1005aefc
cmp ecx, 1
je 0x1005aecd
test eax, eax
lea eax, [esp + 0x24]
je 0x1005aed1
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.100aaa22
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push edi
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, esi
call fcn.100aaf13
mov ecx, dword [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call fcn.100aaf5f
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
call fcn.100aaa22
mov esi, 0x10740f18
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call fcn.100ab425
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 3
call fcn.100ab425
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
add esp, 0x38
ret 0x20