Function at 0x14006a8e6
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x30]
test eax, eax
jne 0x14006adbd
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x160]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call dbg.sqlite3SchemaToIndex
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov edx, dword [rbp - 0x24]
movsxd rdx, edx
shl rdx, 5
add rax, rdx
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
add rax, 0x10
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax + 8]
mov rax, qword [rbp - 0x20]
movzx eax, word [rax + 0x36]
movsx rdx, ax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
sub rax, 0x18
add rax, rcx
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call dbg.sqlite3ColumnExpr
mov qword [rbp - 8], rax
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call dbg.sqlite3FindTable
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, 0x1a
mov rcx, rax
call dbg.sqlite3AuthCheck
test eax, eax
jne 0x14006adc0
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 1
test eax, eax
je 0x14006aa1c
mov rax, qword [rbp + 0x10]
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rax
call dbg.sqlite3ErrorMsg
jmp 0x14006adc4
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14006aa41
mov rax, qword [rbp + 0x10]
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rax
call dbg.sqlite3ErrorMsg
jmp 0x14006adc4
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x60
test eax, eax
jne 0x14006ab67
cmp qword [rbp - 8], 0
je 0x14006aa75
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
movzx eax, byte [rax]
cmp al, 0x79
jne 0x14006aa75
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x30]
and eax, 0x4000
test rax, rax
je 0x14006aab9
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x48]
test rax, rax
je 0x14006aab9
cmp qword [rbp - 8], 0
je 0x14006aab9
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
lea r9, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov r8, rcx
mov rcx, rax
call dbg.sqlite3ErrorIfNotEmpty
mov rax, qword [rbp - 0x40]
movzx eax, byte [rax + 8]
and eax, 0xf
test al, al
je 0x14006aaed
cmp qword [rbp - 8], 0
jne 0x14006aaed
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
lea r9, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov r8, rcx
mov rcx, rax
call dbg.sqlite3ErrorIfNotEmpty
cmp qword [rbp - 8], 0
je 0x14006ab97
mov qword [rbp - 0x70], 0
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x41
mov r8d, 1
mov rcx, rax
call dbg.sqlite3ValueFromExpr
mov dword [rbp - 0x4c], eax
cmp dword [rbp - 0x4c], 0
jne 0x14006adc3
mov rax, qword [rbp - 0x70]
test rax, rax
jne 0x14006ab59
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
lea r9, str.Cannot_add_a_column_with_non_constant_default
mov r8, rcx
mov rcx, rax
call dbg.sqlite3ErrorIfNotEmpty
mov rax, qword [rbp - 0x70]
mov rcx, rax
call dbg.sqlite3ValueFree
jmp 0x14006ab97
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x40
test eax, eax
je 0x14006ab97
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
lea r9, str.cannot_add_a_STORED_column
mov r8, rcx
mov rcx, rax
call dbg.sqlite3ErrorIfNotEmpty
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 8]
mov ecx, eax
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call dbg.sqlite3DbStrNDup
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0
je 0x14006ac6f
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 8]
sub eax, 1
mov edx, eax
mov rax, qword [rbp - 0x58]
add rax, rdx
mov qword [rbp - 0x10], rax
jmp 0x14006abed
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 1]
mov qword [rbp - 0x10], rdx
mov byte [rax], 0
mov rax, qword [rbp - 0x10]
cmp qword [rbp - 0x58], rax
jae 0x14006ac23
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
cmp al, 0x3b
je 0x14006abde
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
cdqe
lea rdx, [0x1401a97c0]
movzx eax, byte [rax + rdx]
movzx eax, al
and eax, 1
test eax, eax
jne 0x14006abde
mov rax, qword [rbp - 0x20]
mov edx, dword [rax + 0x40]
mov rax, qword [rbp - 0x20]
mov r9d, dword [rax + 0x40]
mov r8, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
mov rcx, qword [rbp - 0x38]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp - 0x58]
mov qword [rsp + 0x20], rdx
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
mov rcx, rax
call dbg.sqlite3NestedParse
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call dbg.sqlite3DbFree
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.sqlite3GetVdbe
mov qword [rbp - 0x60], rax
cmp qword [rbp - 0x60], 0
je 0x14006adc4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.sqlite3GetTempReg
mov dword [rbp - 0x64], eax
mov ecx, dword [rbp - 0x64]
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x60]
mov dword [rsp + 0x20], 2
mov r9d, ecx
mov r8d, edx
mov edx, 0x63
mov rcx, rax
call dbg.sqlite3VdbeAddOp3
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x60]
mov rcx, rax
call dbg.sqlite3VdbeUsesBtree
mov edx, dword [rbp - 0x64]
mov rax, qword [rbp - 0x60]
mov r9d, 0xfffffffe
mov r8d, edx
mov edx, 0x56
mov rcx, rax
call dbg.sqlite3VdbeAddOp2
mov rax, qword [rbp - 0x60]
mov rcx, rax
call dbg.sqlite3VdbeCurrentAddr
lea ecx, [rax + 2]
mov edx, dword [rbp - 0x64]
mov rax, qword [rbp - 0x60]
mov r9d, ecx
mov r8d, edx
mov edx, 0x3b
mov rcx, rax
call dbg.sqlite3VdbeAddOp2
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x60]
mov dword [rsp + 0x20], 3
mov r9d, 2
mov r8d, edx
mov edx, 0x64
mov rcx, rax
call dbg.sqlite3VdbeAddOp3
mov edx, dword [rbp - 0x64]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.sqlite3ReleaseTempReg
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp + 0x10]
mov r8d, 3
mov rcx, rax
call dbg.renameReloadSchema
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14006ad9a
mov rax, qword [rbp - 0x40]
movzx eax, byte [rax + 8]
and eax, 0xf
test al, al
je 0x14006ad8a
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x60
test eax, eax
jne 0x14006ad9a
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x30]
and eax, 0x10000
test eax, eax
je 0x14006adc4
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0x10]
mov r9, rcx
mov r8, rdx
lea rdx, str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
mov rcx, rax
call dbg.sqlite3NestedParse
jmp 0x14006adc4
nop
jmp 0x14006adc4
nop
jmp 0x14006adc4
nop
add rsp, 0xb0
pop rbp
ret