Function at 0x521674
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0x6c9f5c
mov dword [ebp - 0x1c], esp
mov eax, 0x50d923
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 4]
mov word [ebp - 0x18], 0
mov dword [ebp - 0xc], ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
mov dword fs:[0], ecx
mov word [ebp - 0x18], 8
mov eax, dword [ebx]
mov dword [eax + 0x44], edx
mov ecx, dword [ebx]
mov dword [ecx + 0x40], edx
mov eax, dword [ebx]
xor edx, edx
mov byte [eax + 0x30], dl
mov eax, dword [ebx]
mov byte [eax + 0x38], dl
mov eax, dword [ebx]
mov byte [eax + 0x32], dl
mov eax, dword [ebx]
mov byte [eax + 0x28], dl
mov eax, dword [ebx]
mov byte [eax + 0x20], dl
mov eax, dword [ebx]
mov byte [eax + 0x18], dl
mov eax, dword [ebx]
mov byte [eax + 0x10], dl
mov eax, dword [ebx]
mov byte [eax + 8], dl
mov eax, dword [ebx]
mov byte [eax], dl
mov eax, dword [ebx]
call fcn.005258cc
test eax, eax
je 0x521716
cmp dword [0x71d9e0], 0
je 0x52170c
mov eax, dword [0x71d9e0]
jmp 0x521711
mov eax, dword [0x71d9dc]
call fcn.005052d4
mov edx, dword [ebx]
cmp byte [edx], 0
je 0x52173d
mov ecx, dword [ebx]
cmp byte [ecx + 8], 0
je 0x52173d
mov eax, dword [ebx]
cmp byte [eax + 0x10], 0
je 0x52173d
mov edx, dword [ebx]
cmp byte [edx + 0x18], 0
je 0x52173d
mov ecx, dword [ebx]
cmp byte [ecx + 0x20], 0
jne 0x521757
cmp dword [0x71d9e0], 0
je 0x52174d
mov eax, dword [0x71d9e0]
jmp 0x521752
mov eax, dword [0x71d9dc]
call fcn.005052d4
mov edx, dword [ebx]
cmp byte [edx + 0x28], 0
jne 0x52176c
mov ecx, dword [ebx]
mov byte [ecx + 0x28], 1
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, dword [ebx]
cmp byte [ecx + 0x32], 0
je 0x5217cf
mov eax, dword [ebx]
cmp dword [eax + 0x34], 0
jge 0x521780
mov cl, 1
jmp 0x521782
xor ecx, ecx
test cl, cl
je 0x52178b
mov eax, dword [ebx]
neg dword [eax + 0x34]
mov edx, dword [ebx]
mov edi, 0x64
mov esi, dword [edx + 0x34]
mov eax, esi
cdq
idiv edi
mov edi, eax
mov eax, esi
cdq
mov esi, 0x64
idiv esi
shl edi, 4
mov eax, edx
shl eax, 2
mov edx, dword [ebx]
lea edi, [edi + edi*4]
lea eax, [eax + eax*2]
lea edi, [edi + edi*4]
lea eax, [eax + eax*4]
lea edi, [edi + edi*8]
add edi, eax
test cl, cl
mov dword [edx + 0x34], edi
je 0x5217cf
mov ecx, dword [ebx]
neg edi
mov dword [ecx + 0x34], edi
mov eax, dword [ebx]
cmp byte [eax + 0x38], 0
je 0x521832
mov edx, dword [ebx]
cmp dword [edx + 0x3c], 0
jge 0x5217e3
mov cl, 1
jmp 0x5217e5
xor ecx, ecx
test cl, cl
je 0x5217ee
mov eax, dword [ebx]
neg dword [eax + 0x3c]
mov edx, dword [ebx]
mov edi, 0x64
mov esi, dword [edx + 0x3c]
mov eax, esi
cdq
idiv edi
mov edi, eax
mov eax, esi
cdq
mov esi, 0x64
idiv esi
shl edi, 4
mov eax, edx
shl eax, 2
mov edx, dword [ebx]
lea edi, [edi + edi*4]
lea eax, [eax + eax*2]
lea edi, [edi + edi*4]
lea eax, [eax + eax*4]
lea edi, [edi + edi*8]
add edi, eax
test cl, cl
mov dword [edx + 0x3c], edi
je 0x521832
mov ecx, dword [ebx]
neg edi
mov dword [ecx + 0x3c], edi
mov eax, dword [ebx]
cmp byte [eax + 0x32], 0
jne 0x521854
mov edx, dword [ebx]
cmp byte [edx + 0x38], 0
jne 0x521854
mov ecx, dword [ebx]
mov byte [ecx + 0x32], 1
mov edx, dword [ebx]
mov eax, dword [0x6c8678]
neg eax
mov dword [edx + 0x34], eax
mov ecx, dword [ebx]
cmp byte [ecx + 0x30], 0
je 0x52186a
mov eax, dword [ebx]
cmp byte [eax + 0x31], 0
je 0x52186a
mov edx, dword [ebx]
add dword [edx + 0x1c], 0xc
push 0x24
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0050d1a0
add esp, 0xc
mov eax, dword [ebx]
mov edx, dword [eax + 4]
add edx, 0xfffff894
mov dword [ebp - 0x38], edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x48], eax
mov edx, dword [ebx]
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.0051ba5c
pop ecx
mov esi, eax
cmp esi, 0xffffffff
jne 0x5218db
cmp dword [0x71d9ec], 0
je 0x5218d1
mov eax, dword [0x71d9ec]
jmp 0x5218d6
mov eax, dword [0x71d9e8]
call fcn.005052d4
mov edx, dword [ebx]
xor eax, eax
sub esi, dword [0x6c8678]
cmp byte [edx + 0x32], 0
je 0x5218f0
mov ecx, dword [ebx]
add eax, dword [ecx + 0x34]
mov edx, dword [ebx]
cmp byte [edx + 0x38], 0
je 0x5218fd
mov ecx, dword [ebx]
add eax, dword [ecx + 0x3c]
sub esi, eax
push 0
push 0x3e8
mov eax, esi
cdq
call fcn.00515ba0
mov ecx, dword [ebx]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret