Function at 0x140005250
Capabilities:
Connect pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
mov r15d, dword [rbp + 0x1b0]
mov r14, rcx
mov r12d, edx
mov rbx, r8
mov rsi, r9
test byte [0x14001a030], 8
jne 0x14000547a
mov rax, qword [r14 + 0x40]
lea r13, [rbp - 0x10]
mov rcx, qword [r14 + 0x38]
mov rdx, r13
mov qword [rbp + 8], rax
call qword [sym.imp.kernel32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400052cb
mov rax, qword gs:[0x30]
cmp dword [rax + 0x68], 0x3e5
je 0x140005610
cmp dword [rax + 0x68], 0x217
jne 0x1400055d9
movzx edx, word [rbx]
test dx, dx
je 0x140005723
mov rcx, rbx
nop word [rax + rax]
add rcx, 2
cmp word [rcx], 0
jne 0x1400052e0
sub rcx, rbx
sar rcx, 1
inc ecx
mov dword [rbp - 0x24], ecx
test r15d, r15d
je 0x140005348
lea eax, [r15 - 1]
mov r9, rsi
lea r10, [rsi + rax*8 + 8]
nop word cs:[rax + rax]
mov r8, qword [r9]
cmp word [r8], 0
je 0x140005470
mov rax, r8
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x140005328
sub rax, r8
sar rax, 1
inc eax
add ecx, eax
add r9, 8
mov dword [rbp - 0x24], ecx
cmp r10, r9
jne 0x140005310
lea ecx, [rcx + rcx + 2]
mov dword [rbp - 0x34], edx
mov dword [rbp - 0x24], ecx
mov rdi, rcx
call qword [sym.imp.ucrtbase.dll_malloc]
mov r13, rax
test rax, rax
je 0x140005947
mov edx, dword [rbp - 0x34]
xor eax, eax
mov ecx, edx
jmp 0x140005374
movzx ecx, word [rbx + rax]
mov word [r13 + rax], cx
add rax, 2
test cx, cx
jne 0x140005370
test dx, dx
je 0x14000572d
mov rax, rbx
nop
add rax, 2
cmp word [rax], 0
jne 0x140005390
sub rax, rbx
sar rax, 1
lea edx, [rax + 1]
movsxd rdx, edx
add rdx, rdx
add rdx, r13
test r15d, r15d
je 0x14000540b
lea eax, [r15 - 1]
lea rcx, [rsi + rax*8 + 8]
nop word [rax + rax]
mov r9, qword [rsi]
xor eax, eax
nop dword [rax]
movzx r8d, word [r9 + rax]
mov word [rdx + rax], r8w
add rax, 2
test r8w, r8w
jne 0x1400053c8
cmp word [rdx], 0
je 0x140005460
mov rax, rdx
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x1400053e8
sub rax, rdx
sar rax, 1
inc eax
cdqe
add rax, rax
add rsi, 8
add rdx, rax
cmp rcx, rsi
jne 0x1400053c0
xor ecx, ecx
lea rax, [rbp + 0x10]
xor r9d, r9d
mov r8, rbx
mov word [rdx], cx
mov edx, r12d
mov rcx, r14
mov r12d, 0x41d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
call sym.process_send_control
mov rcx, r13
test eax, eax
cmovne r12d, dword [rbp + 0x10]
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r12d
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, 2
jmp 0x1400053ff
mov eax, 1
jmp 0x14000533a
lea rax, [0x14001b596]
test r8, r8
je 0x1400055a1
mov rax, r8
shr rax, 0x10
je 0x140005675
mov rcx, r8
mov rdx, 0xffffffffffffffff
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
lea rax, [0x14001b59d]
test ecx, ecx
jne 0x1400055a1
movzx eax, word [rbx]
test ax, ax
je 0x140005741
nop dword [rax]
mov edx, ecx
lea ecx, [rcx + 1]
movsxd r8, ecx
cmp word [rbx + r8*2], 0
jne 0x1400054c8
mov r8d, 0x224c
mov word [rbp + 0x10], r8w
test ecx, ecx
jle 0x140005571
mov r8, rbx
lea rcx, [rbp + 0x12]
lea r11, [0x14001d630]
lea r10, [rbp + 0x132]
jmp 0x14000553c
cmp ax, 9
je 0x14000569c
cmp ax, 0xa
jne 0x1400056bb
mov eax, 0x6e5c
add rcx, 2
mov word [rcx - 2], ax
nop dword [rax + rax]
lea r9d, [rdx - 1]
test edx, edx
jle 0x140005578
cmp rcx, r10
ja 0x140005578
movzx eax, word [r8]
mov edx, r9d
add r8, 2
cmp ax, 0xd
je 0x14000568a
jbe 0x140005502
cmp ax, 0x22
je 0x140005711
cmp ax, 0x5c
jne 0x1400056b0
mov r9d, 0x5c5c
add rcx, 2
mov word [rcx - 2], r9w
jmp 0x140005528
mov r9d, edx
lea rcx, [rbp + 0x12]
mov byte [rcx], 0x22
test r9d, r9d
jle 0x140005752
mov edx, 0x2e2e
mov byte [rcx + 3], 0x2e
lea rax, [rcx + 4]
mov word [rcx + 1], dx
mov byte [rax], 0
lea rcx, [rbp + 0x10]
call sym.__wine_dbg_strdup
mov dword [rsp + 0x38], r15d
lea r9, str._p__s__p__ld_n
mov ecx, 3
lea r8, str.process_send_start_message
mov qword [rsp + 0x30], rsi
lea rdx, [0x14001a030]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call sym.wine_dbg_log.constprop.0_1
jmp 0x14000528b
mov r12d, 0x41d
test byte [0x14001a030], 2
je 0x140005449
lea r9, str.pipe_connect_failed_n
lea r8, str.process_send_start_message
mov ecx, 1
lea rdx, [0x14001a030]
call sym.wine_dbg_log.constprop.0_1
jmp 0x140005449
mov rax, qword [r14 + 0x40]
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov ecx, 2
mov r9d, dword [0x14001a3f0]
mov qword [rbp - 0x20], rax
mov rax, qword [r14 + 0x28]
mov qword [rbp - 0x18], rax
call qword [sym.imp.kernel32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14000575b
xor r9d, r9d
mov rcx, qword [r14 + 0x38]
lea r8, [rbp - 0x24]
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400052cb
test byte [0x14001a030], 2
jne 0x14000576a
mov r12d, 0x41d
jmp 0x140005449
movzx edx, r8w
lea rcx, [0x14001b590]
call sym.wine_dbg_sprintf.constprop.0_1
jmp 0x1400055a1
mov eax, 0x725c
add rcx, 2
mov word [rcx - 2], ax
jmp 0x140005528
mov r13d, 0x745c
add rcx, 2
mov word [rcx - 2], r13w
jmp 0x140005528
lea r9d, [rax - 0x20]
cmp r9w, 0x5e
jbe 0x140005737
mov r9d, eax
mov byte [rcx], 0x5c
add rcx, 5
shr r9w, 0xc
and r9d, 0xf
movzx r9d, byte [r11 + r9]
mov byte [rcx - 4], r9b
mov r9d, eax
shr r9w, 8
and r9d, 0xf
movzx r9d, byte [r11 + r9]
mov byte [rcx - 3], r9b
mov r9d, eax
and eax, 0xf
shr r9w, 4
movzx eax, byte [r11 + rax]
and r9d, 0xf
movzx r9d, byte [r11 + r9]
mov byte [rcx - 1], al
mov byte [rcx - 2], r9b
jmp 0x140005528
mov edi, 0x225c
add rcx, 2
mov word [rcx - 2], di
jmp 0x140005528
mov ecx, 1
jmp 0x1400052f2
mov edx, 2
jmp 0x1400053a9
mov byte [rcx], al
inc rcx
jmp 0x140005528
mov eax, 0x224c
mov byte [rbp + 0x12], 0x22
lea rcx, [rbp + 0x12]
mov word [rbp + 0x10], ax
lea rax, [rcx + 1]
jmp 0x140005595
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.kernel32.dll_CancelIo]
jmp 0x140005641
lea rax, [0x14001b596]
test rbx, rbx
je 0x14000587c
mov rax, rbx
shr rax, 0x10
je 0x140005969
mov rcx, rbx
mov rdx, 0xffffffffffffffff
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
lea rax, [0x14001b59d]
test ecx, ecx
jne 0x14000587c
movzx edx, word [rbx]
test dx, dx
je 0x140005952
mov r8d, ecx
lea ecx, [rcx + 1]
movsxd rax, ecx
cmp word [rbx + rax*2], 0
jne 0x1400057b4
mov r14d, 0x224c
mov word [rbp + 0x10], r14w
test ecx, ecx
jle 0x14000584d
mov r10d, r8d
lea rax, [rbp + 0x12]
lea r11, [rbp + 0x132]
lea rcx, [0x14001d630]
jmp 0x140005820
cmp dx, 9
je 0x14000592b
cmp dx, 0xa
jne 0x1400058c4
mov r13d, 0x6e5c
add rax, 2
mov word [rax - 2], r13w
dec r8d
cmp rax, r11
ja 0x140005851
test r10d, r10d
jle 0x140005851
movzx edx, word [rbx]
mov r10d, r8d
add rbx, 2
cmp dx, 0xd
je 0x1400058a5
jbe 0x1400057ea
cmp dx, 0x22
je 0x140005919
cmp dx, 0x5c
jne 0x1400058b9
mov r9d, 0x5c5c
add rax, 2
mov word [rax - 2], r9w
jmp 0x14000580d
lea rax, [rbp + 0x12]
mov byte [rax], 0x22
test r8d, r8d
jle 0x140005960
mov r8d, 0x2e2e
mov byte [rax + 3], 0x2e
lea rdx, [rax + 4]
mov word [rax + 1], r8w
mov byte [rdx], 0
lea rcx, [rbp + 0x10]
call sym.__wine_dbg_strdup
mov qword [rsp + 0x20], rax
lea r9, str.service__s_failed_to_start_n
lea r8, str.process_send_start_message
mov ecx, 1
lea rdx, [0x14001a030]
call sym.wine_dbg_log.constprop.0_1
jmp 0x14000566a
mov r12d, 0x725c
add rax, 2
mov word [rax - 2], r12w
jmp 0x14000580d
lea r9d, [rdx - 0x20]
cmp r9w, 0x5e
jbe 0x14000593d
mov r9d, edx
mov byte [rax], 0x5c
add rax, 5
shr r9w, 0xc
and r9d, 0xf
movzx r9d, byte [rcx + r9]
mov byte [rax - 4], r9b
mov r9d, edx
shr r9w, 8
and r9d, 0xf
movzx r9d, byte [rcx + r9]
mov byte [rax - 3], r9b
mov r9d, edx
and edx, 0xf
shr r9w, 4
movzx edx, byte [rcx + rdx]
and r9d, 0xf
movzx r9d, byte [rcx + r9]
mov byte [rax - 1], dl
mov byte [rax - 2], r9b
jmp 0x14000580d
mov esi, 0x225c
add rax, 2
mov word [rax - 2], si
jmp 0x14000580d
mov edi, 0x745c
add rax, 2
mov word [rax - 2], di
jmp 0x14000580d
mov byte [rax], dl
inc rax
jmp 0x14000580d
mov r12d, 0x46a
jmp 0x140005449
mov word [rbp + 0x10], 0x224c
lea rax, [rbp + 0x12]
mov byte [rbp + 0x12], 0x22
lea rdx, [rax + 1]
jmp 0x140005870
movzx edx, bx
lea rcx, [0x14001b590]
call sym.wine_dbg_sprintf.constprop.0_1
jmp 0x14000587c