Function at 0x1019bac0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x28], 0x64
mov ecx, dword [ecx + 4]
mov dword [esp + 0x24], 0
call fcn.1002baa0
lea esi, [esp + 0x24]
mov edx, dword [eax]
test edx, edx
cmovns esi, eax
cmp edx, 0x64
lea eax, [esp + 0x28]
cmovle eax, esi
or edi, 0xffffffff
mov eax, dword [eax]
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x1019c05d
movd xmm0, eax
lea edx, [esp + 0x18]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x2c], 0x3f800000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
lea esi, [esp + 0x2c]
xorps xmm1, xmm1
divss xmm0, dword [0x102cd4f0]
movss dword [esp + 0x14], xmm1
comiss xmm1, xmm0
movss dword [esp + 0x18], xmm0
seta al
test al, al
cmove ecx, edx
comiss xmm0, dword [0x102cd2fc]
seta al
test al, al
mov eax, dword [ebp + 8]
cmove esi, ecx
sub esp, 8
movss xmm0, dword [eax + 0x98]
subss xmm0, dword [0x102cd360]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f6530
mov edx, dword [ebp + 8]
add esp, 8
mov eax, dword [esp + 0x10]
fstp dword [esp + 0x30]
movss xmm6, dword [esp + 0x30]
movss xmm1, dword [edx + 0x94]
mov ecx, dword [eax + 0x58]
movaps xmm0, xmm1
divss xmm0, dword [0x102cd360]
movss xmm3, dword [edx + 0x9c]
movss xmm2, dword [eax + 0x8c]
movaps xmm5, xmm3
divss xmm1, dword [0x102cd360]
mov eax, ecx
shr eax, 0x1f
subss xmm5, xmm0
mulss xmm6, dword [esi]
mov esi, dword [0x10329638]
movd xmm0, ecx
subss xmm3, xmm1
cvtdq2pd xmm0, xmm0
subss xmm5, dword [0x102cd3e8]
addsd xmm0, qword [eax*8 + 0x102cd8f0]
subss xmm3, dword [0x102cd3d8]
mov eax, dword fs:[0x2c]
movss dword [esp + 0x38], xmm6
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
subss xmm5, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
movss dword [esp + 0x30], xmm5
addsd xmm0, qword [ecx*8 + 0x102cd8f0]
movss xmm5, dword [edx + 0xa0]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10336da4]
movss dword [esp + 0x2c], xmm5
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
subss xmm3, xmm0
movaps xmm0, xmm5
addss xmm0, dword [edx + 0x98]
movss dword [esp + 0x18], xmm3
subss xmm0, xmm6
subss xmm0, dword [0x102cd2fc]
movss dword [esp + 0x1c], xmm0
cmp eax, dword [ecx + 4]
jg 0x1019c08a
jmp 0x1019bc8d
mov edx, dword [ebp + 8]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10336dac]
cmp eax, dword [ecx + 4]
jg 0x1019c0fc
jmp 0x1019bcac
mov edx, dword [ebp + 8]
mov eax, dword [0x103280cc]
movzx ecx, byte [edx + 0xb0]
add ecx, ecx
mov eax, dword [eax + 0xc]
movups xmm0, xmmword [eax + ecx*8 + 0x94]
lea ecx, [esp + 0x40]
movups xmmword [esp + 0x40], xmm0
call fcn.1015c630
push 0x28
mov dword [esp + 0x44], eax
call fcn.100bbd3c
movss xmm0, dword [esp + 0x34]
mov esi, eax
movss xmm1, dword [esp + 0x30]
lea edx, [esi + 0xc]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [edx], 1
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], 0x102cb530
lea ecx, [ecx + 0x48]
movss dword [edx + 0xc], xmm0
movss dword [edx + 0x10], xmm1
mov eax, dword [ebp + 8]
addss xmm0, dword [0x102cd394]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
addss xmm1, dword [eax + 0x98]
movss dword [edx + 0x14], xmm0
movss dword [edx + 0x18], xmm1
mov eax, dword [0x10336db0]
mov dword [edx + 4], eax
lea eax, [esp + 0x30]
push eax
call fcn.100523a0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1019bd7b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019bd7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019bd7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x28
call fcn.100bbd3c
movss xmm0, dword [esp + 0x1c]
add esp, 4
movss xmm2, dword [esp + 0x1c]
movaps xmm1, xmm0
mov edx, dword [esp + 0x40]
lea ecx, [eax + 0xc]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x102cb530
mov dword [ecx], 1
movss dword [ecx + 0xc], xmm0
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x38]
movss dword [ecx + 0x10], xmm2
addss xmm1, dword [0x102cd2fc]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
push eax
movss dword [ecx + 0x14], xmm1
movss dword [ecx + 0x18], xmm0
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x14]
lea ecx, [edx + 0x70]
call fcn.100523a0
mov esi, dword [esp + 0x44]
test esi, esi
je 0x1019be1d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019be1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019be1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x20], 0x63
jg 0x1019c05d
push 0x48
call fcn.100bbd3c
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x69]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [eax + 0xc], 4
lea esi, [eax + 0xc]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x102cb540
call fcn.10022fc0
push ecx
lea ecx, [esp + 0x69]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.10023080
cmp dword [esp + 0x7c], 0xf
lea eax, [esp + 0x68]
lea ecx, [esi + 0x1c]
cmova eax, dword [esp + 0x68]
push eax
push ecx
call fcn.10055300
mov eax, dword [0x1032bb20]
add esp, 8
movss xmm1, dword [eax + 0x1a70]
mov ecx, dword [eax + 0x1a6c]
lea eax, [esi + 0x1c]
movss dword [esp + 0x20], xmm1
test eax, eax
jne 0x1019beb4
movss xmm0, dword [esp + 0x14]
jmp 0x1019bf01
movss xmm3, dword [0x102cd604]
movaps xmm2, xmm1
push 0
push 0
push eax
push ecx
lea eax, [esp + 0x48]
mov dword [esp], 0xbf800000
push eax
call fcn.1016fbe0
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [0x102cd2f4]
movss xmm1, dword [esp + 0x3c]
movss dword [esp + 0x20], xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x14], xmm0
divss xmm0, dword [0x102cd360]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], esi
lea ecx, [ecx + 0x70]
divss xmm1, dword [0x102cd360]
movss xmm2, dword [esp + 0x18]
subss xmm2, xmm0
movss xmm0, dword [esp + 0x1c]
subss xmm0, xmm1
movss dword [esi + 0xc], xmm2
movss dword [esi + 0x10], xmm0
mov eax, dword [0x10336da8]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
call fcn.100523a0
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x1019bf7b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019bf7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019bf7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x48
call fcn.100bbd3c
mov edi, eax
lea ecx, [esp + 0x6c]
lea esi, [edi + 0xc]
add esp, 4
mov dword [esi], 4
lea eax, [esi + 0x1c]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], 0x102cb540
cmp dword [esp + 0x7c], 0xf
cmova ecx, dword [esp + 0x68]
push ecx
push eax
call fcn.10055300
movss xmm1, dword [esp + 0x1c]
add esp, 8
divss xmm1, dword [0x102cd360]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
lea ecx, [ecx + 0x70]
movss xmm0, dword [esp + 0x20]
divss xmm0, dword [0x102cd360]
subss xmm1, dword [0x102cd2fc]
subss xmm0, dword [0x102cd2fc]
movss xmm2, dword [esp + 0x18]
subss xmm2, xmm1
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esi + 0xc], xmm2
movss dword [esi + 0x10], xmm1
mov eax, dword [0x10336db0]
mov dword [esi + 4], eax
lea eax, [esp + 0x40]
push eax
call fcn.100523a0
mov esi, dword [esp + 0x44]
or edi, 0xffffffff
test esi, esi
je 0x1019c054
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019c054
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019c054
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x68]
call fcn.10003f00
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1019c082
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019c082
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1019c082
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10336da4
call fcn.100bbde8
add esp, 4
cmp dword [0x10336da4], 0xffffffff
jne 0x1019bc8a
movss xmm0, dword [0x102cd50c]
lea ecx, [esp + 0x40]
divss xmm0, dword [0x102cd588]
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x48], 0x3f800000
movss dword [esp + 0x4c], xmm0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.1015c630
push 0x10336da4
mov dword [0x10336da8], eax
call fcn.100bbd97
add esp, 4
jmp 0x1019bc8a
push 0x10336dac
call fcn.100bbde8
add esp, 4
cmp dword [0x10336dac], 0xffffffff
jne 0x1019bca9
movss xmm0, dword [0x102cd50c]
lea ecx, [esp + 0x40]
divss xmm0, dword [0x102cd588]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
movss dword [esp + 0x4c], xmm0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.1015c630
push 0x10336dac
mov dword [0x10336db0], eax
call fcn.100bbd97
add esp, 4
jmp 0x1019bca9