Function at 0x140013520
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.140011640
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.140010c70
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400137f4
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x1400137f4
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 0x1400135db
cmp qword [rsp + 0x58], 0
jne 0x1400135dd
jmp 0x140013574
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0x76
je 0x14001360b
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0x72
jne 0x140013645
cmp qword [rsp + 0x68], 0
je 0x140013640
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 0x1400137ef
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.1400116c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400137ef
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, [0x14019cd50]
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140011c80
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
jmp 0x1400136db
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 0x140013765
cmp dword [rsp + 0x34], 0
jne 0x1400136fd
lea rax, [0x1401b33e5]
mov qword [rsp + 0x70], rax
jmp 0x140013709
lea rax, [0x14019c06c]
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.140011c80
mov qword [rsp + 0x38], rax
jmp 0x1400136d1
lea r8, [0x14019c0ac]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140011c80
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.140011c80
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x30], 0
jne 0x1400137db
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 0x140013574
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140011680
mov eax, dword [rsp + 0x30]
add rsp, 0x88
ret