Function at 0x14021cae0
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 + 0x48], rdx
mov r13, rcx
test r12d, r12d
jne 0x14021ce4a
mov rsi, qword [rcx + 0x150]
mov rdi, qword [rcx]
mov r8, qword [rsi + 0x60]
mov rcx, qword [rdi + 0x20]
test r8, r8
je 0x14021d018
cmp r8, qword [rcx + 0x18]
je 0x14021cf28
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 0x14021cb38
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 0x14021ce60
cmp byte [rsi + 0x3f], 0
jne 0x14021ce60
mov r11, qword [rsi + 0x50]
test r11, r11
je 0x14021cba7
cmp dword [r11], eax
jl 0x14021ce60
sub eax, 1
cdqe
shl rax, 5
mov r11, qword [r11 + rax + 8]
mov r8, r14
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x50], r11
call fcn.14019e3d0
mov r8, r14
mov edx, 0x1a
mov rcx, r13
mov qword [rsp + 0x20], 0
mov r9, qword [rax]
call fcn.1401865d0
test eax, eax
jne 0x14021ce4a
movzx eax, word [r15 + 0x12]
mov r11, qword [rsp + 0x50]
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
test al, 1
jne 0x14021ce77
cmp qword [rsi + 0x10], 0
jne 0x14021ce70
test al, 0x60
je 0x14021ce90
test al, 0x40
jne 0x14021cfa9
mov rax, qword [rsp + 0x48]
mov r9, qword [rax]
test r9, r9
mov qword [rsp + 0x50], r9
je 0x14021ccdd
mov r8d, dword [rax + 8]
mov rcx, rdi
lea rdx, [r8 + 1]
mov qword [rsp + 0x58], r8
call fcn.140174530
test rax, rax
je 0x14021ccdd
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rcx, rax
mov rdx, r9
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x58]
lea rcx, [0x1403cfaa0]
mov r11, rax
mov byte [rax + r8], 0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
sub eax, 1
add rax, r11
cmp rax, r11
jbe 0x14021cca3
nop word [rax + rax]
movzx edx, byte [rax]
cmp dl, 0x3b
je 0x14021cc96
test byte [rcx + rdx], 1
je 0x14021cca3
sub rax, 1
mov byte [rax + 1], 0
cmp rax, r11
jne 0x14021cc88
mov r9d, dword [rsi + 0x40]
mov qword [rsp + 0x20], r11
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 + 0x48], r11
call fcn.1402181a0
mov r11, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, r11
call fcn.140165990
mov rdi, qword [r13 + 0x10]
test rdi, rdi
je 0x14021ce28
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x14021cf98
sub eax, 1
mov byte [r13 + 0x1f], al
movzx eax, al
mov r10d, dword [r13 + rax*4 + 0xd8]
mov r9d, r10d
mov rcx, rdi
mov r8d, r12d
mov edx, 0x63
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x48], r10d
call fcn.140181750
mov eax, 1
mov ecx, r12d
mov r10d, dword [rsp + 0x48]
shl eax, cl
or dword [rdi + 0xcc], eax
cmp r12d, 1
je 0x14021cd5a
mov rdx, qword [rdi]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + rbx + 8]
cmp byte [rdx + 0x11], 0
jne 0x14021cf79
mov r8d, r10d
mov edx, 0x56
mov rcx, rdi
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x20], 0
mov r9d, 0xfffffffe
call fcn.140181750
mov r10d, dword [rsp + 0x48]
mov edx, 0x31
mov rcx, rdi
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x20], 0
mov r8d, r10d
lea r9d, [rax + 2]
call fcn.140181750
mov r8d, r12d
mov edx, 0x64
mov rcx, rdi
mov dword [rsp + 0x20], 3
mov r9d, 2
call fcn.140181750
mov r10d, dword [rsp + 0x48]
test r10d, r10d
je 0x14021cdd9
movzx eax, byte [r13 + 0x1f]
cmp al, 7
jbe 0x14021cf84
cmp qword [r13 + 0x10], 0
je 0x14021cdf1
mov r8d, 3
mov edx, r12d
mov rcx, r13
call fcn.1401833f0
cmp qword [rsi + 0x20], 0
je 0x14021cf30
mov r9, r14
mov r8, rbp
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, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1402181a0
cmp qword [r13 + 0xa0], 0
je 0x14021cfcc
mov rcx, r13
call fcn.1401817c0
mov rdi, rax
test rax, rax
jne 0x14021ccea
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r11d, r11d
jmp 0x14021cba7
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 fcn.140174330
test r11, r11
je 0x14021cf4b
mov rax, qword [r11 + 0x10]
cmp byte [rax], 0x79
je 0x14021cf4b
test byte [rdi + 0x31], 0x40
je 0x14021cedb
cmp qword [rsi + 0x48], 0
je 0x14021cedb
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 + 0x50], r11
call fcn.1402181a0
mov r11, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov r9d, 0x41
mov rdx, r11
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov r8d, 1
mov qword [rsp + 0x68], 0
call fcn.140191920
test eax, eax
jne 0x14021ce4a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14021cfe4
call fcn.14016cc80
jmp 0x14021cc12
xor ebx, ebx
jmp 0x14021cb53
test byte [r15 + 8], 0xf
je 0x14021ce4a
test byte [r15 + 0x12], 0x60
je 0x14021ce4a
jmp 0x14021cdfc
test byte [r15 + 8], 0xf
je 0x14021cc12
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 fcn.1402181a0
jmp 0x14021cc12
or dword [rdi + 0xd0], eax
jmp 0x14021cd5a
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xd8], r10d
jmp 0x14021cdd9
mov eax, dword [r13 + 0x38]
lea r10d, [rax + 1]
mov dword [r13 + 0x38], r10d
jmp 0x14021cd09
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 fcn.1402181a0
jmp 0x14021cc12
mov rax, qword [r13]
test byte [rax + 0x60], 8
jne 0x14021ce36
mov byte [r13 + 0x23], 1
jmp 0x14021ce36
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 fcn.1402181a0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14021cc12
jmp 0x14021cf1b
sub rcx, 0x100000
mov rbx, 0xfffffffffff00000
mov r12d, 0xffff8000
jmp 0x14021cb53