Function at 0x14015cd70
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 0x48], 0
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
call sub.kernel32.dll_ReadFile
mov edi, eax
movabs rbx, 0x8000000000000000
test eax, eax
je 0x14015cdf5
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x14015cdf5
mov qword [rbp - 0x10], rbx
mov dword [rbp + 8], 2
lea rdi, [rbp + 0xc]
mov qword [rbp + 0x30], rsi
lea rcx, [0x140367e70]
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x40], eax
mov byte [rbp + 0x44], 0
xor eax, eax
jmp 0x14015cf0a
call fcn.1402a96f0
mov edx, eax
shl rdx, 0x20
or rdx, 2
test edi, edi
jne 0x14015ce8e
movabs rax, 0xffffffff00000000
and rax, rdx
movabs rcx, 0x3e500000000
cmp rax, rcx
jne 0x14015ce8e
mov rcx, rdx
call fcn.140059340
mov qword [rbp - 0x10], rbx
mov dword [rbp + 8], 2
mov qword [rbp + 0x30], rsi
lea rax, [0x140367e70]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], 0
xor edx, edx
cmp dword [rsi], 1
sbb edx, edx
mov byte [rbp + 0x44], 1
or edx, dword [rsi + 4]
mov rcx, qword [rsi + 0x18]
call sub.kernel32.dll_WaitForSingleObject
lea rdi, [rbp + 0xc]
cmp eax, 0xffffffff
je 0x14015cec2
test eax, eax
je 0x14015ce98
cmp eax, 0x102
jne 0x14015d15a
lea rcx, str.timed_out_while_reading_from_pipe
call fcn.14015c2d0
jmp 0x14015cf0a
mov eax, 1
jmp 0x14015d11b
mov dword [rbp + 0x48], 0
mov byte [rbp + 0x44], 0
cmp dword [rbp + 8], 2
jne 0x14015cec9
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14015d174
mov rax, qword [rbp + 0x38]
call qword [rax + 0x18]
mov rcx, rdx
jmp 0x14015ced1
call fcn.1402a96f0
jmp 0x14015cf02
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov rdx, qword [rax]
lea r8, [rbp + 0x48]
mov r9d, 1
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
je 0x14015cef6
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x14015cefd
mov dword [rbp + 0x40], eax
jmp 0x14015cdee
call fcn.1402a96f0
jmp 0x14015cf02
call fcn.1402a96f0
shl rax, 0x20
or rax, 2
mov r9d, dword [rbp + 8]
mov r11, qword [rbp + 0x18]
mov r10, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
mov dword [rbp + 8], 2
mov esi, dword [rbp + 0x40]
mov r14, qword [rbp - 0x10]
mov r15, qword [rbp - 8]
mov rdx, qword [rbp]
mov qword [rbp - 0x10], rbx
cmp r14, rbx
jne 0x14015cf59
mov esi, esi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x78], rbx
cmp r9d, 2
jne 0x14015d04a
xor edx, edx
test rax, rax
jne 0x14015cfb1
jmp 0x14015d0a0
cmp r9d, 2
je 0x14015d12b
mov r8d, dword [rdi + 8]
mov dword [rbp + 0x5c], r8d
mov r8, qword [rdi]
mov qword [rbp + 0x54], r8
mov qword [rbp + 0x48], rsi
mov dword [rbp + 0x50], r9d
mov qword [rbp + 0x60], r11
mov qword [rbp + 0x68], r10
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], rdx
movabs rcx, 0x8000000000000001
cmp r14, rcx
sete dl
test rax, rax
je 0x14015d0a0
mov ecx, eax
and ecx, 3
cmp rcx, 2
mov qword [rbp + 0xa0], rax
jb 0x14015d00b
cmp ecx, 2
jne 0x14015d00b
mov rcx, rax
shr rcx, 0x20
cmp ecx, 0x6d
jne 0x14015d00b
mov rcx, qword [rbp + 0x70]
mov qword [rbp - 0x20], rcx
movups xmm0, xmmword [rbp + 0x50]
movups xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rbp + 0x80]
movaps xmmword [rbp - 0x50], xmm0
mov byte [rbp + 0xaf], 0
mov rcx, rax
call fcn.140059340
jmp 0x14015d0c3
test dl, dl
je 0x14015d020
mov byte [rbp + 0xaf], 0
mov rcx, rsi
call fcn.140059340
jmp 0x14015d030
mov byte [rbp + 0xaf], 0
lea rcx, [rbp + 0x48]
call fcn.14015c3c0
lea rcx, [rbp - 0x10]
call fcn.14015c600
mov eax, 1
mov rdx, qword [rbp + 0xa0]
jmp 0x14015d11b
mov qword [rbp + 0x90], r11
mov qword [rbp + 0x98], r10
mov qword [rbp + 0xa0], rax
call fcn.14032c656
mov edx, 0x20
mov r8d, 8
mov rcx, qword [rbp + 0x90]
call fcn.140120550
mov byte [rbp + 0xaf], 1
mov rcx, qword [rbp + 0x98]
call fcn.14032c656
xor edx, edx
mov rax, qword [rbp + 0xa0]
test rax, rax
jne 0x14015cfb1
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp + 0x50]
movups xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rbp + 0x80]
movaps xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x10]
call fcn.14015c600
movabs rax, 0x8000000000000001
cmp r14, rax
jne 0x14015d0e2
mov eax, 1
jmp 0x14015d118
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x70], rax
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rbp + 0x60], xmm1
movups xmmword [rbp + 0x50], xmm0
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x78], r14
lea rcx, [rbp + 0x48]
call fcn.14015c3c0
xor eax, eax
mov rdx, rsi
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], r14
mov qword [rbp + 0xa0], rax
lea rcx, str.internal_error:_entered_unreachable_codeC:Userspavel.cargo_registry_srcindex.crates.io_6f17d22bba15001f_named_pipe_0.4.1_srclib.rs
lea r8, [0x140367e00]
mov edx, 0x28
call fcn.1403392c0
jmp 0x14015d18c
lea rcx, str.internal_error:_entered_unreachable_codeC:Userspavel.cargo_registry_srcindex.crates.io_6f17d22bba15001f_named_pipe_0.4.1_srclib.rs
lea r8, [0x140367ef0]
mov edx, 0x28
call fcn.1403392c0
jmp 0x14015d18c
lea rcx, str.internal_error:_entered_unreachable_codeC:Userspavel.cargo_registry_srcindex.crates.io_6f17d22bba15001f_named_pipe_0.4.1_srclib.rs
lea r8, [0x140367d40]
mov edx, 0x28
call fcn.1403392c0
ud2