Function at 0x10016ae0
Capabilities:
Get number of processors

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004aa70
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x10061080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x24], 0
je 0x10016efb
mov ecx, dword [0x63d6c0]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x10016efb
mov esi, dword [0x63b928]
xorps xmm0, xmm0
mov dword [ebp - 0x54], esi
movss dword [ebp - 0x28], xmm0
test ecx, ecx
je 0x10016bba
movss xmm1, dword [eax + 0x8c]
subss xmm1, dword [eax + 0x90]
movss xmm0, dword [eax + 0x48]
mov cl, byte [eax + 0xb1]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [eax + 0x4c]
movss dword [ebp - 0x30], xmm0
addss xmm1, dword [eax + 0x50]
movss dword [ebp - 0x28], xmm1
cmp cl, 0x6f
je 0x10016b9f
cmp cl, 0x6e
je 0x10016b9f
cmp cl, 0x64
je 0x10016bc4
movss xmm0, dword [eax + 0x50]
movss dword [ebp - 0x28], xmm0
jmp 0x10016bc4
movss xmm0, dword [eax + 0xf0]
divss xmm0, dword [0x10056670]
subss xmm1, xmm0
movss dword [ebp - 0x28], xmm1
jmp 0x10016bc4
movss dword [ebp - 0x34], xmm0
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [edi + 0x30]
xorps xmm0, xmmword [0x10056700]
movss xmm1, dword [edi + 0x34]
mulss xmm0, dword [0x10056638]
mov dword [ebp - 0x1c], 0
mulss xmm1, dword [0x10056678]
mov dword [ebp - 0x18], 0
cvtss2sd xmm0, xmm0
mulss xmm1, dword [0x10056630]
movsd qword [ebp - 0x48], xmm0
movss dword [ebp - 0x5c], xmm1
call fcn.10045ce0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [edi + 0x38]
movss dword [ebp - 0x4c], xmm0
movsd xmm0, qword [ebp - 0x48]
call fcn.100469f0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10065094]
cvtsd2ss xmm0, xmm0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100658f8]
mulss xmm0, dword [edi + 0x38]
movss dword [ebp - 0x2c], xmm0
cmp eax, dword [ecx + 4]
jle 0x10016c91
push 0x100658f8
call fcn.10023edd
add esp, 4
cmp dword [0x100658f8], 0xffffffff
jne 0x10016c91
push 0x100658f8
mov dword [0x100658ec], 0
mov dword [0x100658f0], 0
mov dword [0x100658f4], 0
call fcn.10023e8c
add esp, 4
movsd xmm1, qword [ebp - 0x48]
comisd xmm1, xmmword [0x100566b8]
jbe 0x10016d36
movsd xmm0, qword [0x10056660]
comisd xmm0, xmm1
jbe 0x10016d36
movss xmm0, dword [ebp - 0x5c]
cvtps2pd xmm0, xmm0
call fcn.10045ce0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [ebp - 0x34]
mulss xmm1, dword [ebp - 0x4c]
subss xmm0, xmm1
movss xmm1, dword [ebp - 0x5c]
movss dword [ebp - 0x40], xmm0
cvtps2pd xmm0, xmm1
call fcn.100469f0
movss xmm4, dword [ebp - 0x30]
movss xmm1, dword [ebp - 0x28]
movaps xmm3, xmm4
movss xmm2, dword [ebp - 0x2c]
cvtsd2ss xmm0, xmm0
addss xmm2, xmm1
mulss xmm0, dword [ebp - 0x4c]
subss xmm3, xmm0
movss dword [ebp - 0x18], xmm2
movss xmm0, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
mov dword [0x100658f4], eax
unpcklps xmm0, xmm3
movq qword [ebp - 0x20], xmm0
movq qword [0x100658ec], xmm0
movss xmm0, dword [ebp - 0x40]
jmp 0x10016d69
movq xmm0, qword [0x100658ec]
mov eax, dword [0x100658f4]
movss xmm1, dword [ebp - 0x28]
movss xmm4, dword [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x20]
movss xmm3, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
movss xmm2, dword [ebp - 0x18]
movss dword [ebp - 0x40], xmm0
mov ecx, dword [0x7f9510]
lea eax, [ebp - 0x18]
push 3
push eax
lea eax, [ebp - 0x1c]
movss dword [ebp - 0x4c], xmm3
push eax
lea eax, [ebp - 0x20]
movss dword [ebp - 0x2c], xmm2
push eax
sub esp, 0x18
xor edx, edx
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [esp + 8], xmm1
movss dword [esp + 4], xmm4
movss dword [esp], xmm0
call dword [0x10061b94]
movss xmm0, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
movaps xmmword [ebp - 0x70], xmm0
subss xmm0, dword [ebp - 0x40]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [ebp - 0x1c]
subss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ebp - 0x18]
subss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x40], xmm0
call fcn.10010e10
comisd xmm0, xmmword [0x10056658]
movss xmm0, dword [ebp - 0x1c]
movaps xmm1, xmmword [ebp - 0x70]
unpcklps xmm1, xmm0
seta byte [ebp - 0x21]
movss xmm0, dword [ebp - 0x28]
add esi, 8
movq qword [ebp - 0x20], xmm1
movq qword [esi], xmm1
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x34]
mov edi, dword [ebp - 0x54]
movsd xmm1, qword [0x10056668]
mov dword [edi + 0x14], eax
subss xmm0, dword [esi + 8]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0x30]
subss xmm0, dword [esi + 4]
cvtps2pd xmm0, xmm0
call fcn.10045ea0
movsd xmm1, qword [0x10056668]
movsd qword [ebp - 0x58], xmm0
movss xmm0, dword [ebp - 0x34]
subss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
call fcn.10045ea0
addsd xmm0, qword [ebp - 0x58]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10016e84
sqrtsd xmm0, xmm0
jmp 0x10016e89
call fcn.10046bc0
fld qword [ebp - 0x50]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [ebp - 0x58], xmm0
fld qword [ebp - 0x58]
call fcn.10045cd0
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
cvtpd2ps xmm0, xmm0
push esi
mulss xmm0, dword [0x1005668c]
mulss xmm0, dword [0x10056650]
movss dword [edi + 0x18], xmm0
mov ecx, dword [0x7f9a30]
mov dword [0x1006587c], ecx
mov eax, dword [0x7f9510]
push dword [eax + 4]
call ecx
add esp, 8
cmp eax, 0xffffffff
jne 0x10016eee
mov eax, dword [0x100658cc]
mov dword [edi + 4], eax
mov al, byte [ebp - 0x21]
jmp 0x10016efd
mov dword [0x100658cc], eax
mov dword [edi + 4], eax
mov al, byte [ebp - 0x21]
jmp 0x10016efd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10023e0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret