Function at 0x4ed120
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ed355
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
add eax, 0x48
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, dword [0x4eab14]
call fcn.004072c8
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x48
mov ecx, 1
mov edx, dword [0x4eab14]
call fcn.00407280
add esp, 4
push 0
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
xor edx, edx
mov eax, 0x64
call fcn.0051ed44
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], bl
xor edx, edx
push ebp
push 0x4ed31f
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, 1
mov ebx, 1
jmp 0x4ed2a7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + ebx*2 - 2]
sub ax, 0x26
je 0x4ed1ca
sub ax, 0x16
je 0x4ed225
jmp 0x4ed2a6
cmp esi, ebx
jge 0x4ed1da
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ed8d0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ecf34
cmp dword [ebp - 8], 0
je 0x4ed20b
lea eax, [ebp - 8]
call fcn.00405124
call fcn.00405be4
add ebx, eax
mov esi, ebx
dec ebx
jmp 0x4ed2a6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
cmp word [eax + ebx*2], 0x26
sete al
mov esi, eax
and esi, 0x7f
add esi, ebx
jmp 0x4ed2a6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
cmp word [eax + ebx*2], 0x3c
je 0x4ed293
cmp esi, ebx
jge 0x4ed242
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ed8d0
lea ecx, [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.004eabf8
cmp dword [ebp - 4], 0
jne 0x4ed25d
inc ebx
mov esi, ebx
jmp 0x4ed2a7
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004eb548
test al, al
je 0x4ed282
lea eax, [ebp - 4]
call fcn.00405124
call fcn.00405be4
add ebx, eax
mov esi, ebx
dec ebx
jmp 0x4ed2a6
inc ebx
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ed8d0
mov esi, ebx
jmp 0x4ed2a6
cmp esi, ebx
jge 0x4ed2a3
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ed8d0
inc ebx
mov esi, ebx
inc ebx
mov eax, dword [ebp - 0xc]
cmp ebx, dword [eax + 0x10]
jle 0x4ed1ae
cmp esi, ebx
jge 0x4ed2c3
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ed8d0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x28]
jle 0x4ed2d7
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + 0x34]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed326
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
xor ecx, ecx
call fcn.0051ed44
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0
ret