Function at 0x5802c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ca7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x1c], ecx
test dword [esi + 0x14], 0x4000
mov edi, dword [esi + 0x30]
je 0x580593
mov esi, dword [edi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
call fcn.0047fcb0
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
test esi, esi
je 0x580335
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x580335
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 1
mov word [ebp - 0x38], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x18]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.0049df00
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x5803b9
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5803af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x580671
push edx
push ecx
call fcn.00516d60
add esp, 8
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x5803e1
lea eax, [esi + 1]
cmp ecx, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov word [eax + esi], 0
jmp 0x5804ae
mov edx, bind
mov eax, edx
sub eax, esi
cmp eax, 1
jb 0x580676
lea edi, [esi + 1]
or edi, 0xf
cmp edi, edx
jbe 0x580401
mov edi, edx
jmp 0x580419
mov eax, ecx
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x580412
mov edi, bind
jmp 0x580419
add eax, ecx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.00486a30
lea ecx, [esi + 1]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
lea ecx, [esi + eax]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x1c], ecx
lea ecx, [esi + 1]
add ecx, eax
mov dword [ebp + 0x20], ecx
push esi
cmp edi, 0x10
jb 0x58048c
mov esi, dword [ebp - 0x38]
push esi
push eax
call fcn.00704c30
mov eax, dword [ebp + 0x1c]
inc edi
add esp, 0xc
mov byte [eax], 0
mov eax, dword [ebp + 0x20]
mov byte [eax], 0
mov eax, esi
cmp edi, 0x1000
jb 0x580480
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x580680
push edi
push esi
call fcn.00516d60
add esp, 8
jmp 0x5804a5
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00704c30
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov byte [eax], 0
mov eax, dword [ebp + 0x20]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.0049df00
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x58050c
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x580502
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58067b
push edx
push ecx
call fcn.00516d60
add esp, 8
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x38]
cmp edi, 0x10
push 1
cmovae eax, esi
push eax
push 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00574b50
add esp, 0x14
sub eax, 0
je 0x58054d
sub eax, 1
mov eax, dword [ebp + 0x24]
je 0x580548
mov byte [eax], 0
mov dword [ebx], 2
jmp 0x580553
mov byte [eax], 1
jmp 0x580553
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x580639
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x580584
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x580680
push ecx
push esi
call fcn.00516d60
add esp, 8
jmp 0x580639
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 4
push eax
push dword [esi + 0x14]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x1c]
call fcn.0057bc20
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov esi, eax
test edi, edi
je 0x5805e5
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x5805e5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp byte [ebp - 0x70], 0
jne 0x5805f3
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
jmp 0x580633
lea eax, [ebp + 0x20]
push eax
push esi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.006f00a8
mov edx, eax
add esp, 0x10
lea eax, [ebp - 0x70]
cmp dword [ebp + 0x1c], eax
je 0x58062d
cmp dword [ebp + 0x20], 0
jne 0x58062d
mov eax, dword [ebp + 0x24]
test edx, edx
setne cl
mov byte [eax], cl
test edx, edx
je 0x580639
cmp edx, 1
je 0x580639
jmp 0x580633
mov eax, dword [ebp + 0x24]
mov byte [eax], 1
mov dword [ebx], 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00574220
add esp, 8
test al, al
je 0x580650
or dword [ebx], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], edx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20
call fcn.0070f5b4
call fcn.00486890
call fcn.0070f5b4
call fcn.0070f5b4
int3