Function at 0x140217170
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 fcn.1401f7ba0
test rax, rax
mov rbp, rax
je 0x1402171b3
mov rdx, rax
mov rcx, rsi
call fcn.140181780
test eax, eax
mov edi, eax
je 0x1402171d0
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 fcn.14015e030
movzx eax, byte [rbp + 0x3f]
mov r8, qword [rbp]
cmp al, 2
je 0x140217478
lea r9, str.virtual_table
cmp al, 1
je 0x14021747f
mov rcx, qword [rbp + 0x60]
mov rdx, qword [r13 + 0x20]
test rcx, rcx
je 0x140217564
cmp rcx, qword [rdx + 0x18]
je 0x140217220
lea rax, [rdx + 0x20]
nop word [rax + rax]
mov rdx, rax
add rax, 0x20
add edi, 1
cmp rcx, qword [rax - 8]
jne 0x140217210
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 fcn.14017d870
test eax, eax
jne 0x1402171b3
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x58], eax
call fcn.14016a350
test rax, rax
mov rbx, rax
je 0x1402171b3
movsx eax, word [rbp + 0x36]
mov r10d, dword [rsp + 0x58]
test eax, eax
jle 0x1402172c0
mov r11, qword [rbp + 8]
lea r8, [0x1403b5880]
mov edx, edi
nop dword [rax]
mov rdi, qword [r11]
xor r9d, r9d
mov qword [rsp + 0x58], r11
jmp 0x1402172ab
movzx r11d, byte [r8 + r11]
cmp byte [r8 + rcx], r11b
jne 0x1402174a0
add r9, 1
movzx ecx, byte [rdi + r9]
movzx r11d, byte [rbx + r9]
cmp ecx, r11d
jne 0x140217298
test ecx, ecx
jne 0x1402172a7
mov edi, edx
cmp eax, r10d
je 0x1402174b6
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, [0x1403a3634]
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 fcn.140210f90
cmp edi, 1
mov r10d, dword [rsp + 0x6c]
jne 0x1402174d8
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 fcn.140210f90
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 fcn.14016a350
mov r10d, dword [rsp + 0x6c]
test rax, rax
mov r14, rax
je 0x14021752d
mov rax, qword [r15]
lea rdx, [0x1403b5780]
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 fcn.140210f90
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 fcn.140210f90
cmp qword [rsi + 0x10], 0
je 0x140217407
mov r8d, 1
mov edx, edi
mov rcx, rsi
call fcn.140179120
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 fcn.140210f90
cmp edi, 1
jne 0x140217540
mov rdx, r12
mov rcx, r13
call fcn.14015e030
mov rdx, rbx
mov rcx, r13
call fcn.1401584a0
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 fcn.1401584a0
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 fcn.140168320
jmp 0x1402171b3
mov r11, qword [rsp + 0x58]
add r10d, 1
add r11, 0x18
cmp eax, r10d
jne 0x140217288
lea rdx, str.no_such_column:___T_
mov r8, r14
mov rcx, rsi
call fcn.140168320
mov rdx, r12
mov rcx, r13
call fcn.14015e030
mov rdx, rbx
jmp 0x140217460
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 fcn.140210f90
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 fcn.140210f90
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 fcn.140210f90
mov r10d, dword [rsp + 0x6c]
jmp 0x140217337
mov rdx, r12
mov rcx, r13
call fcn.14015e030
mov rdx, rbx
jmp 0x140217460
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 fcn.140210f90
jmp 0x140217447
sub rdx, 0x100000
mov edi, 0xffff8000
jmp 0x140217220