Function at 0x403b85
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x4e38dc
call esi
call fcn.004453c5
lea ecx, [ebp - 8]
call fcn.0040f9d9
xor ebx, ebx
test byte [ebp + 0xc], 1
je 0x403bb6
mov byte [0x4e2cd0], bl
xor edi, edi
inc edi
cmp byte [0x4e2cd0], bl
mov dword [ebp - 4], ebx
je 0x403bf2
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 0x403bf2
mov eax, dword [0x4e34e0]
cmp eax, ebx
je 0x403beb
cmp dword [ebp - 8], ebx
jne 0x403beb
call eax
xor edi, edi
jmp 0x403da7
push 0x4e38dc
call esi
call fcn.004453c5
lea ecx, [ebp + 0xc]
call fcn.0040f9d9
lea eax, [ebp - 4]
push eax
push 0x4d4cf4
push 1
push ebx
push 0x4d4d04
call dword [0x4e34f4]
mov esi, eax
cmp esi, ebx
jge 0x403c36
push ebx
push ebx
push ebx
push esi
push str._DEBUG_WALL_CoCreateInstance__
mov ecx, 0x4e3110
call fcn.0041b6b8
cmp esi, ebx
mov byte [0x4e2cd0], 0xff
jge 0x403c66
mov eax, dword [0x4e34e0]
cmp eax, ebx
je 0x403c51
cmp dword [ebp + 0xc], ebx
jne 0x403c51
call eax
push 0x4e38dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 0x4e3110
jmp 0x403d43
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, 0x4e3110
jge 0x403ca1
push ebx
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetDesktopItemOptions__
mov ecx, esi
call fcn.0041b6b8
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 0x403cc2
push ebx
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaper__
mov ecx, esi
call fcn.0041b6b8
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 0x403cf5
push ebx
push ebx
push ebx
push eax
push str._DEBUG_WALL_SetWallpaperOptions__
mov ecx, esi
call fcn.0041b6b8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 7
push eax
mov byte [0x4e2cd0], 1
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jge 0x403d1f
push ebx
push ebx
push ebx
push edi
push str._DEBUG_WALL_ApplyChanges__
mov ecx, esi
call fcn.0041b6b8
jmp 0x403d28
xor edi, edi
mov byte [0x4e2cd0], 2
mov eax, dword [0x4e34e0]
cmp eax, ebx
je 0x403d38
cmp dword [ebp + 0xc], ebx
jne 0x403d38
call eax
push 0x4e38dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x403d50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x403d97
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0xc], ebx
je 0x403d74
xor edi, edi
jmp 0x403d82
cmp dword [ebp - 4], ebx
jne 0x403d87
cmp eax, ebx
mov edi, eax
jne 0x403d82
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
jne 0x403d97
push ebx
push ebx
push ebx
push eax
push str._DEBUG_WALL_SystemParametersInfo__
mov ecx, esi
call fcn.0041b6b8
mov eax, dword [0x4e34e0]
cmp eax, ebx
je 0x403da7
cmp dword [ebp - 8], ebx
jne 0x403da7
call eax
push 0x4e38dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret