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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475be6
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x4a0800]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x288], ebx
call fcn.0040fbf0
add eax, 0xbc0
mov edi, 7
mov ecx, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40e4d6
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x30]
call fcn.00401750
push 4
push str..exe
mov ecx, esi
mov byte [esp + 0x290], 1
call fcn.0040d7c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov dword [esp + 0x24], eax
lea eax, [esp + 0x4c]
push ebx
push eax
mov dword [esp + 0x50], ebx
call fcn.00459580
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
jne 0x40e573
cmp dword [esp + 0x40], 8
jb 0x40e54e
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004383e1
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
je 0x40e56c
push eax
call fcn.004383e1
add esp, 4
xor al, al
jmp 0x40e6ba
lea edx, [esp + 0x44]
push edx
push esi
mov dword [esp + 0x4c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e5f3
lea ebx, [ebx]
lea eax, [esp + 0x68]
test eax, eax
je 0x40e5e4
lea edx, [eax + 2]
jmp 0x40e5a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e5a0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x68]
push ecx
mov edi, eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
call fcn.0040a040
test eax, eax
jne 0x40e5e4
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x4c], edx
je 0x40e5e4
lea ebx, [esp + 0x4c]
lea esi, [esp + 0x10]
call fcn.004157d0
mov esi, dword [esp + 0x24]
xor ebx, ebx
lea eax, [esp + 0x44]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e590
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edi, eax
jbe 0x40e60f
call fcn.0045697e
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov ebx, ecx
cmp dword [esp + 0x14], eax
mov esi, eax
jbe 0x40e622
call fcn.0045697e
test ebx, ebx
je 0x40e62e
lea ecx, [esp + 0x10]
cmp ebx, ecx
je 0x40e633
call fcn.0045697e
cmp edi, esi
je 0x40e680
test ebx, ebx
jne 0x40e640
call fcn.0045697e
cmp edi, dword [ebx + 8]
jb 0x40e64a
call fcn.0045697e
mov edx, dword [edi]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e66d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebx + 8]
jb 0x40e677
call fcn.0045697e
mov eax, dword [esp + 0x18]
add edi, 4
jmp 0x40e615
cmp dword [esp + 0x40], 8
jb 0x40e694
mov eax, dword [esp + 0x2c]
push eax
call fcn.004383e1
add esp, 4
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ecx
mov word [esp + 0x2c], cx
je 0x40e6b8
push eax
call fcn.004383e1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00454f77
mov esp, ebp
pop ebp
ret