Function at 0x140076374
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 [0x140162100]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rcx]
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x40], rdx
cmp dword [rcx + 0x30], eax
jne 0x1400766f1
mov rsi, qword [rcx + 0x160]
mov r15d, 0xffff8000
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x1400763dc
mov r15d, eax
mov rax, qword [r14 + 0x20]
add rax, 0x18
jmp 0x1400763d7
inc r15d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1400763d0
mov rax, qword [r14 + 0x20]
mov rbp, qword [rsi]
movsxd rcx, r15d
add rbp, 0x10
shl rcx, 5
mov r12, qword [rcx + rax]
movsx rax, word [rsi + 0x36]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea r13, [rax + rcx*8]
mov rcx, rsi
lea rdx, [r13 - 0x18]
call fcn.14007c44c
mov rcx, r14
mov r8, r12
mov rdx, rbp
mov rdi, rax
call fcn.14007bc28
test byte [r13 - 6], 1
mov qword [rsp + 0x48], rax
je 0x140076440
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.1400408f0
jmp 0x1400766f1
xor ecx, ecx
cmp qword [rsi + 0x10], rcx
je 0x140076451
lea rdx, str.Cannot_add_a_UNIQUE_column
jmp 0x140076433
test byte [r13 - 6], 0x60
jne 0x140076544
test rdi, rdi
je 0x14007646c
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
cmove rdi, rcx
mov eax, dword [r14 + 0x30]
bt rax, 0xe
jae 0x1400764a2
cmp qword [rsi + 0x48], rcx
je 0x1400764a2
test rdi, rdi
je 0x1400764a2
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.14007bad8
xor ecx, ecx
test byte [r13 - 0x10], 0xf
je 0x1400764ba
test rdi, rdi
jne 0x1400764c3
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x140076552
test rdi, rdi
je 0x140076569
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, rdi
call fcn.14005c42c
test eax, eax
jne 0x1400766f1
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x14007651d
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.14007bad8
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140076569
mov eax, 0x9000
test word [rdi + 0x14], ax
jne 0x14007652e
cmp dword [rdi + 0x20], 0
je 0x140076536
mov rcx, rdi
call fcn.14005b718
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
call fcn.14003d8f4
jmp 0x140076569
test byte [r13 - 6], 0x40
je 0x140076569
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.14007bad8
mov rax, qword [rsp + 0x40]
mov rcx, r14
mov r8d, dword [rax + 8]
mov rdx, qword [rax]
call fcn.14003de44
mov rdi, rax
test rax, rax
je 0x1400765e4
mov rdx, qword [rsp + 0x40]
mov edx, dword [rdx + 8]
dec edx
add rdx, rax
jmp 0x1400765af
cmp byte [rdx], 0x3b
je 0x1400765a9
movzx eax, byte [rdx]
lea rcx, [0x140140310]
test byte [rax + rcx], 1
je 0x1400765b4
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x140076594
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], rbp
mov r8, r12
mov dword [rsp + 0x28], r9d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.14007bad8
mov rdx, rdi
mov rcx, r14
call fcn.14003d8f4
mov rcx, rbx
call fcn.140097108
mov r14, rax
test rax, rax
je 0x1400766f1
mov cl, byte [rbx + 0x1f]
test cl, cl
jne 0x140076607
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x140076616
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0xe8]
mov r9d, edi
mov dword [rsp + 0x20], 2
mov r8d, r15d
mov edx, 0x63
mov rcx, r14
call fcn.14005cb90
mov edx, r15d
mov rcx, r14
call fcn.14005db70
and dword [rsp + 0x20], 0
mov r9d, 0xfffffffe
mov r8d, edi
lea edx, [r9 + 0x58]
call fcn.14005cb90
mov r9d, dword [r14 + 0x90]
mov r8d, edi
and dword [rsp + 0x20], 0
add r9d, 2
mov edx, 0x3b
mov rcx, r14
call fcn.14005cb90
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, r15d
mov rcx, r14
lea edx, [r9 + 0x62]
call fcn.14005cb90
test edi, edi
je 0x1400766a8
cmp byte [rbx + 0x1f], 8
jae 0x1400766a8
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xe8], edi
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, r15d
mov rcx, rbx
call fcn.140075f98
cmp qword [rsi + 0x20], 0
jne 0x1400766dc
test byte [r13 - 0x10], 0xf
je 0x1400766ce
test byte [r13 - 6], 0x60
jne 0x1400766dc
mov rax, qword [rsp + 0x48]
test dword [rax + 0x30], 0x10000
je 0x1400766f1
mov r9, r12
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, rbp
mov rcx, rbx
call fcn.14007bad8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f7bc0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret