Function at 0x14007e2d0
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
push rbx
push r12
push r13
sub rsp, 0xa0
mov rax, qword [0x14018d0f0]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp dword [rcx + 0x30], 0
mov r12, rdx
mov r13, qword [rcx]
mov rbx, rcx
jne 0x14007e8a3
mov qword [r11 + 0x18], rbp
xor edx, edx
mov qword [r11 - 0x20], rsi
mov esi, 0xffff8000
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
mov r15, qword [rcx + 0x160]
mov rcx, qword [r15 + 0x60]
test rcx, rcx
je 0x14007e34b
mov rax, qword [r13 + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x14007e34b
nop word [rax + rax]
inc esi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14007e340
mov rax, qword [r13 + 0x20]
mov rbp, qword [r15]
add rbp, 0x10
movsxd rcx, esi
shl rcx, 5
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x40], rbp
mov r14, qword [rcx + rax]
movsx rax, word [r15 + 0x36]
mov qword [rsp + 0x50], r14
lea rcx, [rax + rax*2]
mov rax, qword [r15 + 8]
lea rax, [rax + rcx*8]
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x48], rax
movzx eax, word [rax + 0x10]
test ax, ax
jne 0x14007e3a0
mov rdi, rdx
jmp 0x14007e3cb
cmp byte [r15 + 0x3f], dl
je 0x14007e3ab
mov rdi, rdx
jmp 0x14007e3cb
mov rdi, qword [r15 + 0x50]
test rdi, rdi
jne 0x14007e3b9
mov rdi, rdx
jmp 0x14007e3cb
cmp dword [rdi], eax
jge 0x14007e3c2
mov rdi, rdx
jmp 0x14007e3cb
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r14
mov rdx, rbp
mov rcx, r13
call fcn.140087c20
mov r8, r14
mov qword [rsp + 0x60], rax
mov edx, 0x1a
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov r9, qword [rax]
call fcn.140087090
test eax, eax
jne 0x14007e87b
mov rcx, qword [rsp + 0x48]
movzx ecx, word [rcx + 0x12]
test cl, 1
je 0x14007e424
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.14002d760
jmp 0x14007e87b
cmp qword [r15 + 0x10], 0
je 0x14007e43f
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.14002d760
jmp 0x14007e87b
test cl, 0x60
jne 0x14007e53a
test rdi, rdi
je 0x14007e45d
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [r13 + 0x30]
bt rax, 0xe
jae 0x14007e492
cmp qword [r15 + 0x48], 0
je 0x14007e492
test rdi, rdi
je 0x14007e492
mov r9, r14
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.140087a50
mov rax, qword [rsp + 0x48]
test byte [rax + 8], 0xf
je 0x14007e4ae
test rdi, rdi
jne 0x14007e4b7
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x14007e546
test rdi, rdi
je 0x14007e55d
xor eax, eax
mov r9b, 0x41
mov qword [rsp + 0x68], rax
mov r8b, 1
lea rax, [rsp + 0x68]
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140056fc0
test eax, eax
jne 0x14007e87b
mov rdi, qword [rsp + 0x68]
test rdi, rdi
jne 0x14007e513
mov r9, r14
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.140087a50
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007e55d
mov eax, 0x9000
test word [rdi + 0x14], ax
jne 0x14007e524
cmp dword [rdi + 0x20], 0
je 0x14007e52c
mov rcx, rdi
call fcn.140055f70
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
call fcn.140029880
jmp 0x14007e55d
test cl, 0x40
je 0x14007e55d
lea r8, str.cannot_add_a_STORED_column
mov r9, r14
mov qword [rsp + 0x20], rbp
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.140087a50
mov r14, qword [r12]
mov ebp, dword [r12 + 8]
test r14, r14
je 0x14007e601
lea rdx, [rbp + 1]
mov rcx, r13
call fcn.140029d80
mov rdi, rax
test rax, rax
je 0x14007e601
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call fcn.14011cdf0
mov byte [rdi + rbp], 0
mov ecx, dword [r12 + 8]
dec ecx
add rcx, rdi
cmp rcx, rdi
jbe 0x14007e5c8
lea rdx, [0x1401681f0]
nop dword [rax + rax]
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x14007e5bd
test byte [rax + rdx], 1
je 0x14007e5c8
mov byte [rcx], 0
dec rcx
cmp rcx, rdi
ja 0x14007e5b0
mov r9d, dword [r15 + 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 r12, qword [rsp + 0x40]
mov rcx, rbx
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call fcn.140087a50
mov rdx, rdi
mov rcx, r13
call fcn.140029880
jmp 0x14007e606
mov r12, qword [rsp + 0x40]
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x14007e614
mov r14, rdi
jmp 0x14007e642
cmp qword [rbx + 0xb0], 0
jne 0x14007e62b
mov rax, qword [rbx]
test byte [rax + 0x60], 8
jne 0x14007e62b
mov byte [rbx + 0x23], 1
mov rcx, rbx
call fcn.1400575b0
mov rdi, rax
mov r14, rax
test rax, rax
je 0x14007e87b
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14007e652
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x14007e661
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x14007e697
mov r9d, ebp
mov dword [rsp + 0x20], 2
mov r8d, esi
mov edx, 0x63
mov rcx, rdi
call fcn.1400578a0
add r14, 0x88
xor r8d, r8d
jmp 0x14007e6cd
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
lea r14, [rdi + 0x88]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x63
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 2
mov qword [rax + rcx*8 + 0x10], r8
mov eax, dword [rdi + 0xcc]
bts eax, esi
mov dword [rdi + 0xcc], eax
cmp esi, 1
je 0x14007e707
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rsp + 0x58]
mov rax, qword [rcx + rax + 8]
cmp byte [rax + 0x11], 0
je 0x14007e707
mov eax, dword [rdi + 0xd0]
bts eax, esi
mov dword [rdi + 0xd0], eax
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x14007e735
mov r9d, 0xfffffffe
mov dword [rsp + 0x20], r8d
mov r8d, ebp
mov rcx, rdi
lea edx, [r9 + 0x58]
call fcn.1400578a0
xor r8d, r8d
jmp 0x14007e762
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x56
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rdi + 0x90]
lea edx, [rcx + 2]
cmp dword [rdi + 0x94], ecx
jg 0x14007e791
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, ebp
mov edx, 0x3b
mov rcx, rdi
call fcn.1400578a0
xor r8d, r8d
jmp 0x14007e7ba
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x3b
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x14007e7e8
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, esi
mov rcx, rdi
lea edx, [r9 + 0x62]
call fcn.1400578a0
jmp 0x14007e818
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x64
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], 2
mov dword [rax + rcx*8 + 0xc], 3
mov qword [rax + rcx*8 + 0x10], r8
test ebp, ebp
je 0x14007e82e
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14007e82e
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, esi
mov rcx, rbx
call fcn.14007dc90
cmp qword [r15 + 0x20], 0
jne 0x14007e864
mov rax, qword [rsp + 0x48]
test byte [rax + 8], 0xf
je 0x14007e856
test byte [rax + 0x12], 0x60
jne 0x14007e864
mov rax, qword [rsp + 0x60]
test dword [rax + 0x30], 0x10000
je 0x14007e87b
mov r9, qword [rsp + 0x50]
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, r12
mov rcx, rbx
call fcn.140087a50
mov rdi, qword [rsp + 0x90]
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xd0]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14011a7e0
add rsp, 0xa0
pop r13
pop r12
pop rbx
ret