Function at 0x18005c420
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbx
push rbp
push r14
sub rsp, 0x60
cmp dword [rcx + 0x30], 0
mov rbp, qword [rcx]
mov r14, rdx
mov rbx, rcx
jne 0x18005c87e
mov qword [rax + 0x10], rsi
mov qword [rax - 0x28], r12
mov r12, qword [rcx + 0x158]
mov rcx, qword [r12 + 0x60]
xor edx, edx
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r15
mov esi, 0xffff8000
test rcx, rcx
je 0x18005c480
mov rax, qword [rbp + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x18005c480
add rax, 0x20
inc esi
cmp qword [rax], rcx
jne 0x18005c475
mov rax, qword [rbp + 0x20]
mov r13, qword [r12]
movsxd rcx, esi
shl rcx, 5
add r13, 0x10
mov qword [rsp + 0x58], rdi
mov r15, qword [rcx + rax]
movsx eax, word [r12 + 0x36]
mov rcx, qword [r12 + 8]
dec eax
mov qword [rsp + 0x98], rcx
cdqe
lea rax, [rax + rax*2]
mov qword [rsp + 0x90], rax
movzx ecx, word [rcx + rax*8 + 0x10]
test cx, cx
jne 0x18005c4ce
mov rdi, rdx
jmp 0x18005c501
cmp byte [r12 + 0x3f], dl
je 0x18005c4da
mov rdi, rdx
jmp 0x18005c501
mov rdi, qword [r12 + 0x50]
test rdi, rdi
jne 0x18005c4e9
mov rdi, rdx
jmp 0x18005c501
movzx eax, cx
cmp dword [rdi], eax
jge 0x18005c4f5
mov rdi, rdx
jmp 0x18005c501
movzx eax, cx
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r15
mov rdx, r13
mov rcx, rbp
call fcn.180064c90
mov r8, r15
mov edx, 0x1a
mov r9, qword [rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.1800642a0
test eax, eax
jne 0x18005c862
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
movzx eax, word [rcx + rax*8 + 0x12]
test al, 1
je 0x18005c560
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.18000fdc0
jmp 0x18005c862
cmp qword [r12 + 0x10], 0
je 0x18005c57c
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.18000fdc0
jmp 0x18005c862
test al, 0x60
jne 0x18005c673
test rdi, rdi
je 0x18005c599
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [rbp + 0x30]
bt rax, 0xe
jae 0x18005c5d6
cmp qword [r12 + 0x48], 0
je 0x18005c5d6
test rdi, rdi
je 0x18005c5d6
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r15
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.180064ba0
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
test byte [rcx + rax*8 + 8], 0xf
je 0x18005c5f6
test rdi, rdi
jne 0x18005c5ff
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x18005c67e
test rdi, rdi
je 0x18005c695
xor eax, eax
mov qword [rsp + 0x80], rax
test rdi, rdi
je 0x18005c646
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov r9b, 0x41
mov r8b, 1
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1800349d0
test eax, eax
jne 0x18005c862
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x18005c66c
lea r8, str.Cannot_add_a_column_with_non_constant_default
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r15
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.180064ba0
mov rcx, qword [rsp + 0x80]
call fcn.180034e60
jmp 0x18005c695
test al, 0x40
je 0x18005c695
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r15
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.180064ba0
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, rbp
call fcn.18000c780
mov rdi, rax
test rax, rax
je 0x18005c70d
mov edx, dword [r14 + 8]
dec edx
add rdx, rax
cmp rdx, rax
jbe 0x18005c6dc
lea rcx, [0x180144d90]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x18005c6d1
movzx eax, al
test byte [rax + rcx], 1
je 0x18005c6dc
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x18005c6c1
mov r9d, dword [r12 + 0x40]
mov qword [rsp + 0x30], r13
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 r8, r15
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.180064ba0
mov rdx, rdi
mov rcx, rbp
call fcn.18000c110
mov rcx, rbx
call fcn.18008ce00
mov rdi, rax
test rax, rax
je 0x18005c862
movzx ecx, byte [rbx + 0x1f]
test cl, cl
jne 0x18005c731
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x18005c740
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe0]
mov r9d, ebp
mov r8d, esi
mov edx, 0x63
mov rcx, rdi
mov dword [rsp + 0x20], 2
call fcn.180035470
mov edx, esi
mov rcx, rdi
call fcn.180036d80
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x18005c790
xor eax, eax
mov r8d, ebp
mov rcx, rdi
lea r9d, [rax - 2]
lea edx, [rax + 0x56]
mov dword [rsp + 0x20], eax
call fcn.180035350
xor edx, edx
jmp 0x18005c7c2
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor edx, edx
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov dword [rax + rcx*8], 0x56
mov r9d, dword [rdi + 0x90]
mov dword [rsp + 0x20], edx
mov r8d, ebp
mov edx, 0x3b
mov rcx, rdi
add r9d, 2
call fcn.180035470
mov r9d, 2
mov r8d, esi
lea edx, [r9 + 0x62]
mov rcx, rdi
mov dword [rsp + 0x20], 3
call fcn.180035470
test ebp, ebp
je 0x18005c817
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x18005c817
movzx eax, al
mov dword [rbx + rax*4 + 0xe0], ebp
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, esi
mov rcx, rbx
call fcn.18005bf20
cmp qword [r12 + 0x20], 0
jne 0x18005c84d
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
test byte [rcx + rax*8 + 8], 0xf
je 0x18005c862
test byte [rcx + rax*8 + 0x12], 0x60
je 0x18005c862
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 r9, r15
mov r8, r13
mov rcx, rbx
call fcn.180064ba0
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret