Function at 0x14003a450
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x60], xmm6
mov rsi, rdx
mov r12, rcx
mov r15, qword [rdx]
mov r14, qword [rdx + 0x10]
mov eax, 0x2000
mov qword [rbp + 0x58], rax
mov qword [rbp + 8], r8
test r8b, 1
je 0x14003a4d8
cmp r9, 0xfffffffffffffbff
ja 0x14003a4c4
lea rdx, [r9 + 0x400]
mov rax, rdx
and rax, 0x1fff
je 0x14003a762
mov ecx, 0x2000
sub rcx, rax
add rdx, rcx
mov qword [rbp + 0x58], rdx
setb al
test al, 1
je 0x14003a4cd
mov eax, 0x2000
mov qword [rbp + 0x58], rax
mov rbx, r15
mov rdi, r14
test r9, r9
jne 0x14003a50b
mov rax, r15
sub rax, r14
cmp rax, 0x20
jae 0x14003a505
mov rcx, r12
mov rdx, rsi
call sym.std::io::default_read_to_end::small_probe_read::h473975566abc37c7
mov rdi, rdx
test rax, rax
je 0x14003a74b
mov eax, 1
jmp 0x14003a7c9
mov rbx, r15
mov rdi, r14
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x48], 0
xorps xmm6, xmm6
xor r14d, r14d
mov qword [rbp + 0x38], rsi
cmp rdi, rbx
je 0x14003a54d
jmp 0x14003a575
mov qword [rbp + 0x48], 0
mov r14, rcx
sub r14, rax
test byte [rbp + 8], 1
je 0x14003a6ee
cmp rdi, rbx
jne 0x14003a575
cmp rbx, r15
jne 0x14003a575
mov rcx, r12
mov rdx, rsi
call sym.std::io::default_read_to_end::small_probe_read::h473975566abc37c7
mov rdi, rdx
test rax, rax
jne 0x14003a4fb
test rdi, rdi
je 0x14003a75c
mov rbx, qword [rsi]
mov rdi, qword [rsi + 0x10]
cmp rdi, rbx
jne 0x14003a5c0
cmp rdi, 0xffffffffffffffdf
ja 0x14003a73a
lea rbx, [rdi + 0x20]
lea rax, [rdi + rdi]
cmp rax, rbx
cmova rbx, rax
test rbx, rbx
js 0x14003a73a
test rdi, rdi
je 0x14003a5c9
mov rax, qword [rsi + 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rdi
mov eax, 1
jmp 0x14003a5cb
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
jmp 0x14003a5f9
xor eax, eax
mov qword [rbp - 0x28], rax
mov edx, 1
lea rcx, [rbp + 0x10]
mov r8, rbx
lea r9, [rbp - 0x30]
call sym.alloc::raw_vec::finish_grow::h2c9a611e84805ad3
cmp dword [rbp + 0x10], 1
je 0x14003a79e
mov rax, qword [rbp + 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], rbx
mov r13, rbx
sub r13, rdi
mov rsi, r15
mov rcx, qword [rbp + 0x58]
cmp r13, rcx
jb 0x14003a60e
mov r13, rcx
mov r15, r12
mov r12, qword [r12]
movups xmm0, xmmword [0x1400b0550]
movaps xmmword [rbp + 0x10], xmm0
mov edx, 0xffffffff
mov rcx, r13
cmp r13, rdx
jb 0x14003a632
mov ecx, 0xffffffff
add rax, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, r12
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14003a673
mov rcx, r12
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x14003a690
xor eax, eax
mov r12, r15
mov r15, rsi
jmp 0x14003a6ad
cmp eax, 0x103
je 0x14003a7e4
test eax, eax
js 0x14003a77a
mov r12, r15
mov r15, rsi
mov rax, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x38]
add rdi, rax
mov qword [rsi + 0x10], rdi
test rax, rax
je 0x14003a796
cmp r14, rax
mov rcx, r14
cmovbe rcx, rax
cmp rax, r13
jae 0x14003a530
mov rdx, qword [rbp + 0x48]
inc edx
mov qword [rbp + 0x48], rdx
mov r14, rcx
sub r14, rax
test byte [rbp + 8], 1
jne 0x14003a548
mov rdx, 0xffffffffffffffff
mov r8, 0xffffffffffffffff
cmp dword [rbp + 0x48], 2
jge 0x14003a706
mov r8, qword [rbp + 0x58]
cmp rcx, r13
mov rcx, qword [rbp + 0x58]
cmovne rcx, r8
test rcx, rcx
js 0x14003a71a
lea rdx, [rcx + rcx]
cmp r13, rcx
cmovb rdx, rcx
cmp rax, r13
cmove rcx, rdx
mov qword [rbp + 0x58], rcx
cmp rdi, rbx
je 0x14003a54d
jmp 0x14003a575
mov eax, 1
movabs rdi, 0x2600000003
jmp 0x14003a7c9
test rdi, rdi
je 0x14003a7af
mov rbx, qword [rsi]
mov rdi, qword [rsi + 0x10]
jmp 0x14003a50b
mov rdi, qword [rsi + 0x10]
jmp 0x14003a796
mov qword [rbp + 0x58], rdx
mov rbx, r15
mov rdi, r14
test r9, r9
jne 0x14003a50b
jmp 0x14003a4d8
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
mov rax, qword [rbp + 0x38]
jne 0x14003a7b5
mov qword [rax + 0x10], rdi
sub rdi, qword [rbp + 0x30]
xor eax, eax
jmp 0x14003a7c9
movabs rdi, 0x2600000003
mov eax, 1
jmp 0x14003a7c9
xor edi, edi
xor eax, eax
jmp 0x14003a7c9
shl rbx, 0x20
or rbx, 2
mov qword [rax + 0x10], rdi
mov eax, 1
mov rdi, rbx
mov rdx, rdi
movaps xmm6, xmmword [rbp + 0x60]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [rbp + 0x40], 0
mov byte [rbp + 0x44], 0
lea rax, str._b_a_v_
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rax, [rbp + 0x50]
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x30]
call sym.std::io::Write::write_fmt::hdd05168affbfeba5
mov qword [rbp], rax
mov rcx, rbp
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3945ec9a027a2ad9
mov ecx, 7
int 0x29
ud2