Function at 0x1400145b0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
lea rax, str.SELECT_CREATE_TEMP__substr_sql__7__FROM_sqlite_schema_WHERE_tbl_name___Q_AND_type_IN__table__trigger__ORDER_BY_type_
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0xc0]
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 8]
call fcn.140012230
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400146ab
mov rcx, qword [rsp + 0x50]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x1400146ab
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14001467c
jmp 0x14001464b
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
jmp 0x14001464b
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140012bd0
cmp dword [rsp + 0x30], 0
jne 0x140014727
mov r8, qword [str.t592690916721053953805701627921227776]
mov rdx, qword [rsp + 0x60]
lea rcx, str.ALTER_TABLE_temp._Q_RENAME_TO__Q
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400146f0
mov dword [rsp + 0x30], 7
jmp 0x140014727
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x68]
call sym.sqlite3.exe_sqlite3_free
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x12
je 0x14001474d
cmp dword [rsp + 0x48], 0x17
je 0x1400147f3
jmp 0x14001489f
mov r9, qword [str.t592690916721053953805701627921227776]
lea r8, str.INSERT_INTO__Q_VALUES_
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x44], 0
jmp 0x140014783
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [rsp + 0x44], eax
jge 0x1400147d3
cmp dword [rsp + 0x44], 0
jne 0x1400147a5
lea rax, [0x1401b7cd7]
mov qword [rsp + 0x78], rax
jmp 0x1400147b1
lea rax, [0x1401a00a4]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x78]
lea r8, [0x1401a00cc]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
jmp 0x140014779
lea r8, [0x1401a010c]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
jmp 0x1400148f7
mov r9, qword [str.t592690916721053953805701627921227776]
lea r8, str.UPDATE__Q_SET
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0
jmp 0x140014829
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [rsp + 0x40], eax
jge 0x14001489d
cmp dword [rsp + 0x40], 0
jne 0x14001484e
lea rax, [0x1401b7cf4]
mov qword [rsp + 0x80], rax
jmp 0x14001485d
lea rax, [0x1401a02ac]
mov qword [rsp + 0x80], rax
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
lea r8, str._s_Q_
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400131d0
mov qword [rsp + 0x38], rax
jmp 0x14001481f
jmp 0x1400148f7
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 8], 9
je 0x1400148c8
mov r8d, 0x2d20
lea rdx, [0x1401a1018]
lea rcx, str.pWrite__eOpSQLITE_DELETE
call fcn.140167c0c
xor eax, eax
cmp dword [rsp + 0x30], 0
jne 0x1400148f7
mov rdx, qword [str.t592690916721053953805701627921227776]
lea rcx, str.DELETE_FROM__Q
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400148f7
mov dword [rsp + 0x30], 7
cmp dword [rsp + 0x30], 0
jne 0x14001496d
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_prepare_v2
mov dword [rsp + 0x30], eax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x30]
call fcn.140012bd0
cmp dword [rsp + 0x30], 0
je 0x14001496d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x18]
call fcn.140012180
mov rcx, qword [rsp + 0x38]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x30], 0
jne 0x1400149ad
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [str.DROP_TABLE_t592690916721053953805701627921227776]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret