Function at 0x14010c770
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
movzx r14d, dl
mov qword [rsp + 0x60], rbp
mov rsi, rcx
lea r15, str.0cg_
nop word [rax + rax]
mov rcx, qword [rsi + 8]
movzx edi, r14b
xor r14b, r14b
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1401cd220.0]
mov rcx, qword [rsi + 8]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x20]
call qword [case.0x1401cd220.0]
mov qword [rsp + 0x38], rbx
mov edx, edi
shl edx, 0x13
mov r9d, 0xff
mov dword [rsp + 0x30], 0x1388
add edx, 0x40000003
mov dword [rsp + 0x28], 0x4000
mov r8d, 6
mov rcx, rax
mov dword [rsp + 0x20], 0x4000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14010cb4b
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx]
call qword [case.0x1401cd220.0]
mov rbx, rax
mov rdx, rbx
mov qword [rax], rdi
mov dword [rax + 8], 1
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x1401cd220.0]
mov rdx, qword [rsi + 0x10]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
lea rbp, [rbx + 0x20]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14010c9c1
mov rcx, qword [str.0cg_]
cmp rcx, r15
je 0x14010c89f
test byte [rcx + 0x1c], 1
je 0x14010c89f
cmp byte [rcx + 0x19], 4
jb 0x14010c89f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x11
call fcn.14007d150
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1401cd220.0]
test al, al
jne 0x14010c935
mov rax, qword [str.0cg_]
cmp rax, r15
je 0x14010c8f6
test byte [rax + 0x1c], 1
je 0x14010c8f6
cmp byte [rax + 0x19], 2
jb 0x14010c8f6
mov rcx, qword [rbx]
call fcn.14010bd10
mov edx, 0x12
mov rcx, qword [str.0cg_]
lea r8, [0x1405f97c8]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140082b10
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1401cd220.0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
jmp 0x14010c7a0
mov edx, dword [rbx + 0x1c]
lea r9, [rbx + 0x40]
mov r8d, dword [rbx + 0x18]
mov rcx, qword [rbx]
sub r8d, edx
add rdx, qword [rbx + 0x10]
mov dword [rbx + 8], 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010c7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14010c7a0
cmp eax, 0xea
je 0x14010c7a0
mov rcx, qword [str.0cg_]
cmp rcx, r15
je 0x14010c7a0
test byte [rcx + 0x1c], 1
je 0x14010c7a0
cmp byte [rcx + 0x19], 2
jb 0x14010c7a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x16
mov r9d, eax
call fcn.140082b10
jmp 0x14010c7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14010cb47
cmp eax, 0x217
jne 0x14010cae4
mov rcx, qword [str.0cg_]
cmp rcx, r15
je 0x14010ca0a
test byte [rcx + 0x1c], 1
je 0x14010ca0a
cmp byte [rcx + 0x19], 4
jb 0x14010ca0a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x13
call fcn.14007d150
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1401cd220.0]
test al, al
jne 0x14010ca58
mov rax, qword [str.0cg_]
cmp rax, r15
je 0x14010c8f6
test byte [rax + 0x1c], 1
je 0x14010c8f6
cmp byte [rax + 0x19], 2
jb 0x14010c8f6
mov rcx, qword [rbx]
call fcn.14010bd10
mov edx, 0x14
jmp 0x14010c8dc
mov edx, dword [rbx + 0x1c]
lea r9, [rbx + 0x40]
mov r8d, dword [rbx + 0x18]
mov rcx, qword [rbx]
sub r8d, edx
add rdx, qword [rbx + 0x10]
mov dword [rbx + 8], 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010c7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14010c7a0
cmp eax, 0xea
je 0x14010c7a0
mov rcx, qword [str.0cg_]
cmp rcx, r15
je 0x14010c7a0
test byte [rcx + 0x1c], 1
je 0x14010c7a0
cmp byte [rcx + 0x19], 2
jb 0x14010c7a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x16
mov r9d, eax
call fcn.140082b10
jmp 0x14010c7a0
mov rcx, qword [str.0cg_]
cmp rcx, r15
je 0x14010cb14
test byte [rcx + 0x1c], 1
je 0x14010cb14
cmp byte [rcx + 0x19], 2
jb 0x14010cb14
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x15
mov r9d, eax
call fcn.140082b10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1401cd220.0]
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
jmp 0x14010cb88
mov al, 1
jmp 0x14010cb8a
mov rax, qword [str.0cg_]
cmp rax, r15
je 0x14010cb88
test byte [rax + 0x1c], 1
je 0x14010cb88
cmp byte [rax + 0x19], 2
jb 0x14010cb88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.0cg_]
lea r8, [0x1405f97c8]
mov edx, 0x10
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140082b10
xor al, al
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret