Function at 0x14000ca78
Capabilities:
Check if file exists
Delete directory
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov r12, r8
mov r14, rdx
mov r15, rcx
mov byte [r8], 1
xor esi, esi
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rsi
mov dword [rbp - 0x29], esi
mov word [rbp - 0x25], si
lea rcx, [rbp - 0x21]
call fcn.140002ca8
nop
xor r8d, r8d
mov rdx, qword [r14]
lea rcx, [rbp - 0x49]
call fcn.14000449c
test al, al
je 0x14000cd5e
mov eax, dword [r15 + 0xa4]
cmp eax, 2
je 0x14000cdfa
test eax, eax
jne 0x14000cc26
mov rcx, r14
call fcn.14000329c
lea ecx, [rax + 1]
mov eax, dword [r14 + 8]
cmp ecx, eax
cmovbe eax, ecx
mov ebx, eax
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.140002b00
add rbx, rbx
mov r8, rbx
mov rdx, qword [r14]
mov rdi, qword [rbp - 0x59]
mov rcx, rdi
call fcn.14003ef60
mov word [rbx + rdi], si
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x27]
call fcn.140002c7c
nop
mov rcx, rdi
call fcn.14003d378
mov rax, qword [rbp - 0x31]
mov qword [rbp + 0x77], rax
mov r10, qword [r15 + 0x58]
mov r11, qword [r10]
mov al, byte [r15 + 0x138]
lea rcx, [r15 + 0x130]
neg al
sbb r9, r9
and r9, rcx
mov al, byte [r15 + 0x11b]
lea rdx, [r15 + 0x110]
neg al
sbb r8, r8
and r8, rdx
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov rax, qword [r15 + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x77]
mov rdi, qword [rbp + 0x27]
mov rdx, rdi
mov rcx, r10
call qword [r11 + 0x28]
mov ebx, eax
test eax, eax
jne 0x14000cc07
mov ecx, dword [rbp + 0x6f]
test ecx, ecx
je 0x14000cc17
sub ecx, 1
je 0x14000cc0c
sub ecx, 1
je 0x14000cc05
sub ecx, 1
je 0x14000cbfa
sub ecx, 1
je 0x14000cbed
cmp ecx, 1
je 0x14000cbe6
mov ebx, 0x80004005
jmp 0x14000cc07
mov ebx, 0x80004004
jmp 0x14000cc07
mov dword [r15 + 0xa4], 3
jmp 0x14000cc17
mov dword [r15 + 0xa4], 2
mov ebx, esi
jmp 0x14000ccde
mov dword [r15 + 0xa4], 1
mov rcx, rdi
call fcn.14003d378
mov eax, dword [r15 + 0xa4]
cmp eax, 3
jne 0x14000cc6a
mov rcx, r14
call fcn.140006dc8
test al, al
jne 0x14000cc5d
mov r8, r14
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, r15
call fcn.14000c5d4
mov ebx, eax
test eax, eax
jne 0x14000cd57
mov ebx, 0x80004005
jmp 0x14000cd57
mov byte [r15 + 0x220], 1
jmp 0x14000cdf6
cmp eax, 4
jne 0x14000cced
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.140002da8
nop
lea rcx, [rbp - 0x59]
call fcn.140006dc8
mov rdi, qword [rbp - 0x59]
test al, al
jne 0x14000ccab
mov r8, r14
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, r15
call fcn.14000c5d4
mov ebx, 0x80004005
test eax, eax
cmovne ebx, eax
jmp 0x14000ccde
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000cce8
call fcn.140004df8
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x59]
mov edx, eax
mov rcx, r15
call fcn.14000c6fc
mov ebx, eax
test eax, eax
jne 0x14000ccde
mov ebx, 0x80004005
mov rcx, rdi
call fcn.14003d378
jmp 0x14000cd57
jmp 0x14000cdee
mov eax, dword [rbp - 0x29]
shr eax, 4
mov rcx, qword [r14]
test al, 1
je 0x14000cd11
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000cdf6
lea rdx, str.Cannot_delete_output_folder
jmp 0x14000cd44
call fcn.140004b34
test al, al
je 0x14000cdf6
mov rcx, qword [r14]
call fcn.140004220
test al, al
jne 0x14000cdf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000cdf6
lea rdx, str.Cannot_delete_output_file
mov r8, r14
mov rcx, r15
call fcn.14000c638
test eax, eax
mov ebx, eax
jne 0x14000cd57
mov ebx, esi
mov esi, ebx
jmp 0x14000cdfa
mov r8, qword [r14]
mov rcx, r8
call fcn.1400053a4
mov ebx, eax
test eax, eax
js 0x14000cdf6
lea ecx, [rbx + 1]
cmp word [r8 + rcx*2], si
je 0x14000cdf6
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.140002da8
nop
mov rdi, qword [rbp - 0x59]
cmp ebx, dword [rbp - 0x51]
jae 0x14000cd9a
mov dword [rbp - 0x51], ebx
mov word [rdi + rbx*2], si
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
mov dword [rbp + 0xf], esi
mov word [rbp + 0x13], si
lea rcx, [rbp + 0x17]
call fcn.140002ca8
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.14000449c
test al, al
je 0x14000cde4
test byte [rbp + 0xf], 1
je 0x14000cde4
mov edx, dword [rbp + 0xf]
and edx, 0xfffffffe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
mov rcx, qword [rbp + 0x17]
call fcn.14003d378
nop
mov rcx, rdi
call fcn.14003d378
mov byte [r12], sil
mov rcx, qword [rbp - 0x21]
call fcn.14003d378
mov eax, esi
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret