Function at 0x180079b60
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 0x180079bc8
mov r9, qword [rdi + 0x20]
mov ecx, esi
cmp qword [r9 + 0x18], r10
lea rax, [r9 + 0x18]
je 0x180079bbb
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r10
jne 0x180079bb0
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x180079bcc
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.180082cb0
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x180079ff3
mov rdx, rax
mov rcx, r12
call fcn.180078b70
test eax, eax
jne 0x180079ff3
cmp byte [r15 + 0x3f], 2
lea r9, str.view
cmovne r9, rsi
cmp byte [r15 + 0x3f], 1
jne 0x180079c2b
lea r9, str.virtual_table
jmp 0x180079c30
test r9, r9
je 0x180079c63
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.18002e270
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.18008c580
jmp 0x18007a0d7
mov rcx, qword [r15 + 0x60]
mov r13d, 0xffff8000
test rcx, rcx
je 0x180079c8e
mov rax, qword [rdi + 0x20]
mov r13d, esi
add rax, 0x18
cmp qword [rax], rcx
je 0x180079c8e
inc r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x180079c82
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.180081cf0
test eax, eax
jne 0x180079ff3
test rbp, rbp
je 0x180079c4e
mov ebx, dword [rbp + 8]
mov rbp, qword [rbp]
test rbp, rbp
je 0x180079cf6
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.18002a8b0
mov r14, rax
test rax, rax
je 0x180079cf6
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.18013fe80
mov byte [r14 + rbx], sil
mov rcx, r14
call fcn.18002e3d0
test r14, r14
je 0x180079ff3
movsx rax, word [r15 + 0x36]
mov ebx, esi
mov dword [rsp + 0xc0], ebx
mov ecx, eax
cmp si, ax
jge 0x180079d8a
mov r11, qword [r15 + 8]
mov rbp, rax
lea r15, [0x180000000]
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 0x180079d58
test r8d, r8d
je 0x180079d81
inc rdx
jmp 0x180079d40
movzx ecx, byte [rax + r15 + 0x169170]
movzx eax, byte [r8 + r15 + 0x169170]
cmp eax, ecx
jne 0x180079d73
inc rdx
jmp 0x180079d40
inc ebx
inc r10
add r11, 0x18
cmp r10, rbp
jl 0x180079d30
mov dword [rsp + 0xc0], ebx
mov ecx, ebp
cmp ebx, ecx
mov rcx, r12
jne 0x180079dba
mov r8, qword [rsp + 0xd0]
lea rdx, str.no_such_column:___T_
call fcn.18002e270
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.18008c580
jmp 0x18007a008
mov rbx, qword [rsp + 0x58]
lea rbp, [0x18016e73b]
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.1800826a0
mov r8, rbx
mov rcx, r12
cmp r13d, 1
je 0x180079e3c
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.1800826a0
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.1800826a0
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.1800826a0
jmp 0x180079e4b
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.1800826a0
mov rax, qword [r12 + 0xb0]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov rax, qword [rsp + 0xd8]
mov byte [rcx + 0x21], 1
test rax, rax
je 0x180079ff3
mov rbp, qword [rax]
mov ebx, dword [rax + 8]
test rbp, rbp
je 0x180079ea3
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.18002a8b0
mov rsi, rax
test rax, rax
je 0x180079ea3
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.18013fe80
mov byte [rsi + rbx], 0
mov rcx, rsi
call fcn.18002e3d0
test rsi, rsi
je 0x180079ff3
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, [0x180000000]
movzx ebx, byte [rcx + rax + 0x167f60]
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.1800826a0
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.1800826a0
cmp qword [r12 + 0x10], 0
je 0x180079f8a
mov edx, r13d
mov rcx, r12
call fcn.180086740
mov rcx, qword [r12 + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, r13d
call fcn.180054860
cmp r13d, 1
je 0x180079f8a
mov rcx, qword [r12 + 0x10]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.180054860
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.1800826a0
cmp r13d, 1
je 0x180079ff3
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.1800826a0
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.18008c580
jmp 0x18007a008
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.18008c580
test r14, r14
je 0x18007a06d
test rdi, rdi
je 0x18007a065
cmp r14, qword [rdi + 0x1f0]
jae 0x18007a04e
cmp r14, qword [rdi + 0x1e0]
jb 0x18007a032
mov rax, qword [rdi + 0x1d8]
mov qword [r14], rax
mov qword [rdi + 0x1d8], r14
jmp 0x18007a06d
cmp r14, qword [rdi + 0x1e8]
jb 0x18007a04e
mov rax, qword [rdi + 0x1c8]
mov qword [r14], rax
mov qword [rdi + 0x1c8], r14
jmp 0x18007a06d
cmp qword [rdi + 0x308], 0
je 0x18007a065
mov rdx, r14
mov rcx, rdi
call fcn.18002a490
jmp 0x18007a06d
mov rcx, r14
call fcn.18002a420
test rsi, rsi
je 0x18007a0d7
test rdi, rdi
je 0x18007a0cf
cmp rsi, qword [rdi + 0x1f0]
jae 0x18007a0b8
cmp rsi, qword [rdi + 0x1e0]
jb 0x18007a09c
mov rax, qword [rdi + 0x1d8]
mov qword [rsi], rax
mov qword [rdi + 0x1d8], rsi
jmp 0x18007a0d7
cmp rsi, qword [rdi + 0x1e8]
jb 0x18007a0b8
mov rax, qword [rdi + 0x1c8]
mov qword [rsi], rax
mov qword [rdi + 0x1c8], rsi
jmp 0x18007a0d7
cmp qword [rdi + 0x308], 0
je 0x18007a0cf
mov rdx, rsi
mov rcx, rdi
call fcn.18002a490
jmp 0x18007a0d7
mov rcx, rsi
call fcn.18002a420
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