Function at 0x4e5704
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
call fcn.00406a78
xor eax, eax
push ebp
push 0x4e5b08
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 5
cmp byte [ebp + 8], 0
jne 0x4e5742
xor eax, eax
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [0x456970]
call fcn.00460338
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x456970]
call fcn.00460338
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x456970]
call fcn.00460338
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x456970]
call fcn.00460338
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4e5ae3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4e5b28
mov edx, dword [0x4f9c40]
mov eax, dword [ebp - 0x14]
call fcn.00461414
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, 0x64
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 0xc]
sub edx, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
xor eax, eax
call fcn.00432d90
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_CopyRect
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00460c58
push eax
mov eax, dword [ebp - 0x18]
call fcn.00460c58
lea edx, [ebp - 0x3c]
pop ecx
call fcn.0045a5f4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
xor eax, eax
call fcn.00432d90
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_CopyRect
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00460c58
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00460c58
lea edx, [ebp - 0x3c]
pop ecx
call fcn.0045a5f4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
xor eax, eax
call fcn.00432d90
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_CopyRect
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00460c58
push eax
mov eax, dword [ebp - 0x20]
call fcn.00460c58
lea edx, [ebp - 0x3c]
pop ecx
call fcn.0045a5f4
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x3c]
cmp byte [ebp + 8], 0
je 0x4e5942
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4e5942
inc ebx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
imul dword [ebp - 0x2c]
add edi, eax
mov ecx, edi
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x3c]
inc dword [ebp - 0x2c]
dec ebx
jne 0x4e5916
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
imul dword [ebp - 0x28]
add ebx, eax
mov ecx, ebx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [esi + 0x48]
mov dl, 1
call fcn.00459f98
cmp byte [ebp + 8], 0
je 0x4e5a11
mov ebx, dword [esi + 0x40]
mov edx, 0x4e5b40
mov eax, ebx
call fcn.004595e8
mov edx, 9
mov eax, ebx
call fcn.00459660
mov edx, 0x3efdfb
mov eax, ebx
call fcn.004592c4
movzx edx, byte [0x4e5b50]
mov eax, ebx
call fcn.0045968c
lea eax, [ebp - 4]
mov edx, 0x4e5b60
call fcn.00406ae4
mov dword [ebp - 0x24], 0x23
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x24]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x88]
lea eax, [ebp - 4]
mov edx, 0x4e5bb0
call fcn.00406ae4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045a098
add ebx, eax
add ebx, 5
mov eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x24]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov ebx, dword [esi + 0x40]
mov edx, 0x10
mov eax, ebx
call fcn.00459660
mov edx, 0xffffff
mov eax, ebx
call fcn.004592c4
movzx edx, byte [0x4e5b50]
mov eax, ebx
call fcn.0045968c
lea eax, [ebp - 4]
mov edx, dword [ebp + 0xc]
call fcn.00406ae4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045a0b8
mov edx, dword [ebp - 8]
sub edx, eax
sar edx, 1
jns 0x4e5a5b
adc edx, 0
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 0x28]
dec edx
imul edx
add ebx, eax
add ebx, 0xf
mov eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x24]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x24]
add ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
imul dword [ebp - 0x28]
add ebx, eax
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5aea
mov eax, dword [ebp - 0x14]
call fcn.00404ea8
mov eax, dword [ebp - 0x18]
call fcn.00404ea8
mov eax, dword [ebp - 0x1c]
call fcn.00404ea8
mov eax, dword [ebp - 0x20]
call fcn.00404ea8
ret