Function at 0x670d64f0
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x671528f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67256a20]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x5c]
or ebp, 0xffffffff
cmp ecx, ebp
jne 0x670d660f
cmp dword [eax + 0x70], ebp
jne 0x670d660f
cmp dword [eax + 0x58], 0
jne 0x670d660f
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.670cdeb0
test al, al
jne 0x670d66b0
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.670cd510
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
call sym.QtCore4.dll_public:_void___thiscall_QFile::constructor_class_QString_const__
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x30], 2
mov edx, ebp
lock xadd dword [ecx], edx
jne 0x670d658b
mov eax, dword [esp + 0x14]
push eax
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
push ecx
mov eax, esp
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esp
mov dword [eax], 3
call sym.QtCore4.dll_public_virtual:_bool___thiscall_QFile::open_class_QFlags_enum_QIODevice::OpenModeFlag__
test al, al
je 0x670d65fd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x28]
call sym.QtCore4.dll_public:_bool___thiscall_QFile::resize_long_long___int64__
mov bl, al
test bl, bl
jne 0x670d65e9
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call sym.QtCore4.dll_public:_class_QString___thiscall_QIODevice::errorString_void_
push eax
push 0xc
mov ecx, esi
mov byte [esp + 0x38], 3
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sym.QtCore4.dll_public:_void___thiscall_QString::destructor_void_
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call sym.QtCore4.dll_public_virtual:_void___thiscall_QFile::destructor_void_
mov al, bl
jmp 0x670d66b2
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call sym.QtCore4.dll_public_virtual:_void___thiscall_QFile::destructor_void_
jmp 0x670d66b0
mov edi, ecx
cmp edi, ebp
jne 0x670d6642
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x670d662f
push ecx
call dword [sym.imp.MSVCR90.dll__fileno]
push eax
call dword [sym.imp.MSVCR90.dll__get_osfhandle]
add esp, 8
jmp 0x670d663c
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.MSVCR90.dll__get_osfhandle]
add esp, 4
mov edi, eax
cmp edi, ebp
je 0x670d66b0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov ebx, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
call edx
test al, al
je 0x670d66a5
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x670d66a5
cmp ebx, dword [esp + 0x3c]
jg 0x670d668d
jl 0x670d6687
cmp ebp, dword [esp + 0x38]
jae 0x670d668d
lea eax, [esp + 0x18]
jmp 0x670d6691
lea eax, [esp + 0x38]
mov ecx, dword [eax + 4]
mov edx, dword [esi]
mov eax, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
mov ecx, esi
call edx
mov al, 1
jmp 0x670d66b2
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
push ebp
mov ecx, esi
call edx
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8