Function at 0x404ea0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x19c
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x16c], ecx
test byte [0x419030], 8
jne 0x4050da
mov edi, dword [ebp - 0x170]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
sub esp, 8
test eax, eax
jne 0x404f17
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x4051fc
cmp dword [eax + 0x34], 0x217
jne 0x4051c1
mov edx, dword [ebp - 0x16c]
movzx ebx, word [edx]
test bx, bx
je 0x405388
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404f30
sub edx, dword [ebp - 0x16c]
sar edx, 1
inc edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404f87
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea edi, [ecx + edi*4]
lea esi, [esi]
mov esi, dword [ecx]
cmp word [esi], 0
je 0x4050d0
mov eax, esi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404f70
sub eax, esi
sar eax, 1
inc eax
add ecx, 4
add edx, eax
cmp edi, ecx
jne 0x404f58
lea eax, [edx + edx + 2]
mov dword [ebp - 0x17c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x405542
mov edx, dword [ebp - 0x16c]
mov ecx, ebx
jmp 0x404fbb
movzx ecx, word [edx]
add eax, 2
add edx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x404fb8
test bx, bx
je 0x405392
mov eax, dword [ebp - 0x16c]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404fe0
sub eax, dword [ebp - 0x16c]
lea ecx, [eax + 2]
mov eax, dword [ebp + 0xc]
add ecx, dword [ebp - 0x174]
test eax, eax
je 0x40504f
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edi, [esi + eax*4]
lea esi, [esi]
nop
mov ebx, dword [esi]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x405018
cmp word [ecx], 0
je 0x4050c0
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405038
sub eax, ecx
add eax, 2
add esi, 4
add ecx, eax
cmp edi, esi
jne 0x405010
xor edi, edi
lea eax, [ebp - 0x144]
mov ebx, 0x41d
mov word [ecx], di
mov edi, dword [ebp - 0x174]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x178]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
call sym._process_send_control
mov dword [esp], edi
test eax, eax
cmovne ebx, dword [ebp - 0x144]
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x405046
mov eax, 1
jmp 0x404f7e
mov eax, ecx
test ecx, ecx
je 0x4053a4
shr eax, 0x10
je 0x40526e
mov ebx, dword [ebp - 0x16c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x41a579
test ecx, ecx
jne 0x405285
movzx eax, word [ebx]
test ax, ax
je 0x4053ae
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x405128
mov ecx, 0x224c
mov esi, dword [ebp - 0x16c]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x405190
cmp ax, 9
je 0x405339
cmp ax, 0xa
jne 0x4052d7
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea ebx, [edx - 1]
test edx, edx
jle 0x40535b
cmp ecx, edi
ja 0x40535b
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x40534a
jbe 0x405152
cmp ax, 0x22
je 0x405328
cmp ax, 0x5c
jne 0x4052ca
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405178
mov ebx, 0x41d
test byte [0x419030], 2
je 0x4050b3
mov dword [esp + 0xc], str.pipe_connect_failed_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4050b3
mov edi, dword [ebp - 0x170]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x160], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 8], 0
mov dword [ebp - 0x15c], eax
mov eax, dword [0x41924c]
mov dword [esp], 2
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
jne 0x4053cc
cmp dword [ebp - 0x158], 0x103
jne 0x404f17
test byte [0x419030], 2
jne 0x4053e6
mov ebx, 0x41d
jmp 0x4050b3
movzx eax, word [ebp - 0x16c]
mov dword [esp], 0x41a56c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x170]
mov dword [esp + 0xc], str._p__s__p__ld_n
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x404ecb
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x40539c
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x41c46c]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x41c46c]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + 0x41c46c]
and ebx, 0xf
movzx ebx, byte [ebx + 0x41c46c]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405178
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405178
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405178
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405178
mov byte [ecx], 0x22
test ebx, ebx
jle 0x4053c7
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x405285
mov edx, 1
jmp 0x404f42
mov ecx, 2
jmp 0x404ff2
mov byte [ecx], al
inc ecx
jmp 0x405178
mov eax, 0x41a572
jmp 0x405285
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x405372
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CancelIo]
sub esp, 4
jmp 0x405247
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x40553b
shr eax, 0x10
je 0x405522
mov edi, dword [ebp - 0x16c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x41a579
test ecx, ecx
jne 0x4054f5
movzx edx, word [edi]
test dx, dx
je 0x4054cb
mov eax, dword [ebp - 0x16c]
mov ebx, ecx
lea ecx, [ecx + 1]
cmp word [eax + ebx*2 + 2], 0
jne 0x405432
mov esi, 0x224c
mov edi, dword [ebp - 0x16c]
lea eax, [ebp - 0x142]
mov word [ebp - 0x144], si
lea esi, [ebp - 0x22]
jmp 0x40549a
cmp dx, 9
je 0x4055ed
cmp dx, 0xa
jne 0x405566
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea ecx, [ebx - 1]
cmp eax, esi
ja 0x4055bf
test ebx, ebx
jle 0x4055bf
movzx edx, word [edi]
mov ebx, ecx
add edi, 2
cmp dx, 0xd
je 0x40554c
jbe 0x405462
cmp dx, 0x22
je 0x4055dc
cmp dx, 0x5c
jne 0x40555d
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x405482
mov word [ebp - 0x144], 0x224c
lea eax, [ebp - 0x142]
mov byte [ebp - 0x142], 0x22
lea edx, [eax + 1]
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.service__s_failed_to_start_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x405264
movzx eax, word [ebp - 0x16c]
mov dword [esp], 0x41a56c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x4054f5
mov eax, 0x41a572
jmp 0x4054f5
mov ebx, 0x46a
jmp 0x4050b3
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x405482
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4055b7
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + 0x41c46c]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x41c46c]
mov byte [eax - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + 0x41c46c]
and ecx, 0xf
movzx ecx, byte [ecx + 0x41c46c]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x405482
mov byte [eax], dl
inc eax
jmp 0x405482
mov byte [eax], 0x22
test ecx, ecx
jle 0x4054e1
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
jmp 0x4054e4
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x405482
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x405482