Function at 0x4cea56
Capabilities:
Enumerate processes
Get disk information
Terminate process

Disassembly:
push 0x660
mov eax, 0x533799
call fcn.004f1db2
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push str.KillProcessByPath_Begin_r_n
push 0x5aca00
mov dword [ebp - 0x66c], eax
call fcn.004dddd9
xor ecx, ecx
xor eax, eax
mov esi, 0x206
mov word [ebp - 0x218], ax
push esi
push ecx
lea eax, [ebp - 0x216]
mov dword [ebp - 0x664], ecx
push eax
mov ebx, ecx
call fcn.004f28b0
xor eax, eax
push 0x228
push eax
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x648]
push eax
call fcn.004f28b0
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x660], eax
call fcn.00437474
push eax
lea ecx, [ebp - 0x658]
call fcn.0043a4ef
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x668], eax
call fcn.004d1491
call fcn.004ce6e9
test eax, eax
je 0x4cebcc
call fcn.00437474
push eax
lea ecx, [ebp - 0x650]
call fcn.0043a4ef
xor eax, eax
mov byte [ebp - 4], 1
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004f28b0
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x650]
push 0x53de8c
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x650]
lea eax, [ebp - 0x420]
add esp, 0x18
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x420]
push eax
call fcn.0043a8c3
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x658]
call fcn.0043a84a
lea eax, [ebp - 0x658]
push eax
call fcn.004cf906
pop ecx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x664]
jne 0x4ceb8e
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4cebbd
add edi, 6
push edi
call fcn.0043a8c3
pop ecx
push eax
push edi
lea ecx, [ebp - 0x658]
call fcn.004516f5
xor eax, eax
lea ecx, [esi - 0x10]
mov byte [ebp - 4], al
call fcn.00436fdb
jmp 0x4cebe0
push edi
call fcn.0043a8c3
pop ecx
push eax
push edi
lea ecx, [ebp - 0x658]
call fcn.0043a84a
mov esi, dword [ebp - 0x658]
push esi
push str.KillProcessByPath_path:_ws
push 0x5aca00
call fcn.004dddd9
add esp, 0xc
xor eax, eax
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x650], edi
cmp edi, 0xffffffff
je 0x4ced7f
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4ced78
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x664], ecx
mov eax, dword [ebp - 0x644]
cmp eax, ecx
je 0x4cee5b
test eax, eax
je 0x4cee5b
cmp eax, 4
je 0x4cee5b
push eax
xor eax, eax
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4cee5b
call fcn.004ce6e9
test eax, eax
je 0x4cec9d
mov ecx, dword [0x5ac924]
test ecx, ecx
je 0x4cec9d
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call ecx
jmp 0x4cecbc
mov eax, dword [0x5ac920]
test eax, eax
je 0x4cee50
push 0x104
lea ecx, [ebp - 0x218]
push ecx
xor ecx, ecx
push ecx
push ebx
call eax
test eax, eax
je 0x4cee50
cmp dword [ebp + 0x10], 0
je 0x4cedfc
cmp eax, dword [esi - 0xc]
jb 0x4cee50
push dword [esi - 0xc]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004f5a03
add esp, 0xc
test eax, eax
jne 0x4cee50
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4cedc2
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x654]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4cee15
cmp dword [ebp - 0x654], 0x103
jne 0x4cee50
mov dword [ebp - 0x660], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
push eax
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x5aca00
call fcn.004dddd9
add esp, 0x18
test ebx, ebx
je 0x4ced78
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x66c]
test ecx, ecx
je 0x4ced91
mov eax, dword [ebp - 0x65c]
mov dword [ecx], eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.KillProcessByPath_End_r_n
push 0x5aca00
call fcn.004dddd9
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00436fdb
mov eax, dword [ebp - 0x660]
call fcn.004f1d61
ret
inc dword [ebp - 0x65c]
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x4ceded
push str.Terminate_process_WaitForSingleObject_WAIT_OBJECT_0
push 0x5aca00
call fcn.004dddd9
pop ecx
pop ecx
jmp 0x4cee4a
cmp edi, 0x102
jne 0x4cee30
push str.Terminate_process_WaitForSingleObject_WAIT_TIMEOUT
jmp 0x4ceddf
cmp eax, dword [esi - 0xc]
jne 0x4cee50
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004f3482
pop ecx
pop ecx
jmp 0x4cecea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetExitCodeProcess_errcode_d_r_n
push 0x5aca00
call fcn.004dddd9
add esp, 0xc
jmp 0x4cee50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Terminate_process_WaitForSingleObject_dwRet_d_errcode_d_r_n
push 0x5aca00
call fcn.004dddd9
add esp, 0x10
mov edi, dword [ebp - 0x650]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ebx, eax
lea eax, [ebp - 0x64c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4ced6d
mov ecx, dword [ebp - 0x664]
jmp 0x4cec41