Function at 0x140013060
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.140010ce0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001315b
mov rcx, qword [rsp + 0x50]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x14001315b
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 0x14001312c
jmp 0x1400130fb
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 0x1400130fb
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140011680
cmp dword [rsp + 0x30], 0
jne 0x1400131d7
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 0x1400131a0
mov dword [rsp + 0x30], 7
jmp 0x1400131d7
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 0x1400131fd
cmp dword [rsp + 0x48], 0x17
je 0x1400132a3
jmp 0x14001334f
mov r9, qword [str.t592690916721053953805701627921227776]
lea r8, str.INSERT_INTO__Q_VALUES_
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140011c80
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x44], 0
jmp 0x140013233
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 0x140013283
cmp dword [rsp + 0x44], 0
jne 0x140013255
lea rax, [0x1401b33c7]
mov qword [rsp + 0x78], rax
jmp 0x140013261
lea rax, [0x14019bedc]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x78]
lea r8, [0x14019bf2c]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140011c80
mov qword [rsp + 0x38], rax
jmp 0x140013229
lea r8, [0x14019bf54]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140011c80
mov qword [rsp + 0x38], rax
jmp 0x1400133a7
mov r9, qword [str.t592690916721053953805701627921227776]
lea r8, str.UPDATE__Q_SET
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140011c80
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0
jmp 0x1400132d9
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 0x14001334d
cmp dword [rsp + 0x40], 0
jne 0x1400132fe
lea rax, [0x1401b33e4]
mov qword [rsp + 0x80], rax
jmp 0x14001330d
lea rax, [0x14019c004]
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.140011c80
mov qword [rsp + 0x38], rax
jmp 0x1400132cf
jmp 0x1400133a7
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 8], 9
je 0x140013378
mov r8d, 0x29d5
lea rdx, [0x14019cbe8]
lea rcx, str.pWrite__eOpSQLITE_DELETE
call fcn.14016410c
xor eax, eax
cmp dword [rsp + 0x30], 0
jne 0x1400133a7
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 0x1400133a7
mov dword [rsp + 0x30], 7
cmp dword [rsp + 0x30], 0
jne 0x14001341d
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.140011680
cmp dword [rsp + 0x30], 0
je 0x14001341d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x18]
call fcn.140010c30
mov rcx, qword [rsp + 0x38]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x30], 0
jne 0x14001345d
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