Function at 0x44f200
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 0x44f239
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__type__UV_NAMED_PIPE
mov r8d, 0x613
call fcn.00480c40
mov eax, dword [rbx + 0x58]
mov edx, eax
and edx, 0xfffdffff
test ah, 0x10
mov dword [rbx + 0x58], edx
je 0x44f640
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x44f261
call fcn.00458870
mov rcx, qword [rsi + 0x40]
mov eax, dword [rbx + 0x58]
test ecx, ecx
js 0x44f5d3
lea r12, [rsp + 0x60]
mov rbp, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea r13, [r12 + 0x10]
test ah, 1
je 0x44f4ad
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 0x44f693
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x44f4aa
mov edx, dword [rbx + 0x110]
test edx, edx
je 0x44f3b4
mov rdx, qword [rbx + 0x1e8]
test rdx, rdx
jne 0x44f475
cmp eax, 0xf
jbe 0x44f520
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 0x44f693
cmp dword [rsp + 0x48], 0x10
je 0x44f33b
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes__sizeof_ipc_frame.header_
mov r8d, 0x642
call fcn.00480c40
mov eax, dword [rsp + 0x60]
cmp eax, 7
jg 0x44f5a0
test al, 2
je 0x44f3ac
mov eax, dword [rsp + 0x4c]
sub rax, 0x10
cmp rax, 0x277
jbe 0x44f580
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 0x44f693
cmp dword [rsp + 0x48], 0x278
jne 0x44f540
mov r8d, dword [rsp + 0x60]
mov rdx, r13
mov rcx, rbx
and r8d, 4
call fcn.0044f150
mov eax, dword [rsp + 0x60]
test al, 1
jne 0x44f5c2
lea rdi, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rsi, [rsp + 0x50]
mov rcx, rdi
call fcn.0043ecb0
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 0x44f660
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x44f660
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 0x44f483
mov eax, dword [rbx + 0x110]
mov edx, dword [rsp + 0x48]
test eax, eax
je 0x44f45a
mov rax, qword [rbx + 0x1e8]
cmp rax, rdx
jb 0x44f4f0
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 0x44f4aa
mov eax, dword [rbx + 0x58]
jmp 0x44f281
cmp eax, edx
cmovae eax, edx
mov dword [rsp + 0x4c], eax
jmp 0x44f3b4
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.0044cf20
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
je 0x44f683
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x44f617
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x44f4de
test dl, 1
jne 0x44f560
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, 0x677
call fcn.00480c40
mov rax, qword [rbx + 0x1e8]
mov edx, dword [rsp + 0x48]
jmp 0x44f450
lea rdx, str.src_win_pipe.c
lea rcx, str.avail___sizeof_ipc_frame.header_
mov r8d, 0x636
call fcn.00480c40
jmp 0x44f2e9
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes__sizeof_ipc_frame____sizeof_ipc_frame.header_
mov r8d, 0x655
call fcn.00480c40
jmp 0x44f394
test dl, 8
jne 0x44f4de
mov rax, qword [r14 + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [r14 + 0x50], rbx
jmp 0x44f4de
lea rdx, str.src_win_pipe.c
lea rcx, str.avail___sizeof_ipc_frame.header____sizeof_ipc_frame.socket_info_ex_
mov r8d, 0x648
call fcn.00480c40
jmp 0x44f360
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, 0x644
call fcn.00480c40
mov eax, dword [rsp + 0x60]
jmp 0x44f348
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e8], rax
jmp 0x44f46d
test ah, 1
je 0x44f4bd
mov rax, qword [0x004ba890]
call qword [rax]
mov r9, qword [0x004b1830]
mov r10, qword [0x004b1838]
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
call fcn.0044cf20
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x44f4c8
lea rdx, str.src_win_pipe.c
lea rcx, [0x004b14b4]
mov r8d, 0x68e
call fcn.00480c40
mov eax, dword [rbx + 0x78]
jmp 0x44f4c8
lea rdx, str.src_win_pipe.c
lea rcx, str.pipe__flags__UV_HANDLE_CONNECTION
mov r8d, 0x737
call fcn.00480c40
jmp 0x44f250
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 0x44f4bd
mov rdx, rbx
mov rcx, r14
call fcn.0044c4b0
jmp 0x44f4bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [0x004b1830]
mov r10, qword [0x004b1838]
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
call fcn.0044cf20
mov eax, dword [rbx + 0x58]
jmp 0x44f4ad