Function at 0x401d40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x380
call dword [0x4185bc]
mov dword [esp + 4], 0x417000
mov dword [esp], eax
call dword [0x4185c8]
lea eax, [ebp - 0x214]
shr eax, 0x10
sub esp, 8
mov dword [ebp - 0x370], 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 0x402098
lea eax, [ebp - 0x238]
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x238], 0x22c
mov dword [ebp - 0x368], eax
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
je 0x402110
mov dword [ebp - 0x36c], 0
jmp 0x401e41
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 0x401e24
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 - 0x36c], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x368]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._Process32NextW_8
sub esp, 8
test eax, eax
je 0x402078
mov eax, dword [ebp - 0x230]
mov edx, dword fs:[0x18]
cmp dword [edx + 0x20], eax
je 0x401e24
cmp eax, dword [section..bss]
je 0x401e24
test byte [section..data], 8
je 0x401dd8
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x4020b0
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40b0ae
sub esp, 8
test eax, eax
jne 0x401f8c
cmp word [ebp - 0x214], 0
je 0x4020ea
nop
lea esi, [esi]
mov ebx, dword [ebp - 0x368]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 0x26], 0
jne 0x401eb0
mov ecx, 0x224c
mov dword [ebp - 0x374], edi
lea esi, [ebp - 0x214]
mov word [ebp - 0x364], cx
lea ecx, [ebp - 0x362]
jmp 0x401f1b
cmp ax, 9
je 0x401fe8
cmp ax, 0xa
jne 0x402006
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x401f58
lea ebx, [ebp - 0x242]
cmp ecx, ebx
ja 0x401f58
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x401fd0
jbe 0x401ee8
cmp ax, 0x22
je 0x402060
cmp ax, 0x5c
jne 0x401ff9
mov ebx, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], bx
test edx, edx
jg 0x401f0f
lea esi, [esi]
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x374]
test eax, eax
jle 0x402103
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x230]
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], 0x40a000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x230]
jmp 0x401dd8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401f08
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401f08
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4020e0
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 0x401f08
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401f08
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov esi, dword [ebp - 0x36c]
sub esp, 4
test esi, esi
jne 0x401d78
lea esi, [esi]
mov eax, dword [section..bss]
test eax, eax
je 0x4020a8
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x402121
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x214]
mov dword [esp], 0x40b0a1
mov dword [ebp - 0x374], eax
movzx eax, word [ebp - 0x374]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x401f8c
mov byte [ecx], al
add ecx, 1
jmp 0x401f08
mov eax, 0x224c
mov byte [ebp - 0x362], 0x22
lea ecx, [ebp - 0x362]
mov word [ebp - 0x364], ax
lea eax, [ecx + 1]
jmp 0x401f79
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x402098
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 0x4020a8
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 0x4020a8