Function at 0x140014a70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.140012b90
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x40], 0
lea r9, str.SELECT_type__name__sql__1_FROM_sqlite_schema_WHERE_type_IN__table_view__AND_name_NOT_LIKE_sqlite_____UNION_ALL_SELECT_type__name__sql__2_FROM_sqlite_schema_WHERE_type__trigger__AND_tbl_name_IN_SELECT_name_FROM_sqlite_schema_WHERE_type__view__ORDER_BY_4__1
mov r8, qword [rsp + 0x98]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call fcn.1400121c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140014d44
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x140014d44
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x50], rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x58], rax
mov edx, 2
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x50], 0
je 0x140014b2b
cmp qword [rsp + 0x58], 0
jne 0x140014b2d
jmp 0x140014ac4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0x76
je 0x140014b5b
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0x72
jne 0x140014b95
cmp qword [rsp + 0x68], 0
je 0x140014b90
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
jmp 0x140014d3f
mov r9, qword [rsp + 0x98]
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call fcn.140012c10
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140014d3f
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x20]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x20], rcx
lea r8, [0x1401a1180]
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
jmp 0x140014c2b
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x34], eax
jge 0x140014cb5
cmp dword [rsp + 0x34], 0
jne 0x140014c4d
lea rax, [0x1401b7cf5]
mov qword [rsp + 0x70], rax
jmp 0x140014c59
lea rax, [0x1401a02d4]
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
movsxd rdx, dword [rsp + 0x34]
imul rdx, rdx, 0x18
mov r8, qword [rsp + 0x48]
mov r8, qword [r8 + 0x10]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [r8 + rdx]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, str._s_Q_COLLATE__s
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
jmp 0x140014c21
lea r8, [0x1401a02ec]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
lea r8, str.CREATE_VIRTUAL_TABLE__Q_USING_expert__Q_
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x30], 0
jne 0x140014d2b
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call sym.sqlite3.exe_sqlite3_free
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_free
jmp 0x140014ac4
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140012bd0
mov eax, dword [rsp + 0x30]
add rsp, 0x88
ret