Function at 0x58fc00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x778857
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.00589d80
mov al, byte [eax + 0x48]
test al, al
jne 0x58fc50
mov eax, 0xffffffff
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
call fcn.0058f3e0
lea ebx, [eax + 0x1c]
mov eax, dword [ebx]
add esp, 4
cmp eax, 0xffffffff
je 0x58fc68
test ebx, ebx
jne 0x58fc84
mov eax, 0xfffffff5
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x850080
call fcn.00502e30
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x58fee9
cmp byte [ecx], 0
je 0x58fee9
push ecx
push eax
call fcn.0043dd30
add esp, 8
test eax, eax
jne 0x58fccc
mov eax, 0xfffffff4
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x1bc]
xor esi, esi
test eax, eax
jle 0x58fcff
lea edi, [ebx + 0x1c4]
mov edi, edi
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0043dd30
add esp, 8
test eax, eax
je 0x58fd55
mov eax, dword [ebx + 0x1bc]
inc esi
add edi, 0x64
cmp esi, eax
jl 0x58fce0
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 8]
add edi, 8
cmp esi, edi
je 0x58fd2a
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esi + 0xc]
push edx
call fcn.0043dd30
add esp, 8
test eax, eax
je 0x58fd71
mov esi, dword [esi]
cmp esi, edi
jne 0x58fd10
xor esi, esi
push esi
mov ecx, edi
call fcn.0043bee0
cmp eax, 5
jne 0x58fd8d
mov eax, 0xfffffff0
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xfffffff3
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xfffffff2
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi], edi
push 0x28
sete byte [esp + 0x13]
call fcn.005752a0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, esi
mov dword [esp + 0x224], esi
je 0x58fdc0
mov ecx, dword [ebp + 8]
push 0x42f00000
push ebx
push ecx
mov ecx, eax
call fcn.00584500
mov esi, eax
test esi, esi
mov dword [esp + 0x224], 0xffffffff
je 0x58fe2e
mov eax, dword [edi + 4]
mov dword [eax], esi
mov dword [edi + 4], esi
mov dword [esi + 4], eax
cmp byte [esp + 0xf], 1
mov dword [esi], edi
jne 0x58fe4a
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x10]
cmp ecx, eax
jne 0x58fe4a
push edi
push 0x58cec0
call fcn.00589d80
mov ecx, eax
call fcn.00583e60
cmp eax, 0xffffffff
jne 0x58fe4a
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x58fe25
push eax
call fcn.005752c0
add esp, 4
push esi
call fcn.005752c0
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [esi + 0x20]
push edx
push str.TEXT
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.007417a0
mov ecx, dword [ebp + 8]
push ecx
push str.PRIV
lea edx, [esp + 0x30]
push 0x200
push edx
call fcn.007417a0
push 0x30020
push str.ATTR
lea eax, [esp + 0x40]
push 0x200
push eax
call fcn.007414b0
add esp, 0x30
push 0
push 0
push 0
call fcn.00589d80
push eax
push 0x5842d0
lea ecx, [esp + 0x2c]
push ecx
push 0x6d657367
call fcn.00589d80
mov ecx, eax
call fcn.00586640
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, 0xffffffec
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4