Function at 0x140023220
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x79], r14d
cmp qword [rcx + 0x18], 8
jb 0x14002325f
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140023271
xor al, al
jmp 0x1400234ec
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002327e
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14014ce5c]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r14w
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1400232b0
lea rcx, [rbp - 0x71]
call fcn.1400088b0
nop
mov dword [rbp - 0x79], 9
lea r8, [rbp - 0x71]
lea rdx, [rbp - 0x51]
mov rcx, rsi
call fcn.140025150
nop
mov dword [rbp - 0x79], DosDateTimeToVariantTime
cmp qword [rax + 0x18], 8
jb 0x1400232ed
mov rax, qword [rax]
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140023300
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x51]
call fcn.140008840
nop
lea rcx, [rbp - 0x71]
call fcn.140008840
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002333a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023481
test al, 0x10
je 0x140023481
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140022bf0
test eax, eax
jne 0x140023369
mov sil, 1
jmp 0x1400234df
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400233a9
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400233a4
test al, 0x10
je 0x1400233a4
mov sil, 1
jmp 0x1400233db
xor sil, sil
jmp 0x1400233db
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete sil
test eax, eax
jne 0x1400233db
mov edx, dword [0x140177b90]
lea rcx, [rbp - 0x11]
call fcn.1400262d0
lea rax, [rbp - 0x11]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], 1
lea rax, [0x140023200]
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x37], 0
xor edx, edx
xor ecx, ecx
call fcn.140023fa0
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023fa0
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.1400241d0
mov byte [rbp + 0x37], 1
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140026ef0
nop
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140023454
cmp byte [rbp + 0x37], 0
je 0x140023450
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0x27], r14
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x140023472
cmp byte [rbp + 0x37], 0
je 0x14002346e
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0x2f], r14
mov byte [rbp + 0x37], 0
lea rcx, [rbp + 0xf]
call fcn.14001b870
jmp 0x1400234df
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140022bf0
test eax, eax
je 0x140023361
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x11]
call fcn.140024f90
nop
mov rcx, rax
call fcn.1400250c0
nop
lea rcx, [rbp - 0x31]
call fcn.140008840
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
cmp qword [rdi + 0x18], 8
jb 0x1400234cd
mov rdi, qword [rdi]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne sil
lea rcx, [rbp - 0x11]
call fcn.140008840
movzx eax, sil
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret