Function at 0x1400038e0
Capabilities:
Change the wallpaper

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rcx
lea r14, [0x1400f2c58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14004a964
mov rax, qword [0x1400f23f0]
mov ebx, 0xfffffffd
xor esi, esi
mov edi, ebx
lea r15d, [rbx + 4]
cmp rax, rsi
je 0x14000393c
xor ecx, ecx
call rax
mov edi, eax
cmp eax, esi
je 0x14000393c
cmp eax, r15d
jne 0x14000393c
call qword [0x1400f23f8]
or ebp, 0xffffffff
cmp byte [0x1400f19b8], sil
je 0x140003985
lea r9d, [rbp + 4]
lea ecx, [rbp + 0x15]
mov r8, r13
xor edx, edx
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ebp, esi
cmp eax, esi
sete bpl
cmp ebp, esi
jne 0x140003985
mov rax, qword [0x1400f23f8]
cmp rax, rsi
je 0x140003bd6
cmp edi, esi
jne 0x140003bd6
call rax
jmp 0x140003bd6
mov rcx, r14
mov qword [rsp + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14004a964
mov rax, qword [0x1400f23f0]
cmp rax, rsi
je 0x1400039bc
xor ecx, ecx
call rax
mov ebx, eax
cmp eax, esi
je 0x1400039bc
cmp eax, r15d
jne 0x1400039bc
call qword [0x1400f23f8]
lea rax, [rsp + 0x80]
lea r9, [0x1400e35c0]
lea rcx, [0x1400e35b0]
mov r8d, r15d
xor edx, edx
mov byte [0x1400f19b8], 0xff
mov qword [rsp + 0x20], rax
call qword [0x1400f2400]
cmp eax, esi
jge 0x140003a2b
lea rdx, str._DEBUG_WALL_CoCreateInstance__
lea rcx, [0x1400f1e30]
mov r8d, eax
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.140023c7c
mov r11, qword [0x1400f23f8]
cmp r11, rsi
je 0x140003b4a
cmp ebx, esi
jne 0x140003b4a
call r11
jmp 0x140003b4a
mov rcx, qword [rsp + 0x80]
xor eax, eax
mov dword [rsp + 0x30], 0xc
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x38], r15d
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [rax + 0x58]
cmp eax, esi
jge 0x140003a7b
lea rdx, str._DEBUG_WALL_SetDesktopItemOptions__
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov r8d, eax
mov qword [rsp + 0x20], rsi
call fcn.140023c7c
mov rcx, qword [rsp + 0x80]
xor r8d, r8d
mov rdx, r13
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp eax, esi
jge 0x140003ab1
lea rdx, str._DEBUG_WALL_SetWallpaper__
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov r8d, eax
mov qword [rsp + 0x20], rsi
call fcn.140023c7c
mov rcx, qword [rsp + 0x80]
xor eax, eax
mov dword [rsp + 0x88], 8
or eax, 2
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov dword [rsp + 0x8c], eax
mov rax, qword [rcx]
call qword [rax + 0x38]
cmp eax, esi
jge 0x140003b03
lea rdx, str._DEBUG_WALL_SetWallpaperOptions__
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov r8d, eax
mov qword [rsp + 0x20], rsi
call fcn.140023c7c
mov rcx, qword [rsp + 0x80]
mov edx, 7
mov byte [0x1400f19b8], r15b
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, esi
mov ebp, eax
jge 0x140003b2f
lea rdx, str._DEBUG_WALL_ApplyChanges__
jmp 0x1400039f4
mov rax, qword [0x1400f23f8]
mov ebp, esi
mov byte [0x1400f19b8], 2
cmp rax, rsi
je 0x140003b4a
cmp ebx, esi
jne 0x140003b4a
call rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x80]
cmp rcx, rsi
je 0x140003b66
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp ebp, esi
je 0x140003bc2
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]
cmp ebx, esi
je 0x140003b8e
mov ebp, esi
jmp 0x140003ba0
cmp qword [rsp + 0x80], rsi
jne 0x140003ba4
mov ebp, eax
cmp eax, esi
cmove ebp, r15d
cmp ebx, esi
jne 0x140003bc2
lea rdx, str._DEBUG_WALL_SystemParametersInfo__
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov r8d, eax
mov qword [rsp + 0x20], rsi
call fcn.140023c7c
mov rax, qword [0x1400f23f8]
cmp rax, rsi
je 0x140003bd4
cmp edi, esi
jne 0x140003bd4
call rax
mov esi, ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret