Function at 0x1019b330
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x2c], 0x64
mov ecx, dword [ecx + 4]
mov dword [esp + 0x28], 0
call fcn.10021790
lea esi, [esp + 0x28]
mov edx, dword [eax]
test edx, edx
cmovns esi, eax
cmp edx, 0x64
lea eax, [esp + 0x2c]
cmovle eax, esi
or edi, 0xffffffff
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, 2
jl 0x1019b9a2
movd xmm0, eax
lea edx, [esp + 0x20]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x1c], 0x3f800000
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
lea esi, [esp + 0x1c]
xorps xmm1, xmm1
divss xmm0, dword [0x102cd4f0]
movss dword [esp + 0x18], xmm1
comiss xmm1, xmm0
movss dword [esp + 0x20], 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 xmm3, dword [edx + 0x94]
mov ecx, dword [eax + 0x6c]
movaps xmm4, xmm3
divss xmm4, dword [0x102cd360]
movss xmm2, dword [eax + 0x90]
mov eax, ecx
divss xmm3, dword [0x102cd360]
shr eax, 0x1f
movss xmm1, dword [edx + 0x9c]
movd xmm0, ecx
addss xmm4, xmm1
cvtdq2pd xmm0, xmm0
mulss xmm6, dword [esi]
addss xmm3, xmm1
mov esi, dword [0x10329638]
addsd xmm0, qword [eax*8 + 0x102cd8f0]
addss xmm4, dword [0x102cd3d8]
mov eax, dword fs:[0x2c]
addss xmm3, dword [0x102cd3e8]
movss dword [esp + 0x38], xmm6
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm4, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
movss dword [esp + 0x30], xmm4
addsd xmm0, qword [ecx*8 + 0x102cd8f0]
movss xmm4, dword [edx + 0xa0]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10336db4]
movss dword [esp + 0x24], xmm4
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm3, xmm0
movaps xmm0, xmm4
addss xmm0, dword [edx + 0x98]
movss dword [esp + 0x1c], xmm3
subss xmm0, xmm6
subss xmm0, dword [0x102cd2fc]
movss dword [esp + 0x20], xmm0
cmp eax, dword [ecx + 4]
jg 0x1019b9cf
jmp 0x1019b4fd
mov edx, dword [ebp + 8]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10336dbc]
cmp eax, dword [ecx + 4]
jg 0x1019ba41
jmp 0x1019b51c
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 + 0xb4]
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 + 0x28]
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 + 0x5c]
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 [0x10336dc0]
mov dword [edx + 4], eax
lea eax, [esp + 0x30]
push eax
call fcn.100523a0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1019b5eb
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019b5eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019b5eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x28
call fcn.100bbd3c
movss xmm0, dword [esp + 0x20]
add esp, 4
movss xmm2, dword [esp + 0x20]
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 0x1019b68d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019b68d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019b68d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x14], 0x63
jg 0x1019b9a2
push 0x48
call fcn.100bbd3c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x81]
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 + 0x81]
push ecx
push eax
lea ecx, [esp + 0x8c]
call fcn.10023080
cmp dword [esp + 0x94], 0xf
lea eax, [esp + 0x80]
lea ecx, [esi + 0x1c]
cmova eax, dword [esp + 0x80]
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 + 0x24], xmm1
test eax, eax
jne 0x1019b736
movss xmm0, dword [esp + 0x18]
jmp 0x1019b783
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 + 0x24], xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], 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 + 0x1c]
subss xmm2, xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, xmm1
movss dword [esi + 0xc], xmm2
movss dword [esi + 0x10], xmm0
mov eax, dword [0x10336db8]
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 0x1019b7fd
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019b7fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019b7fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x48
call fcn.100bbd3c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x81]
mov edi, eax
add esp, 4
lea esi, [edi + 0xc]
mov dword [esi], 4
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], 0x102cb540
call fcn.10022fc0
push ecx
lea ecx, [esp + 0x81]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.10023080
lea ecx, [esp + 0x80]
call fcn.10003eb0
movaps xmm0, xmmword [esp + 0x40]
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x80], xmm0
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
call fcn.10003f00
cmp dword [esp + 0x94], 0xf
lea eax, [esp + 0x80]
cmova eax, dword [esp + 0x80]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.10055300
movss xmm2, dword [esp + 0x20]
add esp, 8
divss xmm2, 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 + 0x24]
divss xmm0, dword [0x102cd360]
subss xmm2, dword [0x102cd2fc]
subss xmm0, dword [0x102cd2fc]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm2
movss xmm2, dword [esp + 0x20]
subss xmm2, xmm0
movss dword [esi + 0xc], xmm1
movss dword [esi + 0x10], xmm2
mov eax, dword [0x10336dc0]
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 0x1019b948
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019b948
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1019b948
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x94]
cmp ecx, 0xf
jbe 0x1019b984
mov edx, dword [esp + 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1019b97a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1019bab3
push ecx
push edx
call fcn.100bb9a0
add esp, 8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0xf
mov byte [esp + 0x80], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1019b9c7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1019b9c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1019b9c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10336db4
call fcn.100bbde8
add esp, 4
cmp dword [0x10336db4], 0xffffffff
jne 0x1019b4fa
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 0x10336db4
mov dword [0x10336db8], eax
call fcn.100bbd97
add esp, 4
jmp 0x1019b4fa
push 0x10336dbc
call fcn.100bbde8
add esp, 4
cmp dword [0x10336dbc], 0xffffffff
jne 0x1019b519
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 0x10336dbc
mov dword [0x10336dc0], eax
call fcn.100bbd97
add esp, 4
jmp 0x1019b519
call fcn.100cb508
int3