Function at 0x1401add70
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov eax, dword [rcx + 0x3c]
mov r8, qword [rcx + 0x18]
mov r9, qword [rcx + 0x20]
test eax, eax
mov rbx, rcx
mov rdi, rdx
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
jne 0x1401adeb8
lea r12, [rsp + 0x34]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
lea rdx, str.SELECT_t._Q_FROM__Q._Q_AS_t_WHERE_t._Q_MATCH_id
mov rcx, r12
call sym.sqlite3Fts5Mprintf.constprop.0
test rax, rax
mov rbp, rax
je 0x1401ade68
mov rcx, qword [rbx + 0x28]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov rdx, rbp
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
call sym.sqlite3LockAndPrepare.constprop.0
mov rcx, rbp
mov r13, qword [rsp + 0x38]
mov esi, eax
mov dword [rsp + 0x34], eax
call sym.sqlite3_free
cmp esi, 1
je 0x1401aded8
test r13, r13
mov dword [rbx + 0x3c], 1
je 0x1401ade7c
mov rcx, r13
call sym.sqlite3_step
cmp eax, 0x64
je 0x1401adf12
test esi, esi
mov dword [rbx + 0x3c], 0
je 0x1401ade8d
mov rcx, r13
call sym.sqlite3_finalize
xor eax, eax
mov qword [rdi], rax
movaps xmm6, xmmword [rsp + 0x40]
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov esi, dword [rsp + 0x34]
xor ecx, ecx
call sym.sqlite3_free
cmp esi, 1
je 0x1401ae048
xor r13d, r13d
test esi, esi
mov dword [rbx + 0x3c], 0
jne 0x1401ade41
xor r13d, r13d
mov rcx, r13
call sym.sqlite3_finalize
mov qword [rsp + 0x38], 0
test eax, eax
mov esi, eax
mov dword [rsp + 0x34], eax
je 0x1401ae020
xor r13d, r13d
jmp 0x1401ade41
lea rcx, str.recursive_definition_for__s._s
mov rdx, r9
mov esi, 1
call sym.sqlite3_mprintf
mov qword [rbx + 0x10], rax
jmp 0x1401ade4e
test r13, r13
mov dword [rsp + 0x34], 0
mov dword [rbx + 0x3c], 1
je 0x1401ae048
mov rcx, r13
call sym.sqlite3_step
cmp eax, 0x64
je 0x1401adf10
mov dword [rbx + 0x3c], 0
jmp 0x1401ade8d
xor esi, esi
mov rcx, r13
call sym.sqlite3_column_int64.constprop.0
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + 0x48]
test rdx, rdx
jne 0x1401adf3d
jmp 0x1401ade36
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x1401ade36
cmp rax, qword [rdx + 0x18]
jne 0x1401adf30
mov rbp, qword [rdx]
movq xmm6, r13
test esi, esi
mov dword [rbx + 0x3c], 0
movq xmm2, rbp
punpcklqdq xmm6, xmm2
jne 0x1401ade41
test rbp, rbp
je 0x1401ade8d
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x48]
test rax, rax
jne 0x1401adf89
jmp 0x1401adfa8
mov rax, qword [rax + 8]
test rax, rax
je 0x1401adfa8
cmp dword [rax + 0x20], 1
jne 0x1401adf80
cmp rbp, qword [rax]
jne 0x1401adf80
or dword [rax + 0x50], 0x20
mov rax, qword [rax + 8]
test rax, rax
jne 0x1401adf89
nop dword [rax]
mov rcx, qword [rbp + 0x28]
call sym.sqlite3Fts5StorageSync
test eax, eax
mov esi, eax
mov dword [rsp + 0x34], eax
jne 0x1401ade41
mov rax, qword [rbp + 0x18]
mov rcx, r12
movsxd rdx, dword [rax + 0x18]
add rdx, 8
shl rdx, 4
call sym.sqlite3Fts5MallocZero
mov esi, dword [rsp + 0x34]
test rax, rax
je 0x1401ade41
movups xmmword [rax + 8], xmm6
mov rcx, qword [rbp + 0x18]
lea rdx, [rax + 0x80]
movq xmm0, rdx
mov esi, dword [rsp + 0x34]
movsxd rcx, dword [rcx + 0x18]
lea rcx, [rdx + rcx*8]
movq xmm1, rcx
punpcklqdq xmm0, xmm1
movups xmmword [rax + 0x48], xmm0
jmp 0x1401ade4b
mov rdx, qword [rbx + 0x20]
lea rcx, str.no_such_fts5_table:__s._s
mov esi, 1
mov r8, qword [rbx + 0x18]
call sym.sqlite3_mprintf
mov qword [rbx + 0x10], rax
jmp 0x1401adeac
mov dword [rbx + 0x3c], 0
jmp 0x1401ade8a