Function at 0x14020f2d0
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 dbg.sqlite3LocateTableItem
mov rbp, rax
test rax, rax
je 0x14020f313
mov rdx, rax
mov rcx, rsi
call dbg.isAlterableTable
mov edi, eax
test eax, eax
je 0x14020f330
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 dbg.sqlite3SrcListDelete
movzx eax, byte [rbp + 0x3f]
mov r8, qword [rbp]
cmp al, 2
je 0x14020f5d8
lea r9, str.virtual_table
cmp al, 1
je 0x14020f5df
mov rcx, qword [rbp + 0x60]
mov rdx, qword [r13 + 0x20]
test rcx, rcx
je 0x14020f6c4
cmp rcx, qword [rdx + 0x18]
je 0x14020f380
lea rax, [rdx + 0x20]
nop word [rax + rax]
mov rdx, rax
add rax, 0x20
add edi, 1
cmp rcx, qword [rax - 8]
jne 0x14020f370
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 dbg.sqlite3AuthCheck
test eax, eax
jne 0x14020f313
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x58], eax
call dbg.sqlite3NameFromToken
mov rbx, rax
test rax, rax
je 0x14020f313
movsx eax, word [rbp + 0x36]
mov r10d, dword [rsp + 0x58]
test eax, eax
jle 0x14020f420
mov r11, qword [rbp + 8]
lea r8, [0x14039ece0]
mov edx, edi
nop dword [rax]
mov qword [rsp + 0x58], r11
mov rdi, qword [r11]
xor r9d, r9d
jmp 0x14020f40b
movzx r11d, byte [r8 + r11]
cmp byte [r8 + rcx], r11b
jne 0x14020f600
add r9, 1
movzx ecx, byte [rdi + r9]
movzx r11d, byte [rbx + r9]
cmp ecx, r11d
jne 0x14020f3f8
test ecx, ecx
jne 0x14020f407
mov edi, edx
cmp eax, r10d
je 0x14020f616
xor eax, eax
cmp edi, 1
lea r14, [0x14038ca94]
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 dbg.sqlite3NestedParse
cmp edi, 1
mov r10d, dword [rsp + 0x6c]
jne 0x14020f638
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 dbg.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 dbg.sqlite3NameFromToken
mov r10d, dword [rsp + 0x6c]
test rax, rax
mov r14, rax
je 0x14020f68d
mov rax, qword [r15]
mov r9, qword [rsp + 0x60]
mov rcx, rsi
mov dword [rsp + 0x6c], r10d
lea rdx, [0x14039ebe0]
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 dbg.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 dbg.sqlite3NestedParse
cmp qword [rsi + 0x10], 0
je 0x14020f567
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 dbg.sqlite3NestedParse
cmp edi, 1
jne 0x14020f6a0
mov rdx, r12
mov rcx, r13
call dbg.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 dbg.sqlite3ErrorMsg
jmp 0x14020f313
mov r11, qword [rsp + 0x58]
add r10d, 1
add r11, 0x18
cmp eax, r10d
jne 0x14020f3e8
mov r8, r14
lea rdx, str.no_such_column:___T_
mov rcx, rsi
call dbg.sqlite3ErrorMsg
mov rdx, r12
mov rcx, r13
call dbg.sqlite3SrcListDelete
mov rdx, rbx
jmp 0x14020f5c0
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 dbg.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 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, rsi
call dbg.sqlite3NestedParse
mov r10d, dword [rsp + 0x6c]
jmp 0x14020f497
mov rdx, r12
mov rcx, r13
call dbg.sqlite3SrcListDelete
mov rdx, rbx
jmp 0x14020f5c0
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 dbg.sqlite3NestedParse
jmp 0x14020f5a7
sub rdx, 0x100000
mov edi, 0xffff8000
jmp 0x14020f380