Function at 0x14010e490
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push r13
sub rsp, 0x68
cmp dword [rcx + 0x30], 0
mov rbx, rcx
mov r13, qword [rcx]
jne 0x14010e9ac
mov qword [rax + 0x20], rbp
xor edx, edx
mov qword [rax - 0x18], rsi
mov esi, 0xffff8000
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r14
mov r14, qword [rcx + 0x148]
mov qword [rax - 0x38], r15
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x14010e4fb
mov rax, qword [r13 + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x14010e4fb
nop dword [rax + rax]
inc esi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14010e4f0
mov rax, qword [r13 + 0x20]
mov rbp, qword [r14]
movsxd rcx, esi
add rbp, 0x10
shl rcx, 5
mov qword [rsp + 0x58], rdi
mov r12, qword [rcx + rax]
movsx rax, word [r14 + 0x36]
lea r15, [rax + rax*2]
mov rax, qword [r14 + 8]
lea r15, [r15 - 3]
lea r15, [rax + r15*8]
movzx eax, word [r15 + 0x10]
mov qword [rsp + 0x90], r15
test ax, ax
jne 0x14010e542
mov rdi, rdx
jmp 0x14010e56d
cmp byte [r14 + 0x3f], dl
je 0x14010e54d
mov rdi, rdx
jmp 0x14010e56d
mov rdi, qword [r14 + 0x50]
test rdi, rdi
jne 0x14010e55b
mov rdi, rdx
jmp 0x14010e56d
cmp dword [rdi], eax
jge 0x14010e564
mov rdi, rdx
jmp 0x14010e56d
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r12
mov rdx, rbp
mov rcx, r13
call fcn.1401172c0
mov r8, r12
mov qword [rsp + 0x20], 0
mov edx, 0x1a
mov rcx, rbx
mov r9, qword [rax]
call fcn.140116ac0
test eax, eax
jne 0x14010e98b
movzx eax, word [r15 + 0x12]
test al, 1
je 0x14010e5bc
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.1400bdae0
jmp 0x14010e98b
cmp qword [r14 + 0x10], 0
je 0x14010e5d7
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.1400bdae0
jmp 0x14010e98b
test al, 0x60
jne 0x14010e790
test rdi, rdi
je 0x14010e5f4
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [r13 + 0x30]
bt rax, 0xe
jae 0x14010e629
cmp qword [r14 + 0x48], 0
je 0x14010e629
test rdi, rdi
je 0x14010e629
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.1401170f0
test byte [r15 + 8], 0xf
je 0x14010e641
test rdi, rdi
jne 0x14010e64a
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x14010e79b
test rdi, rdi
je 0x14010e7b2
xor eax, eax
mov r9b, 0x41
mov qword [rsp + 0x80], rax
mov r8b, 1
lea rax, [rsp + 0x80]
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400e6800
test eax, eax
jne 0x14010e98b
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x14010e6b6
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.1401170f0
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x14010e7b2
mov eax, 0x9000
test word [rdi + 0x14], ax
jne 0x14010e6c7
cmp dword [rdi + 0x20], 0
je 0x14010e6cf
mov rcx, rdi
call fcn.1400e5770
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14010e733
cmp rdi, qword [rcx + 0x1e0]
jae 0x14010e71f
cmp rdi, qword [rcx + 0x1d0]
jb 0x14010e700
mov rax, qword [rcx + 0x1c8]
mov qword [rdi], rax
mov qword [rcx + 0x1c8], rdi
jmp 0x14010e7b2
cmp rdi, qword [rcx + 0x1d8]
jb 0x14010e71f
mov rax, qword [rcx + 0x1b8]
mov qword [rdi], rax
mov qword [rcx + 0x1b8], rdi
jmp 0x14010e7b2
cmp qword [rcx + 0x2e8], 0
je 0x14010e733
mov rdx, rdi
call fcn.1400b8f90
jmp 0x14010e7b2
cmp dword [0x1406633c0], 0
je 0x14010e785
mov rcx, qword [0x14099ba28]
test rcx, rcx
je 0x14010e74e
call qword [0x140663440]
mov rcx, rdi
call qword [0x1406633f8]
dec qword [0x14099b828]
movsxd rcx, eax
sub qword [0x14099b7e0], rcx
mov rcx, rdi
call qword [0x1406633e8]
mov rcx, qword [0x14099ba28]
test rcx, rcx
je 0x14010e7b2
call qword [0x140663450]
jmp 0x14010e7b2
mov rcx, rdi
call qword [0x1406633e8]
jmp 0x14010e7b2
test al, 0x40
je 0x14010e7b2
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.1401170f0
mov rax, qword [rsp + 0x88]
mov r15d, dword [rax + 8]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14010e868
lea rdx, [r15 + 1]
mov rcx, r13
call fcn.1400b9520
mov rdi, rax
test rax, rax
je 0x14010e868
mov rdx, qword [rsp + 0x80]
mov r8d, r15d
mov rcx, rax
call fcn.1405e55e0
mov rdx, qword [rsp + 0x88]
mov byte [rdi + r15], 0
mov ecx, dword [rdx + 8]
dec ecx
add rcx, rdi
cmp rcx, rdi
jbe 0x14010e838
lea rdx, [0x1406323e0]
nop
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x14010e82d
test byte [rax + rdx], 1
je 0x14010e838
mov byte [rcx], 0
dec rcx
cmp rcx, rdi
ja 0x14010e820
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.1401170f0
mov rdx, rdi
mov rcx, r13
call fcn.1400b9000
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x14010e89b
cmp qword [rbx + 0x98], rdi
jne 0x14010e887
mov rax, qword [rbx]
test byte [rax + 0x60], 8
jne 0x14010e887
mov byte [rbx + 0x23], 1
mov rcx, rbx
call fcn.1400e6f90
mov rdi, rax
test rax, rax
je 0x14010e98b
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14010e8ac
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x14010e8bc
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xd0]
mov r9d, r15d
mov dword [rsp + 0x20], 2
mov r8d, esi
mov edx, 0x63
mov rcx, rdi
call fcn.1400e7570
mov eax, dword [rdi + 0xcc]
mov r9d, 0xfffffffe
bts eax, esi
mov r8d, r15d
mov rcx, rdi
mov dword [rdi + 0xcc], eax
lea edx, [r9 + 0x58]
call fcn.1400e76c0
mov r9d, dword [rdi + 0x90]
mov r8d, r15d
add r9d, 2
mov edx, 0x3b
mov rcx, rdi
call fcn.1400e76c0
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, esi
mov rcx, rdi
lea edx, [r9 + 0x62]
call fcn.1400e7570
test r15d, r15d
je 0x14010e94b
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14010e94b
mov dword [rbx + rax*4 + 0xd0], r15d
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, esi
mov rcx, rbx
call fcn.14010def0
cmp qword [r14 + 0x20], 0
jne 0x14010e976
mov rax, qword [rsp + 0x90]
test byte [rax + 8], 0xf
je 0x14010e98b
test byte [rax + 0x12], 0x60
je 0x14010e98b
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__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
mov r8, rbp
mov rcx, rbx
call fcn.1401170f0
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x98]
mov r15, qword [rsp + 0x40]
add rsp, 0x68
pop r13
pop rbx
ret