Function at 0x578334
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404f48
xor eax, eax
push ebp
push 0x5785ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov dl, byte [0x647dd4]
call fcn.00404c70
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.0040509c
test eax, eax
jne 0x578391
mov eax, dword [ebp - 4]
call fcn.004206c8
jmp 0x57858b
xor ecx, ecx
mov dl, 1
mov eax, dword [0x560170]
call fcn.005782e8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 8]
mov dl, 1
call dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov dl, byte [0x647dd4]
call fcn.00404c70
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x1b], 0
xor eax, eax
push ebp
push 0x578584
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
lea eax, [ebp - 0x14]
call fcn.00404a88
mov edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, eax
test esi, esi
je 0x578412
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00404ea4
jne 0x5783ed
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00404ea4
jne 0x5784f2
mov edx, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5784f2
lea eax, [ebp - 0x14]
call fcn.00404a88
mov edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, eax
cmp esi, 0xffffff99
je 0x57846a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call dword [eax + 0x3c]
test al, al
je 0x578461
cmp esi, 0xffffff97
je 0x57846a
cmp esi, 0x64
jl 0x5784f2
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00404b20
cmp esi, 0xffffff97
jne 0x5784a7
lea eax, [ebp - 0x14]
call fcn.00404a88
mov edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, eax
cmp esi, 0xffffff99
je 0x578498
cmp esi, 0x64
jl 0x5784a5
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00404d60
jmp 0x5784a7
xor ebx, ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00578b98
mov edi, eax
test edi, edi
jne 0x5784f2
mov eax, dword [ebp - 0xc]
call fcn.004205fc
mov edi, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00578b98
test eax, eax
je 0x5784e7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00578b98
mov edx, eax
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x5784f2
lea eax, [edi + 0xc]
mov edx, dword [ebp - 0x18]
call fcn.00404adc
test bl, bl
je 0x578412
test esi, esi
jne 0x5783ed
mov eax, dword [ebp - 4]
call fcn.0042076c
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.0042076c
cmp ebx, eax
je 0x57851c
mov bl, 1
jmp 0x578557
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0042076c
mov esi, eax
dec esi
test esi, esi
jl 0x578557
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00578ab4
push eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00578ab4
pop edx
call fcn.00578214
test al, al
jne 0x578553
mov bl, 1
jmp 0x578557
inc edi
dec esi
jne 0x578530
test bl, bl
je 0x578566
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57858b
mov eax, dword [ebp - 0x10]
call fcn.00403b74
mov eax, dword [ebp - 0xc]
call fcn.00403b74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5785b5
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404aac
lea eax, [ebp - 8]
call fcn.00404a88
ret