Function at 0x140004a0c
Capabilities:
Change the wallpaper

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rcx
lea r15, [0x14012e090]
mov ebp, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14005dd40
mov rax, qword [0x14012d7a0]
mov ebx, 0xfffffffd
xor esi, esi
mov edi, ebx
lea r14d, [rbx + 4]
cmp rax, rsi
je 0x140004a68
xor ecx, ecx
call rax
mov edi, eax
cmp eax, esi
je 0x140004a68
cmp eax, r14d
jne 0x140004a68
call qword [0x14012d7a8]
movzx eax, byte [0x14012cac0]
test r14b, bpl
mov qword [rsp + 0x90], rsi
cmovne eax, esi
mov rbp, r14
mov byte [0x14012cac0], al
cmp al, sil
je 0x140004acc
xor edx, edx
mov r9d, 3
mov r8, r13
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rbp, rsi
cmp eax, esi
sete bpl
cmp rbp, rsi
jne 0x140004acc
mov rax, qword [0x14012d7a8]
cmp rax, rsi
je 0x140004d56
cmp edi, esi
jne 0x140004d56
call rax
jmp 0x140004d56
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14005dd40
mov rax, qword [0x14012d7a0]
cmp rax, rsi
je 0x140004afb
xor ecx, ecx
call rax
mov ebx, eax
cmp eax, esi
je 0x140004afb
cmp eax, r14d
jne 0x140004afb
call qword [0x14012d7a8]
lea rax, [rsp + 0x90]
lea r9, [0x14011d5c8]
lea rcx, [0x14011d5b8]
mov r8d, r14d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [0x14012d7b0]
movsxd r12, eax
cmp r12d, esi
jge 0x140004b4c
lea rdx, str._DEBUG_WALL_CoCreateInstance__
lea rcx, [0x14012d0c0]
xor r9d, r9d
mov r8, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140025258
cmp r12d, esi
mov byte [0x14012cac0], 0xff
jl 0x140004ca9
mov rcx, qword [rsp + 0x90]
xor eax, eax
mov dword [rsp + 0x30], 0xc
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], r14d
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [rax + 0x58]
movsxd r8, eax
cmp r8d, esi
jge 0x140004bb2
lea rdx, str._DEBUG_WALL_SetDesktopItemOptions__
lea rcx, [0x14012d0c0]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140025258
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, r13
mov rax, qword [rcx]
call qword [rax + 0x28]
movsxd r8, eax
cmp r8d, esi
jge 0x140004bee
lea rdx, str._DEBUG_WALL_SetWallpaper__
lea rcx, [0x14012d0c0]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140025258
mov rcx, qword [rsp + 0x90]
xor eax, eax
mov dword [rsp + 0x98], 8
or eax, 2
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov dword [rsp + 0x9c], eax
mov rax, qword [rcx]
call qword [rax + 0x38]
movsxd r8, eax
cmp r8d, esi
jge 0x140004c46
lea rdx, str._DEBUG_WALL_SetWallpaperOptions__
lea rcx, [0x14012d0c0]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140025258
mov rcx, qword [rsp + 0x90]
mov edx, 7
mov byte [0x14012cac0], r14b
mov rax, qword [rcx]
call qword [rax + 0x18]
movsxd rbp, eax
cmp ebp, esi
jge 0x140004c9f
lea rdx, str._DEBUG_WALL_ApplyChanges__
lea rcx, [0x14012d0c0]
xor r9d, r9d
mov r8, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140025258
mov r11, qword [0x14012d7a8]
cmp r11, rsi
je 0x140004cbb
cmp ebx, esi
jne 0x140004cbb
call r11
jmp 0x140004cbb
mov rbp, rsi
mov byte [0x14012cac0], 2
mov rax, qword [0x14012d7a8]
cmp rax, rsi
je 0x140004cbb
cmp ebx, esi
jne 0x140004cbb
call rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x90]
cmp rcx, rsi
je 0x140004cd7
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp rbp, rsi
je 0x140004d3f
xor edx, edx
mov r9d, 3
mov r8, r13
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd r11, eax
cmp ebx, esi
je 0x140004d04
mov rbp, rsi
jmp 0x140004d18
cmp qword [rsp + 0x90], rsi
jne 0x140004d1c
mov ebp, r11d
cmp r11d, esi
cmove ebp, r14d
cmp ebx, esi
jne 0x140004d3f
lea rdx, str._DEBUG_WALL_SystemParametersInfo__
lea rcx, [0x14012d0c0]
mov r8, r11
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140025258
mov rax, qword [0x14012d7a8]
mov ebx, ebp
cmp rax, rsi
je 0x140004d53
cmp edi, esi
jne 0x140004d53
call rax
mov rsi, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x80]
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret