Function at 0x4d656a
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x258
mov word [esp + 0xc], dx
shr edx, 0x10
mov dword [esp], ecx
mov byte [esp + 0xe], dl
call fcn.004cd5c0
lea edi, [esp + 0x98]
mov esi, edx
mov edx, eax
mov ecx, edi
push 0x19db1de
push 0xd53e8000
push esi
call fcn.004cd640
add esp, 0xc
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x4d65ba
xor eax, eax
xor ecx, ecx
jmp 0x4d65c8
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edi, 0x80000
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov ecx, edi
call fcn.00440a54
and dword [esp + 0x30], 0
mov ebx, eax
mov esi, edx
lea eax, [esp + 0x30]
push eax
push edi
push edx
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x4d6617
mov edx, esi
mov esi, dword [esp + 0x30]
mov ecx, ebx
call fcn.0049160f
add edi, edi
lea eax, [esi + 0x2800]
test esi, esi
cmovne edi, eax
jmp 0x4d65d5
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], esi
push 4
pop edx
mov ecx, 0x7d0
call fcn.004912aa
test eax, eax
je 0x4d6b3c
lea edi, [esp + 0x34]
xor edx, edx
xor esi, esi
mov dword [edi], 0x1f4
mov dword [edi + 4], eax
and dword [edi + 8], 0
mov ecx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x34]
lea ebx, [ecx + esi]
jne 0x4d6665
mov ecx, edi
call fcn.0043c0f4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + edx*4], ebx
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
mov ecx, dword [ebx]
add esi, ecx
test ecx, ecx
jne 0x4d6649
mov edi, dword [esp]
cmp byte [esp + 0xc], 0
mov dword [esp + 0x6c], edi
je 0x4d669b
lea ecx, [edi + 0x40]
xor edx, edx
xor esi, esi
call fcn.004d6bb8
mov ecx, dword [edi + 0x88]
jmp 0x4d669f
xor ecx, ecx
xor esi, esi
mov ebx, dword [esp + 0x3c]
movsd xmm0, qword [esp + 0x34]
lea eax, [esp + 0x90]
and dword [esp + 0x18], 0
mov dword [esp + 0x1c], 8
and dword [esp + 0x20], 0
mov dword [eax], ecx
lea ecx, [esp + 0x6c]
mov dword [eax + 4], esi
mov dword [esp + 0xb0], ebx
movsd qword [esp + 0xa8], xmm0
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov edi, dword [esp + 0xa8]
cmp edi, ebx
jb 0x4d6b4b
mov eax, dword [esp + 0xac]
mov ecx, ebx
mov dword [esp + 8], eax
call fcn.004d3f5f
lea esi, [esp + 0x98]
lea ecx, [esp + 0x84]
mov edx, ebx
push esi
mov esi, dword [esp + 0xc]
push ebx
push esi
push 1
push eax
push 0
call fcn.004d2d63
add esp, 0x18
test edi, edi
je 0x4d6757
shl edi, 2
mov ecx, esi
mov edx, edi
push 4
call fcn.00403400
pop eax
lea ebx, [esp + 0x84]
mov ecx, ebx
call fcn.004d4340
lea ecx, [esp + 0x18]
mov edx, eax
call fcn.004d41f8
mov eax, dword [ebx + 8]
movq xmm0, qword [ebx]
lea ecx, [esp + 0x78]
mov dword [ecx + 8], eax
movq qword [ecx], xmm0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x78]
call fcn.004d418f
cmp dword [esp + 0x44], 0
je 0x4d67fd
mov ebx, dword [esp + 0x48]
movq xmm0, qword [esp + 0x40]
lea ecx, [esp + 0x18]
movq qword [esp + 0x98], xmm0
mov dword [esp + 0xa0], ebx
mov edx, ebx
mov esi, dword [esp + 0x9c]
call fcn.004d41f8
mov edi, dword [esp + 0x20]
imul ecx, ebx, 0xe0
imul eax, edi, 0xe0
add eax, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.004fea40
add esp, 0xc
and dword [esp + 0xa0], 0
add edi, ebx
lea ecx, [esp + 0x98]
mov dword [esp + 0x20], edi
call fcn.004d1077
jmp 0x4d6782
lea ecx, [esp + 0x78]
call fcn.004d2d05
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
imul ecx, dword [esp + 0x20], 0xe0
mov dword [esp + 0x54], eax
lea eax, [esi + ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 0x1b0]
push 0xd
pop edi
lea edx, [esp + 0x17c]
mov dword [esp + 0x50], esi
test ecx, ecx
je 0x4d6a8e
mov ebx, dword [esi + 0xa0]
cmp ebx, 2
je 0x4d6a88
mov dword [esp + 0x28], ebx
mov dword [esp + 0x68], ecx
push 0xa0
push esi
push eax
mov ebx, edi
mov edi, edx
call fcn.004fea40
add esp, 0xc
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x64], esi
mov ecx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xa8]
add esi, 0xac
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp]
mov ebx, eax
mov dword [esp + 0x40], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push eax
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.004d2904
add esp, 0xc
mov ecx, dword [esp + 8]
mov esi, edx
mov dword [esp + 0x10], eax
mov edx, eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x18], esi
push esi
call fcn.004d29a4
pop ecx
pop edx
test eax, eax
je 0x4d6959
mov esi, eax
lea edi, [eax + 8]
push 0xe0
push edi
lea eax, [esp + 0xa0]
push eax
call fcn.004fea40
add esp, 0xc
push 0xa0
lea eax, [esp + 0x1b4]
push eax
push edi
call fcn.004fea40
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], ebx
add esi, 0xb4
push 0xd
pop ecx
lea edx, [esp + 0x17c]
mov edi, esi
mov esi, edx
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x138], 2
je 0x4d6a65
lea ecx, [esp + 0x98]
call fcn.004d10c5
lea edx, [esp + 0x17c]
jmp 0x4d6a65
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], eax
push 0xa0
lea eax, [esp + 0x1b4]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.004fea40
add esp, 0xc
mov ecx, dword [edi + 0x10]
mov ebx, dword [edi + 0x1c]
mov edx, ebx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.0049fe3b
pop ecx
pop edx
mov cl, byte [ebx + eax]
cmp dword [edi + 0x14], 0
mov esi, eax
jne 0x4d69dc
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, ecx
and al, 1
je 0x4d69e4
mov esi, dword [esp]
mov byte [esp + 7], cl
mov ecx, dword [esp + 8]
mov edx, esi
call fcn.0050dee2
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
push ebx
push edi
call fcn.0049fe3b
mov cl, byte [esp + 0xf]
add esp, 8
mov esi, eax
jmp 0x4d69e4
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
movzx eax, cl
mov ecx, dword [esp + 8]
mov edx, esi
push ebx
push edi
push eax
call fcn.0044764b
add esp, 0xc
mov eax, dword [esp]
neg esi
imul esi, esi, 0xe8
mov ebx, dword [eax + 0x1c]
mov eax, dword [esp + 0x5c]
lea edi, [ebx + esi - 0xe4]
mov dword [edi - 4], eax
push 0xa4
lea eax, [esp + 0x9c]
push eax
push edi
call fcn.004fea40
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
mov dword [edi + 0xa4], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], ecx
lea edi, [ebx + esi - 0x34]
push 0xd
pop ecx
lea edx, [esp + 0x17c]
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x138], 2
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x1b0]
add esi, 0xe0
add ecx, 0xffffff20
push 0xd
pop edi
jmp 0x4d6840
add esi, 0xe0
mov eax, dword [esp + 0x4c]
mov ecx, 0xe0
xor edx, edx
sub eax, esi
div ecx
mov ecx, esi
mov edx, eax
call fcn.004d10a8
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
call fcn.004d1091
mov edx, dword [esp]
lea esi, [esp + 0x98]
mov ebx, 0xe8
mov eax, dword [edx + 0x1c]
lea ecx, [eax + 0x10]
movdqa xmm0, xmmword [eax]
mov dword [esi], ecx
mov ecx, dword [edx + 0x10]
lea ecx, [ecx + eax + 1]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 0x18]
mov dword [esi + 8], eax
pmovmskb eax, xmm0
not eax
mov word [esi + 0xc], ax
mov dword [esi + 0x10], ecx
mov ecx, esi
call fcn.004d4527
test eax, eax
je 0x4d6b27
cmp byte [eax - 8], 0
mov edi, eax
mov byte [eax - 8], 0
jne 0x4d6aeb
mov eax, dword [esp]
mov eax, dword [eax + 0x1c]
sub eax, edi
cdq
idiv ebx
mov ecx, dword [esp + 8]
mov edx, eax
call fcn.00445fbe
add edi, 0xffffff20
mov ecx, edi
call fcn.004d10c5
jmp 0x4d6aeb
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
call fcn.0049160f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
pop edx
mov ecx, 0x7d0
call fcn.0050aba0
ud2
push 0x2f
pop edx
mov ecx, str.assertion_failed:_vec.capacity_____start___len.cargo_registry_srcindex.crates.io_1cd66030c949c28d_rayon_1.7.0_src_vec.rs
push 0x5472f8
call fcn.0050af40
pop eax
ud2