Function at 0x10046400
Capabilities:
Get number of processors

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100533e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1006c8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cvttss2si eax, dword [0x100a3cc0]
mov esi, dword [ebx + 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x34], 0x23
mov dword [ebp - 0x30], 0x23
mov dword [ebp - 0x2c], 0x23
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], eax
cmp dword [0x100a3ccc], esi
jne 0x1004648e
mov dword [ebp - 0x24], 0x28
mov dword [ebp - 0x20], 0x28
mov dword [ebp - 0x1c], 0x28
jmp 0x100464a3
mov dword [ebp - 0x24], 0x19
mov dword [ebp - 0x20], 0x19
mov dword [ebp - 0x1c], 0x19
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
mov edi, dword [ebx + 0xc]
movd xmm1, dword [ebx + 0xc]
mov eax, esp
movd xmm2, dword [ebx + 8]
sub esp, 0x10
cvtdq2ps xmm1, xmm1
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ecx]
mov ecx, dword [0x100a433c]
cvtdq2ps xmm2, xmm2
movups xmmword [eax], xmm0
movd xmm0, dword [ebx + 0x14]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, dword [ebx + 0x10]
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
call fcn.1004c660
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
cvttss2si eax, dword [0x100a3cc0]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
cmp dword [0x100a3ccc], esi
jne 0x10046547
mov dword [ebp - 0x34], 0xff
mov dword [ebp - 0x30], 0xff
mov dword [ebp - 0x2c], 0xff
jmp 0x1004655c
mov dword [ebp - 0x34], 0x64
mov dword [ebp - 0x30], 0x64
mov dword [ebp - 0x2c], 0x64
mov eax, dword [0x100a433c]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x28]
mov esi, dword [eax + 0x24]
mov eax, esp
push 1
push 1
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x18
movups xmm0, xmmword [ecx]
mov ecx, esp
movups xmmword [eax], xmm0
lea eax, [ebx + 0x18]
push eax
call fcn.10002ba0
push esi
mov esi, dword [ebx + 0x14]
sub esp, 8
mov eax, esi
mov ecx, dword [0x100a433c]
cdq
sub eax, edx
sar eax, 1
add eax, 0xfffffff9
add eax, edi
movd xmm0, eax
mov eax, dword [ebx + 0x10]
cdq
cvtdq2ps xmm0, xmm0
sub eax, edx
sar eax, 1
add eax, dword [ebx + 8]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.1004ce10
movd xmm0, dword [ebx + 8]
movss xmm1, dword [0x1006c518]
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004663b
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1004663b
movd xmm0, dword [ebx + 0xc]
movss xmm1, dword [0x1006c51c]
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004663b
lea eax, [edi + esi]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1004663b
cmp byte [0x100a4089], 0
je 0x1004663b
mov eax, dword [ebp - 0x14]
mov ecx, 1
cmp byte [0x100a4189], 0
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x2c]
cmp ecx, 0xf
jbe 0x10046671
mov edx, dword [ebx + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046667
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046667
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1004e65b
add esp, 8
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret