Function at 0x14021ad00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.14022e150
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1108], rbx
mov qword [rsp + 0x1110], rsi
mov qword [rsp + 0x1118], rdi
movaps xmmword [rsp + 0x10c0], xmm6
mov rax, qword [0x140302028]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov r14, qword [rcx + 8]
test r14, r14
je 0x14021b0c4
mov r15, qword [rcx]
xor r13d, r13d
cmp r13w, word [r15]
je 0x14021b0e7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021ad8b
test al, 0x10
jne 0x14021b082
lea rax, [rbp - 0x58]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 0x800
lea r9, [r14 + 1]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140216a80
nop
lea rbx, [r15 + r14*2]
movabs rax, 0x3fffffffffffffff
cmp r14, qword [rbp - 0x60]
jbe 0x14021ae62
cmp r14, rax
ja 0x14021b10a
lea rcx, [r14 + r14]
call fcn.14009f0b0
mov r12, rax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14021ae11
mov qword [rbp - 0x68], r13
lea rax, [rbp - 0x58]
cmp rax, rcx
je 0x14021ae11
call fcn.14009f464
mov rdi, r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x60], r14
mov rsi, r13
mov qword [rbp - 0x68], r13
mov rax, r12
cmp r15, rbx
je 0x14021ae53
test r12, r12
je 0x14021ae53
test r15, r15
je 0x14021ae53
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r12]
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
sub rax, r12
sar rax, 1
add rsi, rax
mov qword [rbp - 0x68], rsi
jmp 0x14021aebd
lea r8, [r14 + r14]
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
mov r12, rdi
cmp rsi, r14
jae 0x14021aea7
test rsi, rsi
je 0x14021ae97
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add r15, rbx
add r12, rbx
mov rdi, qword [rbp - 0x70]
mov r8, r14
sub r8, rsi
je 0x14021aeb6
add r8, r8
mov rcx, r12
jmp 0x14021aeaa
mov rcx, rdi
mov rdx, r15
call sub.VCRUNTIME140.dll_memmove
mov rdi, qword [rbp - 0x70]
mov rsi, r14
mov qword [rbp - 0x68], r14
mov dword [rsp + 0x38], r13d
cmp rsi, qword [rbp - 0x60]
jae 0x14021aee5
lea rax, [rdi + rsi*2]
test rax, rax
je 0x14021aedd
mov word [rax], r13w
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
inc rsi
jmp 0x14021afc0
lea r15, [rdi + rsi*2]
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.1402168d0
mov r12, rax
movabs rax, 0x3fffffffffffffff
cmp r12, rax
ja 0x14021b0b7
lea rcx, [r12 + r12]
call fcn.14009f0b0
mov rdi, rax
mov rsi, rax
mov rcx, qword [rbp - 0x70]
mov r14, rcx
test rcx, rcx
je 0x14021af55
cmp rcx, r15
je 0x14021af55
test rax, rax
je 0x14021af55
mov rax, r15
sub rax, rcx
sar rax, 1
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rcx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rsi, [rbx + rsi]
mov rcx, qword [rbp - 0x70]
test rsi, rsi
je 0x14021af66
movzx eax, word [rsp + 0x38]
mov word [rsi], ax
mov rcx, qword [rbp - 0x70]
add rsi, 2
test r14, r14
je 0x14021afb2
mov rax, qword [rbp - 0x68]
lea rbx, [r14 + rax*2]
cmp r15, rbx
je 0x14021afa4
test rsi, rsi
je 0x14021afa4
test r15, r15
je 0x14021afa4
sub rbx, r15
sar rbx, 1
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
add rsi, rbx
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x58]
cmp rax, rcx
je 0x14021afb2
call fcn.14009f464
mov qword [rbp - 0x70], rdi
sub rsi, rdi
sar rsi, 1
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x68], rsi
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
test rsi, rsi
lea r14, [rdi + rsi*2]
jne 0x14021afee
mov r14, rdi
add r14, 0xfffffffffffffffe
cmp rdi, r14
je 0x14021b06a
mov rbx, rdi
movaps xmm6, xmmword [rsp + 0x40]
nop
mov rsi, rbx
cmp rbx, r14
je 0x14021b025
mov rax, rbx
nop dword [rax + rax]
cmp word [rbx], 0x5c
je 0x14021b025
lea rbx, [rax + 2]
mov rsi, rbx
mov rax, rbx
cmp rbx, r14
jne 0x14021b010
cmp rdi, rsi
je 0x14021b05a
movdqa xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14021a340
test al, al
je 0x14021b066
cmp rsi, r14
je 0x14021b066
mov rdi, rbx
add rdi, 2
mov rbx, rdi
cmp rdi, r14
jne 0x14021b000
mov rdi, qword [rbp - 0x70]
cmp qword [rbp - 0x60], 0
je 0x14021b082
lea rax, [rbp - 0x58]
cmp rax, rdi
je 0x14021b082
mov rcx, rdi
call fcn.14009f464
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.14009f440
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.get_next_capacity__allocators_max_size_reached
call fcn.140225500
nop
lea rdx, str.DirectoryCreateRecursively:_empty_path
lea rcx, [rsp + 0x60]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.DirectoryExists:_empty_path
lea rcx, [rsp + 0x60]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, str.get_next_capacity__allocators_max_size_reached
call fcn.140225500
int3