Function at 0x67139540
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6727c1ad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x674c412c]
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 0x67139674
cmp dword [eax + 0x78], edi
jne 0x6713963e
cmp dword [eax + 0x60], 0
jne 0x6713963e
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
cmp dword [eax + 4], 0
jne 0x671395a4
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x67139709
lea eax, [ebp - 0x14]
push eax
call fcn.671124e0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call sym.Qt5Core.dll_public:_void___thiscall_QFile::constructor_class_QString_const__
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sym.Qt5Core.dll_public:_void___thiscall_QString::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 0x67139634
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 0x67139615
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
mov byte [ebp - 4], 3
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_QString::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 0x67139709
cmp edi, 0xffffffff
jne 0x67139674
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x6713965d
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 0x67139669
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 0x67139709
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 0x671396fb
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x671396fb
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [eax + 0x1c]
cmp ecx, esi
jg 0x671396d8
mov eax, dword [ebp - 0x10]
jl 0x671396df
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x671396db
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