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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d256
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x206
xor ebx, ebx
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x664], eax
mov word [ebp - 0x218], cx
call fcn.005336c0
push 0x228
lea eax, [ebp - 0x648]
push ebx
push eax
mov dword [ebp - 0x64c], ebx
call fcn.005336c0
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x5fcb00
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x65c], ebx
call eax
add eax, 0x10
mov dword [ebp - 0x650], eax
mov dword [ebp - 4], ebx
call fcn.0046afd0
cmp dword [0x5f2aa4], 0xffffffff
jne 0x46efa0
push 0x59daf4
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x46ef87
push 0x5f2aa4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x46efa0
mov dword [0x5f2aa4], 0
test esi, esi
jne 0x46f0f8
xor eax, eax
jmp 0x46f10f
cmp dword [0x5f2aa4], 0
je 0x46ef91
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp - 0x654], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov byte [ebp - 4], 1
mov word [ebp - 0x420], cx
call fcn.005336c0
movzx eax, word [esi]
push eax
lea ecx, [ebp - 0x654]
push 0x59dd44
push ecx
call fcn.004237a0
mov edi, dword [ebp - 0x654]
add esp, 0x18
push 0x104
lea edx, [ebp - 0x420]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
jmp 0x46f020
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f020
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x650]
call fcn.00422120
mov edx, dword [ebp - 0x650]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x46f080
lea ecx, [eax - 1]
test ecx, ecx
js 0x46f0ee
cmp ecx, eax
jg 0x46f0ee
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x46f080
cmp eax, 0x2f
je 0x46f080
push 0x592324
lea ecx, [ebp - 0x650]
call fcn.004223e0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f085
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x46f0cc
lea edx, [esi + 6]
test edx, edx
jne 0x46f0a4
xor eax, eax
jmp 0x46f0bf
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f0b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x650]
call fcn.00422060
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f11c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46f11c
push 0x80070057
call fcn.00421960
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f100
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x650]
call fcn.00422120
mov esi, dword [ebp - 0x650]
cmp dword [esi - 0xc], 4
push esi
jg 0x46f165
push str.KillProcessByPath_path_to_short:_ws
push 0x5ff5f8
call fcn.00477930
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f15e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46f338
push str.KillProcessByPath_path:_ws
push 0x5ff5f8
call fcn.00477930
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x654], edi
cmp edi, 0xffffffff
je 0x46f2fd
lea ecx, [ebp - 0x64c]
push ecx
push edi
mov dword [ebp - 0x64c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46f2f6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x660], eax
mov eax, dword [ebp - 0x644]
cmp eax, dword [ebp - 0x660]
je 0x46f2ca
test eax, eax
je 0x46f2ca
cmp eax, 4
je 0x46f2ca
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x46f2ca
call fcn.0046b130
test eax, eax
je 0x46f220
mov eax, dword [0x5ff504]
test eax, eax
je 0x46f220
push 0x104
lea edx, [ebp - 0x218]
push edx
push ebx
call eax
jmp 0x46f23e
mov eax, dword [0x5ff500]
test eax, eax
je 0x46f2c1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x46f2c1
cmp dword [ebp + 0x10], 0
je 0x46f262
mov ecx, dword [esi - 0xc]
cmp eax, ecx
jle 0x46f2c1
push ecx
lea edx, [ebp - 0x218]
push edx
push esi
call fcn.00534ba0
add esp, 0xc
jmp 0x46f277
cmp eax, dword [esi - 0xc]
jne 0x46f2c1
lea edx, [ebp - 0x218]
push edx
push esi
call fcn.005347c1
add esp, 8
test eax, eax
jne 0x46f2c1
push eax
push ebx
call edi
mov ecx, dword [ebp - 0x644]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x5ff5f8
call fcn.00477930
add esp, 0x18
test esi, esi
mov esi, dword [ebp - 0x650]
jne 0x46f2bb
inc dword [ebp - 0x65c]
jmp 0x46f2c1
inc dword [ebp - 0x658]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, dword [ebp - 0x654]
lea edx, [ebp - 0x64c]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46f1c2
test ebx, ebx
je 0x46f2f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x654]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x664]
test eax, eax
je 0x46f30f
mov ecx, dword [ebp - 0x658]
mov dword [eax], ecx
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x65c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret