Function at 0x1402126c0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
cmp dword [rcx + 0x30], 0
mov r12, qword [rcx]
mov rbx, rcx
mov r14, rdx
jne 0x140212a25
mov rdi, qword [rcx + 0x160]
mov rcx, r12
mov rdx, qword [rdi + 0x60]
call fcn.14023e3a0
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov dword [rsp + 0x54], eax
cdqe
shl rax, 5
add rax, qword [r12 + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rdi]
lea rsi, [rax + 0x10]
movsx rax, word [rdi + 0x36]
imul rax, rax, 0x18
lea r13, [rdx + rax - 0x18]
mov dx, word [r13 + 0x10]
call fcn.140219220
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x58], rax
call fcn.140222930
xor edx, edx
mov r8, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rsp + 0x20], rdx
mov r9, qword [rax]
mov edx, 0x1a
mov r15, rax
call fcn.140213ec0
test eax, eax
jne 0x140212a25
mov dx, word [r13 + 0x12]
mov r10, qword [rsp + 0x58]
test dl, 1
je 0x140212787
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
jmp 0x140212797
mov rbp, qword [rdi + 0x10]
test rbp, rbp
je 0x1402127af
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14021dcf0
test dl, 0x60
jne 0x14021288b
test r10, r10
je 0x1402127c8
mov rdx, qword [r10 + 0x10]
cmp byte [rdx], 0x79
cmovne rbp, r10
test byte [r12 + 0x31], 0x40
je 0x1402127fc
cmp qword [rdi + 0x48], 0
je 0x1402127fc
test rbp, rbp
je 0x1402127fc
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x48]
mov rcx, rbx
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1402330d0
test byte [r13 + 8], 0xf
je 0x14021281e
test rbp, rbp
jne 0x140212827
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x48]
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x1402128a1
test rbp, rbp
je 0x1402128b0
lea rdx, [rsp + 0x68]
xor eax, eax
mov r9d, 0x41
mov rcx, r12
mov qword [rsp + 0x20], rdx
mov r8d, 1
mov rdx, rbp
mov qword [rsp + 0x68], rax
call fcn.140246490
test eax, eax
jne 0x140212a25
cmp qword [rsp + 0x68], 0
jne 0x14021287f
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x48]
mov rcx, rbx
lea r8, str.Cannot_add_a_column_with_non_constant_default
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1402330d0
mov rcx, qword [rsp + 0x68]
call fcn.140246460
jmp 0x1402128b0
and dl, 0x40
je 0x1402128b0
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x48]
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.1402330d0
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, r12
call fcn.14021b710
test rax, rax
je 0x14021292e
mov edx, dword [r14 + 8]
lea r8, [0x14036a920]
dec edx
add rdx, rax
cmp rax, rdx
jb 0x140212914
mov r9d, dword [rdi + 0x40]
mov qword [rsp + 0x30], rsi
mov rcx, rbx
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 + 0x20], rax
mov r8, qword [rsp + 0x48]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x58], rax
call fcn.1402330d0
mov rdx, qword [rsp + 0x58]
mov rcx, r12
call fcn.14021b350
jmp 0x14021292e
movzx ecx, byte [rdx]
cmp cl, 0x3b
jne 0x140212925
dec rdx
mov byte [rdx + 1], 0
jmp 0x1402128d4
test byte [r8 + rcx], 1
jne 0x14021291c
jmp 0x1402128d9
mov rcx, rbx
call fcn.14022ed10
mov r12, rax
test rax, rax
je 0x140212a25
mov rcx, rbx
mov edx, 0x63
call fcn.14022e4e0
mov dword [rsp + 0x20], 2
mov r8d, dword [rsp + 0x54]
mov rcx, r12
mov r9d, eax
mov r14d, eax
call fcn.1402466b0
mov edx, dword [rsp + 0x54]
mov rcx, r12
mov r9d, 0xfffffffe
call fcn.1402503f0
mov r8d, r14d
mov edx, 0x56
mov rcx, r12
call fcn.140246690
mov r8d, r14d
mov edx, 0x3b
mov rcx, r12
mov r9d, dword [r12 + 0x90]
add r9d, 2
call fcn.140246690
mov dword [rsp + 0x20], 3
mov r8d, dword [rsp + 0x54]
mov rcx, r12
mov r9d, 2
mov edx, 0x64
call fcn.1402466b0
mov edx, r14d
mov rcx, rbx
call fcn.14023cd00
mov edx, dword [rsp + 0x54]
mov r8d, 3
call fcn.140207260
cmp qword [rdi + 0x20], 0
jne 0x1402129fe
test byte [r13 + 8], 0xf
je 0x1402129f7
test byte [r13 + 0x12], 0x60
jne 0x1402129fe
test byte [r15 + 0x32], 1
je 0x140212a25
mov r9, qword [rsp + 0x48]
mov r8, rsi
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, rbx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1402330d0
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret