Function at 0x14010fda0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r13, qword [rcx]
mov r12, rdx
mov r14, r8
lea r8, [rdx + 8]
xor edx, edx
mov rsi, rcx
mov r15, r9
call sym.sqlite3LocateTableItem
mov rbp, rax
test rax, rax
je 0x14010fde3
mov rdx, rax
mov rcx, rsi
call sym.isAlterableTable
mov edi, eax
test eax, eax
je 0x14010fe00
mov rdx, r12
mov rcx, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3SrcListDelete
movzx eax, byte [rbp + 0x3f]
mov r8, qword [rbp]
cmp al, 2
je 0x1401100aa
lea r9, str.virtual_table
cmp al, 1
je 0x1401100b1
mov rcx, qword [rbp + 0x60]
mov rdx, qword [r13 + 0x20]
test rcx, rcx
je 0x14011019c
cmp rcx, qword [rdx + 0x18]
je 0x14010fe50
lea rax, [rdx + 0x20]
nop word [rax + rax]
mov rdx, rax
add rax, 0x20
add edi, 1
cmp rcx, qword [rax - 8]
jne 0x14010fe40
mov rax, qword [rdx]
mov r9, r8
mov edx, 0x1a
mov rcx, rsi
mov qword [rsp + 0x20], 0
mov r8, rax
mov qword [rsp + 0x60], rax
call sym.sqlite3AuthCheck
test eax, eax
jne 0x14010fde3
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x58], eax
call sym.sqlite3NameFromToken
mov rbx, rax
test rax, rax
je 0x14010fde3
movsx eax, word [rbp + 0x36]
mov r10d, dword [rsp + 0x58]
test eax, eax
jle 0x14010fef2
mov r11, qword [rbp + 8]
lea r8, [0x140176460]
mov rdx, rbp
nop word [rax + rax]
mov qword [rsp + 0x58], r11
mov rbp, qword [r11]
xor r9d, r9d
jmp 0x14010fedb
movzx r11d, byte [r8 + r11]
cmp byte [r8 + rcx], r11b
jne 0x1401100d8
add r9, 1
movzx ecx, byte [rbp + r9]
movzx r11d, byte [rbx + r9]
cmp ecx, r11d
jne 0x14010fec8
test ecx, ecx
jne 0x14010fed7
mov rbp, rdx
cmp eax, r10d
je 0x1401100ee
xor eax, eax
cmp edi, 1
lea r14, [0x14015f198]
mov byte [rsi + 0x1c], 1
sete al
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov rcx, rsi
mov dword [rsp + 0x30], 0
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov dword [rsp + 0x20], eax
mov r8, r9
mov dword [rsp + 0x6c], r10d
mov dword [rsp + 0x58], eax
call sym.sqlite3NestedParse
cmp edi, 1
mov r10d, dword [rsp + 0x6c]
jne 0x140110110
mov r8, qword [rsp + 0x60]
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
mov rcx, rsi
mov r9, r8
call sym.sqlite3NestedParse
mov r10d, dword [rsp + 0x6c]
mov rax, qword [rsi + 0xb0]
mov rdx, r15
mov rcx, r13
mov dword [rsp + 0x6c], r10d
test rax, rax
cmove rax, rsi
mov byte [rax + 0x21], 1
call sym.sqlite3NameFromToken
mov r10d, dword [rsp + 0x6c]
test rax, rax
mov r14, rax
je 0x140110165
mov rax, qword [r15]
mov r9, qword [rsp + 0x60]
mov rcx, rsi
mov dword [rsp + 0x6c], r10d
lea rdx, [0x140176360]
movzx eax, byte [rax]
mov r8, r9
movzx r15d, byte [rdx + rax]
mov rax, qword [rbp]
mov dword [rsp + 0x28], r10d
mov edx, dword [rsp + 0x58]
mov qword [rsp + 0x30], r14
and r15d, 0x80
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edx
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d___d__WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X__AND__type___index_OR_tbl_name___Q_
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], r15d
call sym.sqlite3NestedParse
mov r10d, dword [rsp + 0x6c]
mov r9, qword [rbp]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r14
mov r8, qword [rsp + 0x60]
lea rdx, str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d__1__WHERE_type_IN__trigger__view_
mov rcx, rsi
mov dword [rsp + 0x20], r10d
call sym.sqlite3NestedParse
cmp qword [rsi + 0x10], 0
je 0x140110039
mov r8d, 1
mov edx, edi
mov rcx, rsi
call sym.renameReloadSchema.part.0
mov eax, dword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov byte [rsi + 0x1c], 1
mov rcx, rsi
lea rbp, str.after_rename
mov dword [rsp + 0x30], 1
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov qword [rsp + 0x28], rbp
mov r9, r8
mov dword [rsp + 0x20], eax
call sym.sqlite3NestedParse
cmp edi, 1
jne 0x140110178
mov rdx, r12
mov rcx, r13
call sym.sqlite3SrcListDelete
mov rdx, rbx
mov rcx, r13
call sym.sqlite3DbFreeNN
mov rdx, r14
mov rcx, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3DbFreeNN
lea r9, str.view
mov qword [rsp + 0x20], r8
lea rdx, str.cannot__s__s___s_
mov rcx, rsi
lea r8, str.rename_columns_of
call sym.sqlite3ErrorMsg
jmp 0x14010fde3
mov r11, qword [rsp + 0x58]
add r10d, 1
add r11, 0x18
cmp eax, r10d
jne 0x14010feb8
mov r8, r14
lea rdx, str.no_such_column:___T_
mov rcx, rsi
call sym.sqlite3ErrorMsg
mov rdx, r12
mov rcx, r13
call sym.sqlite3SrcListDelete
mov rdx, rbx
jmp 0x140110092
mov r9, r14
mov r14, qword [rsp + 0x60]
mov rcx, rsi
mov dword [rsp + 0x6c], r10d
mov dword [rsp + 0x20], 0
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov r8, r14
call sym.sqlite3NestedParse
mov r9, r14
mov r8, r14
mov rcx, rsi
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
call sym.sqlite3NestedParse
lea rdx, str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_quotefix_temp__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
mov rcx, rsi
call sym.sqlite3NestedParse
mov r10d, dword [rsp + 0x6c]
jmp 0x14010ff69
mov rdx, r12
mov rcx, r13
call sym.sqlite3SrcListDelete
mov rdx, rbx
jmp 0x140110092
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x60]
mov r9, rbp
mov rcx, rsi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
call sym.sqlite3NestedParse
jmp 0x140110079
sub rdx, 0x100000
mov edi, 0xffff8000
jmp 0x14010fe50