Function at 0x140191d80
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rbp
sub rsp, 0x68
cmp dword [rcx + 0x30], 0
mov rbx, rcx
mov rbp, qword [rcx]
jne 0x140192170
cmp byte [rbp + 0x63], 0
jne 0x140192170
mov qword [rax + 0x18], rsi
xor edx, edx
mov qword [rax - 0x20], r12
mov esi, 0xffff8000
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov r14, qword [rcx + 0x148]
mov qword [rax - 0x38], r15
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x140191dec
mov rax, qword [rbp + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x140191dec
inc esi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x140191de1
mov rax, qword [rbp + 0x20]
mov r15, qword [r14]
movsxd rcx, esi
add r15, 0x10
shl rcx, 5
mov qword [rsp + 0x60], rdi
mov r12, qword [rcx + rax]
movsx rax, word [r14 + 0x36]
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 8]
lea r13, [rax + rcx*8]
movzx eax, word [rax + rcx*8 - 8]
test ax, ax
jne 0x140191e27
mov rdi, rdx
jmp 0x140191e55
cmp byte [r14 + 0x3f], dl
je 0x140191e32
mov rdi, rdx
jmp 0x140191e55
mov rdi, qword [r14 + 0x50]
test rdi, rdi
jne 0x140191e40
mov rdi, rdx
jmp 0x140191e55
movzx eax, ax
cmp dword [rdi], eax
jge 0x140191e4c
mov rdi, rdx
jmp 0x140191e55
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r12
mov rdx, r15
mov rcx, rbp
call fcn.140199580
mov r8, r12
mov qword [rsp + 0x20], 0
mov edx, 0x1a
mov rcx, rbx
mov r9, qword [rax]
call fcn.140198cf0
test eax, eax
jne 0x14019214f
movzx eax, word [r13 - 6]
test al, 1
je 0x140191ea4
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.140151b10
jmp 0x14019214f
cmp qword [r14 + 0x10], 0
je 0x140191ebf
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.140151b10
jmp 0x14019214f
test al, 0x60
jne 0x140191f93
test rdi, rdi
je 0x140191edc
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x78
mov eax, 0
cmove rdi, rax
mov eax, dword [rbp + 0x30]
bt rax, 0xe
jae 0x140191f10
cmp qword [r14 + 0x48], 0
je 0x140191f10
test rdi, rdi
je 0x140191f10
mov r9, r12
mov qword [rsp + 0x20], r15
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.1401993f0
test byte [r13 - 0x10], 0xf
je 0x140191f25
test rdi, rdi
jne 0x140191f2e
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x140191f9e
test rdi, rdi
je 0x140191fb5
xor eax, eax
mov r9b, 0x41
mov qword [rsp + 0x80], rax
mov r8b, 1
lea rax, [rsp + 0x80]
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140172cc0
test eax, eax
jne 0x14019214f
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x140191f89
mov r9, r12
mov qword [rsp + 0x20], r15
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.1401993f0
mov rcx, rdi
call fcn.1401732c0
jmp 0x140191fb5
test al, 0x40
je 0x140191fb5
lea r8, str.cannot_add_a_STORED_column
mov r9, r12
mov qword [rsp + 0x20], r15
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.1401993f0
mov rax, qword [rsp + 0x88]
mov rcx, rbp
mov r8d, dword [rax + 8]
mov rdx, qword [rax]
call fcn.14014eca0
mov rdi, rax
test rax, rax
je 0x14019203b
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 8]
dec edx
add rdx, rax
cmp rdx, rax
jbe 0x14019200b
lea rcx, [0x1402121b0]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x140192000
movzx eax, al
test byte [rax + rcx], 1
je 0x14019200b
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x140191ff0
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], r15
mov r8, r12
mov dword [rsp + 0x28], r9d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.1401993f0
mov rdx, rdi
mov rcx, rbp
call fcn.14014e6a0
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x14019206e
cmp qword [rbx + 0xa0], rdi
jne 0x14019205a
mov rax, qword [rbx]
test byte [rax + 0x5c], 8
jne 0x14019205a
mov byte [rbx + 0x23], 1
mov rcx, rbx
call fcn.140173390
mov rdi, rax
test rax, rax
je 0x14019214f
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14019207e
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x14019208d
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xd8]
mov r9d, ebp
mov dword [rsp + 0x20], 2
mov r8d, esi
mov edx, 0x61
mov rcx, rdi
call fcn.140173790
mov edx, esi
mov rcx, rdi
call fcn.140174db0
mov r9d, 0xfffffffe
mov r8d, ebp
lea edx, [r9 + 0x56]
call fcn.1401738e0
mov r9d, dword [rdi + 0x98]
mov r8d, ebp
add r9d, 2
mov edx, 0x31
mov rcx, rdi
call fcn.1401738e0
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, esi
mov rcx, rdi
lea edx, [r9 + 0x60]
call fcn.140173790
test ebp, ebp
je 0x140192115
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140192115
movzx eax, al
mov dword [rbx + rax*4 + 0xd8], ebp
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, esi
mov rcx, rbx
call fcn.1401918a0
cmp qword [r14 + 0x20], 0
jne 0x14019213a
test byte [r13 - 0x10], 0xf
je 0x14019214f
test byte [r13 - 6], 0x60
je 0x14019214f
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, r15
mov rcx, rbx
call fcn.1401993f0
mov rdi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
add rsp, 0x68
pop rbp
pop rbx
ret