Function at 0x4013f0
Capabilities:
Enumerate processes
Print debug messages
Terminate process
Terminate process by name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402078
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov edi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401532
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40146b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ebx, [esi + 0x24]
lea ecx, [esp + 0x10]
push ebx
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4014ee
mov ecx, dword [esi + 8]
push ecx
push eax
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
jne 0x401638
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401521
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40155a
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4014f9
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4015b7
lea ecx, [esp + 0x28]
call fcn.00401d82
mov byte [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea ecx, [esp + 0x30]
push str.Open__s_failed__code:_lu
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0x10
push edx
call ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x401637
lea ecx, [esp + 0x28]
call fcn.00401d82
mov byte [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea eax, [esp + 0x30]
push str.Kill__s_failed__code:_lu
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
add esp, 0x10
push ecx
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x401542