Function at 0x140003590
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 [0x140017040]
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, [0x1400105d0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140003a95
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 0x140003620
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.140002890
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 0x140003660
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.140002890
nop
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x140003771
mov r14d, 0x100
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140010894]
lea rdx, [0x140010896]
nop
movzx eax, word [rcx]
cmp ax, r14w
jae 0x14000370b
movzx eax, al
mov byte [rbp + rax - 0x30], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400036c0
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 0x140003700
cmp byte [rbp + rax - 0x30], 0
jne 0x140003769
cmp rdx, rdi
je 0x140003771
sub rdx, 2
jmp 0x1400036f0
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, [0x140010894]
cmp r9w, r8w
je 0x140003769
cmp rcx, 1
je 0x14000375e
dec rcx
add rax, 2
cmp word [rax], r8w
jne 0x140003746
test rax, rax
jne 0x140003769
cmp rdx, rdi
je 0x140003771
sub rdx, 2
jmp 0x140003730
sub rdx, rdi
sar rdx, 1
jmp 0x140003774
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 0x140003ac1
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.140002890
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140003805
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003800
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003800
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d134
movdqa xmm0, xmmword [0x1400117c0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14000385e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003859
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003859
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d134
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 0x140003873
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.140002890
nop
mov r8d, 1
lea rdx, [0x140010894]
lea rcx, [rsp + 0x60]
call fcn.140004310
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.140004310
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 0x140003963
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000395e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000395e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d134
movdqa xmm0, xmmword [0x1400117c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r15w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400039bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d134
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 0x1400039f3
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 0x140003a40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d134
movdqa xmm0, xmmword [0x1400117c0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r15w
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140003a95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d134
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14000d0d0
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.140004390
nop
int3