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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2f0
cmp dword [rdx + 0x10], 7
mov r14, rcx
mov rbx, rdx
mov rsi, r8
je 0x459ef9
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__type__UV_NAMED_PIPE
mov r8d, 0x616
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
mov edx, eax
and edx, 0xfffdffff
test ah, 0x10
mov dword [rbx + 0x58], edx
je 0x45a300
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x459f21
call fcn.00463860
mov rcx, qword [rsi + 0x40]
mov eax, dword [rbx + 0x58]
test ecx, ecx
js 0x45a293
lea r12, [rsp + 0x60]
mov rbp, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea r13, [r12 + 0x10]
test ah, 1
je 0x45a16d
lea rax, [rsp + 0x4c]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x118]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x45a353
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x45a16a
mov edx, dword [rbx + 0x110]
test edx, edx
je 0x45a074
mov rdx, qword [rbx + 0x1e8]
test rdx, rdx
jne 0x45a135
cmp eax, 0xf
jbe 0x45a1e0
lea rdi, [rsp + 0x48]
mov rcx, qword [rbx + 0x118]
mov qword [rsp + 0x20], 0
mov r8d, 0x10
mov rdx, r12
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9, rdi
call rsi
test eax, eax
je 0x45a353
cmp dword [rsp + 0x48], 0x10
je 0x459ffb
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes__sizeof_ipc_frame.header_
mov r8d, 0x645
call fcn.0048c6c0
mov eax, dword [rsp + 0x60]
cmp eax, 7
jg 0x45a260
test al, 2
je 0x45a06c
mov eax, dword [rsp + 0x4c]
sub rax, 0x10
cmp rax, 0x277
jbe 0x45a240
mov rcx, qword [rbx + 0x118]
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x278
mov rdx, r13
call rsi
test eax, eax
je 0x45a353
cmp dword [rsp + 0x48], 0x278
jne 0x45a200
mov r8d, dword [rsp + 0x60]
mov rdx, r13
mov rcx, rbx
and r8d, 4
call fcn.00459e10
mov eax, dword [rsp + 0x60]
test al, 1
jne 0x45a282
lea rdi, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rsi, [rsp + 0x50]
mov rcx, rdi
call fcn.00449820
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov r8, rsi
mov rcx, rbx
mov qword [rsp + 0x58], rdx
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x50], rax
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x45a320
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x45a320
cmp dword [rsp + 0x4c], r8d
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x48]
cmovbe r8d, dword [rsp + 0x4c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45a143
mov eax, dword [rbx + 0x110]
mov edx, dword [rsp + 0x48]
test eax, eax
je 0x45a11a
mov rax, qword [rbx + 0x1e8]
cmp rax, rdx
jb 0x45a1b0
sub rax, rdx
mov qword [rbx + 0x1e8], rax
mov r8, rsi
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x50], eax
jae 0x45a16a
mov eax, dword [rbx + 0x58]
jmp 0x459f41
cmp eax, edx
cmovae eax, edx
mov dword [rsp + 0x4c], eax
jmp 0x45a074
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x58]
mov r8, rdi
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
call fcn.00457be0
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
je 0x45a343
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x45a2d7
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x45a19e
test dl, 1
jne 0x45a220
add rsp, 0x2f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__pipe.conn.remaining_ipc_rawdata_bytes___bytes
mov r8d, 0x67a
call fcn.0048c6c0
mov rax, qword [rbx + 0x1e8]
mov edx, dword [rsp + 0x48]
jmp 0x45a110
lea rdx, str.src_win_pipe.c
lea rcx, str.avail___sizeof_ipc_frame.header_
mov r8d, 0x639
call fcn.0048c6c0
jmp 0x459fa9
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes__sizeof_ipc_frame____sizeof_ipc_frame.header_
mov r8d, 0x658
call fcn.0048c6c0
jmp 0x45a054
test dl, 8
jne 0x45a19e
mov rax, qword [r14 + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [r14 + 0x50], rbx
jmp 0x45a19e
lea rdx, str.src_win_pipe.c
lea rcx, str.avail___sizeof_ipc_frame.header____sizeof_ipc_frame.socket_info_ex_
mov r8d, 0x64b
call fcn.0048c6c0
jmp 0x45a020
lea rdx, str.src_win_pipe.c
lea rcx, str.ipc_frame.header.flags____UV_IPC_TCP_SERVER__UV_IPC_RAW_DATA__UV_IPC_TCP_CONNECTION_
mov r8d, 0x647
call fcn.0048c6c0
mov eax, dword [rsp + 0x60]
jmp 0x45a008
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e8], rax
jmp 0x45a12d
test ah, 1
je 0x45a17d
mov rax, qword [0x004d3570]
call qword [rax]
mov r9, qword [0x004ca2a0]
mov r10, qword [0x004ca2a8]
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
call fcn.00457be0
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x45a188
lea rdx, str.src_win_pipe.c
lea rcx, [0x004c9f24]
mov r8d, 0x691
call fcn.0048c6c0
mov eax, dword [rbx + 0x78]
jmp 0x45a188
lea rdx, str.src_win_pipe.c
lea rcx, str.pipe__flags__UV_HANDLE_CONNECTION
mov r8d, 0x73a
call fcn.0048c6c0
jmp 0x459f10
mov r8, rsi
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x45a17d
mov rdx, rbx
mov rcx, r14
call fcn.00457170
jmp 0x45a17d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [0x004ca2a0]
mov r10, qword [0x004ca2a8]
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
call fcn.00457be0
mov eax, dword [rbx + 0x58]
jmp 0x45a16d