Function at 0x577fb6
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x422000]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
and dword [esp + 4], 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
xor eax, eax
push esi
push edi
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
test edx, edx
je 0x578391
test ebx, ebx
je 0x578391
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x578391
mov eax, dword [ebp + 0x10]
and eax, 0x10
mov dword [esp + 0x4c], eax
je 0x578050
test byte [ebp + 0x10], 2
jne 0x578391
test ecx, ecx
je 0x57805e
test byte [ebp + 0x10], 1
jne 0x578391
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.0057462e
mov esi, eax
test esi, esi
js 0x578338
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
push 3
push 0x4209c8
push 0x420bcc
push ebx
call fcn.0057941c
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5780a5
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x3c]
jmp 0x5780cd
test byte [ebp + 0x10], 1
je 0x5780b8
lea edx, [esp + 0x5c]
mov ecx, edi
call fcn.00579958
jmp 0x5780c3
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.005746d0
mov esi, eax
test esi, esi
js 0x578338
test byte [ebp + 0x10], 2
je 0x5780f5
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.00574404
test eax, eax
js 0x5780f5
push dword [esp + 0x10]
call fcn.00578cee
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.00574404
test eax, eax
jns 0x57813f
test byte [ebp + 0x10], 4
je 0x578114
xor eax, eax
inc eax
jmp 0x578118
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x64]
push ecx
mov edx, eax
mov ecx, edi
call fcn.005747f0
mov esi, eax
test esi, esi
js 0x578338
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x578160
push dword [esp + 0x24]
push eax
push edi
call fcn.00579f8c
mov esi, eax
test esi, esi
js 0x57833c
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
call fcn.00577260
mov esi, eax
cmp esi, 0xc0000023
jne 0x5781c7
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004236c8]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x5781a9
add esi, 0xfffffff4
jmp 0x578338
and dword [esp + 0x28], 0
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x34]
call fcn.00577260
mov edi, dword [esp + 0x10]
mov esi, eax
test esi, esi
js 0x57831e
and dword [esp + 0x34], 0
cmp dword [esp + 0x28], 0
jbe 0x578316
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x38]
and ecx, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x578215
mov eax, dword [esi + 4]
and eax, 0xf0000000
cmp eax, 0x40000000
je 0x5782f8
cmp dword [esp + 0x4c], 0
je 0x578241
cmp dword [esi + 4], 0x16000020
je 0x578241
and dword [esp + 0x18], 0
push 0
push dword [esi + 4]
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.00575452
cmp eax, 0xc0000023
je 0x578261
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi + 4]
push edi
call fcn.00575580
mov esi, eax
test esi, esi
js 0x57831e
mov esi, dword [esp + 0x44]
cmp dword [esi + 4], 0x14000006
jne 0x5782f4
mov eax, dword [esi + 8]
shr eax, 4
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x5782f4
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
call fcn.00574404
test eax, eax
js 0x5782de
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
push 0
push dword [esp + 0x44]
and eax, 0xfffffffe
push eax
push ebx
push esi
call fcn.00577fb6
mov esi, eax
test esi, esi
js 0x57831e
push dword [esp + 0x20]
call fcn.00578b26
and dword [esp + 0x20], 0
push ebx
call fcn.00578b26
and dword [esp + 0x30], 0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
inc ebx
add eax, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
cmp ebx, dword [esp + 0x44]
jb 0x57828a
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
inc esi
add eax, 8
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x28]
jb 0x5781f1
mov eax, dword [esp + 0x50]
mov dword [eax], edi
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x57833c
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004236cc]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
je 0x57834c
push dword [esp + 0x20]
call fcn.00578b26
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x57835a
push ebx
call fcn.00578b26
mov eax, dword [esp + 0x40]
test eax, eax
je 0x578378
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004236cc]
mov edi, dword [esp + 0x10]
test esi, esi
jns 0x57838d
test edi, edi
je 0x57838d
cmp byte [esp + 0x17], 0
je 0x57838d
push edi
call fcn.00578cee
mov eax, esi
jmp 0x578396
mov eax, 0xc000000d
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005800be
mov esp, ebp
pop ebp
ret 0x18