Function at 0x4e0b7c
Capabilities:
Enumerate processes
Get disk information
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x658], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x644], esi
push 0x206
mov word [ebp - 0x20c], ax
mov ebx, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004f3a90
push 0x228
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x640], edi
push edi
push eax
call fcn.004f3a90
add esp, 0x18
mov dword [ebp - 0x64c], edi
call fcn.004c5a90
push eax
lea ecx, [ebp - 0x648]
call fcn.004c65c1
mov dword [ebp - 0x654], edi
call fcn.004e0749
test eax, eax
je 0x4e0cb4
call fcn.004c5a90
push eax
lea ecx, [ebp - 0x650]
call fcn.004c65c1
xor eax, eax
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.004f3a90
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x650]
push 0x54f364
push eax
call fcn.004c6f31
mov esi, dword [ebp - 0x650]
lea eax, [ebp - 0x414]
add esp, 0x18
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x648]
call fcn.004c791f
lea eax, [ebp - 0x648]
push eax
call fcn.004e20f3
push dword [ebp - 0x644]
call fcn.004f353f
pop ecx
pop ecx
cmp eax, 3
jbe 0x4e0caa
mov eax, dword [ebp - 0x644]
lea ecx, [ebp - 0x648]
add eax, 6
push eax
call fcn.004c67ff
lea ecx, [esi - 0x10]
call fcn.004c77e2
jmp 0x4e0cc0
push esi
lea ecx, [ebp - 0x648]
call fcn.004c791f
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [ebp - 0x648]
mov dword [ebp - 0x650], eax
cmp eax, 0xffffffff
je 0x4e0e09
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x640], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4e0dfd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x648], ecx
mov eax, dword [ebp - 0x638]
cmp eax, ecx
je 0x4e0e5d
test eax, eax
je 0x4e0e5d
cmp eax, 4
je 0x4e0e5d
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4e0e5d
call fcn.004e0749
test eax, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
je 0x4e0d5d
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
jmp 0x4e0d64
push edi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4e0e54
cmp dword [ebp + 0x10], edi
je 0x4e0d8f
cmp eax, dword [esi - 0xc]
jb 0x4e0e54
push dword [esi - 0xc]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004fc4a1
add esp, 0xc
jmp 0x4e0da7
cmp eax, dword [esi - 0xc]
jne 0x4e0e54
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004f5a84
pop ecx
pop ecx
test eax, eax
jne 0x4e0e54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4e0e42
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4e0e54
cmp dword [ebp - 0x644], 0x103
jne 0x4e0e54
xor edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x654], eax
test ebx, ebx
je 0x4e0dfd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x658]
test ecx, ecx
je 0x4e0e1b
mov eax, dword [ebp - 0x64c]
mov dword [ecx], eax
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi - 0x10]
call fcn.004c77e2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
inc dword [ebp - 0x64c]
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
lea eax, [ebp - 0x640]
push eax
push dword [ebp - 0x650]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4e0df2
mov ecx, dword [ebp - 0x648]
jmp 0x4e0d0a