Function at 0x1009c6f0
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017aa4c
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x1029e9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx]
call dword [eax + 0xcc]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xf8]
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImage::constructor_class_QImage_const__]
push 0x70
mov byte [ebp - 4], 1
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1009c777
push ecx
mov ecx, esp
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_void_]
mov ecx, esi
call sym.libnomacs.dll_public:_void___thiscall_nmc::DkImageLoader::constructor_class_QFileInfo_
mov ebx, eax
mov dword [ebp - 0x20], eax
jmp 0x1009c77c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1009c7aa
push 0xc
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x1009c7aa
mov dword [edi], vtable.QtSharedPointer::ExternalRefCountData.0
mov dword [edi + 8], 1
mov dword [edi + 4], 1
jmp 0x1009c7ac
xor edi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x1009c7c1
push 1
push ebx
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QtSharedPointer::ExternalRefCountData::setQObjectShared_class_QObject_const___bool_]
push 0
push 1
push ecx
mov dword [ebp - 0x40], esp
mov esi, esp
push 0xffffffffffffffff
push 0x101958d0
mov byte [ebp - 4], 3
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], esp
mov esi, esp
push 0xffffffffffffffff
push str.wallpaper
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
push ecx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImage::constructor_class_QImage_const__]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call sym.libnomacs.dll_public:_class_QFileInfo___thiscall_nmc::DkImageLoader::saveTempFile_class_QImage__class_QString__class_QString__bool__bool_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_void_]
mov ebx, dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QFileInfo::absoluteFilePath_void_]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call ebx
mov esi, eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x10]
call ebx
push esi
mov ecx, eax
mov byte [ebp - 4], 9
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::operator_class_QString_const__const]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
mov bl, al
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::destructor_void_]
test bl, bl
je 0x1009c8de
push 0
lea eax, [ebp - 0x34]
push str.Sorry__I_could_not_create_a_wallpaper...
push eax
call sym.libnomacs.dll_public:_static_class_QString___cdecl_nmc::DkNoMacs::tr_char_const___char_const__
mov esi, eax
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0
push str.Error
push ecx
call sym.libnomacs.dll_public:_static_class_QString___cdecl_nmc::DkNoMacs::tr_char_const___char_const__
add esp, 0xc
push dword [ebp - 0x30]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
push esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov byte [ebp - 4], 0xa
call sym.libnomacs.dll_public:_static_int___cdecl_nmc::DkNoMacs::dialog_class_QString__class_QWidget___class_QString_
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x1009c9dc
mov ebx, dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
push 0xffffffffffffffff
push str.HKEY_CURRENT_USERControl_PanelDesktop
call ebx
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSettings::constructor_class_QString_const___enum_QSettings::Format__class_QObject__]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov esi, dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QFileInfo::absoluteFilePath_void_]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call esi
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push 0xffffffffffffffff
push str.Wallpaper
mov byte [ebp - 4], 0x10
call ebx
add esp, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSettings::setValue_class_QString_const___class_QVariant_const__]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x12
push ecx
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLatin1_void_]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x14]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::detach_void_]
mov eax, dword [ebp - 0x14]
push 3
push dword [eax + 0xc]
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call dword [sym.imp.QtCore4.dll_public_virtual:_void___thiscall_QSettings::destructor_void_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::destructor_void_]
mov byte [ebp - 4], 1
test edi, edi
je 0x1009ca2c
or esi, 0xffffffff
lea ecx, [edi + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x1009ca1a
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x1009ca1a
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1009ca1a
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
lea eax, [edi + 4]
lock xadd dword [eax], esi
dec esi
jne 0x1009ca2c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov esi, dword [sym.imp.QtGui4.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret