Function at 0x14001d3d0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r15, rcx
mov qword [rsp + 0x50], rcx
lea r12, [0x1402a3290]
mov qword [rsp + 0x68], r12
mov rcx, r12
call fcn.1401469f8
test eax, eax
je 0x14001d438
mov ecx, eax
call fcn.140146b60
nop
mov rax, qword [r15]
mov rcx, qword [rax + 0x890]
mov rsi, qword [rcx + 0x40]
mov qword [rsp + 0x58], rsi
xor r14b, r14b
mov byte [rsp + 0x30], r14b
cmp byte [rsi + 0x48], r14b
je 0x14001d8af
cmp byte [rsi + 0x100], r14b
je 0x14001d8a7
mov ebx, dword [rsi + 0x4c]
xor edi, edi
cmp ebx, 4
cmove ebx, edi
lea rcx, [rbp - 0x50]
call fcn.14012e3a0
nop
mov edx, ebx
lea rcx, [rbp - 0x50]
call fcn.14012ecc0
mov ebx, dword [rsi + 0x50]
mov dword [rsp + 0x44], ebx
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14001ef50
nop
lea r13d, [rdi + 1]
cmp qword [rbp - 0x80], rdi
jne 0x14001d684
call fcn.14000cdd0
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.14001f680
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x14001d506
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14001d4e7
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140004900
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x14001d520
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140007680
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
mov r8d, 8
lea rdx, str._backup_
lea rcx, [rsp + 0x70]
call fcn.140006a00
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001d579
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rdx, qword [rsi + 0xd0]
cmp word [rdx], 0
jne 0x14001d58b
mov r8, rdi
jmp 0x14001d59b
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001d590
lea rcx, [rsp + 0x70]
call fcn.140006a00
xor ecx, ecx
call fcn.14019441c
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.14019433c
test rax, rax
jne 0x14001d5fe
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14001d5dc
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea rcx, [rbp - 0x50]
call fcn.14012e3f0
xor r14b, r14b
jmp 0x14001d9bf
mov r9, rax
lea r8, str._Y__m__d__H_M_S
mov edx, 0x20
lea rcx, [rbp - 0x20]
call fcn.140193748
mov r8, r13
lea rdx, [0x1401d49f0]
lea rcx, [rsp + 0x70]
call fcn.140006a00
cmp word [rbp - 0x20], 0
jne 0x14001d636
mov r8, rdi
jmp 0x14001d64b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14001d640
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x70]
call fcn.140006a00
lea rcx, [rsi + 0xe0]
lea rax, [rsp + 0x70]
cmp rcx, rax
je 0x14001d67b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
call fcn.140006dd0
mov byte [rsp + 0x30], 1
mov ebx, dword [rsp + 0x44]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
xor r9d, r9d
lea r8, [rbp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, 0x7e
lea rcx, [rbp + 0x20]
call fcn.14018805c
test rax, rax
je 0x14001d6cd
mov r8d, 0x104
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x14001d6ea
xor eax, 1
mov edx, eax
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, [0x1401d49f4]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14012eac0
test rax, rax
je 0x14001d863
mov rax, qword [r15]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7d6
mov rcx, qword [rax + 0x890]
call fcn.14000f5d0
mov r12, rax
mov rcx, qword [r15]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9d8
mov rcx, qword [rcx + 0x890]
call fcn.14000f5d0
mov qword [rsp + 0x38], rax
mov r15, rdi
cmp ebx, 0xffffffff
jne 0x14001d76e
movsxd r8, r12d
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14012eaf0
mov r15, rax
test r12d, r12d
jne 0x14001d83e
mov r15, r13
jmp 0x14001d83e
call fcn.14000cd40
mov qword [rsp + 0x48], rax
mov r13d, edi
test r12d, r12d
jle 0x14001d835
mov eax, 0x20004
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
nop dword [rax]
nop word [rax + rax]
mov ebx, r12d
sub ebx, r13d
cmp ebx, eax
cmovg ebx, eax
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
movsxd rdx, r13d
add rdx, r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, 0xfde9
mov rcx, rsi
call fcn.140028ba0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, rax
mov rcx, rsi
call fcn.14002d430
sub ebx, dword [rsp + 0x48]
movsxd r8, dword [rsp + 0x38]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14012eaf0
mov r15, rax
add r13d, ebx
cmp r13d, r12d
mov eax, 0x20004
jl 0x14001d7a0
mov rsi, qword [rsp + 0x58]
xor r14b, r14b
test r12d, r12d
mov eax, 1
cmove r15, rax
lea rcx, [rbp - 0x50]
call fcn.14012ea90
lea r12, [0x1402a3290]
cmp r15, 1
mov r15, qword [rsp + 0x50]
jne 0x14001d863
mov byte [rsi + 0x100], 0
mov r14b, 1
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14001d87f
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea rcx, [rbp - 0x50]
call fcn.14012e3f0
test r14b, r14b
je 0x14001d9bf
jmp 0x14001d9af
mov r14b, 1
jmp 0x14001d9bf
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14001ef50
nop
xor edi, edi
cmp qword [rbp - 0x60], rdi
je 0x14001d982
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14001ef50
nop
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov r8d, 7
mov qword [rbp - 0x78], r8
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea rcx, [rsi + 0xe0]
lea rax, [rsp + 0x70]
cmp rcx, rax
je 0x14001d916
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
call fcn.140006dd0
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14001d92e
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [rsp + 0x30], 1
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x14001d972
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.140007680
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
mov r14b, 1
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x14001d99f
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140007680
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
cmp byte [rsp + 0x30], 0
je 0x14001d9bf
mov rcx, qword [r15]
call fcn.1400b6730
nop
mov rcx, r12
call fcn.140146a58
test eax, eax
je 0x14001d9d2
mov ecx, eax
call fcn.140146b60
movzx eax, r14b
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140168660
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret