Function at 0x14005ef74
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14013c0e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rcx]
xor eax, eax
mov r13, rdx
mov rdi, rcx
cmp dword [rcx + 0x30], eax
jne 0x14005f28d
mov r15, qword [rcx + 0x160]
mov rcx, r14
mov rdx, qword [r15 + 0x60]
call fcn.140079da4
mov rcx, qword [r14 + 0x20]
mov rsi, qword [r15]
movsxd rdx, eax
add rsi, 0x10
shl rdx, 5
mov dword [rsp + 0x40], eax
mov rbp, qword [rdx + rcx]
movsx ecx, word [r15 + 0x36]
dec ecx
movsxd rcx, ecx
lea rdx, [rcx + rcx*2]
mov rcx, qword [r15 + 8]
lea r12, [rcx + rdx*8]
mov rcx, r15
mov rdx, r12
call fcn.140064afc
mov rcx, r14
mov r8, rbp
mov rdx, rsi
mov rbx, rax
call fcn.1400642f8
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rcx
mov r8, rbp
mov r9, qword [rax]
lea edx, [rcx + 0x1a]
mov rcx, rdi
call fcn.140063c88
xor ecx, ecx
test eax, eax
jne 0x14005f28d
test byte [r12 + 0x12], 1
je 0x14005f04d
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rdi
call fcn.140028108
jmp 0x14005f28d
cmp qword [r15 + 0x10], rcx
je 0x14005f05c
lea rdx, str.Cannot_add_a_UNIQUE_column
jmp 0x14005f040
test byte [r12 + 0x12], 0x60
jne 0x14005f113
test rbx, rbx
je 0x14005f078
mov rax, qword [rbx + 0x10]
cmp byte [rax], 0x79
cmove rbx, rcx
mov eax, dword [r14 + 0x30]
bt rax, 0xe
jae 0x14005f0a5
cmp qword [r15 + 0x48], rcx
je 0x14005f0a5
test rbx, rbx
je 0x14005f0a5
lea r9, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.14005ef50
xor ecx, ecx
test byte [r12 + 8], 0xf
je 0x14005f0bb
test rbx, rbx
jne 0x14005f0c0
lea r9, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x14005f122
test rbx, rbx
je 0x14005f130
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x50]
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r9b, 0x41
mov r8b, 1
mov rdx, rbx
call fcn.14004468c
test eax, eax
jne 0x14005f28d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x14005f10c
lea r9, str.Cannot_add_a_column_with_non_constant_default
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.14005ef50
mov rcx, qword [rsp + 0x50]
call fcn.1400446d4
jmp 0x14005f130
test byte [r12 + 0x12], 0x40
je 0x14005f130
lea r9, str.cannot_add_a_STORED_column
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.14005ef50
mov r8d, dword [r13 + 8]
mov rcx, r14
mov rdx, qword [r13]
call fcn.140025570
xor r8d, r8d
mov rbx, rax
test rax, rax
je 0x14005f1a6
mov edx, dword [r13 + 8]
dec edx
add rdx, rax
jmp 0x14005f171
cmp byte [rdx], 0x3b
je 0x14005f16b
movzx eax, byte [rdx]
lea rcx, [0x14011c5f0]
test byte [rax + rcx], 1
je 0x14005f176
mov byte [rdx], r8b
dec rdx
cmp rdx, rbx
ja 0x14005f156
mov r9d, dword [r15 + 0x40]
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 qword [rsp + 0x30], rsi
mov r8, rbp
mov dword [rsp + 0x28], r9d
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140064204
mov rdx, rbx
mov rcx, r14
call fcn.1400250e8
mov rcx, rdi
call fcn.14007d0b4
mov r14, rax
test rax, rax
je 0x14005f28d
mov rcx, rdi
call fcn.14005e9ec
mov r13d, dword [rsp + 0x40]
mov r9d, eax
mov r8d, r13d
mov dword [rsp + 0x20], 2
mov edx, 0x63
mov rcx, r14
mov ebx, eax
call fcn.140044be4
mov edx, r13d
mov rcx, r14
call fcn.140045c58
mov r9d, 0xfffffffe
mov r8d, ebx
mov rcx, r14
lea edx, [r9 + 0x58]
call fcn.140044bd0
mov rcx, r14
call fcn.140045334
mov r8d, ebx
mov edx, 0x3b
lea r9d, [rax + 2]
call fcn.140044bd0
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, r13d
mov rcx, r14
lea edx, [r9 + 0x62]
call fcn.140044be4
mov edx, ebx
mov rcx, rdi
call fcn.14005ea0c
mov r8d, 3
mov edx, r13d
call fcn.14005ebc8
xor eax, eax
cmp qword [r15 + 0x20], rax
jne 0x14005f278
test byte [r12 + 8], 0xf
je 0x14005f26a
test byte [r12 + 0x12], 0x60
jne 0x14005f278
mov rax, qword [rsp + 0x48]
test dword [rax + 0x30], 0x10000
je 0x14005f28d
mov r9, rbp
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 r8, rsi
mov rcx, rdi
call fcn.140064204
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400cb0f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret