Function at 0x14011cd10
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x50], xmm6
mov rdi, rdx
mov r13, rcx
mov rbx, qword [rdx]
mov r14, qword [rdx + 0x10]
mov rax, rbx
sub rax, r14
mov qword [rbp + 8], rbx
mov rsi, r14
cmp rax, 0x20
jae 0x14011cd7c
mov rcx, r13
mov rdx, rdi
call sym.std::io::default_read_to_end::small_probe_read::h473975566abc37c7
mov rsi, rdx
test rax, rax
je 0x14011cd6c
mov eax, 1
jmp 0x14011cfce
test rsi, rsi
je 0x14011cfc0
mov rbx, qword [rdi]
mov rsi, qword [rdi + 0x10]
mov qword [rbp + 0x38], r14
mov rax, qword [r13]
mov qword [rbp + 0x30], rax
mov r15d, 0x2000
xor r8d, r8d
xorps xmm6, xmm6
xor r14d, r14d
jmp 0x14011cdb1
cmp r12, r15
cmovb rcx, r15
cmp rax, r12
cmove r15, rcx
sub r14, rax
mov qword [rbp], r8
cmp rbx, qword [rbp + 8]
jne 0x14011cde3
cmp rsi, rbx
jne 0x14011cde3
mov rcx, r13
mov rdx, rdi
call sym.std::io::default_read_to_end::small_probe_read::h473975566abc37c7
mov rsi, rdx
test rax, rax
jne 0x14011cd62
test rsi, rsi
je 0x14011cfc4
mov rbx, qword [rdi]
mov rsi, qword [rdi + 0x10]
mov r12, rbx
sub r12, rsi
jne 0x14011ce40
cmp rbx, 0xffffffffffffffdf
ja 0x14011cf95
mov r12, rdi
mov rdi, r13
lea r13, [rbx + 0x20]
lea rax, [rbx + rbx]
cmp rax, r13
cmova r13, rax
test r13, r13
js 0x14011cf95
test rbx, rbx
je 0x14011cf43
mov rax, qword [r12 + 8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], rbx
mov eax, 1
jmp 0x14011cf45
mov rax, qword [rdi + 8]
cmp r12, r15
jb 0x14011ce4c
mov r12, r15
movups xmm0, xmmword [0x140198a00]
movaps xmmword [rbp + 0x10], xmm0
mov edx, 0xffffffff
mov rcx, r12
cmp r12, rdx
jb 0x14011ce69
mov ecx, 0xffffffff
add rax, rsi
movups xmmword [rsp + 0x38], xmm6
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x30]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14011ceac
mov rcx, qword [rbp + 0x30]
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
je 0x14011cfba
cmp eax, 0x103
je 0x14011d010
test eax, eax
mov r8, qword [rbp]
js 0x14011cfa6
mov rax, qword [rbp + 0x18]
add rsi, rax
mov qword [rdi + 0x10], rsi
test rax, rax
je 0x14011cfc8
cmp r14, rax
cmovbe r14, rax
cmp rax, r12
jb 0x14011cf10
xor r8d, r8d
mov rcx, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
cmp r8d, 2
jl 0x14011cf27
jmp 0x14011cf2a
inc r8d
mov rcx, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
cmp r8d, 2
jge 0x14011cf2a
mov rdx, r15
cmp r14, r12
cmovne r15, rdx
test r15, r15
js 0x14011cda0
lea rcx, [r15 + r15]
jmp 0x14011cda0
xor eax, eax
mov qword [rbp - 0x30], rax
mov edx, 1
lea rcx, [rbp + 0x10]
mov r8, r13
lea r9, [rbp - 0x38]
call sym.alloc::raw_vec::finish_grow::h2c9a611e84805ad3
cmp dword [rbp + 0x10], 1
je 0x14011cfe9
mov rax, qword [rbp + 0x18]
mov rcx, r12
mov qword [r12 + 8], rax
mov qword [r12], r13
mov r12, r13
sub r12, rbx
mov rbx, r13
mov r13, rdi
mov rdi, rcx
cmp r12, r15
jae 0x14011ce49
jmp 0x14011ce4c
mov eax, 1
movabs rsi, 0x2600000003
jmp 0x14011cfce
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ebx, eax
mov ecx, eax
call sym.std::sys::pal::windows::decode_error_kind::h023ff317e78872fe
cmp al, 0xb
jne 0x14011cffa
mov qword [rdi + 0x10], rsi
jmp 0x14011cfc8
xor esi, esi
jmp 0x14011cfcc
mov rsi, qword [rdi + 0x10]
sub rsi, qword [rbp + 0x38]
xor eax, eax
mov rdx, rsi
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movabs rsi, 0x2600000003
mov eax, 1
jmp 0x14011cfce
shl rbx, 0x20
or rbx, 2
mov qword [rdi + 0x10], rsi
mov eax, 1
mov rsi, rbx
jmp 0x14011cfce
mov dword [rbp + 0x40], 0
mov byte [rbp + 0x44], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x48]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x38]
call sym.std::io::Write::write_fmt::hdd05168affbfeba5
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3945ec9a027a2ad9
mov ecx, 7
int 0x29
ud2