Function at 0x1400ba400
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12d, r9d
mov rsi, r8
movzx ebx, dl
mov rdi, rcx
mov qword [rsp + 0x78], rcx
mov r13d, dword [rbp + 0x100]
mov byte [rcx], 0
xor r14d, r14d
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
add rcx, 0x18
call fcn.1400ba380
nop
lea rcx, [rdi + 0x40]
call fcn.1400ba380
nop
lea rcx, [rdi + 0x68]
mov edx, 0x102
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
mov qword [rdi + 0xb8], r14
mov qword [rdi + 0xc0], r14
lea ecx, [r14 + 0x38]
call fcn.1400f37f0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rdi + 0xb8], rax
xor eax, eax
mov byte [rdi + 0xc8], al
mov qword [rdi + 0xd0], r14
mov qword [rdi + 0xd8], r14
mov byte [rdi + 0xe0], bl
mov dword [rdi + 0xe4], r12d
mov dword [rdi + 0xe8], r13d
mov dword [rdi + 0xec], 0x3df0f0f1
mov dword [rdi + 0xf0], 0x3df0f0f1
mov dword [rdi + 0xf4], 0x3df0f0f1
mov qword [rdi + 0xf8], 0x3f800000
mov byte [rdi + 0x100], 1
mov dword [rdi + 0x104], 5
movzx eax, byte [rbp + 0x110]
mov byte [rdi + 0x108], al
mov dword [rdi + 0x10c], 0x1e
mov eax, dword [rbp + 0x118]
mov dword [rdi + 0x110], eax
movzx eax, byte [rbp + 0x120]
mov byte [rdi + 0x114], al
mov qword [rdi + 0x118], r14
mov qword [rdi + 0x120], r14
mov qword [rdi + 0x128], r14
lea rcx, [rdi + 0x130]
mov rdx, rsi
call fcn.14007d850
nop
mov qword [rdi + 0x150], r14
mov qword [rdi + 0x158], 0xf
mov qword [rdi + 0x160], r14
mov qword [rdi + 0x168], r14
mov qword [rdi + 0x170], r14
mov r14, 0xffffffffffffffff
mov dword [rdi + 0x178], r14d
xor eax, eax
xchg byte [rdi + 0xc8], al
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x1400ba5aa
movups xmm0, xmmword [rcx]
movups xmmword [rdi + 0xec], xmm0
movzx eax, byte [rdi + 0xe0]
cmp al, 4
je 0x1400ba5c2
mov byte [0x140177648], al
movzx eax, byte [rdi + 0xe0]
movsx ecx, al
sub ecx, 1
je 0x1400baa0c
sub ecx, 1
je 0x1400ba796
sub ecx, 1
je 0x1400ba69c
cmp ecx, 1
je 0x1400bac70
mov ecx, 0x60
call fcn.1400f37f0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ba673
movss xmm0, dword [rdi + 0xf8]
movss xmm4, dword [0x1400fd230]
mulss xmm0, xmm4
cvtps2pd xmm5, xmm0
movss xmm0, dword [rdi + 0xec]
mulss xmm0, xmm4
cvtps2pd xmm3, xmm0
movss xmm1, dword [rdi + 0xf0]
mulss xmm1, xmm4
cvtps2pd xmm2, xmm1
movss xmm0, dword [rdi + 0xf4]
mulss xmm0, xmm4
cvtps2pd xmm0, xmm0
movsd qword [rbp - 0x18], xmm0
movsd qword [rbp - 0x10], xmm2
movsd qword [rbp - 8], xmm3
movsd qword [rbp], xmm5
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov r9d, 0x18
mov r8d, r12d
mov edx, r13d
mov rcx, rax
call sub.opencv_world4100.dll_public:_void___cdecl_cv::Mat::constructor_int__int__int__class_cv::Scalar__double__const____ptr64____ptr64
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400ba2e0
mov rdx, rax
lea rcx, [rdi + 0x18]
call fcn.1400bb130
lea rcx, [0x140176000]
call fcn.1400a2a10
jmp 0x1400bac70
cmp qword [rsi + 0x10], 0
je 0x1400bac70
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.1400b1ae0
nop
mov rbx, qword [rdi + 0x18]
mov r8d, 1
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x30]
call sub.opencv_world4100.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, rbx
call sub.opencv_world4100.dll_public:_class_cv::Mat____ptr64___cdecl_cv::Mat::operator_class_cv::Mat____ptr64____ptr64
nop
lea rcx, [rbp + 0x30]
call sub.opencv_world4100.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64
mov eax, dword [rbx + 0xc]
mov dword [rdi + 0xe4], eax
mov eax, dword [rbx + 8]
mov dword [rdi + 0xe8], eax
mov dword [rdi + 0x104], 5
mov eax, dword [rbx]
and eax, 0xff8
cmp eax, 0x10
jne 0x1400ba744
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x48], 0x2010000
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x1010000
mov qword [rsp + 0x68], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call sub.opencv_world4100.dll_void___cdecl_cv::cvtColor_class_cv::_InputArray_const____ptr64__class_cv::_OutputArray_const____ptr64__int__int_
lea rcx, [0x140176000]
call fcn.1400a2a10
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x1400bac70
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba92c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba92c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rsi + 0x10], 0
je 0x1400bac70
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1400b1ae0
nop
mov ecx, 0x30
call fcn.1400f37f0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ba7cf
mov rcx, rax
call sub.opencv_world4100.dll_public:_void___cdecl_cv::VideoCapture::constructor_void____ptr64
mov rbx, rax
jmp 0x1400ba7d1
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov ecx, 0x18
call fcn.1400f37f0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ba80b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_class_cv::VideoCapture_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov qword [rdi + 8], rbx
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rax
test rbx, rbx
je 0x1400ba847
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ba847
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ba847
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov r8, r14
inc r8
cmp byte [rdx + r8], 0
jne 0x1400ba874
lea rcx, [rbp - 0x58]
call fcn.14007eee0
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp - 0x58]
call qword [rax + 0x20]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400ba8d8
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba8d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba8d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f2d28
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rdi + 8]
mov r8, qword [rcx]
test al, al
jne 0x1400ba936
call qword [r8 + 0x30]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400bac70
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba92c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400baa05
call fcn.1400f2d28
jmp 0x1400bac70
mov edx, 5
call qword [r8 + 0x68]
cvttsd2si edx, xmm0
mov dword [rdi + 0x10c], edx
lea rcx, [0x140176000]
call fcn.1400a2ba0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 3
call qword [rax + 0x68]
cvttsd2si eax, xmm0
mov dword [rdi + 0xe4], eax
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 4
call qword [rax + 0x68]
cvttsd2si eax, xmm0
mov dword [rdi + 0xe8], eax
mov dword [rdi + 0x104], 5
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 7
call qword [rax + 0x68]
cvttsd2si eax, xmm0
mov dword [rdi + 0x150], eax
mov dword [rdi + 0x154], 0
imul eax, eax, 0x3e8
cdq
idiv dword [rdi + 0x10c]
mov dword [rdi + 0xfc], eax
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400bac70
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba92c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba92c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 0x30
call fcn.1400f37f0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400baa2d
mov rcx, rax
call sub.opencv_world4100.dll_public:_void___cdecl_cv::VideoCapture::constructor_void____ptr64
mov rbx, rax
jmp 0x1400baa2f
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov ecx, 0x18
call fcn.1400f37f0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400baa69
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_class_cv::VideoCapture_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov qword [rdi + 8], rbx
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rax
test rbx, rbx
je 0x1400baaa5
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400baaa5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400baaa5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov r8d, 0x2bc
mov edx, dword [rdi + 0x110]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 8
call qword [rax + 0x68]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 5
call qword [rax + 0x68]
cvttsd2si eax, xmm0
mov dword [rdi + 0x10c], eax
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x1400baaff
imul rax, rax, 0x64
jmp 0x1400bab1a
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7fffffffc46535ff
movabs r15, 0x7fffffffffffffff
cmp rax, rcx
jge 0x1400bab40
add rax, 0x3b9aca00
mov qword [rsp + 0x38], rax
jmp 0x1400bab45
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.140093270
mov esi, 0x1e
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
jne 0x1400babea
movabs r12, 0x7ffffffffa0a1eff
mov eax, esi
dec esi
test eax, eax
jle 0x1400babe0
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x1400bab94
imul rax, rax, 0x64
jmp 0x1400babaf
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r12
jge 0x1400babc1
add rax, 0x5f5e100
mov qword [rsp + 0x40], rax
jmp 0x1400babc6
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140093270
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
je 0x1400bab70
jmp 0x1400babea
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 5
call qword [rax + 0x68]
cvttsd2si edx, xmm0
mov dword [rdi + 0x10c], edx
test edx, edx
jle 0x1400bac19
movd xmm0, edx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x140114f68]
jbe 0x1400bac28
mov dword [rdi + 0x10c], 0x1e
mov edx, 0x1e
lea rcx, [0x140176000]
call fcn.1400a2ba0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 3
call qword [rax + 0x68]
cvttsd2si eax, xmm0
mov dword [rdi + 0xe4], eax
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov edx, 4
call qword [rax + 0x68]
cvttsd2si eax, xmm0
mov dword [rdi + 0xe8], eax
mov dword [rdi + 0x104], 5
cmp byte [rbp + 0x110], 0
jne 0x1400bad56
xor eax, eax
xchg byte [rdi + 0xc8], al
mov ecx, 0x20
call fcn.1400f37f0
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400bad0b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_std::thread_.0
mov qword [rbx], rax
mov ecx, 0x10
call fcn.1400f37f0
test rax, rax
je 0x1400bacd7
mov qword [rax], rdi
lea rcx, [0x1400bc370]
mov qword [rax + 8], rcx
mov qword [rbp - 0x70], rax
lea rsi, [rbx + 0x18]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400ba350]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400bad83
jmp 0x1400bad0d
xor ebx, ebx
lea rax, [rbx + 0x10]
mov qword [rdi + 0xd0], rax
mov rsi, qword [rdi + 0xd8]
mov qword [rdi + 0xd8], rbx
test rsi, rsi
je 0x1400bad56
mov eax, r14d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400bad56
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx]
lock xadd dword [rsi + 0xc], r14d
cmp r14d, 1
jne 0x1400bad56
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400f2dc0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3