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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
and dword [rdx + 0x58], 0xfffdffff
mov rsi, rcx
mov rcx, qword [rdx + 0x128]
mov rdi, r8
mov rbx, rdx
test rcx, rcx
je 0x14004aa06
call fcn.140044ca0
mov eax, dword [rbx + 0x58]
mov ecx, dword [rdi + 0x40]
and eax, 0x100
mov qword [rsp + 0x300], r14
test ecx, ecx
jns 0x14004aa5a
test eax, eax
je 0x14004ad3c
movups xmm0, xmmword [0x1400af098]
movaps xmmword [rsp + 0x40], xmm0
call qword [0x1400cdaa8]
cmp eax, 0x3e3
je 0x14004ad3c
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.14004a920
jmp 0x14004ad3c
test eax, eax
je 0x14004ad22
xor r14d, r14d
nop word [rax + rax]
mov rcx, qword [rbx + 0x118]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], r14
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 0x14004acf6
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14004ad22
cmp dword [rbx + 0x110], r14d
je 0x14004ac3f
mov rcx, qword [rbx + 0x1e8]
test rcx, rcx
jne 0x14004ac36
lea r8d, [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004acf6
mov eax, dword [rsp + 0x60]
test al, 2
je 0x14004ac1b
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x34]
mov r8d, 0x278
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004acf6
mov edi, dword [rsp + 0x60]
mov ecx, 0x290
and edi, 4
call qword [fcn.140061ddc]
mov r9, rax
test rax, rax
je 0x14004ad88
mov rdx, rax
lea rcx, [rsp + 0x70]
mov r8d, 4
nop
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x14004ab50
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
mov rax, qword [rcx + 0x70]
lea rcx, [r9 + 0x278]
mov qword [rdx + 0x70], rax
lea rax, [rbx + 0x1f0]
mov dword [r9 + 0x288], edi
mov qword [rcx], rax
mov rax, qword [rbx + 0x1f8]
mov qword [r9 + 0x280], rax
mov qword [rax], rcx
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x1f8], rcx
inc dword [rbx + 0x200]
test al, 1
je 0x14004ac30
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e8], rax
jmp 0x14004acc6
mov eax, dword [rsp + 0x30]
jmp 0x14004ac3f
cmp eax, ecx
cmovae eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], r14
lea r8, [rsp + 0x50]
mov dword [rsp + 0x40], r14d
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x40]
mov edx, eax
movdqa xmmword [rsp + 0x50], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14004ace2
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004ace2
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov rcx, qword [rbx + 0x118]
cmp eax, r8d
mov qword [rsp + 0x20], r14
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004acd5
mov ecx, dword [rsp + 0x34]
cmp dword [rbx + 0x110], r14d
je 0x14004acae
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 0x14004ad22
test dword [rbx + 0x58], 0x100
jne 0x14004aa70
jmp 0x14004ad22
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x14004ad02
lea r8, [rsp + 0x50]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x14004ad22
movups xmm0, xmmword [0x1400af098]
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
je 0x14004ad22
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.14004a920
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x14004ad3c
mov rdx, rbx
mov rcx, rsi
call fcn.14004a700
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x14004ad65
test ecx, ecx
jne 0x14004ad65
test al, 8
jne 0x14004ad65
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov r14, qword [rsp + 0x300]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140059450
add rsp, 0x308
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.1400494b0
int3