Function at 0x18005b700
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 0x18005bb5e
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 0x18005b760
mov rax, qword [rbp + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x18005b760
add rax, 0x20
inc esi
cmp qword [rax], rcx
jne 0x18005b755
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 0x18005b7ae
mov rdi, rdx
jmp 0x18005b7e1
cmp byte [r12 + 0x3f], dl
je 0x18005b7ba
mov rdi, rdx
jmp 0x18005b7e1
mov rdi, qword [r12 + 0x50]
test rdi, rdi
jne 0x18005b7c9
mov rdi, rdx
jmp 0x18005b7e1
movzx eax, cx
cmp dword [rdi], eax
jge 0x18005b7d5
mov rdi, rdx
jmp 0x18005b7e1
movzx eax, cx
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r15
mov rdx, r13
mov rcx, rbp
call fcn.180063f70
mov r8, r15
mov edx, 0x1a
mov r9, qword [rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.180063580
test eax, eax
jne 0x18005bb42
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
movzx eax, word [rcx + rax*8 + 0x12]
test al, 1
je 0x18005b840
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.18000f0b0
jmp 0x18005bb42
cmp qword [r12 + 0x10], 0
je 0x18005b85c
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.18000f0b0
jmp 0x18005bb42
test al, 0x60
jne 0x18005b953
test rdi, rdi
je 0x18005b879
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [rbp + 0x30]
bt rax, 0xe
jae 0x18005b8b6
cmp qword [r12 + 0x48], 0
je 0x18005b8b6
test rdi, rdi
je 0x18005b8b6
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.180063e80
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
test byte [rcx + rax*8 + 8], 0xf
je 0x18005b8d6
test rdi, rdi
jne 0x18005b8df
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x18005b95e
test rdi, rdi
je 0x18005b975
xor eax, eax
mov qword [rsp + 0x80], rax
test rdi, rdi
je 0x18005b926
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.180033d40
test eax, eax
jne 0x18005bb42
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x18005b94c
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.180063e80
mov rcx, qword [rsp + 0x80]
call fcn.1800341d0
jmp 0x18005b975
test al, 0x40
je 0x18005b975
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.180063e80
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, rbp
call fcn.18000ba70
mov rdi, rax
test rax, rax
je 0x18005b9ed
mov edx, dword [r14 + 8]
dec edx
add rdx, rax
cmp rdx, rax
jbe 0x18005b9bc
lea rcx, [0x180143ae0]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x18005b9b1
movzx eax, al
test byte [rax + rcx], 1
je 0x18005b9bc
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x18005b9a1
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.180063e80
mov rdx, rdi
mov rcx, rbp
call fcn.18000b400
mov rcx, rbx
call fcn.18008c0e0
mov rdi, rax
test rax, rax
je 0x18005bb42
movzx ecx, byte [rbx + 0x1f]
test cl, cl
jne 0x18005ba11
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x18005ba20
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.1800347e0
mov edx, esi
mov rcx, rdi
call fcn.1800360f0
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x18005ba70
xor eax, eax
mov r8d, ebp
mov rcx, rdi
lea r9d, [rax - 2]
lea edx, [rax + 0x56]
mov dword [rsp + 0x20], eax
call fcn.1800346c0
xor edx, edx
jmp 0x18005baa2
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.1800347e0
mov r9d, 2
mov r8d, esi
lea edx, [r9 + 0x62]
mov rcx, rdi
mov dword [rsp + 0x20], 3
call fcn.1800347e0
test ebp, ebp
je 0x18005baf7
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x18005baf7
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.18005b200
cmp qword [r12 + 0x20], 0
jne 0x18005bb2d
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
test byte [rcx + rax*8 + 8], 0xf
je 0x18005bb42
test byte [rcx + rax*8 + 0x12], 0x60
je 0x18005bb42
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.180063e80
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