Function at 0x6714c8d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67298b85
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x674c7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x64]
cmp edi, 0xffffffff
jne 0x6714ca14
cmp dword [eax + 0x78], edi
jne 0x6714c9de
cmp dword [eax + 0x60], 0
jne 0x6714c9de
lea esi, [eax + 0x10]
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x6714c934
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x6714caa9
mov ecx, esi
call fcn.67123ba0
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x6714c94e
cmp ecx, 0xffffffff
je 0x6714c94e
lock inc dword [eax]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x20]
call sym.Qt5Core.dll_public:_void___thiscall_QFile::constructor_class_QString_const__
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sym.Qt5Core.dll_public:_void___thiscall_QVector_class_QPoint_::destructor_void_
push ecx
mov eax, esp
lea ecx, [ebp - 0x20]
mov dword [eax], 3
call sym.Qt5Core.dll_public_virtual:_bool___thiscall_QFile::open_class_QFlags_enum_QIODevice::OpenModeFlag__
lea ecx, [ebp - 0x20]
test al, al
je 0x6714c9d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.Qt5Core.dll_public_virtual:_bool___thiscall_QFile::resize_long_long___int64__
mov byte [ebp + 0xf], al
test al, al
jne 0x6714c9b5
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call sym.Qt5Core.dll_public:_class_QString___thiscall_QIODevice::errorString_void_
push eax
push 0xc
mov ecx, ebx
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp - 0x18]
call sym.Qt5Core.dll_public:_void___thiscall_QVector_class_QPoint_::destructor_void_
lea ecx, [ebp - 0x20]
call sym.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call sym.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_
jmp 0x6714caa9
cmp edi, 0xffffffff
jne 0x6714ca14
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x6714c9fd
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 8
jmp 0x6714ca09
push dword [eax + 0x78]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x6714caa9
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebx]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov esi, dword [ecx + 0x1c]
mov ecx, ebx
mov dword [ebp - 0x14], edx
call esi
test al, al
je 0x6714ca9b
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x6714ca9b
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [eax + 0x1c]
cmp ecx, esi
jg 0x6714ca78
mov eax, dword [ebp - 0x10]
jl 0x6714ca7f
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x6714ca7b
push ecx
push eax
mov ecx, ebx
call edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, esi
push ecx
push eax
mov ecx, ebx
call edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x10]
mov ecx, ebx
call dword [eax + 0x1c]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8