Function at 0x401e10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x39c
call dword [0x417564]
mov dword [esp + 4], 0x416000
mov dword [esp], eax
call dword [0x417570]
lea eax, [ebp - 0x220]
shr eax, 0x10
sub esp, 8
mov dword [ebp - 0x384], eax
lea esi, [esi]
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x402168
lea eax, [ebp - 0x244]
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x244], 0x22c
mov dword [ebp - 0x37c], eax
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
je 0x4021e0
mov dword [ebp - 0x380], 0
jmp 0x401f11
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernelbase.dll_OpenProcess]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401ef4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
cmp eax, 1
sbb dword [ebp - 0x380], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x37c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._Process32NextW_8
sub esp, 8
test eax, eax
je 0x402148
mov eax, dword [ebp - 0x23c]
mov edx, dword fs:[0x18]
cmp dword [edx + 0x20], eax
je 0x401ef4
cmp eax, dword [section..bss]
je 0x401ef4
test byte [section..data], 8
je 0x401ea8
mov eax, dword [ebp - 0x384]
test eax, eax
je 0x402180
lea eax, [ebp - 0x220]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40a0ae
sub esp, 8
test eax, eax
jne 0x40205c
cmp word [ebp - 0x220], 0
je 0x4021ba
nop
lea esi, [esi]
mov ebx, dword [ebp - 0x37c]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 0x26], 0
jne 0x401f80
mov ecx, 0x224c
mov dword [ebp - 0x388], edi
lea esi, [ebp - 0x220]
mov word [ebp - 0x370], cx
lea ecx, [ebp - 0x36e]
jmp 0x401feb
cmp ax, 9
je 0x4020b8
cmp ax, 0xa
jne 0x4020d6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x402028
lea ebx, [ebp - 0x24e]
cmp ecx, ebx
ja 0x402028
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x4020a0
jbe 0x401fb8
cmp ax, 0x22
je 0x402130
cmp ax, 0x5c
jne 0x4020c9
mov ebx, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], bx
test edx, edx
jg 0x401fdf
lea esi, [esi]
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x388]
test eax, eax
jle 0x4021d3
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x370]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.killing_process__04lx__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.kill_processes
mov dword [esp + 4], 0x409000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x23c]
jmp 0x401ea8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401fd8
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401fd8
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4021b0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefshutdown_one_desktop]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefshutdown_one_desktop]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefshutdown_one_desktop]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefshutdown_one_desktop]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401fd8
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401fd8
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov esi, dword [ebp - 0x380]
sub esp, 4
test esi, esi
jne 0x401e48
lea esi, [esi]
mov eax, dword [section..bss]
test eax, eax
je 0x402178
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4021f1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x220]
mov dword [esp], 0x40a0a1
mov dword [ebp - 0x388], eax
movzx eax, word [ebp - 0x388]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x40205c
mov byte [ecx], al
add ecx, 1
jmp 0x401fd8
mov eax, 0x224c
mov byte [ebp - 0x36e], 0x22
lea ecx, [ebp - 0x36e]
mov word [ebp - 0x370], ax
lea eax, [ecx + 1]
jmp 0x402049
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x402168
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernelbase.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402178
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x402178