Function at 0x4ca100
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x522bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], 0x10e
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x30], 0x140
mov dword [esp + 0x34], 0x186
mov dword [esp + 0x38], 0x1cc
jne 0x4ca188
lea esi, [esp + 0x20]
mov edx, 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xa
jmp 0x4ca1b1
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
sub eax, 2
mov dword [esp + 0x14], 3
neg eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
sbb eax, eax
mov esi, ecx
and eax, 5
inc eax
mov dword [esp + 0x18], eax
cmp edx, ebp
jl 0x4ca1c9
mov edi, dword [esp + 0x80]
mov eax, esi
lea ecx, [edx + 1]
add dword [eax], edi
add eax, 4
dec ecx
jne 0x4ca1c1
mov edi, dword [esp + 0x74]
cmp edx, ebp
mov dword [esp + 0x80], edi
jle 0x4ca370
lea ecx, [esp + 0x10]
call fcn.004f3349
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ebp
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.00468d60
mov edx, eax
add esp, 0x10
mov eax, dword [edx]
push eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x48], ecx
mov ecx, 0x595e30
mov edx, dword [edx + 0xc]
mov dword [esp + 0x4c], edx
call fcn.004044e0
push eax
lea ecx, [esp + 0x14]
call fcn.004f3547
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
mov eax, dword [esi + ebp*4]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov dword [esp + 0x84], eax
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
mov ecx, ebx
call fcn.004cbf50
test ebp, ebp
mov edi, eax
jne 0x4ca283
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
push 2
mov eax, dword [esi + edx*4]
lea edx, [edi + 4]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004cbe20
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4ca363
mov esi, 1
lea ecx, [esp + 0x10]
call fcn.004f3349
mov eax, dword [esp + 0x78]
test ebp, ebp
je 0x4ca2fe
test eax, eax
jne 0x4ca2d5
mov ecx, dword [ebx + 0x56]
call fcn.004617a0
test eax, eax
je 0x4ca2c5
mov ecx, dword [ebx + 0x56]
lea edx, [esp + 0x10]
push esi
push edx
call fcn.00469030
jmp 0x4ca32d
push 0x53b670
lea ecx, [esp + 0x14]
call fcn.004f3547
jmp 0x4ca32d
mov eax, dword [esp + 0x7c]
push ebp
cmp eax, 2
push esi
jne 0x4ca2ef
mov ecx, dword [ebx + 0x56]
lea eax, [esp + 0x18]
push eax
call fcn.00469080
jmp 0x4ca32d
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x56]
call fcn.00466310
jmp 0x4ca32d
test eax, eax
push esi
jne 0x4ca317
lea edx, [esp + 0x14]
push 0x563178
push edx
call fcn.004f0a68
add esp, 0xc
jmp 0x4ca32d
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
call fcn.00468e90
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push 0
push 1
push eax
mov eax, dword [esp + 0x78]
push edi
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004cbf50
inc esi
mov edi, eax
mov eax, dword [esp + 0x18]
lea ecx, [esi - 1]
cmp ecx, eax
jl 0x4ca294
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x4ca1dc
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x18