Function at 0x1400c79d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
mov rdi, qword [0x14022c040]
lea r9, str.try_connect
mov rax, qword [rdi]
mov qword [rsp + 0x258], rax
xor eax, eax
mov qword [r8], 0
mov rbx, rcx
mov r13, rdx
lea rdi, str.compat_simple_ipc_ipc_win32.c
mov edx, 0xce
mov rbp, r8
mov qword [rsp + 0x20], 0
lea r8, str.ipc_client
mov rcx, rdi
lea r12, [rsp + 0x50]
call fcn.1400a1480
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rdi
lea rax, str.try_connect_path
mov edx, 0xcf
lea r8, str.ipc_client
mov qword [rsp + 0x20], rax
call fcn.1400a18a0
mov rdx, r12
mov rcx, rbx
call fcn.1400c73e0
cmp eax, 0xffffffff
je 0x1400c7c28
mov dword [rsp + 0x4c], 0
mov r14, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, 0x7530
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call r14
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c7c88
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400c7b90
cmp eax, 0xe7
je 0x1400c7bc0
mov eax, eax
xor r9d, r9d
lea r8, str.ipc_debug
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, str.connect_createfile_gle
mov edx, 0x97
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
mov eax, 4
mov ebx, 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0xd7
mov rcx, rdi
lea rax, str.try_connect_state
lea r8, str.ipc_client
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
lea r9, str.try_connect
mov edx, 0xd9
mov rcx, rdi
mov qword [rsp + 0x20], 0
lea r8, str.ipc_client
call fcn.1400a1690
mov rdi, qword [0x14022c040]
mov rax, qword [rsp + 0x258]
sub rax, qword [rdi]
jne 0x1400c7e05
mov eax, ebx
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test byte [r13], 2
je 0x1400c7d40
test ebx, ebx
je 0x1400c7d40
mov esi, 0x32
cmp ebx, esi
cmovbe esi, ebx
mov ecx, esi
sub ebx, esi
call fcn.1400be350
jmp 0x1400c7a87
test byte [r13], 1
je 0x1400c7d30
test ebx, ebx
je 0x1400c7d30
call fcn.14009fcb0
mov rcx, r12
movabs r15, 0x431bde82d7b634db
mul r15
mov rsi, rdx
mov edx, ebx
shr rsi, 0x12
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1400c7d4f
call fcn.14009fcb0
mul r15
shr rdx, 0x12
mov eax, edx
sub eax, esi
add esi, ebx
sub esi, edx
cmp eax, ebx
mov ebx, 1
cmovb ebx, esi
jmp 0x1400c7a87
xor r9d, r9d
mov edx, 0xd7
mov rcx, rdi
mov ebx, 2
lea rax, str.try_connect_state
lea r8, str.ipc_client
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
lea r9, str.try_connect
mov edx, 0xd9
mov rcx, rdi
mov qword [rsp + 0x20], 0
lea r8, str.ipc_client
call fcn.1400a1690
jmp 0x1400c7b58
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x1400c7d89
mov edx, 0x8002
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__open_osfhandle]
mov ebx, eax
test eax, eax
js 0x1400c7dc7
lea rax, str.try_connect_state
xor r9d, r9d
mov edx, 0xd7
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8, str.ipc_client
mov qword [rsp + 0x28], 0
call fcn.1400a18d0
lea r9, str.try_connect
mov edx, 0xd9
mov rcx, rdi
mov qword [rsp + 0x20], 0
lea r8, str.ipc_client
call fcn.1400a1690
mov edx, 4
mov ecx, 1
call fcn.1400bd320
mov qword [rbp], rax
mov dword [rax], ebx
xor ebx, ebx
jmp 0x1400c7b58
mov eax, 1
mov ebx, 1
jmp 0x1400c7b0c
mov eax, 3
mov ebx, 3
jmp 0x1400c7b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x79
je 0x1400c7d30
mov eax, eax
xor r9d, r9d
lea r8, str.ipc_debug
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, str.connect_waitpipe_gle
mov edx, 0x7e
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
jmp 0x1400c7b02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
xor r9d, r9d
mov edx, 0xa1
mov eax, eax
lea r8, str.ipc_debug
mov qword [rsp + 0x28], rax
lea rax, str.connect_setpipestate_gle
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c7b02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
xor r9d, r9d
mov edx, 0xac
mov eax, eax
lea r8, str.ipc_debug
mov qword [rsp + 0x28], rax
lea rax, str.connect_openosfhandle_gle
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c7b02
call fcn.1401d96b0
nop
nop dword [rax + rax]