Function at 0x140002ff0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor r15d, r15d
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r9, [rbp - 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000e540]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400034f5
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rbp + 0xd0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x140003080
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.1400037a0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp + 0xd0]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400030c0
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.1400037a0
nop
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x1400031d1
mov r14d, 0x100
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14000e708]
lea rdx, [0x14000e70a]
nop
movzx eax, word [rcx]
cmp ax, r14w
jae 0x14000316b
movzx eax, al
mov byte [rbp + rax - 0x30], 1
add rcx, 2
cmp rcx, rdx
jne 0x140003120
lea rcx, [rsi - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea rdx, [rdi + rax*2]
nop dword [rax]
movzx eax, word [rdx]
cmp ax, r14w
jae 0x140003160
cmp byte [rbp + rax - 0x30], 0
jne 0x1400031c9
cmp rdx, rdi
je 0x1400031d1
sub rdx, 2
jmp 0x140003150
lea rcx, [rsi - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea rdx, [rdi + rax*2]
mov r9d, 0x5c
nop dword [rax]
nop word [rax + rax]
mov ecx, 1
movzx r8d, word [rdx]
lea rax, [0x14000e708]
cmp r9w, r8w
je 0x1400031c9
cmp rcx, 1
je 0x1400031be
dec rcx
add rax, 2
cmp word [rax], r8w
jne 0x1400031a6
test rax, rax
jne 0x1400031c9
cmp rdx, rdi
je 0x1400031d1
sub rdx, 2
jmp 0x140003190
sub rdx, rdi
sar rdx, 1
jmp 0x1400031d4
mov rdx, rbx
inc rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov rax, qword [rsp + 0x30]
cmp rax, rdx
jb 0x140003521
sub rax, rdx
mov r8, rbx
cmp rax, rbx
cmovb r8, rax
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rax, qword [rsp + 0x20]
lea rdx, [rax + rdx*2]
lea rcx, [rbp - 0x58]
call fcn.1400037a0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140003265
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003260
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003260
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c034
movdqa xmm0, xmmword [0x14000f610]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400032be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400032b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c034
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov rdx, qword [rbp - 0x80]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400032d3
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.1400037a0
nop
mov r8d, 1
lea rdx, [0x14000e708]
lea rcx, [rsp + 0x60]
call fcn.140003530
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
lea rcx, [rsp + 0x20]
call fcn.140003530
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400033c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c034
movdqa xmm0, xmmword [0x14000f610]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r15w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14000341c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003417
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003417
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c034
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140003453
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rdx, qword [rbp - 0x78]
xor r8d, r8d
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x1400034a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000349b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000349b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c034
movdqa xmm0, xmmword [0x14000f610]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r15w
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1400034f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400034f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400034f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c034
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14000bfd0
lea r11, [rsp + 0x3f0]
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
call fcn.1400035b0
nop
int3