Function at 0x10004e80
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083f8a
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
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 + 0x10]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x178], eax
cmp dword [esi + 0x10], ebx
je 0x10004ece
mov ecx, dword [esi]
shr ecx, 0xe
test cl, 1
jne 0x10004fd3
push 0x29
mov edi, 0xf
push str.......moduleshighgui_srcloadsave.cpp
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.10003640
push ebx
push 0x100866d0
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
call fcn.10003640
push 0x1e
push str.buf.data__buf.isContinuous__
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
call fcn.10003640
push 0x133
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0xffffff29
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 2
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], 3
call sub.opencv_core220.dll_void___cdecl_cv::error_class_cv::Exception_const__
add esp, 4
lea ecx, [ebp - 0x168]
call sym.opencv_highgui220.dll_public_virtual:_void___thiscall_cv::Exception::destructor_void_
cmp dword [ebp - 0x98], 0x10
jb 0x10004f8e
mov edx, dword [ebp - 0xac]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
jb 0x10004fb5
mov eax, dword [ebp - 0x90]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
jb 0x10004fd3
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
lea edx, [ebp - 0x170]
lea ecx, [ebp - 0x74]
push esi
push edx
mov dword [ebp - 4], 4
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x180], ebx
call fcn.100038b0
add esp, 8
mov ecx, dword [ebp - 0x170]
mov byte [ebp - 4], 5
cmp ecx, ebx
jne 0x100050b8
mov eax, dword [ebp - 0x16c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x10005096
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
mov eax, 0xffffffff
lock xadd dword [edx], eax
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 1
jne 0x10005096
mov ecx, dword [ebp - 0x170]
cmp ecx, ebx
je 0x10005087
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [ebp - 0x16c]
push eax
call sub.opencv_core220.dll_void___cdecl_cv::fastFree_void__
add esp, 4
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x170], ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Mat::destructor_void_
xor eax, eax
jmp 0x10005362
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test al, al
jne 0x1000518e
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCR100.dll_tmpnam]
add esp, 4
cmp byte [eax], 0x5c
mov dword [ebp - 0x180], eax
jne 0x100050e7
inc eax
mov dword [ebp - 0x180], eax
push 0x10086700
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x100051b3
mov eax, dword [esi + 4]
cmp eax, ebx
jle 0x10005110
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + eax*4 - 4]
jmp 0x10005112
xor ecx, ecx
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
imul eax, ecx
push edi
push eax
mov eax, dword [esi + 0x10]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov edx, dword [ebp - 0x180]
mov eax, edx
add esp, 0x14
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005150
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x3c]
call fcn.10003640
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 6
call edx
cmp dword [ebp - 0x28], 0x10
mov byte [ebp - 4], 5
jb 0x1000518e
mov eax, dword [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test al, al
jne 0x100051c7
mov eax, dword [ebp - 0x180]
cmp eax, ebx
je 0x100051b3
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 4
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Ptr_class_cv::BaseImageDecoder_::destructor_void_
jmp 0x100050a2
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp ecx, 0xffffffff
je 0x1000520e
test cl, 2
jne 0x100051e8
and eax, 0xff8
test cl, 1
jne 0x10005208
test cl, 4
je 0x10005203
mov ecx, eax
sar ecx, 3
and ecx, 0x1ff
inc ecx
cmp ecx, 1
jg 0x10005208
and eax, 7
jmp 0x1000520e
and eax, 7
add eax, 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1000525c
cmp ecx, 2
je 0x100052a2
mov edx, eax
sar edx, 3
and edx, 0x1ff
inc edx
push edx
push eax
call fcn.10002960
add esp, 4
push eax
push edi
push esi
call sub.opencv_core220.dll_cvCreateImage
push ebx
push 1
push ebx
push eax
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0xe4]
push eax
call sub.opencv_core220.dll_class_cv::Mat___cdecl_cv::cvarrToMat_void_const___bool__bool__int_
add esp, 0x24
mov byte [ebp - 4], 8
jmp 0x10005282
push eax
push esi
push edi
call sub.opencv_core220.dll_cvCreateMat
push ebx
push 1
push ebx
push eax
lea ecx, [ebp - 0xe4]
push ecx
mov dword [ebp - 0x17c], eax
call sub.opencv_core220.dll_class_cv::Mat___cdecl_cv::cvarrToMat_void_const___bool__bool__int_
add esp, 0x20
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x74]
call sym.opencv_highgui220.dll_public:_class_cv::Mat____thiscall_cv::Mat::operator_class_cv::Mat_const__
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 5
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Mat::destructor_void_
mov esi, dword [ebp - 0x178]
jmp 0x100052b8
push eax
push esi
mov esi, dword [ebp - 0x178]
push edi
mov ecx, esi
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Mat::create_int__int__int_
mov dword [ebp - 0x188], esi
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x188]
mov edx, dword [edx + 0x10]
push eax
call edx
mov byte [ebp - 0x171], al
mov eax, dword [ebp - 0x180]
cmp eax, ebx
je 0x100052e6
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
cmp byte [ebp - 0x171], bl
jne 0x10005328
lea eax, [ebp - 0x184]
push eax
call sub.opencv_core220.dll_cvReleaseImage
lea ecx, [ebp - 0x17c]
push ecx
call sub.opencv_core220.dll_cvReleaseMat
add esp, 8
cmp esi, ebx
je 0x10005314
mov ecx, esi
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Mat::release_void_
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 4
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Ptr_class_cv::BaseImageDecoder_::destructor_void_
jmp 0x100050a2
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x10005337
mov esi, dword [ebp - 0x17c]
jmp 0x10005342
cmp eax, 1
jne 0x10005342
mov esi, dword [ebp - 0x184]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 4
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Ptr_class_cv::BaseImageDecoder_::destructor_void_
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call sym.opencv_highgui220.dll_public:_void___thiscall_cv::Mat::destructor_void_
mov eax, esi
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