Function at 0x1402056e0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
cmp dword [rcx + 0x30], 0
mov rbp, qword [rcx]
mov rbx, rcx
mov r15, rdx
jne 0x140205a0e
mov rdi, qword [rcx + 0x160]
mov rcx, rbp
mov rdx, qword [rdi + 0x60]
call fcn.140230df0
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r13d, eax
cdqe
shl rax, 5
add rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi]
lea rsi, [rax + 0x10]
movsx rax, word [rdi + 0x36]
imul rax, rax, 0x18
lea r14, [rdx + rax - 0x18]
mov dx, word [r14 + 0x10]
call fcn.14020c390
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbp
mov r12, rax
call fcn.140215a60
xor edx, edx
mov r8, qword [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rdx
mov r9, qword [rax]
mov edx, 0x1a
call fcn.140206cd0
test eax, eax
jne 0x140205a0e
mov ax, word [r14 + 0x12]
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
test al, 1
jne 0x1402057a6
cmp qword [rdi + 0x10], 0
je 0x1402057be
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140210f90
test al, 0x60
jne 0x140205887
test r12, r12
jne 0x1402057ec
test byte [r14 + 8], 0xf
je 0x1402058ab
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x40]
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x14020589c
mov rax, qword [r12 + 0x10]
cmp byte [rax], 0x79
je 0x1402057cb
test byte [rbp + 0x31], 0x40
je 0x140205823
cmp qword [rdi + 0x48], 0
je 0x140205823
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x40]
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.140225d90
xor eax, eax
mov r9d, 0x41
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rax
call fcn.140238ac0
test eax, eax
jne 0x140205a0e
cmp qword [rsp + 0x58], 0
jne 0x14020587b
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x40]
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.140225d90
mov rcx, qword [rsp + 0x58]
call fcn.140238a90
jmp 0x1402058ab
test al, 0x40
je 0x1402058ab
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x40]
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.140225d90
mov r8d, dword [r15 + 8]
mov rdx, qword [r15]
mov rcx, rbp
call fcn.14020ea40
test rax, rax
je 0x140205925
mov edx, dword [r15 + 8]
lea r8, [0x14035bc60]
dec edx
add rdx, rax
cmp rax, rdx
jae 0x1402058ec
movzx ecx, byte [rdx]
cmp cl, 0x3b
jne 0x1402058e5
dec rdx
mov byte [rdx + 1], 0
jmp 0x1402058cf
test byte [r8 + rcx], 1
jne 0x1402058dc
mov r9d, dword [rdi + 0x40]
mov r8, qword [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
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 + 0x48], rax
call fcn.140225d90
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
call fcn.14020e680
mov rcx, rbx
call fcn.140221900
mov rbp, rax
test rax, rax
je 0x140205a0e
mov rcx, rbx
mov r8d, r13d
mov edx, 0x63
call fcn.1402210e0
mov dword [rsp + 0x20], 2
mov rcx, rbp
mov r9d, eax
mov r15d, eax
call fcn.140238ce0
mov edx, r13d
mov rcx, rbp
mov r9d, 0xfffffffe
call fcn.140242ab0
mov r8d, r15d
mov edx, 0x56
mov rcx, rbp
call fcn.140238cc0
mov r8d, r15d
mov edx, 0x3b
mov rcx, rbp
mov r9d, dword [rbp + 0x90]
add r9d, 2
call fcn.140238cc0
mov r8d, r13d
mov edx, 0x64
mov rcx, rbp
mov dword [rsp + 0x20], 3
mov r9d, 2
call fcn.140238ce0
mov edx, r15d
mov rcx, rbx
call fcn.14022f7e0
mov r8d, 3
mov edx, r13d
call fcn.1401f9f90
cmp qword [rdi + 0x20], 0
jne 0x1402059e7
test byte [r14 + 8], 0xf
je 0x140205a0e
test byte [r14 + 0x12], 0x60
je 0x140205a0e
mov r9, qword [rsp + 0x40]
mov r8, rsi
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 rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140225d90
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret