Function at 0x401720
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x436369
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4475a0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475a0]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x174], ebp
call fcn.004110f8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40177e
push 0x80004005
call fcn.004033c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
mov byte [esp + 0x174], 1
call fcn.004110f8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4017b0
push 0x80004005
call fcn.004033c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x17c]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x178], 3
call fcn.004039e0
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40180b
push esi
lea ecx, [esp + 0x30]
call fcn.00403770
mov ebx, dword [esp + 0x2c]
lea edx, [esi + 1]
push edx
push ebx
call fcn.004215fd
push eax
call fcn.00403230
add esp, 0xc
cmp esi, ebp
jl 0x4019ce
cmp esi, dword [ebx - 8]
jg 0x4019ce
push ebp
mov dword [ebx - 0xc], esi
push 2
mov byte [esi + ebx], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401945
lea ecx, [ecx]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x34]
push 0x43cbdc
push eax
call fcn.004039c0
mov edi, dword [esp + 0x3c]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
add esp, 0xc
or eax, ecx
jge 0x40189d
push esi
lea ecx, [esp + 0x34]
call fcn.00403770
mov edi, dword [esp + 0x30]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.004215fd
push eax
call fcn.00403230
add esp, 0xc
cmp esi, ebp
jl 0x4019ce
cmp esi, dword [edi - 8]
jg 0x4019ce
push ebx
mov dword [edi - 0xc], esi
push edi
mov byte [esi + edi], 0
call fcn.00421b43
add esp, 8
cmp eax, ebp
sete al
test al, al
je 0x40192e
mov edx, dword [esp + 0x20]
cmp edx, ebp
mov esi, dword [esp + 0x24]
je 0x40190c
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40190c
mov edx, dword [esp + 0x44]
mov eax, esi
add eax, 4
mov dword [esi], edx
mov dword [esp + 0x24], eax
jmp 0x40192e
cmp edx, esi
jbe 0x401915
call fcn.00421a17
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x2c]
call fcn.00402930
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401860
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x18], ebp
jbe 0x401960
call fcn.00421a17
mov eax, dword [esp + 0x24]
mov edi, edi
cmp dword [esp + 0x20], eax
mov ebp, eax
jbe 0x401971
call fcn.00421a17
mov eax, dword [esp + 0x24]
cmp esi, ebp
je 0x4019d8
cmp esi, eax
jb 0x401982
call fcn.00421a17
mov eax, dword [esp + 0x24]
cmp dword [esi], 0
je 0x4019bc
cmp esi, eax
jb 0x401990
call fcn.00421a17
mov ecx, dword [esi]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4019b1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x4019d8
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x4019c9
call fcn.00421a17
mov eax, dword [esp + 0x24]
add esi, 4
jmp 0x401960
push 0x80070057
call fcn.004033c0
mov byte [esp + 0x174], 2
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x4019f3
push eax
call fcn.00405e50
add esp, 4
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x174], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x174], 0xffffffff
mov eax, dword [esp + 0x17c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00421100
add esp, 0x164
ret