Function at 0x4cc685
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x420004]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 0x10]
and dword [eax], 0
mov dword [esp + 0x48], eax
xor eax, eax
push esi
push edi
lea edi, [esp + 0x5c]
mov dword [esp + 0x18], edx
stosd dword es:[edi], eax
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x16], al
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], eax
test edx, edx
je 0x4ccc0c
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4ccc0c
test ecx, ecx
je 0x4ccc0c
mov ecx, dword [ebp + 8]
mov edx, eax
and ecx, 0x32
je 0x4cc723
lea eax, [ecx - 1]
inc edx
and ecx, eax
jne 0x4cc712
cmp edx, 1
ja 0x4ccc0c
test ebx, ebx
je 0x4cc731
test byte [ebp + 8], 1
jne 0x4ccc0c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
cmp edx, ecx
jne 0x4cc74e
test ebx, ebx
jne 0x4cc74e
mov eax, dword [ebp + 8]
and al, 3
cmp al, 2
je 0x4ccc0c
mov al, cl
mov byte [esp + 0x17], 0
and al, dl
test al, 1
je 0x4cc762
mov byte [esp + 0x17], 1
jmp 0x4cc76f
call fcn.004caa5d
test eax, eax
js 0x4ccc11
lea edx, [esp + 0x54]
mov ecx, edi
call fcn.004c9fce
mov esi, eax
test esi, esi
js 0x4ccba3
lea eax, [esp + 0x2c]
mov edx, 0x406488
push eax
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
push 3
push 0x4062c0
call fcn.004cdd81
test ebx, ebx
je 0x4cc7b5
mov esi, ebx
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 + 0x18]
jmp 0x4cc7e7
test byte [ebp + 8], 1
lea edx, [esp + 0x5c]
je 0x4cc7d6
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.004ce18d
mov esi, eax
test esi, esi
js 0x4ccba3
jmp 0x4cc7eb
mov ecx, edi
call fcn.004ca070
mov esi, eax
test esi, esi
js 0x4ccba3
mov ebx, dword [esp + 0x24]
test byte [ebp + 8], 0x22
je 0x4cc922
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
lea edx, [esp + 0x60]
call fcn.004c9c94
test eax, eax
js 0x4cc91b
test byte [ebp + 8], 0x20
je 0x4cc90d
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004ccd55
test eax, eax
js 0x4cc90d
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4cc90d
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
xor ecx, ecx
shr edi, 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push ecx
push ecx
mov dword [esp + 0x20], ecx
call fcn.004cc2e9
cmp eax, 0xc0000023
jne 0x4cc8a4
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
je 0x4cc90d
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
and dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x20]
push eax
push esi
push ecx
call fcn.004cc2e9
jmp 0x4cc8a8
mov esi, dword [esp + 0x40]
test eax, eax
js 0x4cc90d
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4cc90d
xor edx, edx
mov dword [esp + 0x28], edx
test ebx, ebx
je 0x4cc91b
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x20], eax
test edi, edi
je 0x4cc8e9
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + ecx*8]
cmp eax, 0x46000007
je 0x4cc8ff
mov ebx, dword [esi]
cmp eax, dword [ebx + 4]
mov ebx, dword [esp + 0x10]
je 0x4cc8ff
inc ecx
cmp ecx, edi
jb 0x4cc8cb
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 4]
call fcn.004cb307
test eax, eax
js 0x4cc90d
mov edx, dword [esp + 0x28]
inc edx
add esi, 8
mov dword [esp + 0x28], edx
cmp edx, ebx
jb 0x4cc8be
jmp 0x4cc91b
mov ecx, dword [esp + 0xc]
call fcn.004c9ddc
and dword [esp + 0xc], 0
cmp dword [esp + 0xc], 0
jne 0x4cc96e
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x60]
mov ecx, ebx
call fcn.004c9c94
test eax, eax
jns 0x4cc96e
test byte [ebp + 8], 4
je 0x4cc945
xor eax, eax
inc eax
jmp 0x4cc949
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
lea edx, [esp + 0x68]
call fcn.004ca19b
mov esi, eax
test esi, esi
js 0x4ccb6d
mov byte [esp + 0x16], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4cc98f
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.004ce83b
mov esi, eax
test esi, esi
js 0x4ccb6d
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
push ebx
push ecx
mov edx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call fcn.004cc2e9
mov esi, eax
cmp esi, 0xc0000023
jne 0x4cc9fa
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov ebx, eax
mov dword [esp + 0x44], ebx
test ebx, ebx
jne 0x4cc9e0
add esi, 0xfffffff4
jmp 0x4ccb6d
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
mov edx, edi
push eax
push ebx
push ecx
call fcn.004cc2e9
mov esi, eax
test esi, esi
js 0x4ccb53
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x10], esi
jbe 0x4ccb47
mov ecx, dword [ebp + 8]
mov eax, ebx
and ecx, 8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ecx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x4cca42
mov eax, dword [edi + 4]
and eax, 0xf0000000
cmp eax, 0x40000000
je 0x4ccb2d
test byte [ebp + 8], 0x10
je 0x4cca51
cmp dword [edi + 4], 0x16000020
jne 0x4cca57
test byte [ebp + 8], 0x20
je 0x4cca77
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
and dword [esp + 0x1c], 0
push eax
push 0
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004cb00a
cmp eax, 0xc0000023
je 0x4cca97
push dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push ebx
push 0
call fcn.004cb16b
mov esi, eax
test esi, esi
js 0x4ccb53
mov esi, dword [esp + 0x18]
cmp dword [edi + 4], 0x14000006
jne 0x4ccb29
mov ebx, dword [edi + 8]
xor esi, esi
shr ebx, 4
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x4ccb25
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x50]
call fcn.004c9c94
test eax, eax
js 0x4ccb11
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edx, edi
push eax
mov eax, dword [ebp + 8]
push 0
push dword [esp + 0x2c]
and eax, 0xfffffffe
push eax
call fcn.004cc685
mov esi, eax
test esi, esi
js 0x4ccb53
mov ecx, dword [esp + 0x34]
call fcn.004c9e6e
and dword [esp + 0x34], 0
mov ecx, edi
call fcn.004c9e6e
and dword [esp + 0x30], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
inc esi
add eax, 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
cmp esi, ebx
jb 0x4ccab8
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc esi
add eax, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], eax
cmp esi, dword [esp + 0x10]
jb 0x4cca22
mov ecx, dword [esp + 0x50]
xor esi, esi
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4ccb6d
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4ccb87
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
cmp dword [esp + 0x3c], 0
je 0x4ccba3
push dword [esp + 0x3c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4ccbb0
call fcn.004c9e6e
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4ccbbf
mov ecx, edi
call fcn.004c9e6e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4ccbd9
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
test esi, esi
jns 0x4ccbfc
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4ccbfc
cmp byte [esp + 0x16], 0
je 0x4ccbf3
call fcn.004c9ddc
jmp 0x4ccbfc
mov ecx, dword [esp + 0xc]
call fcn.004c9e6e
cmp byte [esp + 0x17], 0
jne 0x4ccc08
call fcn.004caaad
mov eax, esi
jmp 0x4ccc11
mov eax, 0xc000000d
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d6814
mov esp, ebp
pop ebp
ret 0x10