Function at 0x140201fb0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r12d, dword [rcx + 0x30]
mov qword [rsp + 0x40], rdx
mov r13, rcx
test r12d, r12d
jne 0x140202322
mov rsi, qword [rcx + 0x160]
mov rdi, qword [rcx]
mov r8, qword [rsi + 0x60]
mov rcx, qword [rdi + 0x20]
test r8, r8
je 0x1402024f0
cmp r8, qword [rcx + 0x18]
je 0x1402023f8
lea rdx, [rcx + 0x20]
mov eax, 1
nop dword [rax + rax]
mov rbx, rax
mov rcx, rdx
mov r12d, eax
add rdx, 0x20
shl rbx, 5
add rax, 1
cmp r8, qword [rcx + 0x18]
jne 0x140202008
mov rax, qword [rsi]
mov r14, qword [rcx]
lea rbp, [rax + 0x10]
movsx rax, word [rsi + 0x36]
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea r15, [rax + rdx*8 - 0x18]
movzx eax, word [r15 + 0x10]
test ax, ax
je 0x140202338
cmp byte [rsi + 0x3f], 0
jne 0x140202338
mov r10, qword [rsi + 0x50]
test r10, r10
je 0x140202077
cmp dword [r10], eax
jl 0x140202338
sub eax, 1
cdqe
shl rax, 5
mov r10, qword [r10 + rax + 8]
mov r8, r14
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x48], r10
call dbg.sqlite3FindTable
mov r8, r14
mov edx, 0x1a
mov rcx, r13
mov qword [rsp + 0x20], 0
mov r9, qword [rax]
mov qword [rsp + 0x50], rax
call dbg.sqlite3AuthCheck
test eax, eax
jne 0x140202322
movzx eax, word [r15 + 0x12]
mov r10, qword [rsp + 0x48]
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
test al, 1
jne 0x140202347
cmp qword [rsi + 0x10], 0
jne 0x140202340
test al, 0x60
je 0x140202360
test al, 0x40
jne 0x140202484
mov rax, qword [rsp + 0x40]
mov r9, qword [rax]
test r9, r9
mov qword [rsp + 0x48], r9
je 0x1402021b5
mov r8d, dword [rax + 8]
mov rcx, rdi
lea rdx, [r8 + 1]
mov qword [rsp + 0x58], r8
call sym.sqlite3DbMallocRawNN
test rax, rax
je 0x1402021b5
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rax
mov rdx, r9
call sym.memcpy
mov r8, qword [rsp + 0x58]
lea rcx, [0x14039f7a0]
mov r10, rax
mov byte [rax + r8], 0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
sub eax, 1
add rax, r10
cmp rax, r10
jbe 0x14020217b
nop word [rax + rax]
movzx edx, byte [rax]
cmp dl, 0x3b
je 0x14020216e
test byte [rcx + rdx], 1
je 0x14020217b
sub rax, 1
mov byte [rax + 1], 0
cmp rax, r10
jne 0x140202160
mov r9d, dword [rsi + 0x40]
mov qword [rsp + 0x20], r10
mov rcx, r13
mov r8, r14
mov qword [rsp + 0x30], rbp
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 dword [rsp + 0x28], r9d
mov qword [rsp + 0x40], r10
call dbg.sqlite3NestedParse
mov r10, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r10
call sym.sqlite3DbFreeNN
mov rdi, qword [r13 + 0x10]
test rdi, rdi
je 0x140202300
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x140202473
sub eax, 1
mov byte [r13 + 0x1f], al
movzx eax, al
mov r10d, dword [r13 + rax*4 + 0xe8]
mov r9d, r10d
mov rcx, rdi
mov r8d, r12d
mov edx, 0x63
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x40], r10d
call sym.sqlite3VdbeAddOp3
mov eax, 1
mov ecx, r12d
mov r10d, dword [rsp + 0x40]
shl eax, cl
or dword [rdi + 0xcc], eax
cmp r12d, 1
je 0x140202232
mov rdx, qword [rdi]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + rbx + 8]
cmp byte [rdx + 0x11], 0
jne 0x140202454
mov r8d, r10d
mov edx, 0x56
mov rcx, rdi
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x20], 0
mov r9d, 0xfffffffe
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x40]
mov edx, 0x3b
mov rcx, rdi
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x20], 0
mov r8d, r10d
lea r9d, [rax + 2]
call sym.sqlite3VdbeAddOp3
mov r8d, r12d
mov edx, 0x64
mov rcx, rdi
mov dword [rsp + 0x20], 3
mov r9d, 2
call sym.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x40]
test r10d, r10d
je 0x1402022b1
movzx eax, byte [r13 + 0x1f]
cmp al, 7
jbe 0x14020245f
cmp qword [r13 + 0x10], 0
je 0x1402022c9
mov r8d, 3
mov edx, r12d
mov rcx, r13
call sym.renameReloadSchema.part.0
cmp qword [rsi + 0x20], 0
je 0x140202400
mov r9, r14
mov r8, rbp
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, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.sqlite3NestedParse
cmp qword [r13 + 0xb0], 0
je 0x1402024a7
mov rcx, r13
call dbg.sqlite3VdbeCreate
mov rdi, rax
test rax, rax
jne 0x1402021c2
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r10d, r10d
jmp 0x140202077
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.sqlite3ErrorMsg
test r10, r10
je 0x140202426
mov rax, qword [r10 + 0x10]
cmp byte [rax], 0x79
je 0x140202426
test byte [rdi + 0x31], 0x40
je 0x1402023ab
cmp qword [rsi + 0x48], 0
je 0x1402023ab
mov qword [rsp + 0x20], rbp
mov r9, r14
mov rcx, r13
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov qword [rsp + 0x48], r10
call dbg.sqlite3NestedParse
mov r10, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov r9d, 0x41
mov rdx, r10
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov r8d, 1
mov qword [rsp + 0x68], 0
call sym.valueFromExpr.constprop.0
test eax, eax
jne 0x140202322
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402024bf
call sym.sqlite3ValueFree.part.0
jmp 0x1402020e7
xor ebx, ebx
jmp 0x140202023
test byte [r15 + 8], 0xf
je 0x140202412
test byte [r15 + 0x12], 0x60
jne 0x1402022d4
mov rax, qword [rsp + 0x50]
test byte [rax + 0x32], 1
je 0x140202322
jmp 0x1402022d4
test byte [r15 + 8], 0xf
je 0x1402020e7
mov qword [rsp + 0x20], rbp
mov r9, r14
mov rcx, r13
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call dbg.sqlite3NestedParse
jmp 0x1402020e7
or dword [rdi + 0xd0], eax
jmp 0x140202232
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe8], r10d
jmp 0x1402022b1
mov eax, dword [r13 + 0x38]
lea r10d, [rax + 1]
mov dword [r13 + 0x38], r10d
jmp 0x1402021e1
mov qword [rsp + 0x20], rbp
mov r9, r14
mov rcx, r13
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call dbg.sqlite3NestedParse
jmp 0x1402020e7
mov rax, qword [r13]
test byte [rax + 0x60], 8
jne 0x14020230e
mov byte [r13 + 0x23], 1
jmp 0x14020230e
mov qword [rsp + 0x20], rbp
mov rcx, r13
mov r9, r14
lea r8, str.Cannot_add_a_column_with_non_constant_default
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call dbg.sqlite3NestedParse
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402020e7
jmp 0x1402023eb
sub rcx, 0x100000
mov rbx, 0xfffffffffff00000
mov r12d, 0xffff8000
jmp 0x140202023