Function at 0x405610
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x45d4d2
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebx, 1
push 0
mov dword [esp + 0x244], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x464900
push ebx
push 0
push 0x4648f0
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x40575a
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4056a1
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
mov byte [esp + 0x244], 2
push str.SetDeskBk_:create_IActiveDesktop_fail:_d._r_n
lea ecx, [esp + 0x18]
push ecx
call fcn.00402870
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov byte [esp + 0x240], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4056fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x248]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4059a8
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov esi, eax
test esi, esi
jge 0x4057c0
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40579d
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
mov byte [esp + 0x244], 3
push str.SetDeskBk_:SetDesktopItemOptions_fail:_d._r_n
jmp 0x4056bf
mov ecx, dword [esp + 0x24c]
push ecx
mov dword [esp + 0x1c], 8
call fcn.0042d397
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jge 0x405832
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40580f
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
mov byte [esp + 0x244], 4
push str.SetDeskBk_:SetWallpaperOptions_fail:_d._r_n
jmp 0x4056bf
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x36]
push edx
mov word [esp + 0x38], cx
call fcn.004314b0
mov ecx, dword [esp + 0x254]
add esp, 0xc
push 0x104
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jge 0x4058d3
lea ecx, [esp + 0x10]
call fcn.00402890
push esi
lea eax, [esp + 0x14]
push str.SetDeskBk_:SetWallpaper_fail:_d._r_n
push eax
mov byte [esp + 0x24c], 5
call fcn.00402870
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov byte [esp + 0x240], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4056ee
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 7
push eax
call edx
mov esi, eax
test esi, esi
jge 0x40593b
lea ecx, [esp + 0x10]
call fcn.00402890
push esi
lea eax, [esp + 0x14]
push str.SetDeskBk_:ApplyChanges_fail:_d._r_n
push eax
mov byte [esp + 0x24c], 6
call fcn.00402870
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
call fcn.00402950
lea ecx, [esp + 0x248]
call fcn.00402950
lea ecx, [esp + 0x24c]
call fcn.00402950
xor al, al
jmp 0x4059a8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x10]
call fcn.00402890
mov byte [esp + 0x240], 7
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
push ecx
push edx
lea eax, [esp + 0x18]
push str.SetDeskBk_:Success.__s___s__r_n
push eax
call fcn.00402870
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
call fcn.00402950
lea ecx, [esp + 0x248]
call fcn.00402950
lea ecx, [esp + 0x24c]
call fcn.00402950
mov al, bl
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0042d298
add esp, 0x238
ret 8