Function at 0x49f698
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49fb08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049e700
mov dl, 1
mov eax, dword [0x412ce8]
call fcn.004039ac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49fae3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x128]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
mov edx, dword [eax + 0x28]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x30], 0
je 0x49f764
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x34]
jmp 0x49f766
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x1c]
imul dword [edx + 0x3c]
mov ecx, 0x64
cdq
idiv ecx
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x60]
call fcn.00422e78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00422fc0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00422fc0
mov eax, dword [ebp - 0x1c]
call fcn.0049e248
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 0x10]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49fa01
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x24], 0
jne 0x49f87e
mov eax, dword [ebp - 0x1c]
call fcn.0049e248
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 0x10]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov ecx, dword [eax + 0xc]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.0049d54c
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
call fcn.0049da00
lea eax, [ebp - 0x24]
mov ecx, 0x49fb20
mov edx, dword [ebp - 0x10]
call fcn.00404b88
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
call fcn.0049c1b8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov edx, dword [ebp - 0x10]
call fcn.0049c234
mov edi, eax
mov al, byte [ebp - 0x11]
sub al, 1
jb 0x49f906
je 0x49f925
dec al
je 0x49f90a
jmp 0x49f939
xor edi, edi
jmp 0x49f93b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, edi
sar eax, 1
jns 0x49f921
adc eax, 0
mov edi, eax
jmp 0x49f93b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, edi
mov edi, eax
jmp 0x49f93b
xor edi, edi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x1c]
fild word [eax + 0x26]
fdiv dword [0x49fb24]
fadd dword [0x49fb28]
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x28]
fmulp st(1)
call fcn.00403408
add esi, eax
jmp 0x49f9cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x60]
call fcn.00422e78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00422fc0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1ac]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x3c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00422fc0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp esi, eax
jg 0x49f961
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov ecx, dword [ebp - 0x18]
mov edx, edi
call fcn.0049c784
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x49f821
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x60]
call fcn.00422e78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00422fc0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x1c]
imul dword [edx + 0x38]
mov ecx, 0x64
cdq
idiv ecx
add esi, eax
mov eax, dword [ebp - 4]
call fcn.0043df40
cmp esi, eax
jge 0x49fa61
mov eax, dword [ebp - 4]
call fcn.0043df40
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
call fcn.004290e0
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00422fc0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp word [eax + 0x172], 0
je 0x49fac5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x174]
call dword [ebx + 0x170]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49faea
mov eax, dword [ebp - 0xc]
call fcn.00403a08
mov eax, dword [ebp - 4]
call fcn.0049e708
ret