Function at 0x14007a240
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x88
mov r10, qword [rdx + 8]
xor esi, esi
mov rdi, qword [rcx]
mov rbp, r8
mov r12, rcx
mov r14d, esi
test r10, r10
je 0x14007a2a8
mov r9, qword [rdi + 0x20]
mov ecx, esi
cmp qword [r9 + 0x18], r10
lea rax, [r9 + 0x18]
je 0x14007a29b
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r10
jne 0x14007a290
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x14007a2ac
mov r9, qword [rdx + 0x10]
mov r8, qword [rdx + 0x18]
mov rcx, r12
xor edx, edx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], r13
call fcn.140083230
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x14007a6d3
mov rdx, rax
mov rcx, r12
call fcn.140079260
test eax, eax
jne 0x14007a6d3
cmp byte [r15 + 0x3f], 2
lea r9, str.view
cmovne r9, rsi
cmp byte [r15 + 0x3f], 1
jne 0x14007a30b
lea r9, str.virtual_table
jmp 0x14007a310
test r9, r9
je 0x14007a343
mov rax, qword [r15]
lea r8, str.rename_columns_of
lea rdx, str.cannot__s__s___s_
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.140030230
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.14008c910
jmp 0x14007a7b7
mov rcx, qword [r15 + 0x60]
mov r13d, 0xffff8000
test rcx, rcx
je 0x14007a36e
mov rax, qword [rdi + 0x20]
mov r13d, esi
add rax, 0x18
cmp qword [rax], rcx
je 0x14007a36e
inc r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14007a362
mov rax, qword [rdi + 0x20]
mov edx, 0x1a
mov r9, qword [r15]
movsxd rcx, r13d
shl rcx, 5
mov qword [rsp + 0x20], rsi
mov r8, qword [rcx + rax]
mov rcx, r12
mov qword [rsp + 0x58], r8
call fcn.140082270
test eax, eax
jne 0x14007a6d3
test rbp, rbp
je 0x14007a32e
mov ebx, dword [rbp + 8]
mov rbp, qword [rbp]
test rbp, rbp
je 0x14007a3d6
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.14002c580
mov r14, rax
test rax, rax
je 0x14007a3d6
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.14012dc00
mov byte [r14 + rbx], sil
mov rcx, r14
call fcn.140030390
test r14, r14
je 0x14007a6d3
movsx rax, word [r15 + 0x36]
mov ebx, esi
mov dword [rsp + 0xc0], ebx
mov ecx, eax
cmp si, ax
jge 0x14007a46a
mov r11, qword [r15 + 8]
mov rbp, rax
lea r15, [0x140000000]
mov r10, rsi
nop dword [rax]
mov rdx, qword [r11]
mov r9, r14
sub r9, rdx
nop dword [rax]
movzx r8d, byte [rdx]
movzx eax, byte [r9 + rdx]
cmp r8d, eax
jne 0x14007a438
test r8d, r8d
je 0x14007a461
inc rdx
jmp 0x14007a420
movzx ecx, byte [rax + r15 + 0x164910]
movzx eax, byte [r8 + r15 + 0x164910]
cmp eax, ecx
jne 0x14007a453
inc rdx
jmp 0x14007a420
inc ebx
inc r10
add r11, 0x18
cmp r10, rbp
jl 0x14007a410
mov dword [rsp + 0xc0], ebx
mov ecx, ebp
cmp ebx, ecx
mov rcx, r12
jne 0x14007a49a
mov r8, qword [rsp + 0xd0]
lea rdx, str.no_such_column:___T_
call fcn.140030230
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.14008c910
jmp 0x14007a6e8
mov rbx, qword [rsp + 0x58]
lea rbp, [0x14015febb]
mov r15d, esi
mov dword [rsp + 0x30], esi
cmp r13d, 1
mov qword [rsp + 0x28], rbp
mov r9, rbx
mov byte [r12 + 0x1c], 1
sete r15b
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, rbx
mov dword [rsp + 0x20], r15d
call fcn.140082c20
mov r8, rbx
mov rcx, r12
cmp r13d, 1
je 0x14007a51c
mov r9, rbp
mov dword [rsp + 0x20], esi
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.140082c20
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, r12
call fcn.140082c20
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, r12
call fcn.140082c20
jmp 0x14007a52b
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.140082c20
mov rax, qword [r12 + 0xa8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov rax, qword [rsp + 0xd8]
mov byte [rcx + 0x21], 1
test rax, rax
je 0x14007a6d3
mov rbp, qword [rax]
mov ebx, dword [rax + 8]
test rbp, rbp
je 0x14007a583
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.14002c580
mov rsi, rax
test rax, rax
je 0x14007a583
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.14012dc00
mov byte [rsi + rbx], 0
mov rcx, rsi
call fcn.140030390
test rsi, rsi
je 0x14007a6d3
mov r9, qword [rsp + 0xd8]
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 r8, qword [rsp + 0x58]
mov ebp, dword [rsp + 0xc0]
mov rax, qword [r9]
mov r9, r8
movzx ecx, byte [rax]
lea rax, [0x140000000]
movzx ebx, byte [rcx + rax + 0x1637b0]
mov rcx, r12
mov rax, qword [rsp + 0x60]
and ebx, 0x80
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.140082c20
mov rax, 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], ebx
mov rcx, r12
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rsi
mov r8, rbx
mov r9, qword [rax]
mov dword [rsp + 0x20], ebp
call fcn.140082c20
cmp qword [r12 + 0x10], 0
je 0x14007a66a
mov edx, r13d
mov rcx, r12
call fcn.140086cb0
mov rcx, qword [r12 + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, r13d
call fcn.140054e00
cmp r13d, 1
je 0x14007a66a
mov rcx, qword [r12 + 0x10]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.140054e00
mov dword [rsp + 0x30], 1
lea rbp, str.after_rename
mov qword [rsp + 0x28], rbp
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], r15d
mov r8, rbx
mov byte [r12 + 0x1c], 1
mov rcx, r12
call fcn.140082c20
cmp r13d, 1
je 0x14007a6d3
mov r9, rbp
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, r12
call fcn.140082c20
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.14008c910
jmp 0x14007a6e8
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.14008c910
test r14, r14
je 0x14007a74d
test rdi, rdi
je 0x14007a745
cmp r14, qword [rdi + 0x1f0]
jae 0x14007a72e
cmp r14, qword [rdi + 0x1e0]
jb 0x14007a712
mov rax, qword [rdi + 0x1d8]
mov qword [r14], rax
mov qword [rdi + 0x1d8], r14
jmp 0x14007a74d
cmp r14, qword [rdi + 0x1e8]
jb 0x14007a72e
mov rax, qword [rdi + 0x1c8]
mov qword [r14], rax
mov qword [rdi + 0x1c8], r14
jmp 0x14007a74d
cmp qword [rdi + 0x308], 0
je 0x14007a745
mov rdx, r14
mov rcx, rdi
call fcn.14002c160
jmp 0x14007a74d
mov rcx, r14
call fcn.14002c0f0
test rsi, rsi
je 0x14007a7b7
test rdi, rdi
je 0x14007a7af
cmp rsi, qword [rdi + 0x1f0]
jae 0x14007a798
cmp rsi, qword [rdi + 0x1e0]
jb 0x14007a77c
mov rax, qword [rdi + 0x1d8]
mov qword [rsi], rax
mov qword [rdi + 0x1d8], rsi
jmp 0x14007a7b7
cmp rsi, qword [rdi + 0x1e8]
jb 0x14007a798
mov rax, qword [rdi + 0x1c8]
mov qword [rsi], rax
mov qword [rdi + 0x1c8], rsi
jmp 0x14007a7b7
cmp qword [rdi + 0x308], 0
je 0x14007a7af
mov rdx, rsi
mov rcx, rdi
call fcn.14002c160
jmp 0x14007a7b7
mov rcx, rsi
call fcn.14002c0f0
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x88
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret