Function at 0x429f20
Capabilities:
Check if file exists
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e9106
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x14c], eax
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
mov esi, ecx
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x38], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push str.WallpaperStyle
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor edi, edi
cmp eax, edi
je 0x429faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0xc]
push edx
push 0x4ee818
push 1
push edi
push 0x4ee808
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 0x38], 6
jne 0x429fdf
cmp dword [esp + 0x3c], 1
je 0x42a0e8
cmp ebx, edi
je 0x42a0e8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a0e8
push 0x1c
call fcn.004c99ad
add esp, 4
cmp eax, edi
je 0x42a027
mov ecx, 1
mov dword [eax + 8], edi
mov dword [eax], vtable.CSomBitmap.0
mov dword [eax + 4], ebx
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
mov byte [eax + 0x17], 2
mov byte [eax + 0x18], 0xff
mov edi, eax
call fcn.00409590
xor eax, eax
cmp dword [edi + 8], eax
sete al
test eax, eax
je 0x42a047
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x42a0e8
push esi
mov eax, edi
call fcn.0042a210
test eax, eax
je 0x42a0e8
mov eax, dword [esi + 8]
test eax, eax
je 0x42a0e8
call fcn.0041a320
test eax, eax
jne 0x42a0e8
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea esi, [esp + 0x14]
call fcn.00409570
lea esi, [esp + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x168], 0
call fcn.0044b590
mov byte [esp + 0x168], 1
mov edi, dword [eax]
mov esi, dword [edi]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
add esi, 0x10
call fcn.00428ad0
mov edx, dword [esi]
add esp, 4
push eax
push edi
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 0
call fcn.00409540
mov dword [esp + 0x168], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42a0e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp dword [esp + 0x38], 6
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ecx
jne 0x42a120
cmp dword [esp + 0x3c], 1
jne 0x42a120
mov dword [esp + 0x20], 4
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 7
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
jge 0x42a161
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetWallpaper_Error__d
call fcn.0043e8f0
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004c961b
mov esp, ebp
pop ebp
ret