Function at 0x4eca64
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ed182
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e7e64
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x4ed14b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dl, 1
mov eax, dword [0x41a858]
call fcn.004035d0
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x41a858]
call fcn.004035d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1e4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042982c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00429948
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x168]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
mov edx, dword [eax + 0x30]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebx + 0x38], 0
je 0x4ecb7c
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x4ecb81
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
imul dword [ebx + 0x44]
mov ecx, 0x64
cdq
idiv ecx
add dword [ebp - 0x1c], eax
mov eax, ebx
call fcn.004e7908
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4ecd50
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp byte [ebx + 0x2c], 0
jne 0x4ecc20
mov eax, ebx
call fcn.004e7908
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov ecx, dword [eax + 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
call fcn.004e6e24
lea ecx, [ebp - 0x1d]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c8]
call fcn.004e735c
lea eax, [ebp - 0x30]
mov ecx, 0x4ed198
mov edx, dword [ebp - 0x14]
call fcn.00404740
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp byte [ebx + 0x19], 0
je 0x4eccfb
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x48]
jle 0x4eccfb
mov eax, dword [ebp - 0x14]
call fcn.004046f4
mov edx, dword [ebp - 4]
imul dword [edx + 0x48]
cdq
idiv esi
mov esi, eax
jmp 0x4eccbe
dec esi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404954
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x48]
jg 0x4eccbd
push esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e86c8
jmp 0x4ecd1b
cmp dword [ebp - 0x14], 0
je 0x4ecd0e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x4ecd1b
mov edx, 0x4ed198
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
fild word [ebx + 0x2e]
fdiv dword [0x4ed19c]
fadd dword [0x4ed1a0]
fild dword [ebp - 0x24]
fmulp st(1)
call fcn.00402d2c
imul esi, eax
add dword [ebp - 0x1c], esi
inc dword [ebp - 8]
dec dword [ebp - 0x28]
jne 0x4ecbd0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042982c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00429948
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
imul dword [ebx + 0x40]
mov ecx, 0x64
cdq
idiv ecx
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.0047fa1c
cmp eax, dword [ebp - 0x1c]
jle 0x4ecdb0
mov eax, dword [ebp - 4]
call fcn.0047fa1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4ece3c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x4ece3c
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1e4]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0xc]
push eax
mov al, byte [esi + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041b4d0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004e838c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00429948
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebx + 0x38], 0
je 0x4ece92
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x4ece97
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
imul dword [ebx + 0x44]
mov ecx, 0x64
cdq
idiv ecx
add dword [ebp - 0x1c], eax
mov eax, ebx
call fcn.004e7908
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [ebx + 0x18]
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4ed106
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp byte [ebx + 0x2c], 0
jne 0x4ecf42
mov eax, ebx
call fcn.004e7908
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [ebx + 0x18]
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0042f3b4
mov ecx, dword [eax + 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a8]
call fcn.004e6e24
lea ecx, [ebp - 0x1d]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c8]
call fcn.004e735c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp byte [ebx + 0x19], 0
je 0x4ecff9
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x48]
jle 0x4ecff9
mov eax, dword [ebp - 0x14]
call fcn.004046f4
mov edx, dword [ebp - 4]
imul dword [edx + 0x48]
cdq
idiv esi
mov esi, eax
jmp 0x4ecfbc
dec esi
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404954
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x48]
jg 0x4ecfbb
push esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e86c8
jmp 0x4ed019
cmp dword [ebp - 0x14], 0
je 0x4ed00c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x4ed019
mov edx, 0x4ed198
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4ed0fa
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x4c]
mov ecx, 0x4ed198
mov edx, dword [ebp - 0x14]
call fcn.00404740
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
mov al, byte [ebp - 0x1d]
sub al, 1
jb 0x4ed089
je 0x4ed0a6
dec al
je 0x4ed08d
jmp 0x4ed0b8
xor eax, eax
jmp 0x4ed0ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, esi
sar eax, 1
jns 0x4ed0ba
adc eax, 0
jmp 0x4ed0ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, esi
jmp 0x4ed0ba
xor eax, eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x168]
xchg ecx, eax
xchg ecx, edx
call fcn.004e5734
fild word [ebx + 0x2e]
fdiv dword [0x4ed19c]
fadd dword [0x4ed1a0]
fild dword [ebp - 0x24]
fmulp st(1)
call fcn.00402d2c
add dword [ebp - 0x1c], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x4ed035
inc dword [ebp - 8]
dec dword [ebp - 0x28]
jne 0x4eceec
mov eax, dword [ebp - 4]
cmp word [eax + 0x1b2], 0
je 0x4ed125
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1b4]
call dword [ebx + 0x1b0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed152
mov eax, dword [ebp - 0x18]
call fcn.00403600
mov eax, dword [ebp - 0x10]
call fcn.00403600
mov eax, dword [ebp - 4]
call fcn.004e7e6c
ret