Function at 0x10005410
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100840d3
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x100bae20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x15c], edx
lea ecx, [ebp - 0xb0]
lea edx, [ebp - 0x88]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov eax, dword [eax]
sar eax, 3
and eax, 0x1ff
inc eax
mov dword [ebp - 4], ebx
cmp eax, 1
je 0x100055cb
cmp eax, 3
je 0x100055cb
lea esi, [ebx + 0xf]
cmp eax, 4
je 0x100055d0
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 0x2f
push str.channels__1__channels__3__channels__4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10003640
push 0x197
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0xffffff29
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 3
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 4
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
mov edi, 0x10
cmp dword [ebp - 0x50], edi
jb 0x10005592
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x18], edi
jb 0x100055ac
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], edi
jb 0x100055d5
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x100055d5
mov esi, 0xf
mov edi, 0x10
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x14c]
push ecx
call fcn.100031d0
add esp, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14c], ebx
jne 0x100056cd
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10003640
push 0x32
push str.could_not_find_encoder_for_the_specified_extension
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 0x19b
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0xfffffffffffffffe
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 8
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 9
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x18], edi
jb 0x10005695
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x50], edi
jb 0x100056af
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], edi
jb 0x100056cd
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x158]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
and eax, 7
push eax
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x100057fa
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
test al, al
jne 0x100057d9
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10003640
push 0x21
push str.encoder__isFormatSupported_CV_8U_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 0x19f
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0xffffff29
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xc
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 0xd
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x18], edi
jb 0x100057a1
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x50], edi
jb 0x100057bb
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], edi
jb 0x100057d9
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
fldz
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [ebp - 0xb8]
fld1
fstp qword [esp]
push ebx
push ecx
mov ecx, dword [ebp - 0x158]
call sub.opencv_core220.dll_public:_void___thiscall_cv::Mat::convertTo_class_cv::Mat___int__double__double_const
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x144]
mov edx, dword [edx + 8]
push eax
call edx
test al, al
je 0x10005919
mov edx, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
mov edx, dword [ebp - 0x158]
push edx
call eax
mov byte [ebp - 0x13d], al
cmp al, bl
jne 0x10005ccc
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10003640
push 4
push str.code
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 0x1a8
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0xffffff29
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x10
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 0x11
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x18], edi
jb 0x100058dc
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x50], edi
jb 0x100058f6
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], edi
jb 0x10005ccc
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10005ccc
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_tmpnam]
mov edx, eax
add esp, 4
cmp byte [edx], 0x5c
mov dword [ebp - 0x150], eax
jne 0x1000593a
inc edx
mov dword [ebp - 0x150], edx
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 0x154], ecx
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005950
sub eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x48]
push eax
push edx
call fcn.10003640
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x12
call edx
mov byte [ebp - 0x13d], al
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], edi
jb 0x10005997
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp - 0x13d], bl
jne 0x10005a78
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push 4
push str.code
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 0x1b1
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0xffffff29
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x15
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 0x16
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x18], edi
jb 0x10005a40
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x10005a5a
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], edi
jb 0x10005a78
mov eax, dword [ebp - 0x80]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x158]
push eax
call edx
mov byte [ebp - 0x13d], al
cmp al, bl
jne 0x10005b76
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 4
push str.code
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push 0x1b3
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0xffffff29
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x19
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 0x1a
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x34], edi
jb 0x10005b3e
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x10005b58
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], edi
jb 0x10005b76
mov edx, dword [ebp - 0x80]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x150]
push 0x100865ec
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x10005c6d
push 0x29
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003640
push 6
push str.f___0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10003640
push 0x1b5
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
push 0xffffff29
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x1d
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Exception::constructor_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
push eax
mov byte [ebp - 4], 0x1e
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x13c]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x34], 0x10
jb 0x10005c33
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x10005c4e
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 5
jb 0x10005c6d
mov eax, dword [ebp - 0x80]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 2
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fseek]
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
mov esi, dword [ebp - 0x144]
add esp, 0x10
push eax
mov ecx, esi
call fcn.10003800
push ebx
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fseek]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push edi
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x1c
push eax
mov ecx, esi
call fcn.10003800
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 8
mov eax, dword [ebp - 0x148]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x10005d1e
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov eax, 0xffffffff
lock xadd dword [edx], eax
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 1
jne 0x10005d1e
mov ecx, dword [ebp - 0x14c]
cmp ecx, ebx
je 0x10005d0f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x148]
push ecx
call sub.opencv_core220.dll_void___cdecl_cv::fastFree_void__
add esp, 4
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x10005d6a
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov eax, 0xffffffff
lock xadd dword [edx], eax
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 1
jne 0x10005d6a
lea ecx, [ebp - 0xb8]
call sub.opencv_core220.dll_public:_void___thiscall_cv::Mat::deallocate_void_
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa8], ebx
mov dword [edx], ebx
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xa4], ebx
cmp eax, ecx
je 0x10005da9
push eax
call sub.opencv_core220.dll_void___cdecl_cv::fastFree_void__
add esp, 4
mov al, byte [ebp - 0x13d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007cee0
mov esp, ebp
pop ebp
ret