Function at 0x4d7f90
Capabilities:
Get number of processors

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, ecx
mov ecx, edi
xor eax, eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov al, byte [esi]
test al, 1
je 0x4d7fc2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 4]
mov edx, ecx
sub edx, ebx
cmp edx, eax
je 0x4d820e
mov al, byte [ecx]
inc ecx
test al, 0x80
mov dword [esi + 0xc], ecx
jne 0x4d8040
mov cl, byte [esi + 0x14]
test cl, cl
jne 0x4d7ff2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov byte [edi + 5], al
mov al, cl
and al, 0xf0
mov byte [edi + 4], cl
cmp al, 0xc0
mov dword [edi + 8], 2
je 0x4d81f2
cmp al, 0xd0
je 0x4d81f2
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, eax
sub ecx, ebx
cmp ecx, edx
je 0x4d820e
mov dl, byte [eax]
mov byte [edi + 6], dl
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
jmp 0x4d81f2
mov cl, al
and cl, 0xf0
cmp cl, 0xf0
je 0x4d80b7
mov byte [edi + 4], al
cmp cl, 0xc0
mov byte [esi + 0x14], al
je 0x4d805f
cmp cl, 0xd0
mov ecx, 2
jne 0x4d8064
mov ecx, 1
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov edx, eax
sub edx, ebx
mov ebx, dword [esi + 4]
cmp edx, ebx
je 0x4d820e
mov al, byte [eax]
mov byte [edi + 5], al
mov eax, dword [esi + 0xc]
inc eax
cmp ecx, 2
mov dword [esi + 0xc], eax
jne 0x4d80b9
add byte [ebx - 0x74a9d314], al
int1
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4ec56c]
push 0
lea ecx, [esp + 0x20]
call 0x519670
mov eax, dword [esi + 0xd0]
rol byte [eax], 1
add byte [eax], al
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004d7a20
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x51959e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call 0x515d8d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call 0x515d8d
push 1
push 0
push 0
mov ecx, esi
call 0x515d35
push 1
push 0
push 1
mov ecx, esi
call 0x515d35
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x5196e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
push 0
push edx
call dword [0x4ec568]
pop esi
ret 4
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x519670
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004d7a20
invalid
dec dword [ebx + 0x468b484e]
dec esp
cmp dword [esp + 0x40], 1
jne 0x4d82c2
cmp ecx, eax
jge 0x4d82c4
mov eax, ecx
cmp eax, 0xc8
jge 0x4d82d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004d8080
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4ec568]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x5196e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8