Function at 0x140097ab8
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 rsi, qword [rcx]
xor eax, eax
mov rbx, rcx
cmp dword [rcx + 0x30], eax
jne 0x140097e4f
cmp byte [rsi + 0x63], al
jne 0x140097e4f
mov r14, qword [rcx + 0x138]
mov r15d, 0xffff8000
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x140097b1a
mov r15d, eax
mov rax, qword [rsi + 0x20]
add rax, 0x18
jmp 0x140097b15
inc r15d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x140097b0e
mov rax, qword [rsi + 0x20]
mov rbp, qword [r14]
movsxd rcx, r15d
add rbp, 0x10
shl rcx, 5
mov r12, qword [rcx + rax]
movsx eax, word [r14 + 0x36]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 8]
lea r13, [rax + rcx*8]
mov rcx, r14
mov rdx, r13
call fcn.14009dac8
mov rcx, rsi
mov r8, r12
mov rdx, rbp
mov rdi, rax
call fcn.14009d2a8
xor ecx, ecx
mov r8, r12
mov qword [rsp + 0x20], rcx
mov r9, qword [rax]
lea edx, [rcx + 0x1a]
mov rcx, rbx
call fcn.14009cba0
xor ecx, ecx
test eax, eax
jne 0x140097e4f
test byte [r13 + 0x12], 1
je 0x140097b9e
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.140062934
jmp 0x140097e4f
cmp qword [r14 + 0x10], rcx
je 0x140097bad
lea rdx, str.Cannot_add_a_UNIQUE_column
jmp 0x140097b91
test byte [r13 + 0x12], 0x60
jne 0x140097ca6
test rdi, rdi
je 0x140097bc8
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x78
cmove rdi, rcx
mov eax, dword [rsi + 0x30]
bt rax, 0xe
jae 0x140097bfd
cmp qword [r14 + 0x48], rcx
je 0x140097bfd
test rdi, rdi
je 0x140097bfd
mov r9, r12
mov qword [rsp + 0x20], rbp
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.14009d12c
xor ecx, ecx
test byte [r13 + 8], 0xf
je 0x140097c15
test rdi, rdi
jne 0x140097c1e
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x140097cb4
test rdi, rdi
je 0x140097ccb
mov qword [rsp + 0x80], rcx
lea rax, [rsp + 0x80]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r9b, 0x41
mov r8b, 1
mov rdx, rdi
call fcn.14007d150
xor ecx, ecx
test eax, eax
jne 0x140097e4f
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x140097c80
mov r9, r12
mov qword [rsp + 0x20], rbp
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.14009d12c
xor ecx, ecx
test rdi, rdi
je 0x140097ccb
mov eax, 0x2400
test word [rdi + 8], ax
jne 0x140097c90
cmp dword [rdi + 0x20], ecx
je 0x140097c98
mov rcx, rdi
call fcn.14007c458
mov rcx, qword [rdi + 0x28]
mov rdx, rdi
call fcn.14005fd68
jmp 0x140097ccb
test byte [r13 + 0x12], 0x40
je 0x140097ccb
lea r8, str.cannot_add_a_STORED_column
mov r9, r12
mov qword [rsp + 0x20], rbp
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.14009d12c
mov rax, qword [rsp + 0x88]
mov rcx, rsi
mov r8d, dword [rax + 8]
mov rdx, qword [rax]
call fcn.1400602e8
xor r8d, r8d
mov rdi, rax
test rax, rax
je 0x140097d4f
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 8]
dec edx
add rdx, rax
jmp 0x140097d1a
cmp byte [rdx], 0x3b
je 0x140097d14
movzx eax, byte [rdx]
lea rcx, [0x1401effb0]
test byte [rax + rcx], 1
je 0x140097d1f
mov byte [rdx], r8b
dec rdx
cmp rdx, rdi
ja 0x140097cff
mov r9d, dword [r14 + 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], rbp
mov r8, r12
mov dword [rsp + 0x28], r9d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.14009d12c
mov rdx, rdi
mov rcx, rsi
call fcn.14005fd68
mov rcx, rbx
call fcn.1400b7018
mov rsi, rax
test rax, rax
je 0x140097e4f
mov cl, byte [rbx + 0x1f]
test cl, cl
jne 0x140097d72
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x140097d81
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0xc8]
mov r9d, edi
mov dword [rsp + 0x20], 2
mov r8d, r15d
mov edx, 0x61
mov rcx, rsi
call fcn.14007d9f8
mov edx, r15d
mov rcx, rsi
call fcn.14007e88c
xor ecx, ecx
mov r8d, edi
mov dword [rsp + 0x20], ecx
lea r9d, [rcx - 2]
lea edx, [rcx + 0x54]
mov rcx, rsi
call fcn.14007d9f8
mov r9d, dword [rsi + 0x98]
xor eax, eax
add r9d, 2
mov dword [rsp + 0x20], eax
mov r8d, edi
mov rcx, rsi
lea edx, [rax + 0x31]
call fcn.14007d9f8
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, r15d
mov rcx, rsi
lea edx, [r9 + 0x60]
call fcn.14007d9f8
xor esi, esi
test edi, edi
je 0x140097e15
cmp byte [rbx + 0x1f], 8
jae 0x140097e15
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xc8], edi
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, r15d
mov rcx, rbx
call fcn.1400976cc
cmp qword [r14 + 0x20], rsi
jne 0x140097e3a
test byte [r13 + 8], 0xf
je 0x140097e4f
test byte [r13 + 0x12], 0x60
je 0x140097e4f
mov r9, r12
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___w____w___WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
mov r8, rbp
mov rcx, rbx
call fcn.14009d12c
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret