Function at 0x40c9f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f7a9d
push eax
mov eax, 0x1de8
mov dword fs:[0], esp
call fcn.004f7110
push ebx
push esi
push edi
lea ecx, [esp + 0xec]
call fcn.0040c930
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
push esi
lea ecx, [esp + 0x57c]
mov dword [eax], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.004ce460
push 0x537698
lea ecx, [esp + 0x578]
mov dword [esp + 0x1e00], esi
call fcn.0040cde0
mov dword [esp + 0x28], 0x50824c
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov ebx, 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dfc], bl
call fcn.00407a20
mov eax, dword [0x538e8c]
mov edx, dword [0x538e74]
push 0x64
mov byte [esp + 0x1e00], 2
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 8]
push eax
push esi
fld qword [ecx*8 + 0x52e508]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x28], edx
fstp qword [esp + 0x54]
mov dword [0x538e74], ebx
call fcn.004cf9d0
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x1dfc], 3
lea eax, [ecx + 1]
cdq
idiv dword [esp + 0x58]
mov eax, dword [esp + 0x50]
cmp eax, edx
je 0x40cc8b
lea ecx, [eax + eax*2]
push 0x537698
lea edx, [ecx + ecx*8]
shl edx, 3
sub edx, eax
mov eax, dword [esp + 0x60]
lea ebx, [eax + edx*8]
mov ecx, ebx
call fcn.004cd7a0
lea ecx, [ebx + 0x20]
push ecx
call fcn.004bef90
mov eax, dword [0x538ea0]
add esp, 4
cmp eax, esi
jg 0x40ccd2
mov edi, dword [ebx + 0x678]
cmp edi, esi
jle 0x40cc61
lea ecx, [esp + 0x84]
call fcn.004d5be0
lea ecx, [esp + 0x9c]
call fcn.004d5be0
lea ecx, [esp + 0xb4]
call fcn.004d5be0
cmp edi, esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xd0], 0
jle 0x40cc61
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 0x680]
add eax, esi
mov ecx, 6
lea edi, [esp + 0x84]
mov edx, dword [eax]
lea esi, [eax + 8]
mov dword [esp + 0x7c], edx
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x20]
mov ecx, 6
lea edi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x38]
mov ecx, 6
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 0x54]
mov dword [esp + 0xd0], edx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0xd8], edx
mov ecx, dword [eax + 0x60]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe0], edx
mov eax, dword [eax + 0x68]
push ecx
lea ecx, [esp + 0xf0]
mov dword [esp + 0xe8], eax
call fcn.0040c990
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x40cc2d
fld qword [0x5384c0]
jmp 0x40cc31
fld qword [esp + 0x48]
fxch st(1)
fdiv st(1)
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
add ecx, 0x70
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], eax
fmul qword [0x5087f0]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fstp st(0)
jne 0x40cb81
xor esi, esi
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
lea eax, [edx + 1]
cdq
idiv edi
mov eax, dword [esp + 0x50]
mov ecx, edx
cmp eax, ecx
je 0x40cc8b
inc eax
cdq
idiv edi
mov eax, edx
cmp eax, ecx
mov dword [esp + 0x50], eax
jne 0x40cae1
lea eax, [esp + 0x574]
mov ecx, 0x537698
push eax
call fcn.0040cde0
lea ecx, [esp + 0x574]
call fcn.004cca70
fld qword [esp + 0x10]
fcomp qword [0x508230]
fld qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40cd25
fadd qword [0x508288]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
jmp 0x40cd37
lea ecx, [esp + 0x50]
mov dword [0x538ea0], esi
mov byte [esp + 0x1dfc], 2
call fcn.004cfa40
or edi, 0xffffffff
lea ecx, [esp + 0x28]
push edi
push esi
mov byte [esp + 0x1e04], 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00407590
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dfc], 0
call fcn.00407350
jmp 0x40cdb6
fsub qword [0x508288]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x1dfc], 2
mov dword [ecx], eax
lea ecx, [esp + 0x50]
mov dword [0x538e74], edx
call fcn.004cfa40
or edi, 0xffffffff
lea ecx, [esp + 0x28]
push edi
push esi
mov byte [esp + 0x1e04], 5
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00407590
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x50824c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1dfc], 6
cmp eax, esi
je 0x40cdae
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], 0x508238
lea ecx, [esp + 0x574]
mov dword [esp + 0x1dfc], edi
call fcn.004cca90
mov ecx, dword [esp + 0x1df4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret