Function at 0x14017a380
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push r15
sub rsp, 0x68
cmp dword [rcx + 0x30], 0
mov r15, qword [rcx]
mov rbx, rcx
jne 0x14017a78b
mov qword [rax + 0x18], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov r14, qword [rcx + 0x150]
mov rcx, qword [r14 + 0x60]
xor edx, edx
mov esi, 0xffff8000
test rcx, rcx
je 0x14017a3eb
mov rax, qword [r15 + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x14017a3eb
nop dword [rax + rax]
lea rax, [rax + 0x20]
inc esi
cmp qword [rax], rcx
jne 0x14017a3e0
mov rax, qword [r15 + 0x20]
mov rbp, qword [r14]
movsxd rcx, esi
shl rcx, 5
add rbp, 0x10
mov qword [rsp + 0x58], rdi
mov r12, qword [rcx + rax]
movsx eax, word [r14 + 0x36]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 8]
lea r13, [rax + rcx*8]
movzx ecx, word [rax + rcx*8 + 0x10]
test cx, cx
jne 0x14017a42a
mov rdi, rdx
jmp 0x14017a45b
cmp byte [r14 + 0x3f], dl
je 0x14017a435
mov rdi, rdx
jmp 0x14017a45b
mov rdi, qword [r14 + 0x50]
test rdi, rdi
jne 0x14017a443
mov rdi, rdx
jmp 0x14017a45b
movzx eax, cx
cmp dword [rdi], eax
jge 0x14017a44f
mov rdi, rdx
jmp 0x14017a45b
movzx eax, cx
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r12
mov rdx, rbp
mov rcx, r15
call fcn.1401925b0
mov r8, r12
mov edx, 0x1a
mov r9, qword [rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.14017bcf0
test eax, eax
jne 0x14017a76a
movzx eax, word [r13 + 0x12]
test al, 1
je 0x14017a4aa
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.14018a7d0
jmp 0x14017a76a
cmp qword [r14 + 0x10], 0
je 0x14017a4c5
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.14018a7d0
jmp 0x14017a76a
test al, 0x60
jne 0x14017a5a7
test rdi, rdi
je 0x14017a4e2
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [r15 + 0x30]
bt rax, 0xe
jae 0x14017a517
cmp qword [r14 + 0x48], 0
je 0x14017a517
test rdi, rdi
je 0x14017a517
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, r12
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.1401a4990
test byte [r13 + 8], 0xf
je 0x14017a52f
test rdi, rdi
jne 0x14017a538
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x14017a5b2
test rdi, rdi
je 0x14017a5c9
xor eax, eax
mov r9b, IsNetDrive
mov r8b, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov rdx, rdi
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.1401db840
test eax, eax
jne 0x14017a76a
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x14017a5a0
lea r8, str.Cannot_add_a_column_with_non_constant_default
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r12
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.1401a4990
mov rcx, qword [rsp + 0x80]
call fcn.1401bb9e0
jmp 0x14017a5c9
test al, 0x40
je 0x14017a5c9
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r12
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.1401a4990
mov rax, qword [rsp + 0x88]
mov rcx, r15
mov r8d, dword [rax + 8]
mov rdx, qword [rax]
call fcn.140187c00
mov rdi, rax
test rax, rax
je 0x14017a64f
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 8]
dec edx
add rdx, rax
cmp rdx, rax
jbe 0x14017a61f
lea rcx, [0x14024c3a0]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x14017a614
movzx eax, al
test byte [rax + rcx], 1
je 0x14017a61f
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x14017a604
mov r9d, dword [r14 + 0x40]
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 r8, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.1401a4990
mov rdx, rdi
mov rcx, r15
call fcn.140187640
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x14017a682
cmp qword [rbx + 0xa0], rdi
jne 0x14017a66e
mov rax, qword [rbx]
test byte [rax + 0x60], 8
jne 0x14017a66e
mov byte [rbx + 0x23], 1
mov rcx, rbx
call fcn.1401bcae0
mov rdi, rax
test rax, rax
je 0x14017a76a
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14017a693
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x14017a6a3
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xd8]
mov r9d, r15d
mov r8d, esi
mov edx, 0x62
mov rcx, rdi
mov dword [rsp + 0x20], 2
call fcn.1401bbec0
mov edx, esi
mov rcx, rdi
call fcn.1401ca3a0
mov r9d, 0xfffffffe
mov r8d, r15d
lea edx, [r9 + 0x57]
mov rcx, rdi
call fcn.1401bbe50
mov r9d, dword [rdi + 0x98]
mov r8d, r15d
mov edx, gethostbyaddr
mov rcx, rdi
add r9d, 2
call fcn.1401bbe50
mov r9d, 2
mov r8d, esi
lea edx, [r9 + 0x61]
mov rcx, rdi
mov dword [rsp + 0x20], 3
call fcn.1401bbec0
test r15d, r15d
je 0x14017a730
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14017a730
movzx eax, al
mov dword [rbx + rax*4 + 0xd8], r15d
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, esi
mov rcx, rbx
call fcn.140171b80
cmp qword [r14 + 0x20], 0
jne 0x14017a755
test byte [r13 + 8], 0xf
je 0x14017a76a
test byte [r13 + 0x12], 0x60
je 0x14017a76a
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, r12
mov r8, rbp
mov rcx, rbx
call fcn.1401a4990
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x40]
add rsp, 0x68
pop r15
pop rbx
ret