Function at 0x14003f0e0
Capabilities:
Connect pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov r12d, edx
mov r14, rcx
cmp byte [rcx + 0x19], 0
jne 0x14003f274
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14003f124
mov al, 1
jmp 0x14003f331
lea rcx, [rbp + 0x40]
call fcn.140185b50
mov rbx, rax
lea rcx, [rbp + 0x50]
call fcn.140184ab0
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.140185b00
lea r15, [r14 + 0x1b]
mov qword [rbp - 0x38], r15
lea r13, [0x14028fdf4]
mov rdi, qword [rbp + 0x58]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [r14 + 8], 0xffffffffffffffff
jne 0x14003f213
mov rbx, qword [r14]
cmp byte [rbx], 0
jne 0x14003f182
mov rbx, r13
jmp 0x14003f1e2
mov qword [rbp + 0x40], rbx
lea rcx, [rbp + 0x40]
call fcn.140034240
or rcx, 0xffffffffffffffff
lea rcx, [rcx + 1]
cmp byte [rbx + rcx], 0
jne 0x14003f193
lea rsi, [rcx + 4]
mov ecx, 0xfffffffc
and rsi, rcx
mov qword [rbp + 0x40], rbx
lea r8, [rax + 3]
add r8, rsi
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.14003e200
mov rax, qword [rax]
mov qword [r14], rax
movsxd rbx, esi
add rbx, rax
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x40], rax
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.140048370
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [r14 + 8], 0xffffffffffffffff
jne 0x14003f11d
cmp byte [r14 + 0x1a], 0
jne 0x14003f26d
test r12d, r12d
js 0x14003f241
lea rcx, [rbp + 0x58]
call fcn.140184ab0
cmp qword [rax], rdi
jg 0x14003f26d
mov rcx, qword [0x1404be728]
test rcx, rcx
jne 0x14003f25d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003f160
mov edx, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003f160
xor al, al
jmp 0x14003f331
cmp byte [rcx + 0x18], 0
jne 0x14003f32c
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x20]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14003f322
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
je 0x14003f31d
sub eax, 1
je 0x14003f2d0
sub eax, 0x1cd
jne 0x14003f322
cmp byte [r14 + 0x1a], 0
jne 0x14003f315
mov rax, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov rax, qword [r14 + 0x10]
mov qword [rbp - 0x28], rax
or r9d, 0xffffffff
test r12d, r12d
cmovns r9d, r12d
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14003f30b
mov al, 1
jmp 0x14003f317
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor al, al
mov byte [r14 + 0x18], al
jmp 0x14003f322
mov byte [r14 + 0x18], 1
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [r14 + 0x18]
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret