Function at 0x140290610
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 0x140290758
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 0x140290708
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 0x140290778
test r13, r13
mov dword [rbx + 0x3c], 1
je 0x14029071c
mov rcx, r13
call sym.sqlite3_step
cmp eax, 0x64
je 0x1402907b2
test esi, esi
mov dword [rbx + 0x3c], 0
je 0x14029072d
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 0x1402908e8
xor r13d, r13d
test esi, esi
mov dword [rbx + 0x3c], 0
jne 0x1402906e1
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 0x1402908c0
xor r13d, r13d
jmp 0x1402906e1
lea rcx, str.recursive_definition_for__s._s
mov rdx, r9
mov esi, 1
call sym.sqlite3_mprintf
mov qword [rbx + 0x10], rax
jmp 0x1402906ee
test r13, r13
mov dword [rsp + 0x34], 0
mov dword [rbx + 0x3c], 1
je 0x1402908e8
mov rcx, r13
call sym.sqlite3_step
cmp eax, 0x64
je 0x1402907b0
mov dword [rbx + 0x3c], 0
jmp 0x14029072d
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 0x1402907dd
jmp 0x1402906d6
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x1402906d6
cmp rax, qword [rdx + 0x18]
jne 0x1402907d0
mov rbp, qword [rdx]
movq xmm6, r13
test esi, esi
mov dword [rbx + 0x3c], 0
movq xmm2, rbp
punpcklqdq xmm6, xmm2
jne 0x1402906e1
test rbp, rbp
je 0x14029072d
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x48]
test rax, rax
jne 0x140290829
jmp 0x140290848
mov rax, qword [rax + 8]
test rax, rax
je 0x140290848
cmp dword [rax + 0x20], 1
jne 0x140290820
cmp rbp, qword [rax]
jne 0x140290820
or dword [rax + 0x50], 0x20
mov rax, qword [rax + 8]
test rax, rax
jne 0x140290829
nop dword [rax]
mov rcx, qword [rbp + 0x28]
call sym.sqlite3Fts5StorageSync
test eax, eax
mov esi, eax
mov dword [rsp + 0x34], eax
jne 0x1402906e1
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 0x1402906e1
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 0x1402906eb
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 0x14029074c
mov dword [rbx + 0x3c], 0
jmp 0x14029072a