Function at 0x670df3b0
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x6715fd38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x672699e0]
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 0x670df4cf
cmp dword [eax + 0x70], ebp
jne 0x670df4cf
cmp dword [eax + 0x58], 0
jne 0x670df4cf
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.670d6f40
test al, al
jne 0x670df570
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.670d6ac0
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 0x670df44b
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 0x670df4bd
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 0x670df4a9
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 0x670df572
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call sym.QtCore4.dll_public_virtual:_void___thiscall_QFile::destructor_void_
jmp 0x670df570
mov edi, ecx
cmp edi, ebp
jne 0x670df502
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x670df4ef
push ecx
call dword [sym.imp.MSVCR100.dll__fileno]
push eax
call dword [sym.imp.MSVCR100.dll__get_osfhandle]
add esp, 8
jmp 0x670df4fc
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll__get_osfhandle]
add esp, 4
mov edi, eax
cmp edi, ebp
je 0x670df570
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 0x670df565
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x670df565
cmp ebx, dword [esp + 0x3c]
jg 0x670df54d
jl 0x670df547
cmp ebp, dword [esp + 0x38]
jae 0x670df54d
lea eax, [esp + 0x18]
jmp 0x670df551
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 0x670df572
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