Function at 0x14007ae10
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1148]
mov eax, 0x1248
call fcn.1401686c0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x1130], rax
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x38], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov rax, qword [rcx]
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x18]
lea rcx, [rbp]
call fcn.140042e60
nop
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp]
call fcn.140044750
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov dword [rsp + 0x20], 1
lea rcx, [rbp]
call fcn.140043760
mov r13, rax
test rax, rax
je 0x14007b40b
call fcn.14000cdd0
lea rdx, [rax + 0x33128]
cmp qword [rdx + 0x18], 8
jb 0x14007aec7
mov rdx, qword [rdx]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
cmp word [rdx], 0
jne 0x14007aeeb
mov r8, r14
jmp 0x14007aefb
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14007aef0
lea rcx, [rbp - 0x60]
call fcn.140006f10
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14007af33
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [r13 + 8]
sub rax, qword [r13]
sar rax, 5
mov qword [rsp + 0x28], rax
mov r15, r14
test rax, rax
je 0x14007b3e0
mov r12, r14
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 5
cmp rax, r15
jbe 0x14007b3d3
add rcx, r12
cmp qword [rcx + 0x18], 8
jb 0x14007af85
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14007b3a6
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140006dd0
nop
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 5
cmp rax, r15
jbe 0x14007b3c6
add rcx, r12
cmp qword [rcx + 0x18], 8
jb 0x14007afec
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
cmp word [rax], 0
jne 0x14007b01b
mov r8, r14
jmp 0x14007b02b
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14007b020
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140006f10
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14007b344
lea rax, [rsp + 0x60]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
cmp r14, 8
cmovae rax, rdi
lea rbx, [rcx - 1]
lea rbx, [rax + rbx*2]
nop word [rax + rax]
mov ecx, 1
lea rax, [0x1401d30a0]
movzx edx, word [rbx]
nop
cmp word [rax], dx
je 0x14007b0a8
add rax, 2
sub rcx, 1
jne 0x14007b080
lea rcx, [rsp + 0x60]
call fcn.140032f90
cmp rbx, rax
je 0x14007b341
sub rbx, 2
jmp 0x14007b070
lea rax, [rsp + 0x60]
cmp r14, 8
cmovae rax, rdi
sub rbx, rax
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14007b341
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.14000d950
nop
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140028400
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x14007b106
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.140007680
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14007b13a
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140028400
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x14007b167
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.140007680
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov rcx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rcx
sar rax, 5
cmp rax, r15
jbe 0x14007b3b9
add rcx, r12
cmp qword [rcx + 0x18], 8
jb 0x14007b19d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14007b311
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
cmp word [rdx], r14w
jne 0x14007b1e6
mov r8d, r14d
jmp 0x14007b1fa
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14007b1f0
lea rcx, [rbp - 0x80]
call fcn.140006f10
nop
mov rax, qword [rsi + 8]
lea rcx, [rbp - 0x80]
cmp rcx, rax
jae 0x14007b265
mov rcx, qword [rsi]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
ja 0x14007b265
lea rbx, [rbp - 0x80]
sub rbx, rcx
cmp rax, qword [rsi + 0x10]
jne 0x14007b237
mov edx, 1
mov rcx, rsi
call fcn.140006290
mov rcx, qword [rsi + 8]
and rbx, 0xffffffffffffffe0
add rbx, qword [rsi]
test rcx, rcx
je 0x14007b2df
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
mov rdx, rbx
call fcn.140004900
jmp 0x14007b2df
cmp rax, qword [rsi + 0x10]
jne 0x14007b278
mov edx, 1
mov rcx, rsi
call fcn.140006290
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x14007b2df
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
cmp qword [rbp - 0x68], 8
jae 0x14007b2b3
mov r8, qword [rbp - 0x70]
add r8, 1
je 0x14007b2be
add r8, r8
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140187210
jmp 0x14007b2be
mov rax, qword [rbp - 0x80]
mov qword [rbx], rax
mov qword [rbp - 0x80], r14
mov rax, qword [rbp - 0x70]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp - 0x68]
mov qword [rbx + 0x18], rax
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
add qword [rsi + 8], 0x20
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x14007b2fe
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140007680
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
jmp 0x14007b314
xor r14d, r14d
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14007b32e
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140007680
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
jmp 0x14007b344
xor r14d, r14d
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14007b361
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140007680
mov word [rsp + 0x60], r14w
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14007b392
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140007680
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
inc r15
add r12, 0x20
cmp r15, qword [rsp + 0x28]
jae 0x14007b3e0
jmp 0x14007af60
lea rcx, str.invalid_vector_T__subscript
call fcn.14014587c
nop
lea rcx, str.invalid_vector_T__subscript
call fcn.14014587c
nop
lea rcx, str.invalid_vector_T__subscript
call fcn.14014587c
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x14007b3fa
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.140007680
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
lea rcx, [rbp]
call fcn.140042fb0
mov rax, rsi
mov rcx, qword [rbp + 0x1130]
xor rcx, rsp
call fcn.140168660
add rsp, 0x1248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret