Function at 0x405fd0
Capabilities:
Connect pipe

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edi
mov edi, ecx
sub esp, 0x18c
mov dword [ebp - 0x160], eax
mov eax, dword [ebx]
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x168], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x164], eax
test byte [0x40c070], 8
jne 0x406232
mov esi, dword [ebp - 0x160]
lea ebx, [ebp - 0x150]
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebx
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
sub esp, 8
test eax, eax
jne 0x406061
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x40633f
cmp dword [eax + 0x34], 0x217
jne 0x406304
movzx eax, word [edi]
mov word [ebp - 0x176], ax
test ax, ax
je 0x406500
mov edx, edi
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x406080
sub edx, edi
sar edx, 1
add edx, 1
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x15c], edx
test eax, eax
je 0x4060df
mov esi, dword [ebp - 0x168]
mov ecx, esi
lea esi, [esi + eax*4]
lea esi, [esi]
nop
mov ebx, dword [ecx]
cmp word [ebx], 0
je 0x406228
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x4060c0
sub eax, ebx
sar eax, 1
add eax, 1
add edx, eax
add ecx, 4
mov dword [ebp - 0x15c], edx
cmp esi, ecx
jne 0x4060b0
lea eax, [edx + edx + 2]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x15c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x16c], eax
mov ecx, eax
test eax, eax
je 0x4066a0
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x406110
cmp word [ebp - 0x176], 0
je 0x40650a
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x406130
sub eax, edi
lea ecx, [eax + 2]
mov eax, dword [ebp - 0x164]
add ecx, dword [ebp - 0x16c]
test eax, eax
je 0x4061a5
mov esi, dword [ebp - 0x168]
mov dword [ebp - 0x164], edi
lea eax, [esi + eax*4]
mov edi, eax
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 0x406168
cmp word [ecx], 0
je 0x406218
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406188
sub eax, ecx
add eax, 2
add esi, 4
add ecx, eax
cmp esi, edi
jne 0x406160
mov edi, dword [ebp - 0x164]
xor eax, eax
mov esi, dword [ebp - 0x16c]
mov ebx, 0x41d
mov word [ecx], ax
lea eax, [ebp - 0x13c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x174]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x170]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._process_send_control
mov dword [esp], esi
test eax, eax
cmovne ebx, dword [ebp - 0x13c]
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, 2
jmp 0x406196
mov eax, 1
jmp 0x4060d0
test ecx, ecx
je 0x40651e
mov eax, ecx
shr eax, 0x10
je 0x4063e0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40ec8d
sub esp, 8
test eax, eax
jne 0x4063f5
cmp word [edi], 0
je 0x406528
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x406270
mov ecx, 0x224c
mov esi, edi
mov word [ebp - 0x13c], cx
lea ecx, [ebp - 0x13a]
jmp 0x4062d0
cmp ax, 9
je 0x4064af
cmp ax, 0xa
jne 0x40644d
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x4064d1
lea ebx, [ebp - 0x1a]
cmp ecx, ebx
ja 0x4064d1
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x4064c0
jbe 0x406293
cmp ax, 0x22
je 0x40649e
cmp ax, 0x5c
jne 0x406440
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4062b8
mov ebx, 0x41d
test byte [0x40c070], 2
je 0x406203
mov dword [esp + 0xc], str.pipe_connect_failed_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x406203
mov eax, dword [ebp - 0x160]
mov esi, dword [eax + 0x18]
movd xmm0, dword [eax + 0x24]
mov dword [esp + 8], 0
mov eax, dword [0x40c06c]
mov dword [esp], 2
movd xmm1, esi
mov dword [ebp - 0x16c], esi
mov dword [esp + 0xc], eax
punpckldq xmm0, xmm1
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
movq qword [ebp - 0x158], xmm0
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
jne 0x406546
lea eax, [ebp - 0x15c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
jne 0x406061
test byte [0x40c070], 2
jne 0x406560
mov ebx, 0x41d
jmp 0x406203
movzx eax, cx
mov dword [esp], 0x40ec80
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
mov eax, dword [ebp - 0x164]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str._p__s__p__ld_n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], 0x40c070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x406015
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x406514
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefvalidate_service_config]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefvalidate_service_config]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefvalidate_service_config]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefvalidate_service_config]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4062b8
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4062b8
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4062b8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4062b8
mov byte [ecx], 0x22
test eax, eax
jle 0x406541
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x13c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x4063f5
mov edx, 1
jmp 0x406090
mov ecx, 2
jmp 0x40613e
mov byte [ecx], al
add ecx, 1
jmp 0x4062b8
mov edx, 0x40ec86
jmp 0x4063f5
mov eax, 0x224c
mov byte [ebp - 0x13a], 0x22
lea ecx, [ebp - 0x13a]
mov word [ebp - 0x13c], ax
lea eax, [ecx + 1]
jmp 0x4064e8
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CancelIo]
sub esp, 4
jmp 0x406396
test edi, edi
je 0x406699
mov eax, edi
shr eax, 0x10
je 0x406684
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40ec8d
test edx, edx
jne 0x406657
cmp word [edi], 0
je 0x40662d
mov ebx, edx
lea edx, [edx + 1]
cmp word [edi + ebx*2 + 2], 0
jne 0x4065a0
mov esi, 0x224c
lea eax, [ebp - 0x13a]
mov word [ebp - 0x13c], si
lea esi, [ebp - 0x1a]
jmp 0x4065f9
cmp dx, 9
je 0x40672c
cmp dx, 0xa
jne 0x4066ca
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea edx, [ebx - 1]
cmp eax, esi
ja 0x406747
test ebx, ebx
jle 0x406747
mov ebx, edx
movzx edx, word [edi]
add edi, 2
cmp dx, 0xd
je 0x4066b0
jbe 0x4065c4
cmp dx, 0x22
je 0x40671b
cmp dx, 0x5c
jne 0x4066c1
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x4065e4
mov word [ebp - 0x13c], 0x224c
lea eax, [ebp - 0x13a]
mov byte [ebp - 0x13a], 0x22
lea edx, [eax + 1]
lea eax, [ebp - 0x13c]
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4063d6
movzx eax, di
mov dword [esp], 0x40ec80
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x406657
mov eax, 0x40ec86
jmp 0x406657
mov ebx, 0x46a
jmp 0x406203
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x4065e4
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x40673d
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefvalidate_service_config]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefvalidate_service_config]
mov byte [eax - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + str.0123456789abcdefvalidate_service_config]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefvalidate_service_config]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x4065e4
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x4065e4
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x4065e4
mov byte [eax], dl
add eax, 1
jmp 0x4065e4
mov byte [eax], 0x22
test edx, edx
jle 0x406643
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
jmp 0x406646