Function at 0x1401a75d8
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, 0x40
mov rbp, qword [rcx]
xor eax, eax
mov rbx, rcx
cmp dword [rcx + 0x30], eax
jne 0x1401a7972
mov rsi, qword [rcx + 0x160]
mov r12d, 0xffff8000
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x1401a7631
mov r12d, eax
mov rax, qword [rbp + 0x20]
add rax, 0x18
jmp 0x1401a762c
inc r12d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1401a7625
mov rax, qword [rbp + 0x20]
mov r14, qword [rsi]
movsxd rcx, r12d
add r14, 0x10
shl rcx, 5
mov r15, qword [rcx + rax]
movsx eax, word [rsi + 0x36]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea r13, [rax + rcx*8]
mov rcx, rsi
mov rdx, r13
call fcn.1401ae454
mov rcx, rbp
mov r8, r15
mov rdx, r14
mov rdi, rax
call fcn.1401b7c98
xor ecx, ecx
mov r8, r15
mov qword [rsp + 0x20], rcx
mov r9, qword [rax]
lea edx, [rcx + 0x1a]
mov rcx, rbx
call fcn.1401a8a74
xor ecx, ecx
test eax, eax
jne 0x1401a7972
test byte [r13 + 0x12], 1
je 0x1401a76b4
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.1401b2d78
jmp 0x1401a7972
cmp qword [rsi + 0x10], rcx
je 0x1401a76c3
lea rdx, str.Cannot_add_a_UNIQUE_column
jmp 0x1401a76a7
test byte [r13 + 0x12], 0x60
jne 0x1401a77c9
test rdi, rdi
je 0x1401a76de
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
cmove rdi, rcx
mov eax, dword [rbp + 0x30]
bt rax, 0xe
jae 0x1401a7713
cmp qword [rsi + 0x48], rcx
je 0x1401a7713
test rdi, rdi
je 0x1401a7713
mov r9, r15
mov qword [rsp + 0x20], r14
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov rcx, rbx
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1401c9414
xor ecx, ecx
test byte [r13 + 8], 0xf
je 0x1401a772b
test rdi, rdi
jne 0x1401a7734
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x1401a77d7
test rdi, rdi
je 0x1401a77ee
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x80], rcx
mov r9b, 0x41
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov r8b, 1
mov rdx, rdi
call fcn.1401f088c
xor ecx, ecx
test eax, eax
jne 0x1401a7972
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x1401a77a3
mov r9, r15
mov qword [rsp + 0x20], r14
lea r8, str.Cannot_add_a_column_with_non_constant_default
mov rcx, rbx
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1401c9414
mov rdi, qword [rsp + 0x80]
xor ecx, ecx
test rdi, rdi
je 0x1401a77ee
mov eax, 0x9000
test word [rdi + 0x14], ax
jne 0x1401a77b3
cmp dword [rdi + 0x20], ecx
je 0x1401a77bb
mov rcx, rdi
call fcn.1401f1f40
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
call fcn.1401b0b10
jmp 0x1401a77ee
test byte [r13 + 0x12], 0x40
je 0x1401a77ee
lea r8, str.cannot_add_a_STORED_column
mov r9, r15
mov qword [rsp + 0x20], r14
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.1401c9414
mov rax, qword [rsp + 0x88]
mov rcx, rbp
mov r8d, dword [rax + 8]
mov rdx, qword [rax]
call fcn.1401b0e84
xor r8d, r8d
mov rdi, rax
test rax, rax
je 0x1401a7872
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 8]
dec edx
add rdx, rax
jmp 0x1401a783d
cmp byte [rdx], 0x3b
je 0x1401a7837
movzx eax, byte [rdx]
lea rcx, [0x1402d8750]
test byte [rax + rcx], 1
je 0x1401a7842
mov byte [rdx], r8b
dec rdx
cmp rdx, rdi
ja 0x1401a7822
mov r9d, dword [rsi + 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], r14
mov r8, r15
mov dword [rsp + 0x28], r9d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.1401c9414
mov rdx, rdi
mov rcx, rbp
call fcn.1401b0b10
mov rcx, rbx
call fcn.1401c5580
mov rbp, rax
test rax, rax
je 0x1401a7972
mov cl, byte [rbx + 0x1f]
test cl, cl
jne 0x1401a7895
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x1401a78a4
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0xe4]
mov r9d, edi
mov dword [rsp + 0x20], 2
mov r8d, r12d
mov edx, 0x63
mov rcx, rbp
call fcn.1401d9be0
mov edx, r12d
mov rcx, rbp
call fcn.1401e52e0
xor ecx, ecx
mov r8d, edi
mov dword [rsp + 0x20], ecx
lea r9d, [rcx - 2]
lea edx, [rcx + 0x56]
mov rcx, rbp
call fcn.1401d9be0
mov r9d, dword [rbp + 0x90]
xor eax, eax
add r9d, 2
mov dword [rsp + 0x20], eax
mov r8d, edi
mov rcx, rbp
lea edx, [rax + 0x3b]
call fcn.1401d9be0
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, r12d
mov rcx, rbp
lea edx, [r9 + 0x62]
call fcn.1401d9be0
xor ebp, ebp
test edi, edi
je 0x1401a7938
cmp byte [rbx + 0x1f], 8
jae 0x1401a7938
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xe4], edi
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, r12d
mov rcx, rbx
call fcn.14019e0dc
cmp qword [rsi + 0x20], rbp
jne 0x1401a795d
test byte [r13 + 8], 0xf
je 0x1401a7972
test byte [r13 + 0x12], 0x60
je 0x1401a7972
mov r9, r15
lea rdx, str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
mov r8, r14
mov rcx, rbx
call fcn.1401c9414
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret