Function at 0x1401e7440
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
mov rsi, rcx
lea r8, [rdx + 8]
xor edx, edx
mov r15, r9
call dbg.sqlite3LocateTableItem
test rax, rax
mov rbp, rax
je 0x1401e7483
mov rdx, rax
mov rcx, rsi
call dbg.isAlterableTable
test eax, eax
mov edi, eax
je 0x1401e74a0
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 0x1401e774a
lea r9, str.virtual_table
cmp al, 1
je 0x1401e7751
mov rcx, qword [rbp + 0x60]
mov rdx, qword [r13 + 0x20]
test rcx, rcx
je 0x1401e783c
cmp rcx, qword [rdx + 0x18]
je 0x1401e74f0
lea rax, [rdx + 0x20]
nop word [rax + rax]
mov rdx, rax
add rax, 0x20
add edi, 1
cmp rcx, qword [rax - 8]
jne 0x1401e74e0
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 0x1401e7483
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x58], eax
call dbg.sqlite3NameFromToken
test rax, rax
mov rbx, rax
je 0x1401e7483
movsx eax, word [rbp + 0x36]
mov r10d, dword [rsp + 0x58]
test eax, eax
jle 0x1401e7592
mov r11, qword [rbp + 8]
lea r8, [0x1403489c0]
mov rdx, rbp
nop word [rax + rax]
mov rbp, qword [r11]
xor r9d, r9d
mov qword [rsp + 0x58], r11
jmp 0x1401e757b
movzx r11d, byte [r8 + r11]
cmp byte [r8 + rcx], r11b
jne 0x1401e7778
add r9, 1
movzx ecx, byte [rbp + r9]
movzx r11d, byte [rbx + r9]
cmp ecx, r11d
jne 0x1401e7568
test ecx, ecx
jne 0x1401e7577
mov rbp, rdx
cmp eax, r10d
je 0x1401e778e
mov r9, qword [rsp + 0x60]
xor eax, eax
cmp edi, 1
mov byte [rsi + 0x1c], 1
sete al
mov dword [rsp + 0x30], 0
mov rcx, rsi
lea r14, [0x1403370ef]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], r14
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 r8, r9
mov dword [rsp + 0x6c], r10d
mov dword [rsp + 0x58], eax
call dbg.sqlite3NestedParse
cmp edi, 1
mov r10d, dword [rsp + 0x6c]
jne 0x1401e77b0
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 + 0xa8]
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 0x1401e7805
mov rax, qword [r15]
lea rdx, [0x1403488c0]
mov rcx, rsi
mov dword [rsp + 0x6c], r10d
mov r9, qword [rsp + 0x60]
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 rcx, rsi
mov r9, qword [rbp]
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], r15d
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r10d
call dbg.sqlite3NestedParse
cmp qword [rsi + 0x10], 0
je 0x1401e76d9
mov r8d, 1
mov edx, edi
mov rcx, rsi
call sym.renameReloadSchema.part.0
mov eax, dword [rsp + 0x58]
lea rbp, str.after_rename
mov byte [rsi + 0x1c], 1
mov rcx, rsi
mov r8, qword [rsp + 0x60]
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 dword [rsp + 0x20], eax
mov r9, r8
call dbg.sqlite3NestedParse
cmp edi, 1
jne 0x1401e7818
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 0x1401e7483
mov r11, qword [rsp + 0x58]
add r10d, 1
add r11, 0x18
cmp eax, r10d
jne 0x1401e7558
lea rdx, str.no_such_column:___T_
mov r8, r14
mov rcx, rsi
call dbg.sqlite3ErrorMsg
mov rdx, r12
mov rcx, r13
call dbg.sqlite3SrcListDelete
mov rdx, rbx
jmp 0x1401e7732
mov r9, r14
mov r14, qword [rsp + 0x60]
mov rcx, rsi
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 dword [rsp + 0x6c], r10d
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 0x1401e7609
mov rdx, r12
mov rcx, r13
call dbg.sqlite3SrcListDelete
mov rdx, rbx
jmp 0x1401e7732
mov r8, qword [rsp + 0x60]
mov r9, rbp
mov rcx, rsi
mov dword [rsp + 0x20], 1
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 0x1401e7719
sub rdx, 0x100000
mov edi, 0xffff8000
jmp 0x1401e74f0