Function at 0x52ebe6
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x429000]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov dword [eax], edx
push esi
push edi
xor eax, eax
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edx
stosd dword es:[edi], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edx
mov byte [esp + 0x17], dl
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x52ef9a
test ebx, ebx
je 0x52ef9a
mov edi, dword [esp + 0x44]
test edi, edi
je 0x52ef9a
mov eax, dword [ebp + 0x10]
and eax, 0x10
mov dword [esp + 0x4c], eax
je 0x52ec77
test byte [ebp + 0x10], 2
jne 0x52ef9a
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.0052bc4a
mov esi, eax
test esi, esi
js 0x52ef41
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
push 3
push 0x4280d0
push 0x42820e
push ebx
call fcn.005306a8
test byte [ebp + 0x10], 1
je 0x52ecbb
lea edx, [esp + 0x5c]
mov ecx, edi
call fcn.005320be
jmp 0x52ecc6
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.0052bcec
mov esi, eax
test esi, esi
js 0x52ef41
test byte [ebp + 0x10], 2
je 0x52ecf8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.0052b9dc
test eax, eax
js 0x52ecf8
push dword [esp + 0x10]
call fcn.0052ff7a
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.0052b9dc
test eax, eax
jns 0x52ed42
test byte [ebp + 0x10], 4
je 0x52ed17
xor eax, eax
inc eax
jmp 0x52ed1b
mov eax, dword [esp + 0x2c]
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.0052be0e
mov esi, eax
test esi, esi
js 0x52ef41
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x52ed63
push dword [esp + 0x34]
push eax
push edi
call fcn.0052f92e
mov esi, eax
test esi, esi
js 0x52ef45
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push 2
push ebx
lea ebx, [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call fcn.0052ddf0
mov esi, eax
cmp esi, 0xc0000023
jne 0x52edce
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [0x42a510]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x52edae
add esi, 0xfffffff4
jmp 0x52ef41
and dword [esp + 0x20], 0
lea ecx, [esp + 0x18]
push ecx
push eax
push 2
push dword [esp + 0x30]
lea ebx, [esp + 0x30]
call fcn.0052ddf0
mov edi, dword [esp + 0x10]
mov esi, eax
test esi, esi
js 0x52ef27
and dword [esp + 0x34], 0
cmp dword [esp + 0x20], 0
jbe 0x52ef1f
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
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 + 0x40], esi
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x52ee1c
mov eax, dword [esi + 4]
and eax, 0xf0000000
cmp eax, 0x40000000
je 0x52ef01
cmp dword [esp + 0x4c], 0
je 0x52ee4a
cmp dword [esi + 4], 0x16000020
je 0x52ee4a
and dword [esp + 0x18], 0
push 0
push 0
push dword [esi + 4]
lea ebx, [esp + 0x24]
mov ecx, edi
call fcn.0052bfb0
cmp eax, 0xc0000023
je 0x52ee6a
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x30]
push 0
push dword [esi + 4]
push edi
call fcn.0052c0de
mov esi, eax
test esi, esi
js 0x52ef27
mov esi, dword [esp + 0x40]
cmp dword [esi + 4], 0x14000006
jne 0x52eefd
mov eax, dword [esi + 8]
shr eax, 4
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x52eefd
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
call fcn.0052b9dc
test eax, eax
js 0x52eee7
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push 0
push dword [esp + 0x4c]
and eax, 0xfffffffe
push eax
push ebx
push esi
call fcn.0052ebe6
mov esi, eax
test esi, esi
js 0x52ef27
push dword [esp + 0x1c]
call fcn.0052fdb2
and dword [esp + 0x1c], 0
push ebx
call fcn.0052fdb2
and dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
inc ebx
add eax, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], eax
cmp ebx, dword [esp + 0x40]
jb 0x52ee93
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 + 0x20]
jb 0x52edf8
mov eax, dword [esp + 0x50]
mov dword [eax], edi
xor esi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x52ef45
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0
je 0x52ef55
push dword [esp + 0x1c]
call fcn.0052fdb2
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x52ef63
push ebx
call fcn.0052fdb2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x52ef81
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov edi, dword [esp + 0x10]
test esi, esi
jns 0x52ef96
test edi, edi
je 0x52ef96
cmp byte [esp + 0x17], 0
je 0x52ef96
push edi
call fcn.0052ff7a
mov eax, esi
jmp 0x52ef9f
mov eax, 0xc000000d
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053765e
mov esp, ebp
pop ebp
ret 0x18