Function at 0x415780
Capabilities:
Enumerate processes
Get disk information
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x50f056
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x668]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x25a]
xor eax, eax
push ebx
push ecx
xor ebp, ebp
mov word [esp + 0x260], ax
call fcn.004f0190
push 0x228
lea edx, [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x3c], ebx
call fcn.004f0190
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x544fac
mov dword [esp + 0x1c], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x670], ebx
call fcn.004155d0
call fcn.00415730
test eax, eax
je 0x415976
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x206
lea ecx, [esp + 0x462]
xor eax, eax
push ebx
mov byte [esp + 0x678], 1
push ecx
mov word [esp + 0x468], ax
call fcn.004f0190
movzx edx, word [esi]
push edx
push 0x51ebbc
lea edi, [esp + 0x2c]
call fcn.00418bf0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push 0x104
lea eax, [esp + 0x460]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0x45c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4158a0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x45c]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00407680
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4158fe
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41596c
cmp ecx, eax
jg 0x41596c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4158fe
cmp ax, 0x2f
je 0x4158fe
mov edx, 0x51eac0
lea edi, [esp + 0x14]
call fcn.004179a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415903
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x415942
lea edx, [esi + 6]
test edx, edx
jne 0x415922
xor eax, eax
jmp 0x415936
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415927
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00418990
mov byte [esp + 0x670], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41599e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41599e
push 0x80070057
call fcn.004029f0
cmp esi, ebx
jne 0x41597e
xor eax, eax
jmp 0x415992
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415983
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00407680
mov ecx, dword [esp + 0x14]
push ecx
push str.KillProcessByPath_path:_ws
mov ecx, 0x546980
call fcn.004df340
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x415af9
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x415af2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x20]
je 0x415ad4
test eax, eax
je 0x415ad4
cmp eax, 4
je 0x415ad4
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x415ad4
call fcn.00415730
test eax, eax
je 0x415a59
mov eax, dword [0x546354]
test eax, eax
je 0x415a59
push 0x104
lea ecx, [esp + 0x258]
push ecx
push ebp
call eax
jmp 0x415a74
mov eax, dword [0x546350]
test eax, eax
je 0x415acb
push 0x104
lea edx, [esp + 0x258]
push edx
push 0
push ebp
call eax
test eax, eax
je 0x415acb
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 0xc]
jne 0x415acb
lea eax, [esp + 0x254]
push eax
push ecx
call fcn.004ebf9c
add esp, 8
test eax, eax
jne 0x415acb
push eax
push ebp
call ebx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x254]
push ecx
push edx
mov esi, eax
call edi
push eax
push esi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
mov ecx, 0x546980
call fcn.004df340
add esp, 0x14
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x415acb
inc dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
lea eax, [esp + 0x24]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4159fe
test ebp, ebp
je 0x415af2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x670], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415b24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x668]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.004ea10a
add esp, 0x660
ret