Function at 0x1401e1f10
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 0x1401e208f
mov r14d, 1
mov r8d, r14d
lea rdx, [0x1403232c8]
add rcx, 8
call fcn.1401e8ee0
test al, al
je 0x1401e1fd6
xor r8d, r8d
movzx edx, r14b
lea rcx, [rbx + 8]
call fcn.1400ecf50
mov rsi, rax
test rax, rax
je 0x1401e22b6
mov rdx, qword [rbx + 0x78]
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1401e1f90
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rbx + 0x88]
xor r8d, r8d
lea rdx, [0x140323de0]
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 0x1401e22b6
cmp dword [rbx + 0x14], 0
je 0x1401e22b6
mov edx, 0x5c
mov rcx, qword [rbx + 8]
call fcn.14029aea8
mov rsi, rax
test rax, rax
je 0x1401e22b6
sub rsi, qword [rbx + 8]
sar rsi, 1
test esi, esi
jle 0x1401e22b6
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x28]
lea rcx, [rbx + 8]
call fcn.1401eaef0
nop
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbx + 8]
call fcn.1401eb1b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.1400ecf50
mov rsi, rax
test rax, rax
je 0x1401e206c
mov r9d, dword [rbx + 0x88]
mov r8, qword [rbx + 0x78]
mov rdx, qword [rbp - 0x28]
mov rcx, rax
call fcn.1401a1a70
movzx edi, al
mov r8, qword [rsi]
mov edx, r14d
mov rcx, rsi
call qword [r8]
nop
cmp dword [rbp - 0x30], 0
jle 0x1401e207c
mov rcx, qword [rbp - 0x38]
call fcn.140298600
nop
cmp dword [rbp - 0x20], 0
jle 0x1401e22b6
mov rcx, qword [rbp - 0x28]
jmp 0x1401e22b1
cmp eax, 1
jne 0x1401e22b6
add rbx, 8
mov r14d, eax
mov r8d, eax
lea rdx, [0x1403232c8]
mov rcx, rbx
call fcn.1401e8ee0
test al, al
je 0x1401e21c5
xor eax, eax
mov qword [rbp - 0x30], rax
mov edx, dword [rbx + 0xc]
test edx, edx
jne 0x1401e20d3
lea rax, [0x140323de0]
mov qword [rbp - 0x38], rax
jmp 0x1401e20f4
lea rcx, [rbp - 0x38]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x38]
call fcn.1401ea290
nop
mov edx, dword [rbp - 0x2c]
dec edx
mov r8d, r14d
lea rcx, [rbp - 0x38]
call fcn.1401ea390
cmp dword [rbp - 0x2c], 0
je 0x1401e21c0
mov edx, 0x5c
mov rcx, qword [rbp - 0x38]
call fcn.14029aea8
mov rbx, rax
test rax, rax
je 0x1401e21c0
sub rbx, qword [rbp - 0x38]
sar rbx, 1
test ebx, ebx
jle 0x1401e21c0
lea r8d, [rbx + 1]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.1401eaef0
nop
mov r9d, ebx
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x38]
call fcn.1401eb1b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.1400ecf50
mov rbx, rax
test rax, rax
je 0x1401e21a0
mov rdx, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400ec4d0
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 0x1401e21b0
mov rcx, qword [rbp - 0x28]
call fcn.140298600
nop
cmp dword [rbp - 0x10], 0
jle 0x1401e21c0
mov rcx, qword [rbp - 0x18]
call fcn.140298600
nop
jmp 0x1401e22a7
cmp dword [rbx + 0xc], 0
je 0x1401e22b6
mov edx, 0x5c
mov rcx, qword [rbx]
call fcn.14029aea8
mov rsi, rax
test rax, rax
je 0x1401e22b6
sub rsi, qword [rbx]
sar rsi, 1
test esi, esi
jle 0x1401e22b6
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x38]
mov rcx, rbx
call fcn.1401eaef0
nop
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1401eb1b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.1400ecf50
mov rsi, rax
test rax, rax
je 0x1401e2297
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 0x1401e227a
xor r8d, r8d
lea rdx, str.NoChangingWallpaper
lea rcx, [rbp - 0x38]
call fcn.1401e9310
test al, al
je 0x1401e2275
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 0x1401e228b
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 0x1401e22a7
mov rcx, qword [rbp - 0x18]
call fcn.140298600
nop
cmp dword [rbp - 0x30], 0
jle 0x1401e22b6
mov rcx, qword [rbp - 0x38]
call fcn.140298600
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