Function at 0x14006a1b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x451
mov edx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp qword [rsi + 0xa0], rax
je 0x14006a24a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x14006a4e1
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14006a23b
mov qword [rsi + 0xa0], rdi
call fcn.1400b5750
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0xa0]
inc rdi
cmp rdi, 2
jb 0x14006a526
lea rdi, [rsi + 0x10]
mov rcx, rdi
mov edx, 1
call fcn.140081910
test al, al
je 0x14006a526
mov rax, qword [rsi + 0xa0]
lea r8, [rsp + 0xf0]
mov qword [r8], rax
mov edx, 0x20002
mov r9d, 8
mov rcx, rdi
call fcn.1400819e0
mov edi, eax
test al, al
je 0x14006a4b7
movaps xmm6, xmmword [0x1401879f0]
lea r15, [rsp + 0xa0]
movaps xmmword [r15 + 0x40], xmm6
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
mov rcx, r15
mov rdx, r14
call fcn.14004ce60
lea rax, str.database
lea rdx, [rsp + 0x90]
mov qword [rdx], rax
mov qword [rdx + 8], 8
mov rcx, r15
mov r8, rbx
call fcn.14004e1e0
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rsi
call fcn.1400b0490
movzx eax, byte [rbx + 0x17]
test al, al
js 0x14006a313
and eax, 0x7f
jmp 0x14006a31d
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rax
test rax, rax
js 0x14006a548
test rbx, rbx
jne 0x14006a344
test rax, rax
jne 0x14006a574
lea rax, str.exception_pointers
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x80]
call fcn.14004e710
cmp byte [rsp + 0x77], 0
js 0x14006a52a
mov edx, dword [rsi + 0xa0]
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400b0250
movzx eax, byte [rbx + 0x17]
test al, al
js 0x14006a39b
and eax, 0x7f
jmp 0x14006a3a5
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rax
test rax, rax
js 0x14006a548
test rbx, rbx
jne 0x14006a3c6
test rax, rax
jne 0x14006a574
lea rax, [0x14018be4d]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x40]
call fcn.14004e710
cmp byte [rsp + 0x77], 0
js 0x14006a539
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, r14
call fcn.14004f0b0
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, r14
call fcn.14003b720
lea rbx, [rsi + 0x88]
movzx eax, byte [r14 + 0x17]
mov r9d, eax
and r9d, 0x7f
test al, al
mov rdx, qword [r14]
cmovns rdx, r14
cmovs r9, qword [r14 + 8]
lea r8, [rdx + r9*2]
mov rcx, rbx
call fcn.14006a5d0
mov word [rsp + 0x2e], 0
mov rcx, qword [rsi + 0x88]
mov rax, qword [rsi + 0x90]
mov rdx, rax
sub rdx, rcx
sar rdx, 1
cmp rdx, 0xffffffffffffffdf
ja 0x14006a502
lea r8, [rsp + 0x2e]
mov edx, 0x20
mov rcx, rbx
call fcn.14003d680
cmp byte [rsp + 0x77], 0
jns 0x14006a4aa
mov rcx, qword [rsp + 0x60]
call fcn.1400dcbb4
lea rcx, [rsp + 0xa0]
call fcn.14004cf60
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400de0a0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400b5750
mov rcx, qword [rsi + 0xa0]
call fcn.1400a9190
mov qword [rsi + 0xa0], 0
jmp 0x14006a223
lea rcx, [rcx + rdx*2]
add rcx, 0x40
cmp rax, rcx
je 0x14006a51a
add rax, 0xfffffffffffffffe
jne 0x14006a50a
jmp 0x14006a5a0
mov qword [rsi + 0x90], rcx
jmp 0x14006a499
xor edi, edi
jmp 0x14006a4b7
mov rcx, qword [rsp + 0x60]
call fcn.1400dcbb4
jmp 0x14006a37b
mov rcx, qword [rsp + 0x60]
call fcn.1400dcbb4
jmp 0x14006a3fa
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140115ca0
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140115ca0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140115ca0
int3