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

Disassembly:
push 0xffffffffffffffff
push 0x49eb26
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
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.004820f0
push 0x228
lea edx, [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x3c], ebx
call fcn.004820f0
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x4c45ac
mov dword [esp + 0x1c], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x670], ebx
call fcn.00410ea0
call fcn.00411000
test eax, eax
je 0x411246
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
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.004820f0
movzx edx, word [esi]
push edx
push 0x4a9344
lea edi, [esp + 0x2c]
call fcn.004128d0
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 0x411170
sub eax, edx
sar eax, 1
lea edx, [esp + 0x45c]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.004076a0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4111ce
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41123c
cmp ecx, eax
jg 0x41123c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4111ce
cmp ax, 0x2f
je 0x4111ce
mov edx, 0x4a9248
lea edi, [esp + 0x14]
call fcn.004120c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4111d3
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x411212
lea edx, [esi + 6]
test edx, edx
jne 0x4111f2
xor eax, eax
jmp 0x411206
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4111f7
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00412690
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 0x41126e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41126e
push 0x80070057
call fcn.00402890
cmp esi, ebx
jne 0x41124e
xor eax, eax
jmp 0x411262
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411253
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.004076a0
mov ecx, dword [esp + 0x14]
push ecx
push str.KillProcessByPath_path:_ws
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x4113c9
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4113c2
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 0x4113a4
test eax, eax
je 0x4113a4
cmp eax, 4
je 0x4113a4
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4113a4
call fcn.00411000
test eax, eax
je 0x411329
mov eax, dword [0x4c56a0]
test eax, eax
je 0x411329
push 0x104
lea ecx, [esp + 0x258]
push ecx
push ebp
call eax
jmp 0x411344
mov eax, dword [0x4c569c]
test eax, eax
je 0x41139b
push 0x104
lea edx, [esp + 0x258]
push edx
push 0
push ebp
call eax
test eax, eax
je 0x41139b
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 0xc]
jne 0x41139b
lea eax, [esp + 0x254]
push eax
push ecx
call fcn.0047e0cc
add esp, 8
test eax, eax
jne 0x41139b
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, 0x4c5908
call fcn.00472890
add esp, 0x14
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x41139b
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 0x4112ce
test ebp, ebp
je 0x4113c2
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 0x4113f4
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.0047cee5
add esp, 0x660
ret