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

Disassembly:
push 0xffffffffffffffff
push 0x44154b
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f1a0]
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 edi, edi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.0042ca00
add esp, 0xc
push edi
push 2
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40907f
xor al, al
jmp 0x40922f
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x68c], edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4091a5
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x3c], edx
je 0x409192
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x470]
push 0x104
push ecx
call fcn.0042d64c
add esp, 0xc
mov eax, ebp
call fcn.00401625
push eax
lea edx, [esp + 0x268]
push 0x104
push edx
call fcn.0042d64c
lea eax, [esp + 0x270]
add esp, 0xc
push eax
call fcn.0043da2c
lea ecx, [esp + 0x470]
add esp, 4
push ecx
mov esi, eax
call fcn.0043da2c
add esp, 4
lea esp, [esp]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x409136
cmp cx, di
je 0x409132
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x409136
add eax, 4
add esi, 4
cmp cx, di
jne 0x409110
xor eax, eax
jmp 0x40913b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x409192
mov edx, dword [esp + 0x1c]
cmp edx, edi
mov esi, dword [esp + 0x20]
je 0x409170
mov ecx, dword [esp + 0x24]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x409170
mov edx, dword [esp + 0x3c]
mov eax, esi
add eax, 4
mov dword [esi], edx
mov dword [esp + 0x20], eax
jmp 0x409192
cmp edx, esi
jbe 0x409179
call fcn.0042c040
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.00409660
lea edx, [esp + 0x34]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4090a5
push ebx
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 0x4091c5
call fcn.0042c040
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
mov edi, eax
jbe 0x4091d2
call fcn.0042c040
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 0x40921c
cmp edi, dword [esp + 0x20]
jb 0x4091f1
call fcn.0042c040
mov eax, dword [edi]
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40920c
push 0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [esp + 0x20]
jb 0x409217
call fcn.0042c040
add edi, 4
jmp 0x4091e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40922d
push eax
call fcn.0042bbfa
add esp, 4
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.0042b9ba
add esp, 0x674
ret