Function at 0x140022e70
Capabilities:
Check if file exists
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, 0xc0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x59], r14d
cmp qword [rcx + 0x18], 8
jb 0x140022eaf
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140022ec1
xor al, al
jmp 0x1400230f2
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140022ece
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14015b7e0]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x51], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x41], xmm0
mov word [rbp - 0x51], r14w
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140022f02
lea rcx, [rbp - 0x51]
call fcn.140009050
nop
mov dword [rbp - 0x59], 9
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.140024c30
nop
mov dword [rbp - 0x59], DosDateTimeToVariantTime
cmp qword [rax + 0x18], 8
jb 0x140022f3f
mov rax, qword [rax]
mov qword [rbp - 0x11], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], r14w
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140022f55
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140009050
nop
lea rcx, [rbp - 0x31]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x51]
call fcn.140008fe0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140022f8f
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400230d6
test al, 0x10
je 0x1400230d6
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140022810
test eax, eax
jne 0x140022fbe
mov sil, 1
jmp 0x1400230e5
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 0x140022ffe
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 0x140022ff9
test al, 0x10
je 0x140022ff9
mov sil, 1
jmp 0x140023030
xor sil, sil
jmp 0x140023030
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 0x140023030
mov edx, dword [0x140189cc0]
lea rcx, [rbp - 0x11]
call fcn.140025da0
lea rax, [rbp - 0x11]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], 1
lea rax, [0x140022e50]
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.140023bd0
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023bd0
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140023cb0
mov byte [rbp + 0x37], 1
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140026a20
nop
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1400230a9
cmp byte [rbp + 0x37], 0
je 0x1400230a5
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 0x1400230c7
cmp byte [rbp + 0x37], 0
je 0x1400230c3
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.14001ca60
jmp 0x1400230e5
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.1400265c0
movzx esi, al
lea rcx, [rbp - 0x11]
call fcn.140008fe0
movzx eax, sil
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret