Function at 0x40a870
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x677349
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x702ca8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
call fcn.0044dc20
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [edi], 0x6bad18
mov dword [edi + 0x20], 0x6bedd8
mov dword [edi + 0xf8], 0xffffffff
mov dword [edi + 0xfc], ebx
mov byte [edi + 0x91], 1
mov eax, dword [0x717c98]
mov ecx, dword [eax + 0xf5800]
push 0x240
mov dword [edi + 0xa4], ecx
call fcn.00604431
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x40a9b9
push ecx
mov eax, esp
mov dword [eax], 0xffffffff
mov edx, dword [0x717c98]
mov eax, dword [edx + 0xf57f8]
mov ecx, dword [0x717c9c]
mov dword [esp + 0x20], esp
push eax
mov eax, dword [ecx + 0x68]
mov edx, dword [eax + 0x195c]
imul edx, edx, 0x1934
mov ebp, dword [edx + eax + 0x754]
sub esp, 0x1c
mov esi, esp
mov eax, ebp
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x40], esp
mov byte [esi + 4], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40a950
sub eax, ecx
push eax
push ebp
mov ecx, esi
call fcn.004027b0
mov eax, dword [0x717c9c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x1c]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x32
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x44]
fldz
fst dword [esp + 0x54]
fld dword [esp + 0x44]
mov edx, dword [esp + 0x54]
fstp dword [esp + 0x58]
mov dword [eax], edx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
fstp dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], edx
call fcn.0042f380
jmp 0x40a9bb
xor eax, eax
mov byte [esp + 0x38], bl
or dword [eax + 0x210], 0x10
push eax
mov ecx, edi
call fcn.0043f5f0
push 0x490
call fcn.00604431
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x38], 2
je 0x40aad0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x6ba06e
mov byte [ecx + 4], bl
call fcn.004027b0
mov byte [esp + 0x54], 3
mov eax, dword [0x717c9c]
mov eax, dword [eax + 0x68]
mov ecx, dword [eax + 0x195c]
imul ecx, ecx, 0x1934
mov ebp, dword [ecx + eax + 0x974]
sub esp, 0x1c
mov esi, esp
mov eax, ebp
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x4c], esp
mov byte [esi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40aa48
sub eax, ecx
push eax
push ebp
mov ecx, esi
call fcn.004027b0
mov edx, dword [0x717c9c]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov edx, 0x32
sub edx, eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x50], edx
fild dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
fstp dword [esp + 0x4c]
sub eax, 0x94
mov dword [esp + 0x50], eax
sub esp, 0xc
fild dword [esp + 0x5c]
mov eax, esp
mov byte [esp + 0x7c], 2
fstp dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
fld dword [esp + 0x58]
mov dword [eax], ecx
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
fldz
mov dword [eax + 4], edx
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
call fcn.00403a20
jmp 0x40aad2
xor eax, eax
mov byte [esp + 0x38], bl
push 0x490
mov dword [edi + 0xfc], eax
call fcn.00604431
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x38], 4
je 0x40abe3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x6ba06e
mov byte [ecx + 4], bl
call fcn.004027b0
mov byte [esp + 0x54], 5
mov edx, dword [0x717c9c]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + 0x195c]
imul ecx, ecx, 0x1934
mov ebp, dword [ecx + eax + 0x6ec]
sub esp, 0x1c
mov esi, esp
mov eax, ebp
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x50], esp
mov byte [esi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40ab57
sub eax, ecx
push eax
push ebp
mov ecx, esi
call fcn.004027b0
mov edx, dword [0x717c9c]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov edx, 0x32
sub edx, eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
cdq
sub eax, edx
sar eax, 1
fstp dword [esp + 0x50]
mov ecx, 0x64
sub ecx, eax
mov dword [esp + 0x54], ecx
sub esp, 0xc
fild dword [esp + 0x60]
mov eax, esp
mov byte [esp + 0x7c], 4
fstp dword [esp + 0x68]
mov edx, dword [esp + 0x68]
fld dword [esp + 0x5c]
mov dword [eax], edx
fstp dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
fldz
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
call fcn.00404e50
mov esi, eax
jmp 0x40abe5
xor esi, esi
push 0xa0
mov ecx, esi
mov byte [esp + 0x3c], bl
call fcn.00404af0
push esi
mov ecx, edi
call fcn.0043f5f0
mov eax, dword [edi + 0xfc]
push eax
call fcn.0043f5f0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret