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

Disassembly:
push 0xffffffffffffffff
push 0x445f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x4551a0]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551a0]
xor eax, esp
push eax
lea eax, [esp + 0x67c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov dword [esp + 0x2c], eax
xor ebx, ebx
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004323d0
add esp, 0xc
push ebx
push 2
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c34f
xor al, al
jmp 0x40c518
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x68c], ebx
call sub.KERNEL32.dll_Process32FirstW
cmp eax, ebx
je 0x40c475
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x3c], edx
je 0x40c462
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x470]
push 0x104
push ecx
call fcn.00431583
add esp, 0xc
mov eax, ebp
call fcn.004016e4
push eax
lea edx, [esp + 0x268]
push 0x104
push edx
call fcn.00431583
lea eax, [esp + 0x270]
add esp, 0xc
push eax
call fcn.00441e2c
lea ecx, [esp + 0x470]
add esp, 4
push ecx
mov esi, eax
call fcn.00441e2c
add esp, 4
lea esp, [esp]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x40c406
cmp cx, bx
je 0x40c402
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x40c406
add eax, 4
add esi, 4
cmp cx, bx
jne 0x40c3e0
xor eax, eax
jmp 0x40c40b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c462
mov edx, dword [esp + 0x1c]
cmp edx, ebx
mov esi, dword [esp + 0x20]
je 0x40c440
mov ecx, dword [esp + 0x24]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40c440
mov edx, dword [esp + 0x3c]
mov eax, esi
add eax, 4
mov dword [esi], edx
mov dword [esp + 0x20], eax
jmp 0x40c462
cmp edx, esi
jbe 0x40c449
call fcn.00430697
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x28]
call fcn.0040b330
lea edx, [esp + 0x34]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, ebx
jne 0x40c375
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x28], ecx
jbe 0x40c495
call fcn.00430697
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
mov edi, eax
jbe 0x40c4a2
call fcn.00430697
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, edi
cmp edi, dword [esp + 0x28]
je 0x40c4ec
cmp edi, dword [esp + 0x20]
jb 0x40c4c1
call fcn.00430697
mov eax, dword [edi]
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40c4dc
push 0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [esp + 0x20]
jb 0x40c4e7
call fcn.00430697
add edi, 4
jmp 0x40c4b0
mov dword [esp + 0x684], 0xffffffff
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x40c50a
push eax
call fcn.0043004e
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov al, 1
mov ecx, dword [esp + 0x67c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.0042fe0e
add esp, 0x674
ret