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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x308
cmp dword [rdx + 0x10], 7
mov qword [rsp + 0x350], rcx
mov r15, rdx
mov rbx, r8
je 0x44d440
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__type__UV_NAMED_PIPE
mov r8d, 0x61e
call fcn.00472160
mov eax, dword [r15 + 0x58]
mov edx, eax
and edx, 0xfffdffff
test ah, 0x10
mov dword [r15 + 0x58], edx
je 0x44d802
mov rcx, qword [r15 + 0x128]
test rcx, rcx
je 0x44d46a
call fcn.00456ac0
mov rcx, qword [rbx + 0x40]
test ecx, ecx
js 0x44d820
lea r14, [rsp + 0x70]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdi, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea rbp, [rsp + 0x5c]
lea rax, [r14 + 0x10]
mov r13, r12
mov qword [rsp + 0x38], rax
nop word [rax + rax]
mov eax, dword [r15 + 0x58]
test ah, 1
je 0x44d600
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0x118]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbp
call rdi
test eax, eax
je 0x44d8a0
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x44d720
mov edx, dword [r15 + 0x110]
test edx, edx
je 0x44d679
mov rdx, qword [r15 + 0x1e8]
test rdx, rdx
jne 0x44d670
cmp eax, 0xf
jbe 0x44d7c0
lea rbx, [rsp + 0x58]
mov rcx, qword [r15 + 0x118]
mov qword [rsp + 0x20], 0
mov r8d, 0x10
mov rdx, r14
mov r9, rbx
call r13
test eax, eax
je 0x44d8a0
cmp dword [rsp + 0x58], 0x10
je 0x44d554
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes__sizeof_ipc_frame.header_
mov r8d, 0x64d
call fcn.00472160
mov eax, dword [rsp + 0x70]
cmp eax, 7
jg 0x44d7e0
test al, 2
je 0x44d5df
mov eax, dword [rsp + 0x5c]
sub rax, 0x10
cmp rax, 0x277
jbe 0x44d860
mov rcx, qword [r15 + 0x118]
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, 0x278
mov rdx, qword [rsp + 0x38]
call r13
test eax, eax
je 0x44d8a0
cmp dword [rsp + 0x58], 0x278
je 0x44d5c5
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes__sizeof_ipc_frame____sizeof_ipc_frame.header_
mov r8d, 0x660
call fcn.00472160
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x38]
mov rcx, r15
and r8d, 4
call fcn.0044d350
mov eax, dword [rsp + 0x70]
test al, 1
je 0x44d679
mov rax, qword [rsp + 0x78]
mov qword [r15 + 0x1e8], rax
mov eax, dword [r15 + 0x58]
test ah, 1
jne 0x44d4ad
and eax, 0x20100
cmp eax, 0x100
je 0x44d734
mov eax, dword [r15 + 0x78]
test eax, eax
je 0x44d750
sub eax, 1
mov edx, dword [r15 + 0x58]
test eax, eax
mov dword [r15 + 0x78], eax
jne 0x44d658
test dl, 1
je 0x44d658
test dl, 8
jne 0x44d658
mov rax, qword [rsp + 0x350]
or edx, 8
mov dword [r15 + 0x58], edx
mov rax, qword [rax + 0x50]
mov qword [r15 + 0x50], rax
mov rax, qword [rsp + 0x350]
mov qword [rax + 0x50], r15
add rsp, 0x308
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, edx
cmovae eax, edx
mov dword [rsp + 0x5c], eax
lea rsi, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rbx, [rsp + 0x60]
mov rcx, rsi
call fcn.0043d540
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rcx, r15
mov qword [rsp + 0x68], rdx
mov edx, dword [rsp + 0x5c]
mov qword [rsp + 0x60], rax
call qword [r15 + 0x68]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x44d880
mov r8d, dword [rsp + 0x60]
test r8d, r8d
je 0x44d880
cmp dword [rsp + 0x5c], r8d
mov rcx, qword [r15 + 0x118]
lea r9, [rsp + 0x58]
cmovbe r8d, dword [rsp + 0x5c]
mov qword [rsp + 0x20], 0
call r12
test eax, eax
je 0x44d8e0
mov eax, dword [r15 + 0x110]
test eax, eax
jne 0x44d772
mov edx, dword [rsp + 0x58]
mov r8, rbx
mov rcx, r15
call qword [r15 + 0x70]
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x60], eax
jb 0x44d4a0
mov eax, dword [r15 + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x44d610
mov rcx, qword [rsp + 0x350]
mov rdx, r15
call fcn.0044a7b0
mov eax, dword [r15 + 0x78]
test eax, eax
jne 0x44d61c
lea rdx, str.src_win_pipe.c
lea rcx, [0x0051b734]
mov r8d, 0x699
call fcn.00472160
mov eax, dword [r15 + 0x78]
jmp 0x44d61c
mov edx, dword [rsp + 0x58]
mov rax, qword [r15 + 0x1e8]
cmp rax, rdx
jb 0x44d791
sub rax, rdx
mov qword [r15 + 0x1e8], rax
jmp 0x44d708
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__pipe.conn.remaining_ipc_rawdata_bytes___bytes
mov r8d, 0x682
call fcn.00472160
mov rax, qword [r15 + 0x1e8]
mov edx, dword [rsp + 0x58]
jmp 0x44d782
lea rdx, str.src_win_pipe.c
lea rcx, str.avail___sizeof_ipc_frame.header_
mov r8d, 0x641
call fcn.00472160
jmp 0x44d508
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, 0x64f
call fcn.00472160
mov eax, dword [rsp + 0x70]
jmp 0x44d561
lea rdx, str.src_win_pipe.c
lea rcx, str.pipe__flags__UV_HANDLE_CONNECTION
mov r8d, 0x742
call fcn.00472160
jmp 0x44d459
test byte [r15 + 0x59], 1
je 0x44d610
mov rax, qword [0x00523d60]
call qword [rax]
mov rcx, qword [0x0051bab0]
mov rbx, qword [0x0051bab8]
lea r8, [rsp + 0x40]
mov edx, eax
mov qword [rsp + 0x40], rcx
mov rcx, r15
mov qword [rsp + 0x48], rbx
call fcn.0044b1c0
jmp 0x44d610
lea rdx, str.src_win_pipe.c
lea rcx, str.avail___sizeof_ipc_frame.header____sizeof_ipc_frame.socket_info_ex_
mov r8d, 0x653
call fcn.00472160
jmp 0x44d579
mov r8, rbx
mov rdx, 0xfffffffffffff024
mov rcx, r15
call qword [r15 + 0x70]
mov eax, dword [r15 + 0x58]
jmp 0x44d600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x0051bab0]
mov rbx, qword [0x0051bab8]
lea r8, [rsp + 0x40]
mov edx, eax
mov qword [rsp + 0x40], rcx
mov rcx, r15
mov qword [rsp + 0x48], rbx
call fcn.0044b1c0
mov eax, dword [r15 + 0x58]
jmp 0x44d600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov r8, rsi
mov edx, eax
mov qword [rsp + 0x40], rcx
mov rcx, r15
mov qword [rsp + 0x48], rbx
call fcn.0044b1c0
jmp 0x44d720