Function at 0x14007dd70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rcx]
xor r12d, r12d
mov rbx, r8
mov r14, rcx
mov r15d, r12d
mov ebp, r12d
cmp byte [rsi + 0x67], r12b
jne 0x14007e28f
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x14007dde8
mov r9, qword [rsi + 0x20]
mov ecx, r12d
cmp qword [r9 + 0x18], rdx
lea rax, [r9 + 0x18]
je 0x14007dddb
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], rdx
jne 0x14007ddd0
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x14007ddec
mov r9, qword [rcx + 0x10]
mov r8, qword [rsp + 0x98]
mov eax, 0x20
mov rcx, rsi
xor edx, edx
mov r8, qword [r8 + 0x18]
lea r13, [rax + rcx]
mov rcx, r14
call fcn.140088020
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14007e28f
mov rdx, qword [rax + 0x60]
mov edi, 0xffff8000
mov dword [rsp + 0x90], edi
test rdx, rdx
je 0x14007de66
mov rax, qword [r14]
mov edi, r12d
mov dword [rsp + 0x90], r12d
mov rcx, qword [rax + 0x20]
add rcx, 0x18
cmp qword [rcx], rdx
je 0x14007de66
nop
inc edi
lea rcx, [rcx + 0x20]
cmp qword [rcx], rdx
jne 0x14007de50
mov dword [rsp + 0x90], edi
lea r13, [rsi + 0x20]
mov rax, qword [r13]
mov rdx, rbx
movsxd rcx, edi
shl rcx, 5
mov r12, qword [rcx + rax]
mov rcx, rsi
call fcn.140088b70
mov r15, rax
test rax, rax
je 0x14007e28f
mov r8, r12
mov rdx, rax
mov rcx, rsi
call fcn.140087c20
test rax, rax
jne 0x14007defe
mov ebx, eax
mov qword [rsp + 0x40], rax
cmp dword [rsi + 0x28], eax
jle 0x14007df25
nop dword [rax + rax]
mov edi, ebx
xor edi, 1
cmp ebx, 2
cmovge edi, ebx
test r12, r12
je 0x14007ded1
mov r8, r12
mov edx, edi
mov rcx, rsi
call fcn.140085d10
test eax, eax
je 0x14007df0d
mov rax, qword [r13]
xor r8d, r8d
movsxd rcx, edi
mov rdx, r15
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 0x20
call fcn.140030320
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14007df12
mov r8, r15
lea rdx, str.there_is_already_another_table_or_index_with_this_name:__s
mov rcx, r14
jmp 0x14007df85
mov rax, qword [rsp + 0x40]
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x14007deb0
test rax, rax
jne 0x14007defe
mov edi, dword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
mov r8, r15
mov rdx, rbx
mov rcx, rsi
call fcn.14008bf00
test eax, eax
jne 0x14007defe
mov rdx, rbx
mov rcx, r14
call fcn.14007dba0
test eax, eax
jne 0x14007e28f
mov r9, r15
lea r8, str.table
mov rdx, r15
mov rcx, r14
call fcn.140088e20
test eax, eax
jne 0x14007e28f
cmp byte [rbx + 0x3f], 2
mov rcx, r14
mov r9, qword [rbx]
jne 0x14007df9f
mov r8, r9
lea rdx, str.view__s_may_not_be_altered
call fcn.14002d760
mov rdx, qword [rsp + 0x98]
mov rcx, rsi
call fcn.140090dc0
jmp 0x14007e2a4
xor r13d, r13d
mov r8, r12
mov qword [rsp + 0x20], r13
lea edx, [r13 + 0x1a]
call fcn.140087090
test eax, eax
jne 0x14007e28f
cmp byte [rbx + 0x3f], 1
je 0x14007dfc7
cmp word [rbx + 0x36], bp
jg 0x14007dfda
mov rdx, rbx
mov rcx, r14
call fcn.14008d1f0
test eax, eax
jne 0x14007e28f
cmp byte [rbx + 0x3f], 1
jne 0x14007e011
mov rbp, qword [rbx + 0x50]
test rbp, rbp
je 0x14007dfff
nop dword [rax]
cmp qword [rbp], rsi
je 0x14007dfff
mov rbp, qword [rbp + 0x28]
test rbp, rbp
jne 0x14007dff0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax]
cmp qword [rcx + 0x98], r13
cmove rbp, r13
mov r13, qword [r14 + 0x10]
test r13, r13
je 0x14007e023
lea rax, [r14 + 0xb0]
jmp 0x14007e056
cmp qword [r14 + 0xb0], 0
jne 0x14007e03b
mov rax, qword [r14]
test byte [rax + 0x60], 8
jne 0x14007e03b
mov byte [r14 + 0x23], 1
mov rcx, r14
call fcn.1400575b0
mov r13, rax
lea rax, [r14 + 0xb0]
test r13, r13
je 0x14007e28f
mov rax, qword [rax]
mov rcx, r14
test rax, rax
cmovne rcx, rax
xor edx, edx
mov byte [rcx + 0x21], 1
mov rcx, qword [rbx]
mov ebx, edx
mov qword [rsp + 0x40], rcx
mov rax, rcx
cmp byte [rcx], dl
je 0x14007e0ba
nop word [rax + rax]
cmp rax, 0xffffffffffffffff
jae 0x14007e0b5
movzx ecx, byte [rax]
inc rax
cmp cl, 0xc0
jb 0x14007e0af
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x14007e0af
nop dword [rax]
movzx ecx, byte [rax + 1]
inc rax
and cl, 0xc0
cmp cl, 0x80
je 0x14007e0a0
inc ebx
cmp byte [rax], dl
jne 0x14007e080
mov rcx, qword [rsp + 0x40]
mov eax, edx
mov qword [rsp + 0x38], rcx
cmp edi, 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, r12
mov r8, r12
sete al
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
mov rcx, r14
mov dword [rsp + 0x90], eax
call fcn.140087a50
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, r15
mov dword [rsp + 0x30], ebx
mov r8, r12
mov qword [rsp + 0x28], r15
mov rcx, r14
mov qword [rsp + 0x20], r15
call fcn.140087a50
mov r8, r12
lea rdx, str.sqlite_sequence
mov rcx, rsi
call fcn.140087c20
test rax, rax
je 0x14007e15a
mov rax, qword [rsp + 0xa8]
lea rdx, str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
mov r9, r15
mov r8, r12
mov rcx, r14
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call fcn.140087a50
cmp edi, 1
je 0x14007e18d
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], r15
mov r9, rax
mov qword [rsp + 0x30], r12
mov r8, r12
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r15
call fcn.140087a50
test rbp, rbp
je 0x14007e218
inc dword [r14 + 0x38]
mov r8, r15
mov ebx, dword [r14 + 0x38]
mov rcx, r13
mov edx, ebx
call fcn.140057a10
movsxd rdx, dword [r13 + 0x90]
cmp dword [r13 + 0x94], edx
jg 0x14007e1da
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, ebx
mov edx, 0xb1
mov rcx, r13
call fcn.1400578a0
mov edx, eax
jmp 0x14007e207
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [r13 + 0x90], eax
mov rax, qword [r13 + 0x88]
mov dword [rax + rcx*8], 0xb1
mov dword [rax + rcx*8 + 4], ebx
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
mov r9d, 0xfffffff5
mov r8, rbp
mov rcx, r13
call fcn.140058960
mov r8d, 1
mov edx, edi
mov rcx, r14
call fcn.14007dc90
mov eax, dword [rsp + 0x90]
lea rbx, str.after_rename
xor ebp, ebp
mov byte [r14 + 0x1c], 1
mov dword [rsp + 0x30], ebp
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, r12
mov r8, r12
mov dword [rsp + 0x20], eax
mov rcx, r14
call fcn.140087a50
cmp edi, 1
je 0x14007e28f
mov r9, rbx
mov dword [rsp + 0x20], ebp
mov r8, r12
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.140087a50
mov rdx, qword [rsp + 0x98]
mov rcx, rsi
call fcn.140090dc0
jmp 0x14007e2a4
mov rdx, qword [rsp + 0x98]
mov rcx, rsi
call fcn.140090dc0
test r15, r15
je 0x14007e2af
mov rdx, r15
mov rcx, rsi
call fcn.140029880
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret