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

Disassembly:
push 0xffffffffffffffff
push 0x50f8d6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
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.004f08c0
push 0x228
lea edx, [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x3c], ebx
call fcn.004f08c0
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x546fac
mov dword [esp + 0x1c], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x670], ebx
call fcn.00415b30
call fcn.00415c90
test eax, eax
je 0x415ed6
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
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.004f08c0
movzx edx, word [esi]
push edx
push 0x51fbec
lea edi, [esp + 0x2c]
call fcn.004190d0
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 0x415e00
sub eax, edx
sar eax, 1
lea edx, [esp + 0x45c]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.004076e0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x415e5e
lea ecx, [eax - 1]
test ecx, ecx
jl 0x415ecc
cmp ecx, eax
jg 0x415ecc
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x415e5e
cmp ax, 0x2f
je 0x415e5e
mov edx, 0x51faf0
lea edi, [esp + 0x14]
call fcn.00417f00
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415e63
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x415ea2
lea edx, [esi + 6]
test edx, edx
jne 0x415e82
xor eax, eax
jmp 0x415e96
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415e87
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00418e70
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 0x415efe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x415efe
push 0x80070057
call fcn.00402a90
cmp esi, ebx
jne 0x415ede
xor eax, eax
jmp 0x415ef2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415ee3
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.004076e0
mov ecx, dword [esp + 0x14]
push ecx
push str.KillProcessByPath_path:_ws
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x416059
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x416052
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 0x416034
test eax, eax
je 0x416034
cmp eax, 4
je 0x416034
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x416034
call fcn.00415c90
test eax, eax
je 0x415fb9
mov eax, dword [0x548354]
test eax, eax
je 0x415fb9
push 0x104
lea ecx, [esp + 0x258]
push ecx
push ebp
call eax
jmp 0x415fd4
mov eax, dword [0x548350]
test eax, eax
je 0x41602b
push 0x104
lea edx, [esp + 0x258]
push edx
push 0
push ebp
call eax
test eax, eax
je 0x41602b
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 0xc]
jne 0x41602b
lea eax, [esp + 0x254]
push eax
push ecx
call fcn.004ec6cc
add esp, 8
test eax, eax
jne 0x41602b
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, 0x548980
call fcn.004dfa90
add esp, 0x14
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x41602b
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 0x415f5e
test ebp, ebp
je 0x416052
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 0x416084
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.004ea83a
add esp, 0x660
ret