Function at 0x1400c7520
Capabilities:
Check if file exists
Connect pipe

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r13, qword [0x14022c040]
xor r8d, r8d
mov rax, qword [r13]
mov qword [rsp + 0x38], rax
xor eax, eax
lea r12, [rsp + 0x20]
mov rsi, rdx
mov rax, qword [0x14022c910]
mov qword [rsp + 0x20], 0
mov rdx, rcx
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call fcn.1400f7060
test rax, rax
je 0x1400c7505
lea r8, str..pipe_
mov edx, 0x104
mov rcx, rsi
call sub.libintl_8.dll_libintl_swprintf
mov r8d, 0x104
mov rdx, qword [rsp + 0x30]
mov r9d, 0xffffffff
movsxd rbp, eax
lea r14, [rbp + rbp]
sub r8, rbp
mov rdi, rbp
lea rbx, [rsi + r14]
mov rcx, rbx
call fcn.1400d25c0
test eax, eax
js 0x1400c7505
movzx edx, word [rbx]
test dx, dx
je 0x1400c74bd
lea rax, [rsi + r14 + 2]
cmp word [rax], 0x3a
je 0x1400c74e8
lea rax, [rsi + rbp*2 + 2]
nop dword [rax]
cmp dx, 0x2f
jne 0x1400c74ae
mov edx, 0x5c
mov word [rbx], dx
mov rbx, rax
movzx edx, word [rax]
add rax, 2
test dx, dx
jne 0x1400c74a0
mov rcx, r12
call fcn.14008e580
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r13]
jne 0x1400c750c
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov ecx, 0x5f
lea rbx, [rsi + r14 + 4]
add edi, 2
mov word [rax], cx
movzx edx, word [rbx]
test dx, dx
je 0x1400c74bd
movsxd rbp, edi
jmp 0x1400c7497
mov eax, 0xffffffff
jmp 0x1400c74c7
call fcn.1401d96b0
nop
nop word cs:[rax + rax]
nop dword [rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov rdi, qword [0x14022c040]
mov rax, qword [rdi]
mov qword [rsp + 0xb8], rax
xor eax, eax
cmp qword [rcx + 0x38], 0xffffffffffffffff
mov rbx, rcx
je 0x1400c78e6
lea rbp, str.compat_simple_ipc_ipc_win32.c
lea r8, str.ipc_server
mov edx, 0x220
mov rcx, rbp
lea r12, [rsp + 0x80]
call fcn.1400a1560
mov rax, qword [rbx + 0x10]
xor r9d, r9d
mov rcx, rbp
lea r8, str.ipc_server
mov edx, 0x221
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [0x14020466d]
mov qword [rsp + 0x20], rax
call fcn.1400a18a0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
pxor xmm0, xmm0
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], rax
mov rsi, rax
movups xmmword [rsp + 0x80], xmm0
mov rcx, qword [rbx + 0x38]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400c7660
call rdi
cmp eax, 0x217
je 0x1400c76a8
cmp eax, 0x3e5
jne 0x1400c7660
mov rax, qword [rbx + 0x10]
xor r8d, r8d
mov ecx, 2
lea rdx, [rsp + 0xa0]
mov r9d, 0xffffffff
movq xmm0, qword [rax + 0x238]
movhps xmm0, qword [rsp + 0x98]
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1400c77f0
cmp eax, 1
je 0x1400c7840
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x1400c75e5
call rdi
lea rcx, str.ConnectNamedPipe_failed_for__s___lu_
mov r13d, eax
mov rax, qword [rbx + 0x10]
mov r14, qword [rax + 0x28]
mov rax, qword [str.PF__]
mov edx, dword [rax]
test edx, edx
je 0x1400c7689
call fcn.1401d81b8
mov rcx, rax
mov r8d, r13d
mov rdx, r14
call fcn.1400b6bf0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x1400c75e5
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [0x14022c910]
mov r13, qword [rbx + 0x38]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x48]
mov rdx, r13
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c7853
mov rcx, qword [rsp + 0x48]
mov edx, 0x8002
call qword [sym.imp.msvcrt.dll__open_osfhandle]
mov ecx, eax
test eax, eax
js 0x1400c78ba
lea r13, [rsp + 0x60]
mov r8d, 9
mov dword [rsp + 0x54], eax
mov rdx, r13
call fcn.1401817a0
mov r15, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r14d, eax
test eax, eax
js 0x1400c77a7
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
mov r8, qword [rsp + 0x68]
lea r9, [0x1400c73a0]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x70]
call qword [rax + 8]
mov ecx, dword [rsp + 0x54]
mov r14d, eax
call fcn.140180ae0
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r15, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rax
call r15
mov rcx, r13
call fcn.14008e580
mov ecx, dword [rsp + 0x54]
call sub.msvcrt.dll__close
mov rcx, qword [rbx + 0x38]
call r15
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp r14d, 0xfffffffe
jne 0x1400c75e5
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400c77f0
mov rcx, qword [rax + 0x238]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x255
mov rcx, rbp
call fcn.1400a1770
mov rsi, qword [0x14022c040]
mov rax, qword [rsp + 0xb8]
sub rax, qword [rsi]
jne 0x1400c78e1
xor eax, eax
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1400c76b6
call rdi
mov r14d, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r14d
mov r13, rax
call fcn.1400d0b80
mov dword [r13], eax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x54], 0xffffffff
lea rcx, str.could_not_create_fd_from_pipe_for__s
mov r13, qword [rax + 0x28]
mov rax, qword [str.PF__]
mov eax, dword [rax]
test eax, eax
je 0x1400c7899
call fcn.1401d81b8
mov rcx, rax
mov rdx, r13
call fcn.1400b6bf0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x1400c75e5
call rdi
mov r14d, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r14d
mov r13, rax
call fcn.1400d0b80
mov rcx, qword [rsp + 0x48]
mov dword [r13], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c786d
call fcn.1401d96b0
mov r8d, 0x21e
lea rdx, str.compat_simple_ipc_ipc_win32.c
lea rcx, str.server_thread_data__hPipe___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
nop
nop word cs:[rax + rax]
nop dword [rax]
push rsi
push rbx
sub rsp, 0x248
mov rbx, qword [0x14022c040]
mov rsi, qword [rbx]
mov qword [rsp + 0x238], rsi
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.1400c73e0
mov edx, eax
mov eax, 2
cmp edx, 0xffffffff
je 0x1400c7957
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov edx, eax
xor eax, eax
test edx, edx
je 0x1400c7970
mov rdx, qword [rsp + 0x238]
sub rdx, qword [rbx]
jne 0x1400c79ca
add rsp, 0x248
pop rbx
pop rsi
ret
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov edx, eax
mov eax, 1
cmp edx, 0x79
je 0x1400c7957
call rsi
mov edx, eax
mov eax, 3
cmp edx, 2
je 0x1400c7957
call rsi
xor r9d, r9d
lea r8, str.ipc_debug
mov edx, 0x3a
mov eax, eax
lea rcx, str.compat_simple_ipc_ipc_win32.c
mov qword [rsp + 0x28], rax
lea rax, str.getstate_waitpipe_gle
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
mov eax, 4
jmp 0x1400c7957
call fcn.1401d96b0
nop