Function at 0x1401fdad0
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 r15, qword [rcx]
mov r14, rdx
mov rdi, r8
lea r8, [rdx + 8]
xor edx, edx
mov qword [rsp + 0x58], r9
mov r13, rcx
call dbg.sqlite3LocateTableItem
mov rsi, rax
test rax, rax
je 0x1401fdb15
mov rdx, rax
mov rcx, r13
call dbg.isAlterableTable
mov ebx, eax
test eax, eax
je 0x1401fdb30
mov rdx, r14
mov rcx, r15
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.sqlite3SrcListDelete
movzx eax, byte [rsi + 0x3f]
mov r9, qword [rsi]
cmp al, 2
je 0x1401fde2b
cmp al, 1
je 0x1401fddc8
mov rcx, qword [rsi + 0x60]
mov rdx, qword [r15 + 0x20]
test rcx, rcx
je 0x1401fdec7
cmp rcx, qword [rdx + 0x18]
je 0x1401fdb78
lea rax, [rdx + 0x20]
nop word [rax + rax]
mov rdx, rax
add rax, 0x20
add ebx, 1
cmp rcx, qword [rax - 8]
jne 0x1401fdb68
mov rax, qword [rdx]
mov rcx, r13
mov edx, 0x1a
mov qword [rsp + 0x20], 0
mov r8, rax
mov qword [rsp + 0x60], rax
call dbg.sqlite3AuthCheck
test eax, eax
jne 0x1401fdb15
mov rdx, rdi
mov rcx, r15
mov dword [rsp + 0x68], eax
call dbg.sqlite3NameFromToken
mov r10d, dword [rsp + 0x68]
test rax, rax
mov r12, rax
je 0x1401fdb15
movsx r11d, word [rsi + 0x36]
test r11d, r11d
jle 0x1401fde84
mov rbp, qword [rsi + 8]
lea r8, [0x14038e600]
nop word [rax + rax]
mov r9, qword [rbp]
xor ecx, ecx
jmp 0x1401fdc03
movzx edx, byte [r8 + rdx]
cmp byte [r8 + rax], dl
jne 0x1401fddf8
add rcx, 1
movzx eax, byte [r9 + rcx]
movzx edx, byte [r12 + rcx]
cmp eax, edx
jne 0x1401fdbf0
test eax, eax
jne 0x1401fdbff
xor ebp, ebp
cmp ebx, 1
lea rdi, [0x14037be6e]
mov rcx, r13
sete bpl
mov r9, qword [rsp + 0x60]
mov byte [r13 + 0x1c], 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 dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov r8, r9
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x68], r10d
call dbg.sqlite3NestedParse
cmp ebx, 1
mov r10d, dword [rsp + 0x68]
jne 0x1401fde34
mov r9, 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, r13
mov dword [rsp + 0x68], r10d
mov r8, r9
call dbg.sqlite3NestedParse
mov r10d, dword [rsp + 0x68]
mov rax, qword [r13 + 0xb0]
mov rdx, qword [rsp + 0x58]
mov rcx, r15
mov dword [rsp + 0x68], r10d
test rax, rax
cmove rax, r13
mov byte [rax + 0x21], 1
call dbg.sqlite3NameFromToken
mov rdi, rax
test rax, rax
je 0x1401fde90
mov rax, qword [rsp + 0x58]
lea rdx, [0x14038e500]
mov r10d, dword [rsp + 0x68]
mov rcx, r13
mov r9, qword [rsp + 0x60]
mov rax, qword [rax]
mov dword [rsp + 0x58], r10d
mov r8, r9
movzx eax, byte [rax]
movzx eax, byte [rdx + rax]
mov rdx, qword [rsi]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x40], ebp
and eax, 0x80
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x20], rdx
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 + 0x30], rdi
mov dword [rsp + 0x6c], eax
call dbg.sqlite3NestedParse
mov eax, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x58]
mov rcx, r13
mov qword [rsp + 0x28], rdi
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 dword [rsp + 0x30], eax
mov dword [rsp + 0x20], r10d
mov r9, qword [rsi]
call dbg.sqlite3NestedParse
cmp qword [r13 + 0x10], 0
je 0x1401fdd5a
mov r8d, 1
mov edx, ebx
mov rcx, r13
call sym.renameReloadSchema.part.0
lea rsi, str.after_rename
mov r9, qword [rsp + 0x60]
mov dword [rsp + 0x20], ebp
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 byte [r13 + 0x1c], 1
mov rcx, r13
mov dword [rsp + 0x30], 1
mov r8, r9
mov qword [rsp + 0x28], rsi
call dbg.sqlite3NestedParse
cmp ebx, 1
jne 0x1401fdea3
mov rdx, r14
mov rcx, r15
call dbg.sqlite3SrcListDelete
mov rdx, r12
mov rcx, r15
call sym.sqlite3DbFreeNN
mov rdx, rdi
mov rcx, r15
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3DbFreeNN
lea rax, str.virtual_table
mov qword [rsp + 0x20], r9
lea r8, str.rename_columns_of
mov r9, rax
mov rcx, r13
lea rdx, str.cannot__s__s___s_
call dbg.sqlite3ErrorMsg
jmp 0x1401fdb15
add r10d, 1
add rbp, 0x18
cmp r10d, r11d
jne 0x1401fdbe0
mov r8, rdi
lea rdx, str.no_such_column:___T_
mov rcx, r13
call dbg.sqlite3ErrorMsg
mov rdx, r14
mov rcx, r15
call dbg.sqlite3SrcListDelete
mov rdx, r12
jmp 0x1401fddb0
lea rax, str.view
jmp 0x1401fddcf
mov r9, rdi
mov dword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x60]
mov rcx, r13
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, rdi
call dbg.sqlite3NestedParse
mov r9, rdi
mov r8, rdi
mov rcx, r13
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 dbg.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, r13
call dbg.sqlite3NestedParse
mov r10d, dword [rsp + 0x68]
jmp 0x1401fdc86
jne 0x1401fdc15
jmp 0x1401fde09
mov rdx, r14
mov rcx, r15
call dbg.sqlite3SrcListDelete
mov rdx, r12
jmp 0x1401fddb0
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x60]
mov r9, rsi
mov rcx, r13
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 dbg.sqlite3NestedParse
jmp 0x1401fdd97
sub rdx, 0x100000
mov ebx, 0xffff8000
jmp 0x1401fdb78