Function at 0x4af0e0
Capabilities:
Change the wallpaper
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb178
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x6385e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 0x70], 2
jne 0x4af2d0
push 0x5fc5a0
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b4780
movzx ecx, al
test ecx, ecx
je 0x4af1cf
push 1
mov edx, dword [ebp - 0xa8]
add edx, 8
push edx
call fcn.00414b70
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4af1ca
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x6c]
push ecx
mov ecx, dword [ebp - 0xa8]
add ecx, 0x60
call fcn.004553f0
push eax
push 0x5ffc9c
mov ecx, dword [ebp - 0x14]
call fcn.004789b0
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x4af1c0
push 1
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x88]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xac], eax
jmp 0x4af1ca
mov dword [ebp - 0xac], 0
jmp 0x4af2cb
push 0x5c
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b5770
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4af2cb
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b64e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b6620
mov byte [ebp - 4], 1
push 1
lea edx, [ebp - 0x34]
push edx
call fcn.00414b70
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4af2b0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x6c]
push ecx
mov ecx, dword [ebp - 0xa8]
add ecx, 0x60
call fcn.004553f0
push eax
lea ecx, [ebp - 0x28]
call fcn.004553f0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004789b0
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4af2a6
push 1
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xb0], eax
jmp 0x4af2b0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004b3860
jmp 0x4af534
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x70], 1
jne 0x4af534
push 0x5fc5a0
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b4780
movzx edx, al
test edx, edx
je 0x4af40f
mov eax, dword [ebp - 0xa8]
add eax, 8
push eax
lea ecx, [ebp - 0x44]
call fcn.004b34d0
mov dword [ebp - 4], 2
push 1
lea ecx, [ebp - 0x44]
call fcn.00404b70
sub eax, 1
push eax
lea ecx, [ebp - 0x44]
call fcn.004b5a90
push 0x5c
lea ecx, [ebp - 0x44]
call fcn.004b5770
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jle 0x4af3fb
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x44]
call fcn.004b64e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
push eax
push 0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004b6620
mov byte [ebp - 4], 4
push 1
lea edx, [ebp - 0x60]
push edx
call fcn.00414b70
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4af3e3
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.00413e40
movzx ecx, al
test ecx, ecx
je 0x4af39f
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4af3d9
push 1
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x98]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xb4], eax
jmp 0x4af3e3
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004b3860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004b3860
jmp 0x4af534
push 0x5c
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b5770
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jle 0x4af534
mov ecx, dword [ebp - 0x64]
add ecx, 1
push ecx
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b64e0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x64]
push eax
push 0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0xa8]
add ecx, 8
call fcn.004b6620
mov byte [ebp - 4], 6
push 1
lea edx, [ebp - 0x80]
push edx
call fcn.00414b70
add esp, 8
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4af519
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.00414040
movzx ecx, al
test ecx, ecx
je 0x4af4c6
push 0
push str.NoChangingWallpaper
lea ecx, [ebp - 0x74]
call fcn.004b4b20
movzx edx, al
test edx, edx
je 0x4af4c0
push 3
push 0
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0xd], 1
jmp 0x4af4d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4af4d5
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 0
je 0x4af50f
push 1
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xb8], eax
jmp 0x4af519
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004b3860
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret