Function at 0x1400107f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, r8
mov rdi, rdx
mov qword [rbp + 0xf], rdx
mov r8d, 1
lea rcx, [rbp - 0x59]
call qword [sym.imp.opencv_imgcodecs453.dll_class_cv::Mat___cdecl_cv::imread_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__int_]
nop
mov rdx, rax
mov rcx, r14
call qword [sym.imp.opencv_core453.dll_public:_class_cv::Mat____ptr64___cdecl_cv::Mat::operator_class_cv::Mat____ptr64____ptr64]
nop
lea rcx, [rbp - 0x59]
call qword [sym.imp.opencv_core453.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
mov rcx, r14
call qword [sym.imp.opencv_core453.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
xor r15d, r15d
test al, al
je 0x140010abe
mov qword [rbp + 7], r15
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14001086d
mov rdx, qword [rdi]
lea rcx, [rbp - 0x79]
call fcn.1400014a0
cmp qword [rax + 0x18], 7
jbe 0x140010880
mov rax, qword [rax]
lea r8, [0x1400169bc]
mov rdx, rax
lea rcx, [rbp + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, eax
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400108d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400108d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400108d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013218
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140010b28
test ebx, ebx
jne 0x140010b28
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov qword [rbp + 0x27], r15
test rsi, rsi
je 0x140010994
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x140010b76
cmp rsi, 0x1000
jb 0x14001096f
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140010b70
call fcn.140012f9c
mov rcx, rax
test rax, rax
je 0x140010ab1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140010977
mov rcx, rsi
call fcn.140012f9c
mov qword [rbp + 0x17], rax
lea rbx, [rax + rsi]
mov qword [rbp + 0x27], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x1f], rbx
mov r9, qword [rbp + 7]
mov r8, rsi
mov edx, 1
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbp - 0x69], r15
mov dword [rbp - 0x79], 0x81030001
lea rax, [rbp + 0x17]
mov qword [rbp - 0x71], rax
mov r8d, 1
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x59]
call qword [sym.imp.opencv_imgcodecs453.dll_class_cv::Mat___cdecl_cv::imdecode_class_cv::_InputArray_const____ptr64__int_]
nop
mov rdx, rax
mov rcx, r14
call qword [sym.imp.opencv_core453.dll_public:_class_cv::Mat____ptr64___cdecl_cv::Mat::operator_class_cv::Mat____ptr64____ptr64]
nop
lea rcx, [rbp - 0x59]
call qword [sym.imp.opencv_core453.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
mov rcx, r14
call qword [sym.imp.opencv_core453.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
nop
mov rcx, qword [rbp + 0x17]
test al, al
je 0x140010a84
test rcx, rcx
je 0x140010a43
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010ab1
call fcn.140013218
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r15
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140010a79
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140010a74
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010a7d
mov rcx, r8
call fcn.140013218
xor al, al
jmp 0x140010af6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rcx, rcx
je 0x140010abe
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010ab8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010ab8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013218
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140010af4
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140010aef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010b69
mov rcx, r8
call fcn.140013218
mov al, 1
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r15
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140012e00
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140010a79
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140010a74
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140010a71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400012a0
nop
call fcn.140006100
int3