Function at 0x180003370
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x18002e010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x48], rdx
xor eax, eax
mov word [rsp + 0x50], ax
mov byte [rsp + 0x52], al
lea r14, [0x18002ec88]
xor ebp, ebp
mov rcx, r14
cmp qword [0x18002eca0], 8
cmovae rcx, qword [0x18002ec88]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800034fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x18000349d
mov rcx, r14
cmp qword [0x18002eca0], 8
cmovae rcx, qword [0x18002ec88]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1800033c0
lea rdx, str.Error__SendData_Could_not_open_pipe:_20_second_wait_timed_out.
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800011c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003493
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000348e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003759
mov rcx, r8
call fcn.180007264
mov eax, 1
jmp 0x180003722
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__SendData_Could_not_open_pipe._GLE_d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800011c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003493
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000348e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000375f
jmp 0x18000348b
mov dword [rsp + 0x54], ebp
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x54]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x180003586
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__SendData_SetNamedPipeHandleState_failed._GLE_d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800011c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003493
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000348e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003765
jmp 0x18000348b
mov rax, qword [rbx + 0x10]
lea r8d, [rax*2 + 2]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18000359f
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180003630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__SendData_WriteFile_to_pipe_failed._GLE_d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800011c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003493
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000348e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000376b
jmp 0x18000348b
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x5c]
mov r8d, 3
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx ecx, word [rsp + 0x50]
mov word [rsi], cx
movzx ecx, byte [rsp + 0x52]
mov byte [rsi + 2], cl
test eax, eax
jne 0x1800036db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x180003630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__SendData_ReadFile_from_pipe_failed._GLE_d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800011c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003493
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000348e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003771
jmp 0x18000348b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003720
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000371b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003777
mov rcx, r8
call fcn.180007264
xor eax, eax
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180006e20
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.18000f7d0
int3
call fcn.18000f7d0
int3
call fcn.18000f7d0
int3
call fcn.18000f7d0
int3
call fcn.18000f7d0
int3
call fcn.18000f7d0
int3