Function at 0x14000e820
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x440
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x318], rax
mov r14, rdx
mov r13, rcx
mov qword [rbp + 0x1a0], rdx
xor edi, edi
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public:_void___cdecl_cv::VideoCapture::constructor_int__int____ptr64]
nop
mov rax, qword [r14]
cmp qword [rax + 0x128], 8
jb 0x14000f1cf
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_bool___cdecl_cv::VideoCapture::isOpened_void_const___ptr64]
test al, al
jne 0x14000ea79
mov rbx, qword [r13]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x110], rdi
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
xor r8d, r8d
lea rdx, [0x14001ae01]
lea rcx, [rbp - 0x30]
call fcn.140013570
nop
lea rax, [rbp + 0xc8]
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc8], xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea r8d, [rdi + 0xc]
lea rdx, str.CAMERA_ERROR
lea rcx, [rbp - 0x50]
call fcn.140013570
nop
mov rax, qword [r14]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rbp + 0x1e0], rax
mov dword [rbp + 0x1d8], edi
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x58], dil
mov byte [rsp + 0x50], dil
lea rax, [rbp + 0x100]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], dil
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x20], dil
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x1d8]
lea rdx, [rbp + 0x1a8]
lea rcx, [rbx + 0x20]
call qword [sym.imp.TgBot.dll__sendMessage_Api_TgBot__QEBA_AV__shared_ptr_VMessage_TgBot___std__V__variant__JV__basic_string_DU__char_traits_D]
lea ebx, [rdi - 1]
mov rdi, qword [rbp + 0x1b0]
test rdi, rdi
je 0x14000e9ae
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000e9ae
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000e9ae
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14000e9ec
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e9e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e9e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14000ea3b
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
lea rcx, [rbp + 0x100]
call fcn.140011170
nop
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_void___cdecl_cv::VideoCapture::destructor_void____ptr64]
nop
mov rdi, qword [r14 + 8]
test rdi, rdi
je 0x14000f212
jmp 0x14000f1eb
mov edx, 3
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_double___cdecl_cv::VideoCapture::get_int_const___ptr64]
cvttsd2si ebx, xmm0
mov esi, 4
mov edx, esi
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_double___cdecl_cv::VideoCapture::get_int_const___ptr64]
cvttsd2si edi, xmm0
mov rcx, qword [r14]
add rcx, 0x118
cmp qword [rcx + 0x18], 0xf
jbe 0x14000eabb
mov rcx, qword [rcx]
add rcx, 7
mov r8d, 0xa
lea rdx, [rbp + 0x228]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov r12d, eax
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov r15d, eax
test eax, eax
je 0x14000f1cf
test r12d, r12d
je 0x14000f1cf
mov edi, edi
shl rdi, 0x20
mov ecx, ebx
or rdi, rcx
mov r9b, 0x47
mov r8b, 0x50
mov dl, 0x4a
mov cl, 0x4d
call qword [sym.imp.opencv_videoio4.dll_public:_static_int___cdecl_cv::VideoWriter::fourcc_char__char__char__char_]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8d, 0xa
lea rdx, str.VLOG_1.avi
lea rcx, [rbp - 0x10]
call fcn.140013570
nop
movd xmm3, r12d
cvtdq2pd xmm3, xmm3
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
mov r8d, ebx
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.opencv_videoio4.dll_public:_void___cdecl_cv::VideoWriter::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__int__double__class_cv::Size__int___bool____ptr64]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14000eba5
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eba0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000eba0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
xor r12d, r12d
mov ebx, r12d
test r15d, r15d
je 0x14000ec84
xorps xmm0, xmm0
movups xmmword [rbp + 0x270], xmm0
movups xmmword [rbp + 0x280], xmm0
movups xmmword [rbp + 0x290], xmm0
movups xmmword [rbp + 0x2a0], xmm0
movups xmmword [rbp + 0x2b0], xmm0
movups xmmword [rbp + 0x2c0], xmm0
lea rcx, [rbp + 0x270]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::constructor_void____ptr64]
nop
mov rax, qword [rbp + 0x230]
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x230]
call qword [rax + 0x50]
lea rcx, [rbp + 0x270]
call qword [sym.imp.opencv_core4.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
test al, al
jne 0x14000ec77
mov qword [rbp + 0xc0], r12
mov dword [rbp + 0xb0], 0x1010000
lea rax, [rbp + 0x270]
mov qword [rbp + 0xb8], rax
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_void___cdecl_cv::VideoWriter::write_class_cv::_InputArray_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x270]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
inc ebx
cmp ebx, r15d
jb 0x14000ebc5
jmp 0x14000ec84
lea rcx, [rbp + 0x270]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_void___cdecl_cv::VideoCapture::release_void____ptr64]
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_void___cdecl_cv::VideoWriter::release_void____ptr64]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [r13]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x118], xmm0
mov qword [rbp + 0x128], r12
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
xor r8d, r8d
lea rdx, [0x14001ae01]
lea rcx, [rbp + 0x70]
call fcn.140013570
nop
lea rax, [rbp + 0xd8]
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xd8], xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x14001ae01]
lea rcx, [rbp + 0x50]
call fcn.140013570
nop
lea rax, [rbp + 0x150]
mov qword [rbp - 0x60], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x140], xmm1
xor r8d, r8d
lea rdx, [0x14001ae01]
lea rcx, [rbp + 0x130]
call fcn.140013570
movups xmm1, xmmword [rbp + 0x130]
movups xmmword [rbp + 0x158], xmm1
movups xmm0, xmmword [rbp + 0x140]
movups xmmword [rbp + 0x168], xmm0
mov dword [rbp + 0x150], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
mov r8d, 0xf
lea rdx, str.video_x_msvideo
lea rcx, [rbp + 0x30]
call fcn.140013570
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8d, 0xa
lea r15, str.VLOG_1.avi
mov rdx, r15
lea rcx, [rbp + 0x10]
call fcn.140013570
nop
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.TgBot.dll_public:_static_class_std::shared_ptr_class_TgBot::InputFile____cdecl_TgBot::InputFile::fromFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x180], xmm0
mov rcx, qword [rax]
mov qword [rbp + 0x180], rcx
mov rcx, qword [rax + 8]
mov qword [rbp + 0x188], rcx
mov qword [rax], r12
mov qword [rax + 8], r12
mov dword [rbp + 0x178], r12d
mov rax, qword [r14]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rbp + 0x208], rax
mov dword [rbp + 0x200], r12d
mov byte [rsp + 0x90], 0
mov dword [rsp + 0x88], r12d
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x78], 0
lea rax, [rbp + 0x118]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x68], 0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], r12d
lea rax, [rbp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov byte [rsp + 0x20], 0
lea r9, [rbp + 0x178]
lea r8, [rbp + 0x200]
lea rdx, [rbp + 0x1b8]
lea rcx, [rbx + 0x20]
call qword [sym.imp.TgBot.dll__sendVideo_Api_TgBot__QEBA_AV__shared_ptr_VMessage_TgBot___std__V__variant__JV__basic_string_DU__char_traits_D_s]
mov ebx, 0xffffffff
mov rdi, qword [rbp + 0x1c0]
test rdi, rdi
je 0x14000eeea
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000eeea
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000eeea
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdi, qword [rbp + 0x1d0]
test rdi, rdi
je 0x14000ef20
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000ef20
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000ef20
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14000ef5e
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ef59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ef59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x14000efad
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000efa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000efa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14000effc
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eff7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000eff7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x14000f04e
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f049
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f049
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
lea rcx, [rbp + 0x118]
call fcn.140011170
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400170a4
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 0xa
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rbp + 0x90]
call fcn.140001b60
nop
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rcx, qword [rbp + 0x90]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0x2f8]
call fcn.1400173b8
mov edx, eax
test eax, eax
jne 0x14000f107
mov eax, dword [rbp + 0x308]
bt eax, 0xa
jae 0x14000f0f9
mov ecx, dword [rbp + 0x30c]
cmp ecx, 0xa000000c
je 0x14000f12a
cmp ecx, 0xa0000003
jne 0x14000f0f9
lea esi, [rdx + 0xa]
jmp 0x14000f12a
movzx esi, al
and esi, 0x10
or esi, 0x20
shr esi, 4
jmp 0x14000f12a
mov dword [rbp - 0x5c], 0xffff
sub eax, 2
je 0x14000f125
sub eax, 1
je 0x14000f125
sub eax, 0x32
je 0x14000f125
cmp eax, 0x46
mov esi, r12d
jne 0x14000f12a
mov esi, 1
mov dword [rbp + 0xf0], edx
lea rax, [0x140025110]
mov qword [rbp + 0xf8], rax
movaps xmm0, xmmword [rbp + 0xf0]
movdqa xmmword [rbp + 0x260], xmm0
test esi, esi
je 0x14000f19c
cmp esi, 1
setne dil
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x14000f1ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f1a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f1a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor dil, dil
test edx, edx
jne 0x14000f23c
jmp 0x14000f158
call fcn.140017a20
test dil, dil
je 0x14000f1bd
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_void___cdecl_cv::VideoWriter::destructor_void____ptr64]
jmp 0x14000ea59
lea rcx, [rbp + 0x230]
call qword [sym.imp.opencv_videoio4.dll_public_virtual:_void___cdecl_cv::VideoCapture::destructor_void____ptr64]
nop
mov rdi, qword [r14 + 8]
test rdi, rdi
je 0x14000f212
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000f212
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14000f212
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x318]
xor rcx, rsp
call fcn.140017a00
mov rbx, qword [rsp + 0x490]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x260]
call fcn.140002bf0
int3