Function at 0x180068530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1800ff5a8]
xor rax, rsp
mov qword [rsp + 0x88], rax
movsxd r12, edx
lea rax, str.sqlite_master
xor edx, edx
mov dword [r11 - 0x78], r12d
mov r14, rcx
mov qword [rsp + 0x30], r8
cmp r12d, 1
mov qword [r11 - 0x80], r14
mov dword [rsp + 0x60], edx
lea rcx, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov rdi, r8
mov qword [r11 - 0x48], rdx
mov r15d, edx
mov qword [r11 - 0x70], r8
lea rbx, str.sqlite_temp_master
cmovne rbx, rax
lea r8, [r11 - 0x60]
lea rax, [0x1800cccb0]
mov qword [rsp + 0x40], rbx
mov qword [r11 - 0x58], rax
lea rax, str.CREATE_TEMP_TABLE_sqlite_temp_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
cmovne rax, rcx
mov qword [r11 - 0x60], rbx
xor r9d, r9d
mov qword [r11 - 0x50], rax
lea rcx, [r11 - 0x80]
lea edx, [r9 + 3]
call fcn.1800682d0
mov esi, dword [rsp + 0x60]
test esi, esi
jne 0x180068a58
mov r8, qword [r14 + 0x10]
mov rsi, r12
shl rsi, 5
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x38], rsi
mov r8, qword [rsi + r8]
call fcn.1800630c0
test rax, rax
je 0x180068606
or byte [rax + 0x32], 1
mov rax, qword [r14 + 0x10]
mov rcx, qword [rax + rsi + 8]
lea r13, [rax + rsi]
test rcx, rcx
jne 0x18006862e
cmp r12d, 1
jne 0x180068627
mov rax, qword [rax + 0x38]
or word [rax + 0x72], r12w
xor eax, eax
jmp 0x180068a6c
mov qword [rsp + 0xe8], rbp
call fcn.180057430
mov rbp, qword [r13 + 8]
cmp byte [rbp + 0x10], r15b
jne 0x180068817
mov rbx, qword [rbp + 8]
mov rcx, rbp
mov esi, r15d
call fcn.180057430
movzx eax, byte [rbp + 0x10]
dec al
cmp al, 1
jbe 0x1800687ae
cmp byte [rbx + 0x89], sil
je 0x180068685
mov rax, qword [rbx + 0x80]
cmp qword [rax], rsi
je 0x180068685
mov esi, 0x106
jmp 0x1800687ae
mov rax, qword [rbp + 8]
cmp byte [rbp + 0x11], sil
je 0x1800686ce
cmp qword [rax + 0x80], rbp
je 0x1800686ab
cmp byte [rax + 0x88], sil
je 0x1800686ab
mov esi, 0x106
jmp 0x1800687ae
mov rax, qword [rax + 0x78]
test rax, rax
je 0x1800686ce
cmp qword [rax], rbp
je 0x1800686c5
cmp dword [rax + 8], 1
jne 0x1800686c5
cmp byte [rax + 0xc], 1
jne 0x18006867b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800686b4
cmp dword [rbx + 0x40], r15d
sete al
mov byte [rbx + 0x23], al
cmp qword [rbx + 0x18], r15
jne 0x1800686ee
mov rcx, rbx
call fcn.1800455f0
mov esi, eax
test eax, eax
je 0x1800686d8
jmp 0x1800686f2
test esi, esi
je 0x18006872c
cmp byte [rbx + 0x27], r15b
jne 0x18006872c
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18006872c
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x180068728
mov rdi, qword [rcx + 0x20]
call fcn.18006e7f0
mov rax, qword [rdi + 0xe0]
cmp dword [rax + 0x18], r15d
jne 0x180068728
mov rcx, rdi
call fcn.180049c70
mov qword [rbx + 0x18], r15
cmp sil, 5
jne 0x18006876d
cmp byte [rbx + 0x27], r15b
jne 0x18006876d
mov rdi, qword [rbx + 8]
add rdi, 0x2b8
je 0x18006876d
mov rax, qword [rdi]
test rax, rax
je 0x18006876d
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x18006876d
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x180068766
inc dword [rdi + 0x10]
jmp 0x1800686d8
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x1800687a9
cmp byte [rbp + 0x10], r15b
jne 0x180068794
inc dword [rbx + 0x3c]
cmp byte [rbp + 0x11], r15b
je 0x180068794
mov byte [rbp + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rbx + 0x78], rax
mov rdi, qword [rsp + 0x30]
mov byte [rbp + 0x10], 1
cmp byte [rbx + 0x27], 1
jae 0x1800687ae
mov byte [rbx + 0x27], 1
jmp 0x1800687ae
mov rdi, qword [rsp + 0x30]
cmp byte [rbp + 0x11], r15b
je 0x1800687d1
sub dword [rbp + 0x14], 1
jne 0x1800687d1
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1800687cd
call qword [0x1800fe200]
mov byte [rbp + 0x12], r15b
test esi, esi
je 0x18006880c
movzx eax, sil
cmp eax, 0x1b
jae 0x1800687ee
lea r9, str.not_an_error
mov r9, qword [r9 + rax*8]
test r9, r9
jne 0x1800687f5
lea r9, str.unknown_error
lea r8, [0x1800cd984]
mov rdx, r14
mov rcx, rdi
call fcn.1800763c0
jmp 0x180068a29
mov rsi, qword [rsp + 0x38]
mov r15d, 1
xor ebp, ebp
lea rdi, [rsp + 0x68]
mov ebx, ebp
mov rcx, qword [r13 + 8]
inc ebx
mov edx, ebx
mov r8, rdi
call fcn.1800576d0
add rdi, 4
cmp ebx, 5
jl 0x180068820
mov eax, dword [rsp + 0x68]
mov rcx, qword [r13 + 0x18]
mov edx, dword [rsp + 0x78]
mov dword [rcx], eax
mov rax, qword [r14 + 0x10]
test edx, edx
je 0x1800688bd
mov rcx, qword [rax + 0x18]
test r12d, r12d
jne 0x180068897
and dl, 3
mov ebx, 1
movzx edx, dl
cmove edx, ebx
mov byte [rcx + 0x71], dl
lea rdx, str.BINARY
mov rax, rdx
inc rax
cmp byte [rax], bpl
jne 0x180068873
sub eax, edx
lea rcx, [r14 + 0x2a0]
and eax, 0x3fffffff
mov r8d, eax
call fcn.1800676c0
mov qword [r14 + 0x38], rax
jmp 0x1800688cc
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x1800688c7
mov rcx, qword [rsp + 0x30]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, r14
call fcn.1800763c0
mov esi, 1
jmp 0x180068a1b
mov rcx, qword [rsi + rax + 0x18]
or word [rcx + 0x72], 4
mov ebx, 1
mov rax, qword [r14 + 0x10]
mov rdx, qword [r13 + 0x18]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
mov byte [rdx + 0x71], al
mov rcx, qword [r13 + 0x18]
cmp dword [rcx + 0x74], ebp
jne 0x18006891d
mov eax, dword [rsp + 0x70]
test eax, eax
jns 0x180068900
cmp eax, 0x80000000
jne 0x1800688fe
mov eax, 0x7fffffff
jmp 0x18006890a
neg eax
test eax, eax
mov edx, 0x7d0
cmove eax, edx
mov dword [rcx + 0x74], eax
mov rax, qword [r13 + 0x18]
mov rcx, qword [r13 + 8]
mov edx, dword [rax + 0x74]
call fcn.1800596a0
mov rax, qword [r13 + 0x18]
mov ecx, dword [rsp + 0x6c]
mov byte [rax + 0x70], cl
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], bpl
jne 0x180068936
mov byte [rax + 0x70], 1
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x18006895b
mov rcx, qword [rsp + 0x30]
lea r8, str.unsupported_file_format
mov rdx, r14
call fcn.1800763c0
mov esi, ebx
jmp 0x180068a1b
test r12d, r12d
jne 0x18006896d
cmp ecx, 4
jl 0x18006896d
and dword [r14 + 0x18], 0xffefffff
mov r8, qword [r14 + 0x10]
lea rdx, str.SELECT_name__rootpage__sql_FROM__q._s_ORDER_BY_rowid
mov r9, qword [rsp + 0x40]
mov rcx, r14
mov r8, qword [rsi + r8]
call fcn.18006aa40
mov rbx, qword [r14 + 0x188]
lea r9, [rsp + 0x48]
lea r8, [fcn.1800682d0]
mov qword [r14 + 0x188], rbp
mov rdx, rax
mov qword [rsp + 0x20], rbp
mov rcx, r14
mov rdi, rax
call fcn.1800248a0
test eax, eax
mov qword [r14 + 0x188], rbx
mov esi, eax
mov rdx, rdi
cmove esi, dword [rsp + 0x60]
mov rcx, r14
call fcn.18005c7d0
test esi, esi
jne 0x1800689e0
mov edx, r12d
mov rcx, r14
call fcn.180053a50
cmp byte [r14 + 0x2a], bpl
je 0x1800689f8
or edx, 0xffffffff
mov rcx, r14
mov esi, 7
call fcn.180072d30
jmp 0x1800689fc
test esi, esi
je 0x180068a06
test dword [r14 + 0x18], 0x800000
je 0x180068a1b
mov rax, qword [r14 + 0x10]
mov esi, ebp
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + rax + 0x18]
or word [rcx + 0x72], 1
test r15d, r15d
je 0x180068a29
mov rcx, qword [r13 + 8]
call fcn.180056b20
mov rbx, qword [r13 + 8]
mov rbp, qword [rsp + 0xe8]
cmp byte [rbx + 0x11], 0
je 0x180068a58
sub dword [rbx + 0x14], 1
jne 0x180068a58
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x180068a54
call qword [0x1800fe200]
mov byte [rbx + 0x12], 0
cmp esi, 7
je 0x180068a65
cmp esi, 0xc0a
jne 0x180068a6a
mov byte [r14 + 0x2a], 1
mov eax, esi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180099e90
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret