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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5e5620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
je 0x408d8f
cmp dword [ebp + 0x10], 1
lea eax, [ebp - 0x30]
push eax
jne 0x408d3f
and dword [ebp - 0x30], 0
push 0x20006
push 0
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 4
push 0x58b360
push 1
push 0
push str.TileWallpaper
push dword [ebp - 0x30]
call ebx
push 4
push 0x58aeb0
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x30]
call edi
push 3
push dword [ebp - 0x34]
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x408caa
push str.An_error_occurred_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 esi
call fcn.0040fe74
add esp, 0x10
xor al, al
jmp 0x408f28
mov eax, dword [0x5ebc68]
cmp dword [eax + 0x224], 0
jne 0x408d8f
add eax, 4
xor ecx, ecx
push eax
lea eax, [ebp - 0x3c]
inc ecx
push eax
push ecx
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.USER32.dll_SetSysColors]
lea eax, [ebp - 0x30]
push eax
push 0x20006
push 0
push str.Control_PanelColors
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408d8f
mov ecx, dword [0x5ebc68]
movzx eax, byte [ecx + 6]
push eax
movzx eax, byte [ecx + 5]
push eax
movzx eax, byte [ecx + 4]
push eax
lea eax, [ebp - 0x2c]
push str._u__u__u
push eax
call fcn.004073a3
lea eax, [ebp - 0x2c]
push eax
call fcn.00552a19
add esp, 0x18
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0x58b82c
push dword [ebp - 0x30]
call ebx
jmp 0x408d8a
push 0xf003f
push 0
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408d8f
mov eax, dword [0x5ebc68]
mov eax, dword [eax + 0x25a0]
add eax, 0x43c
push eax
push dword [ebp - 0x30]
call fcn.004095ed
pop ecx
pop ecx
test al, al
je 0x408d8a
push 3
push 0x58840c
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [ebp - 0x30]
call edi
cmp dword [ebp + 0x14], 0
je 0x408e63
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push 0
push str..DEFAULTControl_PanelDesktop
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x408e44
cmp dword [ebp + 0x14], 1
jne 0x408dcf
mov eax, dword [ebp - 0x34]
mov esi, eax
test eax, eax
je 0x408e3a
jmp 0x408df3
mov eax, dword [0x5ebc68]
mov eax, dword [eax + 0x25a0]
add eax, 0x43c
push eax
push dword [ebp - 0x30]
call fcn.004095ed
pop ecx
pop ecx
test al, al
je 0x408e3d
mov esi, str._None_
push esi
call fcn.00552a19
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
xor esi, esi
push esi
push str.Wallpaper
push dword [ebp - 0x30]
call ebx
push 4
push 0x58b360
push 1
push esi
push str.TileWallpaper
push dword [ebp - 0x30]
call ebx
push 4
push 0x58aeb0
push 1
push esi
push str.WallpaperStyle
push dword [ebp - 0x30]
call ebx
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x30]
call edi
jmp 0x408e63
mov eax, dword [0x5ebc68]
cmp dword [eax + 0x644], 0
je 0x408e63
push str.An_error_occurred_opening_the_Default_Desktop_registry_key._nPlease_ensure_the_current_user_has_rights_to_change_Logon_Desktop_settings
push ecx
push 0x10
push esi
call fcn.0040fe74
add esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x408f26
xor edi, edi
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push 0
push dword [edi + 0x5e40b4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x408ef3
cmp dword [ebp + 0x18], 1
jne 0x408ea6
mov eax, dword [ebp - 0x34]
mov esi, eax
test eax, eax
je 0x408ee8
jmp 0x408eca
mov eax, dword [0x5ebc68]
mov eax, dword [eax + 0x25a0]
add eax, 0x43c
push eax
push dword [ebp - 0x30]
call fcn.004095ed
pop ecx
pop ecx
test al, al
je 0x408ee8
mov esi, str._None_
push esi
call fcn.00552a19
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.Wallpaper
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408f17
cmp ecx, 2
je 0x408f17
mov eax, dword [0x5ebc68]
cmp dword [eax + 0x644], 0
je 0x408f17
push str.An_error_occurred_opening_the_Terminal_Server_Desktop_registry_key._nPlease_ensure_the_current_user_has_rights_to_change_desktop_settings
push ecx
push 0x10
push esi
call fcn.0040fe74
add esp, 0x10
mov esi, dword [ebp - 0x38]
add edi, 4
cmp edi, 0xc
jb 0x408e6f
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054d24a
leave