Function at 0x1400cc950
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rsi, qword [rcx]
xor ebx, ebx
mov r14, rcx
mov r13d, ebx
mov edi, ebx
cmp byte [rsi + 0x67], bl
jne 0x1400ccf56
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x1400cc9b9
mov r9, qword [rsi + 0x20]
mov ecx, ebx
cmp qword [r9 + 0x18], rdx
lea rax, [r9 + 0x18]
je 0x1400cc9ac
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], rdx
jne 0x1400cc9a1
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x1400cc9bd
mov r9, qword [rcx + 0x10]
mov r8, qword [rsp + 0xa8]
mov eax, 0x20
mov rcx, rsi
xor edx, edx
mov r8, qword [r8 + 0x18]
lea r15, [rax + rcx]
mov rcx, r14
call fcn.1400d6ff0
mov qword [rsp + 0xb8], rax
mov rbp, rax
test rax, rax
je 0x1400ccf56
mov rdx, qword [rax + 0x60]
mov r12d, 0xffff8000
test rdx, rdx
je 0x1400cca30
mov rax, qword [r14]
mov r12d, ebx
mov rcx, qword [rax + 0x20]
add rcx, 0x18
cmp qword [rcx], rdx
je 0x1400cca30
nop word [rax + rax]
inc r12d
lea rcx, [rcx + 0x20]
cmp qword [rcx], rdx
jne 0x1400cca20
lea r15, [rsi + 0x20]
mov rax, qword [r15]
mov rdx, qword [rsp + 0xb0]
movsxd rcx, r12d
shl rcx, 5
mov qword [rsp + 0x48], rcx
mov rbx, qword [rcx + rax]
mov rcx, rsi
mov qword [rsp + 0x40], rbx
call fcn.1400d7c80
mov qword [rsp + 0xa0], rax
mov r13, rax
test rax, rax
je 0x1400ccf56
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.1400d6c00
test rax, rax
jne 0x1400ccf44
mov ebx, eax
cmp dword [rsi + 0x28], eax
jle 0x1400ccafd
mov rbp, qword [r15]
nop dword [rax]
mov edx, ebx
xor edx, 1
cmp ebx, 2
cmovge edx, ebx
movsxd rax, edx
shl rax, 5
mov r13, qword [rax + rbp + 0x18]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400ccac0
mov r8, rax
mov rcx, rsi
call fcn.1400d4980
test eax, eax
je 0x1400ccae6
lea rcx, [r13 + 0x20]
xor r8d, r8d
mov r13, qword [rsp + 0xa0]
mov rdx, r13
call fcn.1400837b0
cmp qword [rax + 0x10], rdi
jne 0x1400ccf44
mov rbp, qword [r15]
jmp 0x1400ccaee
mov r13, qword [rsp + 0xa0]
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1400cca90
mov rbp, qword [rsp + 0xb8]
mov r8, r13
mov rdx, rbp
mov rcx, rsi
call fcn.1400dae20
test eax, eax
jne 0x1400ccf44
mov rdx, rbp
mov rcx, r14
call fcn.1400cc860
test eax, eax
jne 0x1400ccf56
mov r9, r13
lea r8, str.table
mov rdx, r13
mov rcx, r14
call fcn.1400d7f40
test eax, eax
jne 0x1400ccf56
cmp byte [rbp + 0x3f], 2
mov rcx, r14
mov r9, qword [rbp]
jne 0x1400ccb74
mov r8, r9
lea rdx, str.view__s_may_not_be_altered
call fcn.1400820c0
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.1400dfed0
jmp 0x1400ccf6b
mov r15, qword [rsp + 0x40]
xor ebx, ebx
mov r8, r15
mov qword [rsp + 0x20], rbx
lea edx, [rbx + 0x1a]
call fcn.1400d5f40
test eax, eax
jne 0x1400ccf56
mov rdx, rbp
mov rcx, r14
call fcn.1400dc0b0
test eax, eax
jne 0x1400ccf56
cmp byte [rbp + 0x3f], 1
jne 0x1400ccbd5
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x1400ccbc3
cmp qword [rdi], rsi
je 0x1400ccbc3
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400ccbb5
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
cmp qword [rcx + 0x98], rbx
cmove rdi, rbx
mov rbx, qword [r14 + 0x10]
test rbx, rbx
je 0x1400ccbe7
lea rax, [r14 + 0xa0]
jmp 0x1400ccc22
cmp qword [r14 + 0xa0], 0
jne 0x1400ccbff
mov rax, qword [r14]
test byte [rax + 0x60], 8
jne 0x1400ccbff
mov byte [r14 + 0x23], 1
mov rcx, r14
call fcn.1400a76a0
mov rbx, rax
lea rax, [r14 + 0xa0]
test rbx, rbx
je 0x1400ccf56
mov rbp, qword [rsp + 0xb8]
mov rax, qword [rax]
mov rcx, r14
test rax, rax
cmovne rcx, rax
xor edx, edx
mov byte [rcx + 0x21], 1
mov rcx, qword [rbp]
mov ebp, edx
mov qword [rsp + 0x40], rcx
mov rax, rcx
cmp byte [rcx], dl
je 0x1400ccc8a
cmp rax, 0xffffffffffffffff
jae 0x1400ccc85
movzx ecx, byte [rax]
inc rax
cmp cl, 0xc0
jb 0x1400ccc7f
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x1400ccc7f
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + 1]
inc rax
and cl, 0xc0
cmp cl, 0x80
je 0x1400ccc70
inc ebp
cmp byte [rax], dl
jne 0x1400ccc47
mov rcx, qword [rsp + 0x40]
mov eax, edx
mov qword [rsp + 0x38], rcx
cmp r12d, 1
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
mov r9, r15
mov r8, r15
sete al
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
mov rcx, r14
mov dword [rsp + 0xa0], eax
call fcn.1400d6a20
mov rax, qword [rsp + 0x40]
lea rdx, str.UPDATE__Q.sqlite_master_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
mov qword [rsp + 0x38], rax
mov r9, r13
mov dword [rsp + 0x30], ebp
mov r8, r15
mov qword [rsp + 0x28], r13
mov rcx, r14
mov qword [rsp + 0x20], r13
call fcn.1400d6a20
mov r8, r15
lea rdx, str.sqlite_sequence
mov rcx, rsi
call fcn.1400d6c00
test rax, rax
je 0x1400ccd2b
mov rax, qword [rsp + 0xb8]
lea rdx, str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
mov r9, r13
mov r8, r15
mov rcx, r14
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call fcn.1400d6a20
cmp r12d, 1
je 0x1400ccd5f
mov rax, qword [rsp + 0x40]
lea rdx, str.UPDATE_sqlite_temp_schema_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___sqlite_rename_test__Q__sql__type__name__1__after_rename__0__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
mov qword [rsp + 0x38], r13
mov r9, rax
mov qword [rsp + 0x30], r15
mov r8, r15
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r13
call fcn.1400d6a20
test rdi, rdi
je 0x1400cce2a
inc dword [r14 + 0x38]
mov r8, r13
mov ebp, dword [r14 + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400a7a60
movsxd rdx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], edx
jg 0x1400ccdb0
xor eax, eax
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0xaf
mov rcx, rbx
call fcn.1400a7990
mov edx, eax
lea r8, [rbx + 0x90]
jmp 0x1400ccddf
lea rcx, [rdx + rdx*2]
xor r9d, r9d
lea eax, [rdx + 1]
mov dword [rbx + 0x98], eax
lea r8, [rbx + 0x90]
mov rax, qword [r8]
mov dword [rax + rcx*8], 0xaf
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r9
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x1400cce2a
test edx, edx
jns 0x1400ccdf4
mov edx, dword [rbx + 0x98]
dec edx
movsxd rax, edx
lea rdx, [rax + rax*2]
mov rax, qword [r8]
cmp byte [rax + rdx*8 + 1], 0
lea rcx, [rax + rdx*8]
je 0x1400cce1f
mov rdx, rcx
mov r9d, 0xfffffff4
mov rcx, rbx
mov r8, rdi
call fcn.1400a88b0
jmp 0x1400cce2a
mov qword [rcx + 0x10], rdi
mov byte [rcx + 1], 0xf4
inc dword [rdi + 0x18]
mov r10, qword [r14 + 0x10]
test r10, r10
je 0x1400ccedc
mov rax, qword [r14]
mov rcx, qword [rax + 0x20]
mov rax, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 0x18]
movsxd rcx, dword [r10 + 0x98]
mov edx, dword [rax]
inc edx
cmp dword [r10 + 0x9c], ecx
jg 0x1400cce77
mov r9d, 1
mov dword [rsp + 0x20], edx
mov r8d, r12d
mov rcx, r10
lea edx, [r9 + 0x62]
call fcn.1400a7990
jmp 0x1400cceac
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [r10 + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x90]
mov dword [rax + rcx*8], 0x63
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [r14 + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, r12d
call fcn.1400a8160
cmp r12d, 1
je 0x1400ccedc
mov rcx, qword [r14 + 0x10]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.1400a8160
mov eax, dword [rsp + 0xa0]
lea rbx, str.after_rename
xor edi, edi
mov byte [r14 + 0x1c], 1
mov dword [rsp + 0x30], edi
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], rbx
mov r9, r15
mov r8, r15
mov dword [rsp + 0x20], eax
mov rcx, r14
call fcn.1400d6a20
cmp r12d, 1
je 0x1400ccf56
mov r9, rbx
mov dword [rsp + 0x20], edi
mov r8, r15
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.1400d6a20
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.1400dfed0
jmp 0x1400ccf6b
mov r8, r13
lea rdx, str.there_is_already_another_table_or_index_with_this_name:__s
mov rcx, r14
jmp 0x1400ccb5a
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.1400dfed0
test r13, r13
je 0x1400ccf76
mov rdx, r13
mov rcx, rsi
call fcn.14007e790
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret