Function at 0x14005db20
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov r10, qword [rdx + 8]
xor edi, edi
mov r15, qword [rcx]
mov rsi, rdx
mov r14, rcx
mov r12d, edi
test r10, r10
je 0x14005db88
mov r9, qword [r15 + 0x20]
mov ecx, edi
cmp qword [r9 + 0x18], r10
lea rax, [r9 + 0x18]
je 0x14005db7b
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r10
jne 0x14005db70
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x14005db8c
mov r9, qword [rdx + 0x10]
mov r8, qword [rdx + 0x18]
mov rcx, r14
xor edx, edx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rbp
call fcn.140067280
mov r13, rax
test rax, rax
je 0x14005df3e
mov rdx, rax
mov rcx, r14
call fcn.14005ca20
test eax, eax
jne 0x14005df3e
cmp byte [r13 + 0x3f], 2
lea r9, str.view
cmovne r9, rdi
cmp byte [r13 + 0x3f], 1
jne 0x14005dbe6
lea r9, str.virtual_table
jmp 0x14005dbeb
test r9, r9
je 0x14005dc1a
mov rax, qword [r13]
lea r8, str.rename_columns_of
lea rdx, str.cannot__s__s___s_
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.14000af50
mov rdx, rsi
mov rcx, r15
call fcn.140070320
jmp 0x14005df69
mov rcx, qword [r13 + 0x60]
mov ebp, 0xffff8000
test rcx, rcx
je 0x14005dc4b
mov rax, qword [r15 + 0x20]
mov ebp, edi
add rax, 0x18
cmp qword [rax], rcx
je 0x14005dc4b
nop word [rax + rax]
inc ebp
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14005dc40
mov rax, qword [r15 + 0x20]
mov edx, 0x1a
mov r9, qword [r13]
movsxd rcx, ebp
shl rcx, 5
mov qword [rsp + 0x20], rdi
mov rbx, qword [rcx + rax]
mov rcx, r14
mov r8, rbx
mov qword [rsp + 0x60], rbx
call fcn.140066300
test eax, eax
jne 0x14005df3e
mov rdx, qword [rsp + 0xd0]
mov rcx, r15
call fcn.140067f70
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14005df3b
movsx rax, word [r13 + 0x36]
mov dword [rsp + 0xc0], eax
mov edx, eax
cmp di, ax
jge 0x14005dd46
mov r11, qword [r13 + 8]
mov r10, rdi
mov rsi, qword [rsp + 0x58]
mov rbx, rax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r11]
mov r9, rsi
sub r9, rax
nop dword [rax]
movzx r8d, byte [rax]
movzx ecx, byte [r9 + rax]
cmp r8d, ecx
jne 0x14005dcf8
test r8d, r8d
je 0x14005dd32
inc rax
jmp 0x14005dce0
lea rdx, [0x140000000]
movzx edx, byte [rcx + rdx + 0x122e40]
mov rcx, r8
lea r8, [0x140000000]
movzx ecx, byte [rcx + r8 + 0x122e40]
cmp ecx, edx
jne 0x14005dd23
inc rax
jmp 0x14005dce0
inc r12d
inc r10
add r11, 0x18
cmp r10, rbx
jl 0x14005dcd0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0xc8]
mov edx, dword [rsp + 0xc0]
mov rcx, r14
cmp r12d, edx
jne 0x14005dd77
mov r8, qword [rsp + 0xd0]
lea rdx, str.no_such_column:___T_
call fcn.14000af50
mov rdx, rsi
mov rcx, r15
call fcn.140070320
mov r12, qword [rsp + 0x58]
jmp 0x14005df4e
mov esi, edi
mov dword [rsp + 0x30], edi
lea rax, [0x140119335]
mov byte [r14 + 0x1c], 1
mov qword [rsp + 0x28], rax
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
cmp ebp, 1
mov r9, rbx
mov r8, rbx
sete sil
mov dword [rsp + 0x20], esi
call fcn.140066cc0
mov r8, rbx
mov rcx, r14
cmp ebp, 1
je 0x14005ddf3
lea r9, [0x140119335]
mov dword [rsp + 0x20], edi
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 fcn.140066cc0
mov r9, rbx
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 r8, rbx
mov rcx, r14
call fcn.140066cc0
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, r14
call fcn.140066cc0
jmp 0x14005de02
mov r9, rbx
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 fcn.140066cc0
mov rax, qword [r14 + 0xb0]
mov rcx, r14
mov rbx, qword [rsp + 0xd8]
test rax, rax
mov rdx, rbx
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov rcx, r15
call fcn.140067f70
mov rdi, rax
test rax, rax
je 0x14005df2c
mov rcx, qword [rbx]
lea rax, [0x140000000]
mov r8, qword [rsp + 0x60]
mov r9, r8
movzx edx, byte [rcx]
mov rcx, qword [r13]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], esi
movzx ebx, byte [rdx + rax + 0x121cc0]
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_
and ebx, 0x80
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rcx
mov rcx, r14
call fcn.140066cc0
mov r9, qword [r13]
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], ebx
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r12d
call fcn.140066cc0
mov r8d, 1
mov edx, ebp
mov rcx, r14
call fcn.14005cb10
mov dword [rsp + 0x30], 1
lea r12, str.after_rename
mov qword [rsp + 0x28], r12
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 r9, rbx
mov dword [rsp + 0x20], esi
mov r8, rbx
mov byte [r14 + 0x1c], 1
mov rcx, r14
call fcn.140066cc0
cmp ebp, 1
je 0x14005df2c
mov r9, r12
mov dword [rsp + 0x20], 1
mov r8, rbx
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 rcx, r14
call fcn.140066cc0
mov rdx, qword [rsp + 0xc8]
mov rcx, r15
call fcn.140070320
mov r12, qword [rsp + 0x58]
jmp 0x14005df4e
mov rsi, qword [rsp + 0xc8]
mov r12, qword [rsp + 0x58]
jmp 0x14005df3e
mov r12, rax
mov rdx, rsi
mov rcx, r15
call fcn.140070320
test r12, r12
je 0x14005df59
mov rdx, r12
mov rcx, r15
call fcn.140006ed0
test rdi, rdi
je 0x14005df69
mov rdx, rdi
mov rcx, r15
call fcn.140006ed0
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret