Function at 0x403915
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4c1724
call edi
call fcn.0043cde7
lea ecx, [ebp - 8]
call fcn.0040e158
xor ebx, ebx
test byte [ebp + 0xc], 1
je 0x403946
mov byte [0x4c0c6c], bl
xor esi, esi
inc esi
cmp byte [0x4c0c6c], bl
mov dword [ebp - 4], ebx
je 0x403982
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x403982
mov eax, dword [0x4c1350]
cmp eax, ebx
je 0x40397b
cmp dword [ebp - 8], ebx
jne 0x40397b
call eax
xor esi, esi
jmp 0x403b13
push 0x4c1724
call edi
call fcn.0043cde7
lea ecx, [ebp + 0xc]
call fcn.0040e158
lea eax, [ebp - 4]
push eax
push 0x4b30b8
push 1
push ebx
push 0x4b30c8
call dword [0x4c1354]
mov edi, eax
cmp edi, ebx
jge 0x4039c5
push ebx
push ebx
push edi
push str._DEBUG_WALL_CoCreateInstance__
mov ecx, 0x4c0fb8
call fcn.0041b06a
cmp edi, ebx
mov byte [0x4c0c6c], 0xff
jl 0x403a95
xor eax, eax
mov dword [ebp - 0x1c], 0xc
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
inc eax
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
mov esi, 0x4c0fb8
jge 0x403a0e
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetDesktopItemOptions__
mov ecx, esi
call fcn.0041b06a
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 0x403a2e
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaper__
mov ecx, esi
call fcn.0041b06a
xor eax, eax
push ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
or dword [ebp - 0xc], 2
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x403a60
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaperOptions__
mov ecx, esi
call fcn.0041b06a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 7
push eax
mov byte [0x4c0c6c], 1
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jge 0x403a8c
push ebx
push ebx
push esi
push str._DEBUG_WALL_ApplyChanges__
mov ecx, 0x4c0fb8
call fcn.0041b06a
jmp 0x403a95
xor esi, esi
mov byte [0x4c0c6c], 2
mov eax, dword [0x4c1350]
cmp eax, ebx
je 0x403aa5
cmp dword [ebp + 0xc], ebx
jne 0x403aa5
call eax
push 0x4c1724
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x403abd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
je 0x403b03
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp edi, ebx
je 0x403adf
xor esi, esi
jmp 0x403aed
cmp dword [ebp - 4], ebx
jne 0x403af1
cmp eax, ebx
mov esi, eax
jne 0x403aed
xor esi, esi
inc esi
cmp edi, ebx
jne 0x403b03
push ebx
push ebx
push eax
push str._DEBUG_WALL_SystemParametersInfo__
mov ecx, 0x4c0fb8
call fcn.0041b06a
mov eax, dword [0x4c1350]
cmp eax, ebx
je 0x403b13
cmp dword [ebp - 8], ebx
jne 0x403b13
call eax
push 0x4c1724
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret