Function at 0x4075b4
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x4a9c04]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x44], edi
je 0x40775d
cmp dword [esp + 0x44], 1
jne 0x40770a
lea eax, [esp + 0x10]
push eax
mov ebx, 0x20006
push ebx
push edi
push str.Control_PanelDesktop
mov ebp, SysReAllocString
push ebp
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 2
push 0x488708
push 1
push edi
push str.TileWallpaper
push dword [esp + 0x24]
call esi
push 2
push 0x487a80
push 1
push edi
push str.WallpaperStyle
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push dword [esp + 0x1c]
push edi
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x40767c
push str.An_error_occured_while_attempting_to_set_the_new_desktop_settings._nPlease_ensure_the_current_user_has_rights_to_change_desktop_settings
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
push dword [esp + 0x28]
call fcn.0040b551
add esp, 0x10
xor al, al
jmp 0x407903
mov eax, dword [0x4ad774]
cmp dword [eax + 0x124], edi
jne 0x40775d
add eax, 8
push eax
xor ecx, ecx
lea eax, [esp + 0x18]
inc ecx
push eax
push ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_SetSysColors]
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push str.Control_PanelColors
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40775d
mov eax, dword [0x4ad774]
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
movzx eax, byte [eax + 8]
push ecx
push eax
lea eax, [esp + 0x2c]
push str._u__u__u
push eax
call fcn.0044f3ea
lea eax, [esp + 0x34]
push eax
call fcn.0044fc30
add esp, 0x18
inc eax
push eax
lea eax, [esp + 0x24]
push eax
push 1
push edi
push 0x48862c
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
jmp 0x407757
lea eax, [esp + 0x14]
push eax
push 0xf003f
push edi
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40775d
mov eax, dword [0x4ad774]
add eax, 0x238
push eax
push dword [esp + 0x18]
call fcn.00407533
pop ecx
pop ecx
test al, al
je 0x407753
push 3
push 0x485d1c
push edi
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, str.Wallpaper
cmp dword [esp + 0x48], edi
je 0x407844
lea eax, [esp + 0x10]
push eax
push 0xf003f
push edi
push str..DEFAULTControl_PanelDesktop
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x407822
cmp dword [esp + 0x48], 1
jne 0x40779c
mov ebx, dword [esp + 0x18]
jmp 0x4077d4
mov eax, dword [0x4ad774]
add eax, 0x238
push eax
push dword [esp + 0x14]
call fcn.00407533
pop ecx
pop ecx
test al, al
je 0x407816
cmp dword [0x4ad6a0], 2
jne 0x4077cf
cmp dword [0x4ad694], 5
jb 0x4077cf
mov ebx, str._None_
jmp 0x4077d8
mov ebx, str._Default_
cmp ebx, edi
je 0x407816
push ebx
call fcn.0044fc30
pop ecx
inc eax
push eax
push ebx
push 1
push edi
push ebp
push dword [esp + 0x24]
call esi
push 2
push 0x488708
push 1
push edi
push str.TileWallpaper
push dword [esp + 0x24]
call esi
push 2
push 0x487a80
push 1
push edi
push str.WallpaperStyle
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407844
mov ecx, dword [0x4ad774]
cmp dword [ecx + 0x33c], edi
je 0x407844
push str.An_error_occured_opening_the_Default_Desktop_registry_key._nPlease_ensure_the_current_user_has_rights_to_change_Logon_Desktop_settings
push eax
push 0x10
push dword [esp + 0x28]
call fcn.0040b551
add esp, 0x10
cmp dword [esp + 0x4c], edi
je 0x407901
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 0xf003f
push edi
push dword [eax + 0x4a8100]
mov dword [esp + 0x20], edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4078ca
cmp dword [esp + 0x4c], 1
jne 0x407887
mov ebx, dword [esp + 0x18]
jmp 0x4078a6
mov eax, dword [0x4ad774]
add eax, 0x238
push eax
push dword [esp + 0x14]
call fcn.00407533
pop ecx
pop ecx
test al, al
je 0x4078be
mov ebx, str._None_
cmp ebx, edi
je 0x4078be
push ebx
call fcn.0044fc30
pop ecx
inc eax
push eax
push ebx
push 1
push edi
push ebp
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4078f1
cmp eax, 2
je 0x4078f1
mov ecx, dword [0x4ad774]
cmp dword [ecx + 0x33c], edi
je 0x4078f1
push str.An_error_occured_opening_the_Terminal_Server_Desktop_registry_key._nPlease_ensure_the_current_user_has_rights_to_change_desktop_settings
push eax
push 0x10
push dword [esp + 0x28]
call fcn.0040b551
add esp, 0x10
add dword [esp + 0x14], 4
cmp dword [esp + 0x14], 0xc
jb 0x407852
mov al, 1
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044f35b
add esp, 0x28
ret