Function at 0x404e10
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x180
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x15c], ecx
test byte [0x418030], 8
jne 0x40504a
mov edi, dword [ebp - 0x160]
lea ebx, [ebp - 0x14c]
mov eax, dword [edi + 0x24]
mov dword [esp + 4], ebx
mov dword [ebp - 0x13c], eax
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
sub esp, 8
test eax, eax
jne 0x404e87
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x40516c
cmp dword [eax + 0x34], 0x217
jne 0x405131
mov edx, dword [ebp - 0x15c]
movzx edi, word [edx]
test di, di
je 0x40531b
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404ea0
sub edx, dword [ebp - 0x15c]
sar edx, 1
inc edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x158], edx
test eax, eax
je 0x404efd
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea esi, [ecx + esi*4]
lea esi, cs:[esi]
mov ebx, dword [ecx]
cmp word [ebx], 0
je 0x405040
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x404ee0
sub eax, ebx
sar eax, 1
inc eax
add edx, eax
add ecx, 4
mov dword [ebp - 0x158], edx
cmp esi, ecx
jne 0x404ed0
lea eax, [edx + edx + 2]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x158], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x164], eax
test eax, eax
je 0x4054d5
mov edx, dword [ebp - 0x15c]
mov ecx, edi
jmp 0x404f33
movzx ecx, word [edx]
add eax, 2
add edx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x404f30
test di, di
je 0x405325
mov eax, dword [ebp - 0x15c]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404f58
sub eax, dword [ebp - 0x15c]
lea ecx, [eax + 2]
mov eax, dword [ebp + 0xc]
add ecx, dword [ebp - 0x164]
test eax, eax
je 0x404fbf
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edi, [esi + eax*4]
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 0x404f88
cmp word [ecx], 0
je 0x405030
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404fa8
sub eax, ecx
add eax, 2
add esi, 4
add ecx, eax
cmp edi, esi
jne 0x404f80
xor edi, edi
lea eax, [ebp - 0x138]
mov ebx, 0x41d
mov word [ecx], di
mov edi, dword [ebp - 0x164]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x15c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call sym._process_send_control
mov dword [esp], edi
test eax, eax
cmovne ebx, dword [ebp - 0x138]
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 0x404fb6
mov eax, 1
jmp 0x404eee
mov eax, ecx
test ecx, ecx
je 0x405337
shr eax, 0x10
je 0x405201
mov ebx, dword [ebp - 0x15c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x419579
test ecx, ecx
jne 0x405218
movzx eax, word [ebx]
test ax, ax
je 0x405341
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x405098
mov ecx, 0x224c
mov esi, dword [ebp - 0x15c]
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x405100
cmp ax, 9
je 0x4052cc
cmp ax, 0xa
jne 0x40526a
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea ebx, [edx - 1]
test edx, edx
jle 0x4052ee
cmp ecx, edi
ja 0x4052ee
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x4052dd
jbe 0x4050c2
cmp ax, 0x22
je 0x4052bb
cmp ax, 0x5c
jne 0x40525d
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4050e8
mov ebx, 0x41d
test byte [0x418030], 2
je 0x405023
mov dword [esp + 0xc], str.pipe_connect_failed_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x405023
mov esi, dword [ebp - 0x160]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x154], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 8], 0
mov dword [ebp - 0x150], eax
mov eax, dword [0x41824c]
mov dword [esp], 2
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
jne 0x40535f
lea eax, [ebp - 0x158]
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 0x404e87
test byte [0x418030], 2
jne 0x405379
mov ebx, 0x41d
jmp 0x405023
movzx eax, word [ebp - 0x15c]
mov dword [esp], 0x41956c
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 - 0x160]
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], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x404e3b
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x40532f
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x41b46c]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x41b46c]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + 0x41b46c]
and ebx, 0xf
movzx ebx, byte [ebx + 0x41b46c]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4050e8
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4050e8
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4050e8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4050e8
mov byte [ecx], 0x22
test ebx, ebx
jle 0x40535a
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x405218
mov edx, 1
jmp 0x404eb2
mov ecx, 2
jmp 0x404f6a
mov byte [ecx], al
inc ecx
jmp 0x4050e8
mov eax, 0x419572
jmp 0x405218
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x405305
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 0x4051b7
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4054ce
shr eax, 0x10
je 0x4054b5
mov edi, dword [ebp - 0x15c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x419579
test ecx, ecx
jne 0x405488
movzx edx, word [edi]
test dx, dx
je 0x40545e
mov eax, dword [ebp - 0x15c]
mov ebx, ecx
lea ecx, [ecx + 1]
cmp word [eax + ebx*2 + 2], 0
jne 0x4053c5
mov esi, 0x224c
mov edi, dword [ebp - 0x15c]
lea eax, [ebp - 0x136]
mov word [ebp - 0x138], si
lea esi, [ebp - 0x16]
jmp 0x40542d
cmp dx, 9
je 0x40555c
cmp dx, 0xa
jne 0x4054fa
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea ecx, [ebx - 1]
cmp eax, esi
ja 0x405575
test ebx, ebx
jle 0x405575
movzx edx, word [edi]
mov ebx, ecx
add edi, 2
cmp dx, 0xd
je 0x4054e0
jbe 0x4053f5
cmp dx, 0x22
je 0x40554b
cmp dx, 0x5c
jne 0x4054f1
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x405415
mov word [ebp - 0x138], 0x224c
lea eax, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea edx, [eax + 1]
lea eax, [ebp - 0x138]
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], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4051f7
movzx eax, word [ebp - 0x15c]
mov dword [esp], 0x41956c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x405488
mov eax, 0x419572
jmp 0x405488
mov ebx, 0x46a
jmp 0x405023
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x405415
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x40556d
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + 0x41b46c]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x41b46c]
mov byte [eax - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + 0x41b46c]
and ecx, 0xf
movzx ecx, byte [ecx + 0x41b46c]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x405415
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x405415
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x405415
mov byte [eax], dl
inc eax
jmp 0x405415
mov byte [eax], 0x22
test ecx, ecx
jle 0x405474
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
jmp 0x405477