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

Disassembly:
test rcx, rcx
je 0x14001a311
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x378]
sub rsp, 0x470
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rbx, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x40]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001a2d6
lea rax, [rbp + 0x150]
mov r8, rbx
sub r8, rax
lea rcx, [rbp + 0x150]
mov edx, edi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001a10a
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001a10a
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001a0e7
test rdx, rdx
lea rax, [rcx - 2]
lea r8, str.DllCache
mov rdx, rdi
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov word [rax], si
call fcn.140010d0c
mov edx, 0x5c
lea rcx, [rbp + 0x150]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14001a2d6
mov r8, rax
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140010d0c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001a2d6
test al, 0x10
jne 0x14001a2d6
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
bt eax, 0xe
jae 0x14001a20d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
call fcn.14001c9fc
test eax, eax
je 0x14001a1f7
movabs r10, 0xc744176334503970
mov rax, qword [rsp + 0x30]
lea rcx, [rbp + 0x150]
xor edx, edx
call qword [0x140048188]
test eax, eax
jne 0x14001a1f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rsp + 0x40]
mov ecx, 2
mov r9d, eax
lea rdx, str.ERROR:_Decryption_failed_for_file__S.__Last_result:_0x_x._r_n
call fcn.140019b1c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001a20d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
bt eax, 0xe
jae 0x14001a2b4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
call fcn.14001c9fc
test eax, eax
je 0x14001a29e
movabs r10, 0xc744176334503970
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [0x140048188]
test eax, eax
jne 0x14001a29e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rsp + 0x40]
mov ecx, 2
mov r9d, eax
lea rdx, str.ERROR:_Decryption_failed_for_file__S.__Last_result:_0x_x._r_n
call fcn.140019b1c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001a2b4
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
test edi, edi
jne 0x14001a2d6
mov dword [rsp + 0x28], esi
lea r9d, [rdi + 1]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
lea rcx, [rbp + 0x150]
call fcn.14001d558
mov r8, rbx
lea rdx, str._Copied_file__S_to_DllCache._r_n
mov ecx, 4
call fcn.140019b1c
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret