Function at 0x1401f5a80
Capabilities:
Change the wallpaper
Check if file exists
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, rcx
xor dil, dil
mov eax, dword [rcx + 0x8c]
cmp eax, 2
jne 0x1401f5bff
mov r14d, 1
mov r8d, r14d
lea rdx, [0x140345f98]
add rcx, 8
call fcn.1401fc9f0
test al, al
je 0x1401f5b46
xor r8d, r8d
movzx edx, r14b
lea rcx, [rbx + 8]
call fcn.1400eb0d0
mov rsi, rax
test rax, rax
je 0x1401f5e26
mov rdx, qword [rbx + 0x78]
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1401f5b00
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rbx + 0x88]
xor r8d, r8d
lea rdx, [0x140346ce0]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete dil
mov rax, qword [rsi]
mov edx, r14d
mov rcx, rsi
call qword [rax]
jmp 0x1401f5e26
cmp dword [rbx + 0x14], 0
je 0x1401f5e26
mov edx, 0x5c
mov rcx, qword [rbx + 8]
call fcn.1402ba31c
mov rsi, rax
test rax, rax
je 0x1401f5e26
sub rsi, qword [rbx + 8]
sar rsi, 1
test esi, esi
jle 0x1401f5e26
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x28]
lea rcx, [rbx + 8]
call fcn.1401feab0
nop
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbx + 8]
call fcn.1401fed70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.1400eb0d0
mov rsi, rax
test rax, rax
je 0x1401f5bdc
mov r9d, dword [rbx + 0x88]
mov r8, qword [rbx + 0x78]
mov rdx, qword [rbp - 0x28]
mov rcx, rax
call fcn.1401b18c0
movzx edi, al
mov r8, qword [rsi]
mov edx, r14d
mov rcx, rsi
call qword [r8]
nop
cmp dword [rbp - 0x30], 0
jle 0x1401f5bec
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
nop
cmp dword [rbp - 0x20], 0
jle 0x1401f5e26
mov rcx, qword [rbp - 0x28]
jmp 0x1401f5e21
cmp eax, 1
jne 0x1401f5e26
add rbx, 8
mov r14d, eax
mov r8d, eax
lea rdx, [0x140345f98]
mov rcx, rbx
call fcn.1401fc9f0
test al, al
je 0x1401f5d35
xor eax, eax
mov qword [rbp - 0x30], rax
mov edx, dword [rbx + 0xc]
test edx, edx
jne 0x1401f5c43
lea rax, [0x140346ce0]
mov qword [rbp - 0x38], rax
jmp 0x1401f5c64
lea rcx, [rbp - 0x38]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rbp - 0x30]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x38]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x38]
call fcn.1401fde50
nop
mov edx, dword [rbp - 0x2c]
dec edx
mov r8d, r14d
lea rcx, [rbp - 0x38]
call fcn.1401fdf50
cmp dword [rbp - 0x2c], 0
je 0x1401f5d30
mov edx, 0x5c
mov rcx, qword [rbp - 0x38]
call fcn.1402ba31c
mov rbx, rax
test rax, rax
je 0x1401f5d30
sub rbx, qword [rbp - 0x38]
sar rbx, 1
test ebx, ebx
jle 0x1401f5d30
lea r8d, [rbx + 1]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.1401feab0
nop
mov r9d, ebx
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x38]
call fcn.1401fed70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.1400eb0d0
mov rbx, rax
test rax, rax
je 0x1401f5d10
mov rdx, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400ea6d0
movzx edi, dil
test al, al
cmovne edi, r14d
mov r8, qword [rbx]
mov edx, r14d
mov rcx, rbx
call qword [r8]
nop
cmp dword [rbp - 0x20], 0
jle 0x1401f5d20
mov rcx, qword [rbp - 0x28]
call fcn.1402b7350
nop
cmp dword [rbp - 0x10], 0
jle 0x1401f5d30
mov rcx, qword [rbp - 0x18]
call fcn.1402b7350
nop
jmp 0x1401f5e17
cmp dword [rbx + 0xc], 0
je 0x1401f5e26
mov edx, 0x5c
mov rcx, qword [rbx]
call fcn.1402ba31c
mov rsi, rax
test rax, rax
je 0x1401f5e26
sub rsi, qword [rbx]
sar rsi, 1
test esi, esi
jle 0x1401f5e26
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x38]
mov rcx, rbx
call fcn.1401feab0
nop
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1401fed70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.1400eb0d0
mov rsi, rax
test rax, rax
je 0x1401f5e07
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1401f5dea
xor r8d, r8d
lea rdx, str.NoChangingWallpaper
lea rcx, [rbp - 0x38]
call fcn.1401fce20
test al, al
je 0x1401f5de5
lea r9d, [rbx + 3]
xor r8d, r8d
xor edx, edx
lea ecx, [rbx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dil, 1
jmp 0x1401f5dfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, dil
cmp eax, 2
cmove edi, r14d
mov rax, qword [rsi]
mov edx, r14d
mov rcx, rsi
call qword [rax]
nop
cmp dword [rbp - 0x10], 0
jle 0x1401f5e17
mov rcx, qword [rbp - 0x18]
call fcn.1402b7350
nop
cmp dword [rbp - 0x30], 0
jle 0x1401f5e26
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
movzx eax, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret