Function at 0x4167bc
Capabilities:
Change the wallpaper

Disassembly:
mov eax, 0x4e86bb
call fcn.004b48a0
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x51d5ec
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004483d0
lea ecx, [ebp - 0x18]
call fcn.0041eba3
or edi, 0xffffffff
cmp byte [0x51cfcc], bl
je 0x41682f
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x41682f
mov eax, dword [0x51d5a4]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4169ce
cmp dword [ebp - 0x18], ebx
jne 0x4169ce
call eax
jmp 0x4169ce
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
call fcn.004483d0
lea ecx, [ebp - 0x14]
call fcn.0041eba3
lea eax, [ebp - 0x10]
push eax
push 0x5083e0
push 1
push ebx
push 0x5083f0
mov byte [ebp - 4], 3
mov byte [0x51cfcc], 0xff
call dword [0x51d5a8]
cmp eax, ebx
push ebx
jge 0x416880
push ebx
push eax
push str._DEBUG_WALL_CoCreateInstance__
jmp 0x41692f
xor eax, eax
mov dword [ebp - 0x34], 0xc
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
jge 0x4168b7
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetDesktopItemOptions__
mov ecx, 0x51d2a0
call fcn.0042a64c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp + 8]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x4168da
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaper__
mov ecx, 0x51d2a0
call fcn.0042a64c
xor eax, eax
push ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x24], 2
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x41690f
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaperOptions__
mov ecx, 0x51d2a0
call fcn.0042a64c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 7
push eax
mov byte [0x51cfcc], 1
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jge 0x41693b
push ebx
push ebx
push edi
push str._DEBUG_WALL_ApplyChanges__
mov ecx, 0x51d2a0
call fcn.0042a64c
jmp 0x416944
xor edi, edi
mov byte [0x51cfcc], 2
mov eax, dword [0x51d5a4]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x416958
cmp dword [ebp - 0x14], ebx
jne 0x416958
call eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x416970
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x4169b9
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], ebx
je 0x416994
xor edi, edi
jmp 0x4169a2
cmp dword [ebp - 0x10], ebx
jne 0x4169a7
cmp eax, ebx
mov edi, eax
jne 0x4169a2
xor edi, edi
inc edi
cmp dword [ebp - 0x14], ebx
jne 0x4169b9
push ebx
push ebx
push eax
push str._DEBUG_WALL_SystemParametersInfo__
mov ecx, 0x51d2a0
call fcn.0042a64c
mov eax, dword [0x51d5a4]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4169cc
cmp dword [ebp - 0x18], ebx
jne 0x4169cc
call eax
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret