Function at 0x407970
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fefed
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x120]
push eax
call fcn.00408eb0
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_tmpnam_s]
lea ecx, [ebp - 0x118]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079e5
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.Qt5CoreKso.dll_private:_static_struct_kso_qt::QTypedArrayData_unsigned_short_int_____cdecl_kso_qt::QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x12c]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QFileInfo::constructor_class_kso_qt::QString_const__]
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString___thiscall_kso_qt::QFileInfo::fileName_void_]
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString____thiscall_kso_qt::QString::append_class_kso_qt::QString_const__]
lea ecx, [ebp - 0x138]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
lea ecx, [ebp - 0x12c]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QFileInfo::destructor_void_]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push str..ini
lea ecx, [ebp - 0x120]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString____thiscall_kso_qt::QString::append_char_const__]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QString___cdecl_kso_qt::QDir::toNativeSeparators_class_kso_qt::QString_const__]
add esp, 8
lea ecx, [ebp - 0x120]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString____thiscall_kso_qt::QString::operator_class_kso_qt::QString__]
lea ecx, [ebp - 0x12c]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
mov esi, dword [sym.imp.Qt5CoreKso.dll_public:_static_bool___cdecl_kso_qt::QFile::exists_class_kso_qt::QString_const__]
lea eax, [ebp - 0x120]
push eax
call esi
add esp, 4
test al, al
je 0x407ae4
push 0
lea ecx, [ebp - 0x120]
call dword [sym.imp.Qt5CoreKso.dll_public:_unsigned_short_int_const____thiscall_kso_qt::QString::utf16_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_bool___cdecl_kso_qt::QFile::remove_class_kso_qt::QString_const__]
add esp, 4
lea eax, [ebp - 0x120]
xor bl, bl
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x121], bl
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QFile::constructor_class_kso_qt::QString_const__]
push ecx
mov eax, esp
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x119], bl
mov dword [eax], 2
call dword [sym.imp.Qt5CoreKso.dll_public_virtual:_bool___thiscall_kso_qt::QFile::open_class_kso_qt::QFlags_enum_kso_qt::QIODevice::OpenModeFlag__]
test al, al
je 0x407b81
push 0xffffffffffffffff
push str.updatepath
lea ecx, [ebp - 0x128]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::constructor_char_const___int_]
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
mov esi, dword [eax + 4]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_long_long___int64____thiscall_kso_qt::QIODevice::write_class_kso_qt::QByteArray_const__]
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
cmp eax, edi
jne 0x407b6b
cmp edx, ecx
jne 0x407b6b
mov byte [ebp - 0x119], 1
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
mov esi, dword [sym.imp.Qt5CoreKso.dll_public:_static_bool___cdecl_kso_qt::QFile::exists_class_kso_qt::QString_const__]
lea ecx, [ebp - 0x134]
call dword [sym.imp.Qt5CoreKso.dll_public_virtual:_void___thiscall_kso_qt::QFileDevice::close_void_]
cmp byte [ebp - 0x119], 0
je 0x407bc9
lea eax, [ebp - 0x120]
push eax
call esi
add esp, 4
movzx ebx, bl
test al, al
mov ecx, 1
cmovne ebx, ecx
jmp 0x407bc9
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 4
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_bool___cdecl_kso_qt::QFile::remove_class_kso_qt::QString_const__]
add esp, 4
lea ecx, [ebp - 0x134]
call dword [sym.imp.Qt5CoreKso.dll_public_virtual:_void___thiscall_kso_qt::QFile::destructor_void_]
lea ecx, [ebp - 0x120]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret