Function at 0x405c70
Capabilities:
Enumerate processes
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4adea8
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x2a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2b4]
xor ebx, ebx
mov dword [esp + 0x30], ebp
cmp ebp, ebx
je 0x405fff
mov ecx, 0x4b49f8
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405ced
cmp dx, bx
je 0x405ce9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405ced
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405cc7
xor eax, eax
jmp 0x405cf2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405fff
xor eax, eax
mov word [esp + 0x18], ax
mov edi, 7
push 0x2f
mov eax, str.CSystemCommands::KillAllProcesses__process_name
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
call fcn.00401f30
mov dword [esp + 0x2ac], 1
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405d40
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x3c]
call fcn.00401f30
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov byte [esp + 0x2b0], 2
call fcn.004035d0
mov ebp, 8
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x405d8a
mov eax, dword [esp + 0x3c]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2ac], 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
cmp dword [esp + 0x2c], ebp
jb 0x405db7
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
mov word [esp + 0x18], ax
push 0x2a
mov eax, str.CSystemCommands::KillAllProcesses__timeout
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
call fcn.00401f30
or ecx, 0xffffffff
mov dword [esp + 0x2ac], 3
call fcn.00403270
mov dword [esp + 0x2ac], 0xffffffff
cmp dword [esp + 0x2c], ebp
jb 0x405e07
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491101
add esp, 4
push ebx
call fcn.00491f39
add esp, 4
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
lea edx, [esp + 0x78]
mov esi, eax
push ebx
push edx
mov dword [esp + 0x40], esi
call fcn.004957a0
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push esi
mov dword [esp + 0x78], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.004925f5
add esp, 8
test eax, eax
jne 0x405fa2
mov word [esp + 0x18], ax
push 0x33
mov eax, str.CSystemCommands::KillAllProcesses__about_to_kill...
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x2b0], 4
call fcn.00403780
add esp, 4
mov dword [esp + 0x2ac], 0xffffffff
cmp dword [esp + 0x2c], ebp
jb 0x405eb2
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
mov eax, dword [esp + 0x78]
push eax
push ebx
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x405fa0
xor ecx, ecx
push 0x3a
mov eax, str.CSystemCommands::KillAllProcesses__open_process_succeeded.
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
call fcn.00401f30
mov edx, esi
push edx
mov dword [esp + 0x2b0], 5
call fcn.00403780
add esp, 4
mov dword [esp + 0x2ac], 0xffffffff
cmp dword [esp + 0x2c], ebp
jb 0x405f24
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
xor ecx, ecx
push 0x34
mov eax, str.CSystemCommands::KillAllProcesses__Terminated_result
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
call fcn.00401f30
cmp edi, 1
sete dl
movzx eax, dl
push eax
mov ecx, esi
push ecx
mov dword [esp + 0x2b4], 6
call fcn.00403190
add esp, 8
mov dword [esp + 0x2ac], 0xffffffff
cmp dword [esp + 0x2c], ebp
jb 0x405f94
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 7
xor ebx, ebx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x70]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405e44
mov ecx, dword [esp + 0x30]
call fcn.00405a50
xor edx, edx
push 0x27
mov eax, str.CSystemCommands::KillAllProcesses__end.
lea esi, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], dx
call fcn.00401f30
mov eax, esi
push eax
mov dword [esp + 0x2b0], edi
call fcn.00403780
add esp, 4
cmp dword [esp + 0x6c], ebp
jb 0x406048
mov ecx, dword [esp + 0x58]
jmp 0x40603f
xor edx, edx
push 0x3a
mov eax, str.CSystemCommands::KillAllProcesses__not_valid_process_name.
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.00401f30
mov eax, esi
push eax
mov dword [esp + 0x2b0], ebx
call fcn.00403780
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x406048
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491101
add esp, 4
mov ecx, dword [esp + 0x2a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.0049110c
add esp, 0x29c
ret