Function at 0x140006920
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rsi
mov rdi, r8
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rdi, rax
mov rbx, rax
je 0x14000695d
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x140006974
mov rax, rbx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
mov rdi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r8
call rdi
movsxd rdx, dword [rax]
lea rbp, [rsp + 0x30]
mov rcx, rbp
call fcn.140004b20
mov rax, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r13, rax
call rdi
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov rdx, rax
mov rcx, rbp
call fcn.140010800
mov r14, qword [rsp + 0x30]
lea r12, [rsp + 0x70]
mov rax, qword [rsp + 0x38]
mov rcx, r12
lea rdx, [r15 + r14 + 0xa]
mov qword [rsp + 0x28], rax
mov rdi, rax
call fcn.14000c590
movdqa xmm0, xmmword [0x1400651b0]
mov rdx, rbp
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400061c0
mov rax, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rax
call fcn.1400061c0
movdqa xmm1, xmmword [0x140065190]
mov rdx, rbp
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm1
call fcn.1400061c0
mov rax, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rax
call fcn.1400061c0
movdqa xmm2, xmmword [0x140065170]
mov rdx, rbp
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm2
call fcn.1400061c0
movdqa xmm3, xmmword [rsp + 0x70]
mov rcx, rsi
movaps xmmword [rsp + 0x60], xmm3
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
lea rcx, [rsp + 0x60]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
call fcn.14000bdb0
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
call fcn.140006440
mov rcx, rax
xor edi, edi
mov rax, rdx
xor r13d, r13d
sub rax, 1
jne 0x140006b24
call sub.libstdc_6.dll___cxa_begin_catch
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140059e38
mov rax, qword [rsp + 0x48]
xor ecx, ecx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rcx
test rax, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdx
je 0x140006af5
lea rcx, [rsp + 0x58]
call fcn.140059e50
cmp qword [rsp + 0x50], 0
je 0x140006b05
mov rcx, rsi
call fcn.140059e50
call sub.libstdc_6.dll___cxa_end_catch
jmp 0x140006b6d
call sub.libstdc_6.dll___cxa_begin_catch
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140059e38
xor eax, eax
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
test rax, rax
mov qword [rsp + 0x58], rax
je 0x140006b60
lea rcx, [rsp + 0x58]
call fcn.140059e50
cmp qword [rsp + 0x50], 0
jne 0x140006bd1
call sub.libstdc_6.dll___cxa_end_catch
test rdi, rdi
je 0x140006b80
test byte [rdi + 7], 0x40
jne 0x140006b80
mov rcx, rdi
call fcn.14000b620
test r13, r13
je 0x140006b94
test byte [r13 + 7], 0x40
jne 0x140006b94
mov rcx, r13
call fcn.14000b620
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140006ba9
test byte [rcx + 7], 0x40
jne 0x140006ba9
call fcn.14000b620
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14000695d
lea rsi, [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rcx, rsi
call fcn.140059e48
mov rcx, rsi
call fcn.140059e30
mov rcx, rsi
call fcn.140059e50
jmp 0x140006b68