Function at 0x670da1b0
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x67157ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67258980]
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 0x670da2cf
cmp dword [eax + 0x70], ebp
jne 0x670da2cf
cmp dword [eax + 0x58], 0
jne 0x670da2cf
lea edi, [eax + 0x10]
mov ecx, edi
call sym.QtCore_Ad_4.dll_public:_bool___thiscall_QFileSystemEntry::isEmpty_void_const
test al, al
jne 0x670da370
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call sym.QtCore_Ad_4.dll_public:_class_QString___thiscall_QFileSystemEntry::filePath_void_
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
call sym.QtCore_Ad_4.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 0x670da24b
mov eax, dword [esp + 0x14]
push eax
call sym.QtCore_Ad_4.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.QtCore_Ad_4.dll_public_virtual:_bool___thiscall_QFile::open_class_QFlags_enum_QIODevice::OpenModeFlag__
test al, al
je 0x670da2bd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x28]
call sym.QtCore_Ad_4.dll_public:_bool___thiscall_QFile::resize_long_long___int64__
mov bl, al
test bl, bl
jne 0x670da2a9
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call sym.QtCore_Ad_4.dll_public:_class_QString___thiscall_QIODevice::errorString_void_
push eax
push 0xc
mov ecx, esi
mov byte [esp + 0x38], 3
call sym.QtCore_Ad_4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sym.QtCore_Ad_4.dll_public:_void___thiscall_QString::destructor_void_
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call sym.QtCore_Ad_4.dll_public_virtual:_void___thiscall_QFile::destructor_void_
mov al, bl
jmp 0x670da372
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call sym.QtCore_Ad_4.dll_public_virtual:_void___thiscall_QFile::destructor_void_
jmp 0x670da370
mov edi, ecx
cmp edi, ebp
jne 0x670da302
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x670da2ef
push ecx
call dword [sym.imp.MSVCR100.dll__fileno]
push eax
call dword [sym.imp.MSVCR100.dll__get_osfhandle]
add esp, 8
jmp 0x670da2fc
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 0x670da370
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 0x670da365
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x670da365
cmp ebx, dword [esp + 0x3c]
jg 0x670da34d
jl 0x670da347
cmp ebp, dword [esp + 0x38]
jae 0x670da34d
lea eax, [esp + 0x18]
jmp 0x670da351
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 0x670da372
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