Function at 0x405ee0
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 [0x419070], 8
jne 0x40611a
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 0x405f57
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x40623c
cmp dword [eax + 0x34], 0x217
jne 0x406201
mov edx, dword [ebp - 0x16c]
movzx ebx, word [edx]
test bx, bx
je 0x4063c8
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x405f70
sub edx, dword [ebp - 0x16c]
sar edx, 1
inc edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405fc7
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 0x406110
mov eax, esi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405fb0
sub eax, esi
sar eax, 1
inc eax
add ecx, 4
add edx, eax
cmp edi, ecx
jne 0x405f98
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 0x406582
mov edx, dword [ebp - 0x16c]
mov ecx, ebx
jmp 0x405ffb
movzx ecx, word [edx]
add eax, 2
add edx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x405ff8
test bx, bx
je 0x4063d2
mov eax, dword [ebp - 0x16c]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406020
sub eax, dword [ebp - 0x16c]
lea ecx, [eax + 2]
mov eax, dword [ebp + 0xc]
add ecx, dword [ebp - 0x174]
test eax, eax
je 0x40608f
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 0x406058
cmp word [ecx], 0
je 0x406100
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406078
sub eax, ecx
add eax, 2
add esi, 4
add ecx, eax
cmp edi, esi
jne 0x406050
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 0x406086
mov eax, 1
jmp 0x405fbe
mov eax, ecx
test ecx, ecx
je 0x4063e4
shr eax, 0x10
je 0x4062ae
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 0x4062c5
movzx eax, word [ebx]
test ax, ax
je 0x4063ee
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x406168
mov ecx, 0x224c
mov esi, dword [ebp - 0x16c]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x4061d0
cmp ax, 9
je 0x406379
cmp ax, 0xa
jne 0x406317
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea ebx, [edx - 1]
test edx, edx
jle 0x40639b
cmp ecx, edi
ja 0x40639b
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x40638a
jbe 0x406192
cmp ax, 0x22
je 0x406368
cmp ax, 0x5c
jne 0x40630a
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4061b8
mov ebx, 0x41d
test byte [0x419070], 2
je 0x4060f3
mov dword [esp + 0xc], str.pipe_connect_failed_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], 0x419070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4060f3
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 [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 0x40640c
cmp dword [ebp - 0x158], 0x103
jne 0x405f57
test byte [0x419070], 2
jne 0x406426
mov ebx, 0x41d
jmp 0x4060f3
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], str.process_send_start_message
mov dword [esp + 4], 0x419070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x405f0b
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x4063dc
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 0x4061b8
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4061b8
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4061b8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4061b8
mov byte [ecx], 0x22
test ebx, ebx
jle 0x406407
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 0x4062c5
mov edx, 1
jmp 0x405f82
mov ecx, 2
jmp 0x406032
mov byte [ecx], al
inc ecx
jmp 0x4061b8
mov eax, 0x41ac26
jmp 0x4062c5
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x4063b2
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 0x406287
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x40657b
shr eax, 0x10
je 0x406562
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 0x406535
movzx edx, word [edi]
test dx, dx
je 0x40650b
mov eax, dword [ebp - 0x16c]
mov ebx, ecx
lea ecx, [ecx + 1]
cmp word [eax + ebx*2 + 2], 0
jne 0x406472
mov esi, 0x224c
mov edi, dword [ebp - 0x16c]
lea eax, [ebp - 0x142]
mov word [ebp - 0x144], si
lea esi, [ebp - 0x22]
jmp 0x4064da
cmp dx, 9
je 0x40662d
cmp dx, 0xa
jne 0x4065a6
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea ecx, [ebx - 1]
cmp eax, esi
ja 0x4065ff
test ebx, ebx
jle 0x4065ff
movzx edx, word [edi]
mov ebx, ecx
add edi, 2
cmp dx, 0xd
je 0x40658c
jbe 0x4064a2
cmp dx, 0x22
je 0x40661c
cmp dx, 0x5c
jne 0x40659d
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x4064c2
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], 0x419070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4062a4
movzx eax, word [ebp - 0x16c]
mov dword [esp], 0x41ac20
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x406535
mov eax, 0x41ac26
jmp 0x406535
mov ebx, 0x46a
jmp 0x4060f3
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x4064c2
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4065f7
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 0x4064c2
mov byte [eax], dl
inc eax
jmp 0x4064c2
mov byte [eax], 0x22
test ecx, ecx
jle 0x406521
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
jmp 0x406524
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x4064c2
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x4064c2