Function at 0x405f90
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 [global___dbch.0], 8
jne 0x4061ca
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 0x406007
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x4062ec
cmp dword [eax + 0x34], 0x217
jne 0x4062b1
mov edx, dword [ebp - 0x16c]
movzx edi, word [edx]
test di, di
je 0x406478
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x406020
sub edx, dword [ebp - 0x16c]
sar edx, 1
add edx, 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406079
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea esi, [ecx + esi*4]
lea esi, [esi]
mov ebx, dword [ecx]
cmp word [ebx], 0
je 0x4061c0
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406060
sub eax, ebx
sar eax, 1
add eax, 1
add ecx, 4
add edx, eax
cmp esi, ecx
jne 0x406048
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 0x406634
mov edx, dword [ebp - 0x16c]
mov ecx, edi
jmp 0x4060ab
movzx ecx, word [edx]
add eax, 2
add edx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x4060a8
test di, di
je 0x406482
mov eax, dword [ebp - 0x16c]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4060d0
sub eax, dword [ebp - 0x16c]
lea ecx, [eax + 2]
mov eax, dword [ebp + 0xc]
add ecx, dword [ebp - 0x174]
test eax, eax
je 0x40613f
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 0x406108
cmp word [ecx], 0
je 0x4061b0
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406128
sub eax, ecx
add eax, 2
add esi, 4
add ecx, eax
cmp edi, esi
jne 0x406100
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 dbg.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 0x406136
mov eax, 1
jmp 0x406070
mov eax, ecx
test ecx, ecx
je 0x406496
shr eax, 0x10
je 0x40635e
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, 0x41ac2d
test ecx, ecx
jne 0x406375
movzx eax, word [ebx]
test ax, ax
je 0x4064a0
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x406218
mov ecx, 0x224c
mov esi, dword [ebp - 0x16c]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x406280
cmp ax, 9
je 0x406429
cmp ax, 0xa
jne 0x4063c7
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea ebx, [edx - 1]
test edx, edx
jle 0x40644b
cmp ecx, edi
ja 0x40644b
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x40643a
jbe 0x406242
cmp ax, 0x22
je 0x406418
cmp ax, 0x5c
jne 0x4063ba
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x406268
mov ebx, 0x41d
test byte [global___dbch.0], 2
je 0x4061a3
mov dword [esp + 0xc], str.pipe_connect_failed_n
mov dword [esp + 8], global___func__.22
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4061a3
mov esi, dword [ebp - 0x170]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x160], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 8], 0
mov dword [ebp - 0x15c], eax
mov eax, dword [0x41906c]
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 0x4064be
cmp dword [ebp - 0x158], 0x103
jne 0x406007
test byte [global___dbch.0], 2
jne 0x4064d8
mov ebx, 0x41d
jmp 0x4061a3
movzx eax, word [ebp - 0x16c]
mov dword [esp], 0x41ac20
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], global___func__.22
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x405fbb
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x40648c
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 0x406268
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x406268
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x406268
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x406268
mov byte [ecx], 0x22
test ebx, ebx
jle 0x4064b9
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 dbg.__wine_dbg_strdup
jmp 0x406375
mov edx, 1
jmp 0x406034
mov ecx, 2
jmp 0x4060e2
mov byte [ecx], al
add ecx, 1
jmp 0x406268
mov eax, 0x41ac26
jmp 0x406375
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x406462
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 0x406337
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x40662d
shr eax, 0x10
je 0x406614
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, 0x41ac2d
test ecx, ecx
jne 0x4065e7
movzx edx, word [edi]
test dx, dx
je 0x4065bd
mov eax, dword [ebp - 0x16c]
mov ebx, ecx
lea ecx, [ecx + 1]
cmp word [eax + ebx*2 + 2], 0
jne 0x406524
mov esi, 0x224c
mov edi, dword [ebp - 0x16c]
lea eax, [ebp - 0x142]
mov word [ebp - 0x144], si
lea esi, [ebp - 0x22]
jmp 0x40658c
cmp dx, 9
je 0x4066e1
cmp dx, 0xa
jne 0x406658
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea ecx, [ebx - 1]
cmp eax, esi
ja 0x4066b3
test ebx, ebx
jle 0x4066b3
movzx edx, word [edi]
mov ebx, ecx
add edi, 2
cmp dx, 0xd
je 0x40663e
jbe 0x406554
cmp dx, 0x22
je 0x4066d0
cmp dx, 0x5c
jne 0x40664f
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x406574
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 dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.service__s_failed_to_start_n
mov dword [esp + 8], global___func__.22
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x406354
movzx eax, word [ebp - 0x16c]
mov dword [esp], 0x41ac20
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x4065e7
mov eax, 0x41ac26
jmp 0x4065e7
mov ebx, 0x46a
jmp 0x4061a3
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x406574
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4066a9
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 0x406574
mov byte [eax], dl
add eax, 1
jmp 0x406574
mov byte [eax], 0x22
test ecx, ecx
jle 0x4065d3
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
jmp 0x4065d6
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x406574
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x406574