Function at 0x14076bc40
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 0x14076bfb2
mov rsi, qword [rcx + 0x160]
mov rdi, qword [rcx]
mov r8, qword [rsi + 0x60]
mov rcx, qword [rdi + 0x20]
test r8, r8
je 0x14076c180
cmp r8, qword [rcx + 0x18]
je 0x14076c088
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 0x14076bc98
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 0x14076bfc8
cmp byte [rsi + 0x3f], 0
jne 0x14076bfc8
mov r10, qword [rsi + 0x50]
test r10, r10
je 0x14076bd07
cmp dword [r10], eax
jl 0x14076bfc8
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 fcn.1406e65b0
mov r8, r14
mov edx, 0x1a
mov rcx, r13
mov qword [rsp + 0x20], 0
mov r9, qword [rax]
mov qword [rsp + 0x50], rax
call fcn.1406cdff0
test eax, eax
jne 0x14076bfb2
movzx eax, word [r15 + 0x12]
mov r10, qword [rsp + 0x48]
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
test al, 1
jne 0x14076bfd7
cmp qword [rsi + 0x10], 0
jne 0x14076bfd0
test al, 0x60
je 0x14076bff0
test al, 0x40
jne 0x14076c114
mov rax, qword [rsp + 0x40]
mov r9, qword [rax]
test r9, r9
mov qword [rsp + 0x48], r9
je 0x14076be45
mov r8d, dword [rax + 8]
mov rcx, rdi
lea rdx, [r8 + 1]
mov qword [rsp + 0x58], r8
call fcn.1406bbba0
test rax, rax
je 0x14076be45
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rax
mov rdx, r9
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x58]
lea rcx, [0x140bcc600]
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 0x14076be0b
nop word [rax + rax]
movzx edx, byte [rax]
cmp dl, 0x3b
je 0x14076bdfe
test byte [rcx + rdx], 1
je 0x14076be0b
sub rax, 1
mov byte [rax + 1], 0
cmp rax, r10
jne 0x14076bdf0
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 fcn.140767290
mov r10, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r10
call fcn.1406abfe0
mov rdi, qword [r13 + 0x10]
test rdi, rdi
je 0x14076bf90
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x14076c103
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 fcn.1406c9b90
mov eax, 1
mov ecx, r12d
mov r10d, dword [rsp + 0x40]
shl eax, cl
or dword [rdi + 0xcc], eax
cmp r12d, 1
je 0x14076bec2
mov rdx, qword [rdi]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + rbx + 8]
cmp byte [rdx + 0x11], 0
jne 0x14076c0e4
mov r8d, r10d
mov edx, 0x56
mov rcx, rdi
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x20], 0
mov r9d, 0xfffffffe
call fcn.1406c9b90
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 fcn.1406c9b90
mov r8d, r12d
mov edx, 0x64
mov rcx, rdi
mov dword [rsp + 0x20], 3
mov r9d, 2
call fcn.1406c9b90
mov r10d, dword [rsp + 0x40]
test r10d, r10d
je 0x14076bf41
movzx eax, byte [r13 + 0x1f]
cmp al, 7
jbe 0x14076c0ef
cmp qword [r13 + 0x10], 0
je 0x14076bf59
mov r8d, 3
mov edx, r12d
mov rcx, r13
call fcn.1406cb530
cmp qword [rsi + 0x20], 0
je 0x14076c090
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 fcn.140767290
cmp qword [r13 + 0xb0], 0
je 0x14076c137
mov rcx, r13
call fcn.1406c9c00
mov rdi, rax
test rax, rax
jne 0x14076be52
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r10d, r10d
jmp 0x14076bd07
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.1406bb9a0
test r10, r10
je 0x14076c0b6
mov rax, qword [r10 + 0x10]
cmp byte [rax], 0x79
je 0x14076c0b6
test byte [rdi + 0x31], 0x40
je 0x14076c03b
cmp qword [rsi + 0x48], 0
je 0x14076c03b
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 fcn.140767290
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 fcn.1406d8cf0
test eax, eax
jne 0x14076bfb2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14076c14f
call fcn.1406b3590
jmp 0x14076bd77
xor ebx, ebx
jmp 0x14076bcb3
test byte [r15 + 8], 0xf
je 0x14076c0a2
test byte [r15 + 0x12], 0x60
jne 0x14076bf64
mov rax, qword [rsp + 0x50]
test byte [rax + 0x32], 1
je 0x14076bfb2
jmp 0x14076bf64
test byte [r15 + 8], 0xf
je 0x14076bd77
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.140767290
jmp 0x14076bd77
or dword [rdi + 0xd0], eax
jmp 0x14076bec2
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe8], r10d
jmp 0x14076bf41
mov eax, dword [r13 + 0x38]
lea r10d, [rax + 1]
mov dword [r13 + 0x38], r10d
jmp 0x14076be71
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.140767290
jmp 0x14076bd77
mov rax, qword [r13]
test byte [rax + 0x60], 8
jne 0x14076bf9e
mov byte [r13 + 0x23], 1
jmp 0x14076bf9e
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.140767290
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14076bd77
jmp 0x14076c07b
sub rcx, 0x100000
mov rbx, 0xfffffffffff00000
mov r12d, 0xffff8000
jmp 0x14076bcb3