Function at 0x1400be2e0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rbp - 8], rax
movzx r15d, r8b
mov rbx, rdx
mov r14, rcx
cmp qword [rdx + 0x10], 0
jne 0x1400be32e
mov eax, 0xa
jmp 0x1400be67f
mov esi, 7
mov qword [rbp - 0x10], rsi
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
cmp qword [rdx + 0x18], 0x10
jb 0x1400be34f
mov rcx, qword [rdx]
jmp 0x1400be352
mov rcx, rdx
lea rdx, [rbp - 0x28]
call fcn.1400355a0
test al, al
jne 0x1400be3a8
mov eax, dword [0x140184200]
test al, 1
jne 0x1400be384
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
lea r8, str.Failed_while_converting_dbPath_from_string_to_NativeString
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003d0c0
mov edi, 0xc
jmp 0x1400be66d
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400be55d
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdi, qword [rbp - 0x28]
mov eax, dword [0x140184200]
test al, 1
jne 0x1400be3f7
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
mov r9, rdi
lea r8, str.File__s_does_not_exist
lea rdx, str.Utilities
lea rcx, [0x140184130]
call fcn.14003ce50
test r15b, r15b
jne 0x1400be44b
cmp qword [rbx + 0x18], 0x10
jb 0x1400be423
mov rbx, qword [rbx]
call fcn.14003c140
mov rcx, rax
mov r9, rbx
lea r8, str.database_is_not_present_at_path:_ls
lea rdx, [0x14013d788]
call fcn.14003d0c0
mov edi, 0x11
jmp 0x1400be66d
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], r12
mov word [rbp - 0x48], r12w
mov rdi, qword [rbp - 0x18]
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jb 0x1400be478
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp rdi, 7
jbe 0x1400be493
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1400107cc
mov rsi, qword [rbp - 0x30]
jmp 0x1400be4a1
test rdi, rdi
jne 0x1400be4a6
mov qword [rbp - 0x38], r12
mov word [rbp - 0x48], r12w
test rdi, rdi
je 0x1400be4ef
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x48]
mov r8, qword [rbp - 0x48]
cmp rsi, 8
cmovae rcx, r8
test rdi, rdi
je 0x1400be4da
lea r8, [rdi + rdi]
call fcn.1400dc430
mov rsi, qword [rbp - 0x30]
mov r8, qword [rbp - 0x48]
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x48]
cmp rsi, 8
cmovae rax, r8
mov word [rax + rdi*2], r12w
lea rcx, [rbp - 0x48]
call fcn.140035ba0
test al, al
jne 0x1400be50a
call fcn.14003c140
lea r8, str.Failed_in_removing_db_name_from_its_path
jmp 0x1400be523
lea rcx, [rbp - 0x48]
call fcn.140035730
test al, al
jne 0x1400be54d
call fcn.14003c140
lea r8, str.Failed_in_directory_creation_at_path
lea rdx, [0x14013d8f4]
mov rcx, rax
call fcn.14003cce0
nop
cmp qword [rbp - 0x30], 8
jb 0x1400be543
mov rcx, qword [rbp - 0x48]
call fcn.1400400f0
mov edi, 0x11
jmp 0x1400be66d
cmp qword [rbp - 0x30], 8
jb 0x1400be55d
mov rcx, qword [rbp - 0x48]
call fcn.1400400f0
cmp qword [rbx + 0x18], 0x10
jb 0x1400be569
mov rcx, qword [rbx]
jmp 0x1400be56c
mov rcx, rbx
xor r9d, r9d
lea r8d, [r9 + 6]
mov rdx, r14
call fcn.1400bc730
mov edi, eax
test eax, eax
je 0x1400be5c5
mov rcx, rbx
call fcn.140035870
mov rcx, qword [r14]
call fcn.1400bba30
mov rbx, rax
call fcn.14003c140
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
lea r8, str.Failed_in_opening_opm_database_error:_d__errorMsg:_s
lea rdx, [0x14013d8f4]
call fcn.14003cb70
mov ecx, edi
call fcn.1400bdac0
mov edi, eax
jmp 0x1400be66d
mov rdi, qword [r14]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400be5d7
call qword [0x140179e98]
lea rax, [0x1400baac0]
mov qword [rdi + 0x298], rax
mov qword [rdi + 0x2a0], rdi
mov dword [rdi + 0x2a8], r12d
mov dword [rdi + 0x2f8], r12d
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400be609
call qword [0x140179ea8]
mov dword [rdi + 0x2f8], 0x7d0
mov rcx, r14
call fcn.1400c02d0
mov edi, eax
test eax, eax
je 0x1400be654
xor edx, edx
mov rcx, qword [r14]
call fcn.1400ba4c0
test eax, eax
je 0x1400be64a
call fcn.14003c140
mov rcx, rax
lea r8, str.Failed_in_closing_sqlite_db_in_opd_initDbWithPath
lea rdx, [0x14013d8f4]
call fcn.14003cb70
mov rcx, rbx
call fcn.140035870
jmp 0x1400be66d
lea rcx, [r14 + 8]
cmp rcx, rbx
je 0x1400be66d
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
call fcn.14000b0d8
nop
cmp qword [rbp - 0x10], 8
jb 0x1400be67d
mov rcx, qword [rbp - 0x28]
call fcn.1400400f0
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400dc400
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret