Function at 0x1800017da
Capabilities:
Read file on windows
Read pipe

Disassembly:
jmp 0x18009c670
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x180118258]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
and dword [rdx + 0x58], 0xfffdffff
mov rsi, rcx
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call fcn.1800998c0
mov ecx, dword [rdi + 0x40]
mov eax, dword [rbx + 0x58]
test ecx, ecx
jns 0x18009c6ee
bt eax, 8
jae 0x18009c8c4
movups xmm0, xmmword [0x1800ed268]
movaps xmmword [rsp + 0x40], xmm0
call qword [0x18012e138]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
mov rcx, rsi
call fcn.18009b880
jmp 0x18009c8c4
bt eax, 8
jae 0x18009c8aa
xor edi, edi
nop word [rax + rax]
mov rcx, qword [rbx + 0x118]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18009c885
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18009c8aa
cmp dword [rbx + 0x110], edi
je 0x18009c7e9
mov rcx, qword [rbx + 0x1e8]
test rcx, rcx
jne 0x18009c7e0
lea r8d, [rcx + 0x10]
mov qword [rsp + 0x20], rdi
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009c885
mov eax, dword [rsp + 0x60]
test al, 2
je 0x18009c7c8
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x34]
mov r8d, 0x278
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009c885
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x70]
and r8d, 4
mov rcx, rbx
call fcn.1800018c0
mov eax, dword [rsp + 0x60]
test al, 1
je 0x18009c7da
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e8], rax
jmp 0x18009c855
mov eax, dword [rsp + 0x30]
jmp 0x18009c7e9
cmp eax, ecx
cmovae eax, ecx
mov dword [rsp + 0x30], eax
mov edx, eax
lea r8, [rsp + 0x50]
mov rcx, rbx
call qword [rbx + 0x68]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18009c871
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov rdx, qword [rsp + 0x58]
cmp eax, r8d
mov rcx, qword [rbx + 0x118]
cmovb r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009c864
mov ecx, dword [rsp + 0x34]
cmp dword [rbx + 0x110], edi
je 0x18009c83d
sub qword [rbx + 0x1e8], rcx
mov rdx, rcx
lea r8, [rsp + 0x50]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jbe 0x18009c8aa
test dword [rbx + 0x58], 0x100
jne 0x18009c700
jmp 0x18009c8aa
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x18009c891
lea r8, [rsp + 0x50]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x18009c8aa
movups xmm0, xmmword [0x1800ed268]
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
mov rcx, rsi
call fcn.18009b880
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x18009c8c4
mov rdx, rbx
mov rcx, rsi
call fcn.18009b5d0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x18009c8ed
test ecx, ecx
jne 0x18009c8ed
test al, 8
jne 0x18009c8ed
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.180002752
mov rbx, qword [rsp + 0x338]
add rsp, 0x300
pop rdi
pop rsi
pop rbp
ret