Function at 0x104a620
Capabilities:
Change the wallpaper

Disassembly:
push 0xffffffffffffffff
push 0x108457e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
push ebx
xor ebx, ebx
push ebp
mov ebp, ecx
push ebx
push str.Control_Panel
push SysReAllocStringLen
lea ecx, [esp + 0x48]
call fcn.01016e3e
mov eax, dword [0x1098824]
mov dword [esp + 0x360], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
push 0xffffffffffffff9b
push 0x10987c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x368], 5
mov dword [esp + 0x14], ebx
call fcn.010087b8
push 0xffffffffffffff9b
push 0x10987c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x368], 6
call fcn.010087b8
mov ecx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x364], 7
call fcn.010093d9
mov ecx, dword [esp + 0x18]
push str..jpg
push ecx
mov byte [esp + 0x368], 8
mov byte [esp + 0x13], 1
call fcn.0105b710
add esp, 8
test eax, eax
je 0x104a6f5
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call fcn.0104b0c0
mov byte [esp + 0xb], al
mov ecx, dword [esp + 0x36c]
push esi
lea eax, [esp + 0x38]
push edi
push eax
call fcn.010093d9
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x368], 9
mov esi, str.tile
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x104a73f
cmp cl, bl
je 0x104a73b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x104a73f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x104a71b
xor eax, eax
jmp 0x104a744
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x104a753
push 0x1098bb4
lea ecx, [esp + 0x3c]
jmp 0x104a790
mov esi, str.stretch
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x104a77e
cmp cl, bl
je 0x104a77a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x104a77e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x104a75a
xor eax, eax
jmp 0x104a783
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x104a795
push 0x109d714
lea ecx, [esp + 0x2c]
call fcn.01008a50
cmp byte [esp + 0x13], bl
je 0x104ab08
mov eax, dword [0x10a41bc]
lea edx, [esp + 0x1c]
push edx
push str.prevwallpaper
mov ecx, dword [eax + 4]
call fcn.01011ddf
mov eax, dword [esp + 0x1c]
mov eax, dword [eax - 8]
cmp eax, ebx
jne 0x104a880
cmp byte [esp + 0x50], bl
je 0x104a880
lea ecx, [esp + 0x1c]
push ecx
push str.Wallpaper
push str.Desktop
lea ecx, [esp + 0x50]
call fcn.01016f4e
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
push edx
push str.WallpaperStyle
push str.Desktop
call fcn.01016f4e
lea eax, [esp + 0x40]
lea ecx, [esp + 0x44]
push eax
push str.TileWallpaper
push str.Desktop
call fcn.01016f4e
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], ebx
jne 0x104a82e
push str.none
lea ecx, [esp + 0x20]
call fcn.01008a50
mov edx, dword [0x10a41bc]
mov eax, dword [esp + 0x1c]
push eax
push str.prevwallpaper
mov ecx, dword [edx + 4]
call fcn.01011c48
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
je 0x104a863
mov ecx, dword [0x10a41bc]
push eax
push str.prevwallpaperstyle
mov ecx, dword [ecx + 4]
call fcn.01011c48
mov eax, dword [esp + 0x40]
cmp dword [eax - 8], ebx
je 0x104a880
mov edx, dword [0x10a41bc]
push eax
push str.prevwallpapertile
mov ecx, dword [edx + 4]
call fcn.01011c48
lea eax, [esp + 0x14]
push eax
push 0x108bfdc
push 1
push ebx
push 0x108bfec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x104aaa5
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x15a]
mov word [esp + 0x158], bx
rep stosd dword es:[edi], eax
mov ecx, dword [0x10a41bc]
lea edx, [esp + 0x18]
stosw word es:[edi], ax
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], ebx
mov ecx, dword [ecx + 4]
push edx
push str.prevadwallpaper
call fcn.01011ddf
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 8]
cmp eax, ebx
jne 0x104a9bc
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x15c]
push 0x104
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x104a974
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x158]
push 0x104
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.0105c15b
add esp, 0xc
lea edx, [esp + 0x54]
lea ecx, [esp + 0x18]
push edx
call fcn.01008a50
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebx
jne 0x104a95c
push str.none
lea ecx, [esp + 0x1c]
call fcn.01008a50
mov ecx, dword [0x10a41bc]
mov edx, dword [esp + 0x18]
push edx
push str.prevadwallpaper
mov ecx, dword [ecx + 4]
call fcn.01011c48
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x104a9bc
push 0x10a40b8
lea ecx, [esp + 0x28]
call fcn.01008a50
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
call fcn.0100920b
mov ecx, dword [0x10a41bc]
mov edx, dword [esp + 0x24]
push edx
push str.prevadwallpaperstyle
mov ecx, dword [ecx + 4]
call fcn.01011c48
mov eax, dword [esp + 0x20]
push 0x104
lea ecx, [esp + 0x15c]
push eax
push ecx
call fcn.0105e36e
add esp, 0xc
test eax, eax
jbe 0x104a9fd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x158]
push 0x104
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
push 7
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov esi, str.stretch
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x104aa30
cmp cl, bl
je 0x104aa2c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x104aa30
add eax, 2
add esi, 2
cmp cl, bl
jne 0x104aa0c
xor eax, eax
jmp 0x104aa35
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x104aa43
mov dword [esp + 0x34], 2
jmp 0x104aa7f
mov esi, str.tile
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x104aa6e
cmp cl, bl
je 0x104aa6a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x104aa6e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x104aa4a
xor eax, eax
jmp 0x104aa73
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x104aa7f
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebx
je 0x104ab08
push 1
push eax
push str.Wallpaper
push str.Desktop
lea ecx, [esp + 0x54]
call fcn.01016fa1
mov eax, dword [esp + 0x28]
push 1
push eax
push str.WallpaperStyle
push str.Desktop
lea ecx, [esp + 0x54]
call fcn.01016fa1
mov ecx, dword [esp + 0x38]
push 1
push ecx
push str.TileWallpaper
push str.Desktop
lea ecx, [esp + 0x54]
call fcn.01016fa1
mov edx, dword [esp + 0x20]
push 3
push edx
push ebx
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0x44]
call fcn.01016e68
mov al, byte [esp + 0x13]
pop edi
cmp al, bl
pop esi
mov eax, str.wallpaperinstalled
jne 0x104ab25
mov eax, str.wallpaperinstallfailed
push ebx
push eax
mov ecx, ebp
call fcn.0104b2a0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x104ab4c
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104ab4c
push eax
call fcn.0105b157
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x104ab6b
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104ab6b
push eax
call fcn.0105b157
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x104ab8a
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104ab8a
push eax
call fcn.0105b157
add esp, 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x104aba8
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104aba8
push eax
call fcn.0105b157
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x104abc7
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104abc7
push eax
call fcn.0105b157
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x104abe6
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104abe6
push eax
call fcn.0105b157
add esp, 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x104ac04
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104ac04
push eax
call fcn.0105b157
add esp, 4
mov ecx, dword [esp + 0x24]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x104ac23
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104ac23
push eax
call fcn.0105b157
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x104ac42
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x104ac42
push eax
call fcn.0105b157
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x360], 0xffffffff
call fcn.01016e63
mov ecx, dword [esp + 0x358]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x35c
ret 8