Function at 0x402be8
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x4975e4
call esi
call fcn.0042ac18
lea ecx, [ebp - 0xc]
call fcn.00409e5c
xor ebx, ebx
or edi, 0xffffffff
cmp byte [0x496be4], bl
je 0x402c46
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 0x402c46
mov eax, dword [0x497194]
cmp eax, ebx
je 0x402c3f
cmp dword [ebp - 0xc], ebx
jne 0x402c3f
call eax
xor edi, edi
jmp 0x402dcd
push 0x4975e4
mov dword [ebp - 4], ebx
call esi
call fcn.0042ac18
lea ecx, [ebp - 8]
call fcn.00409e5c
lea eax, [ebp - 4]
push eax
push 0x4898e8
xor esi, esi
inc esi
push esi
push ebx
push 0x4898f8
mov byte [0x496be4], 0xff
call dword [0x497198]
cmp eax, ebx
push ebx
jge 0x402c93
push ebx
push eax
push str._DEBUG_WALL_CoCreateInstance__
mov esi, 0x496eb8
jmp 0x402d3d
xor eax, eax
mov dword [ebp - 0x20], 0xc
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
mov esi, 0x496eb8
jge 0x402ccb
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetDesktopItemOptions__
mov ecx, esi
call fcn.00415577
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push dword [ebp + 8]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x402ceb
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaper__
mov ecx, esi
call fcn.00415577
xor eax, eax
push ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
or dword [ebp - 0x10], 2
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x402d1d
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaperOptions__
mov ecx, esi
call fcn.00415577
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 7
push eax
mov byte [0x496be4], 1
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jge 0x402d46
push ebx
push ebx
push edi
push str._DEBUG_WALL_ApplyChanges__
mov ecx, esi
call fcn.00415577
jmp 0x402d4f
xor edi, edi
mov byte [0x496be4], 2
mov eax, dword [0x497194]
cmp eax, ebx
je 0x402d5f
cmp dword [ebp - 8], ebx
jne 0x402d5f
call eax
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x402d77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x402dbd
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], ebx
je 0x402d9b
xor edi, edi
jmp 0x402da9
cmp dword [ebp - 4], ebx
jne 0x402dae
cmp eax, ebx
mov edi, eax
jne 0x402da9
xor edi, edi
inc edi
cmp dword [ebp - 8], ebx
jne 0x402dbd
push ebx
push ebx
push eax
push str._DEBUG_WALL_SystemParametersInfo__
mov ecx, esi
call fcn.00415577
mov eax, dword [0x497194]
cmp eax, ebx
je 0x402dcd
cmp dword [ebp - 0xc], ebx
jne 0x402dcd
call eax
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret