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

Disassembly:
push 0x660
mov eax, 0x533e40
call fcn.004f2332
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push str.KillProcessByPath_Begin_r_n
push 0x5aea00
mov dword [ebp - 0x66c], eax
call fcn.004de360
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.004f2e30
xor eax, eax
push 0x228
push eax
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x648]
push eax
call fcn.004f2e30
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.004d1969
call fcn.004cebc2
test eax, eax
je 0x4cf0a5
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.004f2e30
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x650]
push 0x53f22c
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.004cfddf
pop ecx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x664]
jne 0x4cf067
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4cf096
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 0x4cf0b9
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 0x5aea00
call fcn.004de360
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 0x4cf258
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4cf251
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x664], ecx
mov eax, dword [ebp - 0x644]
cmp eax, ecx
je 0x4cf334
test eax, eax
je 0x4cf334
cmp eax, 4
je 0x4cf334
push eax
xor eax, eax
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4cf334
call fcn.004cebc2
test eax, eax
je 0x4cf176
mov ecx, dword [0x5ae924]
test ecx, ecx
je 0x4cf176
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call ecx
jmp 0x4cf195
mov eax, dword [0x5ae920]
test eax, eax
je 0x4cf329
push 0x104
lea ecx, [ebp - 0x218]
push ecx
xor ecx, ecx
push ecx
push ebx
call eax
test eax, eax
je 0x4cf329
cmp dword [ebp + 0x10], 0
je 0x4cf2d5
cmp eax, dword [esi - 0xc]
jb 0x4cf329
push dword [esi - 0xc]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004f5f83
add esp, 0xc
test eax, eax
jne 0x4cf329
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4cf29b
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x654]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4cf2ee
cmp dword [ebp - 0x654], 0x103
jne 0x4cf329
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 0x5aea00
call fcn.004de360
add esp, 0x18
test ebx, ebx
je 0x4cf251
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 0x4cf26a
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 0x5aea00
call fcn.004de360
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00436fdb
mov eax, dword [ebp - 0x660]
call fcn.004f22e1
ret
inc dword [ebp - 0x65c]
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x4cf2c6
push str.Terminate_process_WaitForSingleObject_WAIT_OBJECT_0
push 0x5aea00
call fcn.004de360
pop ecx
pop ecx
jmp 0x4cf323
cmp edi, 0x102
jne 0x4cf309
push str.Terminate_process_WaitForSingleObject_WAIT_TIMEOUT
jmp 0x4cf2b8
cmp eax, dword [esi - 0xc]
jne 0x4cf329
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004f38f9
pop ecx
pop ecx
jmp 0x4cf1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetExitCodeProcess_errcode_d_r_n
push 0x5aea00
call fcn.004de360
add esp, 0xc
jmp 0x4cf329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Terminate_process_WaitForSingleObject_dwRet_d_errcode_d_r_n
push 0x5aea00
call fcn.004de360
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 0x4cf246
mov ecx, dword [ebp - 0x664]
jmp 0x4cf11a