Function at 0x14001f740
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20200]
mov eax, 0x20300
call fcn.1401686c0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x201f0], rax
mov r12d, r9d
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rsi, qword [rbp + 0x20260]
xor r15b, r15b
test r8, r8
jne 0x14001f7ac
xor r9d, r9d
mov edx, 0x947
mov rcx, qword [rcx + 8]
call fcn.14000f5d0
mov rdi, rax
mov r15b, 1
xor r9d, r9d
lea r8, [rbp - 0x30]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, 0x7e
lea rcx, [rbp - 0x30]
call fcn.14018805c
test rax, rax
je 0x14001f7e8
mov r8d, 0x104
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test rsi, rsi
je 0x14001f819
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001f819
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001f819
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.14018fc10
lea rcx, [rsp + 0x60]
call fcn.14012e370
nop
mov dword [rsp + 0x3c], r12d
mov byte [rsp + 0x40], 3
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea r8, [rbp - 0x30]
test rsi, rsi
cmovne r8, rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1e0]
mov rdx, rdi
mov rcx, r14
call fcn.14001fa80
test al, al
je 0x14001fa35
mov ecx, 0x1a0
call fcn.140167f20
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001f8a9
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9, rdi
mov r8, qword [r14 + 0x30]
mov rdx, r14
mov rcx, rax
call fcn.14001c450
mov rdi, rax
jmp 0x14001f8ac
mov rdi, rbx
mov qword [rsp + 0x30], rdi
mov qword [rdi + 0x10], rdi
test rsi, rsi
je 0x14001f8fd
lea rcx, [rdi + 0xe0]
cmp word [rsi], 0
je 0x14001f8da
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14001f8d0
mov r8, rbx
mov rdx, rsi
call fcn.140006f10
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001f8fd
mov dword [rdi + 0xa0], 2
xor eax, eax
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x20268]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x14001f928
mov rax, qword [rbp + 0x20268]
mov qword [rdi + 0xa4], rax
mov rax, qword [r14 + 0x20]
lea rcx, [rsp + 0x30]
cmp rcx, rax
jae 0x14001f97a
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x30]
cmp rcx, r8
ja 0x14001f97a
lea rsi, [rsp + 0x30]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [r14 + 0x28]
jne 0x14001f964
mov edx, 1
lea rcx, [r14 + 0x18]
call fcn.14001cea0
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x18]
test rcx, rcx
je 0x14001f99a
mov rax, qword [rax + rsi*8]
mov qword [rcx], rax
jmp 0x14001f99a
cmp rax, qword [r14 + 0x28]
jne 0x14001f98e
mov edx, 1
lea rcx, [r14 + 0x18]
call fcn.14001cea0
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x14001f99a
mov qword [rax], rdi
add qword [r14 + 0x20], 8
inc qword [r14 + 0x38]
mov rcx, qword [r14 + 0x38]
dec rcx
mov rdx, qword [r14 + 0x18]
mov rax, qword [r14 + 0x20]
sub rax, rdx
sar rax, 3
cmp rax, rcx
ja 0x14001f9cb
lea rcx, str.invalid_vector_T__subscript
call fcn.14014587c
int3
mov rbx, qword [rdx + rcx*8]
mov dword [rbx + 0x50], 0xffffffff
cmp byte [rbx + 8], 0
je 0x14001f9f0
mov rcx, qword [rbx]
mov r8d, 0xa
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.14008a270
cmp dword [rbx + 0x20], 0
jne 0x14001fa0d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14001fa0d
lea r8, [0x1401d3618]
mov rcx, rbx
call fcn.140021390
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
mov r9d, dword [rsp + 0x3c]
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, r14
call fcn.140021400
add qword [r14 + 0x30], 0x1a0
jmp 0x14001fa51
test r15b, r15b
je 0x14001fa4e
mov r9, rdi
xor r8d, r8d
mov edx, 0x949
mov rcx, qword [r14 + 8]
call fcn.14000f5d0
mov rdi, rbx
lea rcx, [rsp + 0x60]
call fcn.14012e3c0
mov rax, rdi
mov rcx, qword [rbp + 0x201f0]
xor rcx, rsp
call fcn.140168660
add rsp, 0x20300
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret