Function at 0x468883
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 0x468d45
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 rdx, qword [rax + 0x20]
mov eax, dword [rbp - 0x24]
cdqe
shl rax, 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 rdx, qword [rax]
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8, rax
mov edx, 0x1a
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3AuthCheck
test eax, eax
jne 0x468d48
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 1
test eax, eax
je 0x4689b2
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3ErrorMsg
jmp 0x468d4c
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x4689d4
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3ErrorMsg
jmp 0x468d4c
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x60
test eax, eax
jne 0x468af7
cmp qword [rbp - 8], 0
je 0x468a08
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
movzx eax, byte [rax]
cmp al, 0x79
jne 0x468a08
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x30]
and eax, 0x4000
test rax, rax
je 0x468a4c
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x48]
test rax, rax
je 0x468a4c
cmp qword [rbp - 8], 0
je 0x468a4c
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
lea r9, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3ErrorIfNotEmpty
mov rax, qword [rbp - 0x40]
movzx eax, byte [rax + 8]
and eax, 0xf
test al, al
je 0x468a80
cmp qword [rbp - 8], 0
jne 0x468a80
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
lea r9, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3ErrorIfNotEmpty
cmp qword [rbp - 8], 0
je 0x468b27
mov qword [rbp - 0x70], 0
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x41
mov r8d, 1
call dbg.sqlite3ValueFromExpr
mov dword [rbp - 0x4c], eax
cmp dword [rbp - 0x4c], 0
jne 0x468d4b
mov rax, qword [rbp - 0x70]
test rax, rax
jne 0x468ae9
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
lea r9, str.Cannot_add_a_column_with_non_constant_default
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3ErrorIfNotEmpty
mov rax, qword [rbp - 0x70]
mov rcx, rax
call dbg.sqlite3ValueFree
jmp 0x468b27
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x40
test eax, eax
je 0x468b27
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
lea r9, str.cannot_add_a_STORED_column
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
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 0x468c02
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 0x468b7d
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 1]
mov qword [rbp - 0x10], rdx
mov byte [rax], 0
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x58]
jbe 0x468bb3
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
cmp al, 0x3b
je 0x468b6e
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
cdqe
lea rdx, [0x004e97c0]
movzx eax, byte [rax + rdx]
movzx eax, al
and eax, 1
test eax, eax
jne 0x468b6e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x40]
mov rdx, qword [rbp - 0x20]
mov r8d, dword [rdx + 0x40]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r8d
mov r8, rcx
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, qword [rbp + 0x10]
call dbg.sqlite3NestedParse
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call dbg.sqlite3DbFree
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3GetVdbe
mov qword [rbp - 0x60], rax
cmp qword [rbp - 0x60], 0
je 0x468d4c
mov rcx, qword [rbp + 0x10]
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 eax, dword [rbp - 0x64]
mov edx, eax
mov rcx, qword [rbp + 0x10]
call dbg.sqlite3ReleaseTempReg
mov eax, dword [rbp - 0x24]
mov r8d, 3
mov edx, eax
mov rcx, qword [rbp + 0x10]
call dbg.renameReloadSchema
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x468d25
mov rax, qword [rbp - 0x40]
movzx eax, byte [rax + 8]
and eax, 0xf
test al, al
je 0x468d15
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x60
test eax, eax
jne 0x468d25
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x30]
and eax, 0x10000
test eax, eax
je 0x468d4c
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x38]
mov r9, rdx
mov r8, rax
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, qword [rbp + 0x10]
call dbg.sqlite3NestedParse
jmp 0x468d4c
nop
jmp 0x468d4c
nop
jmp 0x468d4c
nop
add rsp, 0xb0
pop rbp
ret