Function at 0x493844
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 0x493cb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004928ac
mov dl, 1
mov eax, dword [0x412ce8]
call fcn.004039ac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x493c8f
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 0x493910
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x34]
jmp 0x493912
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.004923f4
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 0x493bad
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 0x493a2a
mov eax, dword [ebp - 0x1c]
call fcn.004923f4
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.004916f8
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
call fcn.00491bac
lea eax, [ebp - 0x24]
mov ecx, 0x493ccc
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.00490364
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov edx, dword [ebp - 0x10]
call fcn.004903e0
mov edi, eax
mov al, byte [ebp - 0x11]
sub al, 1
jb 0x493ab2
je 0x493ad1
dec al
je 0x493ab6
jmp 0x493ae5
xor edi, edi
jmp 0x493ae7
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 0x493acd
adc eax, 0
mov edi, eax
jmp 0x493ae7
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 0x493ae7
xor edi, edi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x1c]
fild word [eax + 0x26]
fdiv dword [0x493cd0]
fadd dword [0x493cd4]
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x28]
fmulp st(1)
call fcn.00403408
add esi, eax
jmp 0x493b78
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 0x493b0d
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.00490930
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x4939cd
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.0043d3f0
cmp esi, eax
jge 0x493c0d
mov eax, dword [ebp - 4]
call fcn.0043d3f0
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 0x493c71
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 0x493c96
mov eax, dword [ebp - 0xc]
call fcn.00403a08
mov eax, dword [ebp - 4]
call fcn.004928b4
ret