Function at 0x14018ece0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, [rsp + 0x48]
mov rsi, rcx
mov rbx, rdx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov rbp, r9
mov qword [rsp + 0x30], rax
cmp dword [rsi + 0x34], 0
jne 0x14018ef88
mov rax, qword [rbx + 0x58]
xor edx, edx
mov dword [rsp + 0x44], edx
movzx eax, word [rax + 4]
movzx r14d, ax
mov rdi, rax
mov dword [rsp + 0x38], eax
imul r14, r14, 0x78
test r8d, r8d
lea rax, [rbx + r14 + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rax
je 0x14018eee7
mov rdx, r14
add rdx, rbx
mov r15, qword [rdx + 0xb0]
test r15, r15
je 0x14018eee7
mov r13d, dword [rdx + 0x68]
mov r12d, dword [rdx + 0x6c]
and r13d, 2
jne 0x14018ee6d
cmp dword [rsi + 0x34], 0
jne 0x14018ed9b
cmp dword [r15 + 0x14], 0
jne 0x14018ed9b
cmp rbp, qword [r15 + 0x20]
jle 0x14018ed9b
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
mov r12d, dword [r15 + 0x1c]
call sym.fts5DlidxIterNextR.isra.0
jmp 0x14018ed74
imul r8, rdi, 0x78
lea r15, [rbx + r8]
cmp dword [r15 + 0x6c], r12d
jge 0x14018eec2
mov rax, qword [r15 + 0x60]
cmp r12d, dword [rax + 8]
jle 0x14018edc3
mov dword [rsi + 0x34], 0x10b
jmp 0x14018ee95
mov rcx, qword [r15 + 0x78]
call sym.sqlite3_free
mov rdx, qword [rsp + 0x20]
xor eax, eax
mov rcx, rsi
lea r9d, [r12 - 1]
mov qword [r15 + 0x78], rax
mov dword [r15 + 0x6c], r9d
call sym.fts5SegIterNextPage
cmp dword [rsi + 0x34], 0
jne 0x14018ee95
mov rdx, qword [r15 + 0x70]
test rdx, rdx
je 0x14018ee95
mov rcx, qword [rdx]
mov ax, word [rcx]
xchg al, ah
movzx r9d, ax
cmp dword [rdx + 0xc], r9d
jle 0x14018edb7
cmp r9d, 3
mov dword [rsp + 0x3c], r9d
jle 0x14018edb7
lea rdx, [rbx + r14 + 0xc8]
movzx eax, ax
add rcx, rax
call sym.sqlite3Fts5GetVarint
mov r9d, dword [rsp + 0x3c]
mov rcx, rsi
mov rdx, qword [rsp + 0x20]
movzx eax, al
add eax, r9d
cdqe
mov qword [r15 + 0x80], rax
call sym.fts5SegIterLoadNPos
jmp 0x14018ee95
cmp dword [r15 + 0x14], 0
jne 0x14018ee73
cmp rbp, qword [r15 + 0x20]
jge 0x14018ee73
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call sym.fts5DlidxIterPrevR.isra.0
cmp dword [rsi + 0x34], 0
je 0x14018ee52
imul rax, rdi, 0x78
mov edx, dword [r15 + 0x1c]
add rax, rbx
cmp edx, dword [rax + 0x6c]
jge 0x14018eec2
inc edx
mov rcx, rsi
mov dword [rax + 0x6c], edx
mov rdx, qword [rsp + 0x20]
call sym.fts5SegIterReverseNewPage
imul rax, rdi, 0x78
add rax, rbx
cmp qword [rax + 0x70], 0
je 0x14018ef08
test r13d, r13d
mov rax, qword [rax + 0xc8]
jne 0x14018eee0
cmp rbp, rax
jle 0x14018ef4d
cmp dword [rsi + 0x34], 0
jne 0x14018ef4d
cmp dword [rsi + 0x34], 0
jne 0x14018ee95
imul rax, rdi, 0x78
mov rdx, qword [rsp + 0x20]
xor r8d, r8d
mov rcx, rsi
call qword [rbx + rax + 0x88]
jmp 0x14018ee95
cmp rbp, rax
jl 0x14018eeb8
jmp 0x14018ef4d
imul rdi, rdi, 0x78
mov r8, qword [rsp + 0x30]
mov rcx, rsi
mov rdx, qword [rsp + 0x20]
add rdi, rbx
call qword [rdi + 0x88]
cmp qword [rdi + 0x70], 0
jne 0x14018ef4d
mov r8d, dword [rsp + 0x38]
mov rdx, rbx
mov rcx, rsi
mov r9d, 1
call sym.fts5MultiIterAdvanced
mov rcx, rbx
call sym.fts5MultiIterSetEof
mov rax, qword [rbx + 0x58]
movzx edx, word [rax + 4]
mov rax, rdx
imul rax, rax, 0x78
imul rdx, rdx, 0x78
cmp qword [rbx + rax + 0x70], 0
lea rdx, [rbx + rdx + 0x60]
mov qword [rsp + 0x48], rdx
jne 0x14018ef69
jmp 0x14018ef88
cmp dword [rsp + 0x44], 0
jne 0x14018ef08
mov r8, qword [rsp + 0x28]
mov rcx, rbx
mov edx, dword [rsp + 0x38]
call sym.fts5MultiIterAdvanceRowid
test eax, eax
jne 0x14018ef08
cmp byte [rbx + 0x48], 0
mov rdx, qword [rsp + 0x48]
je 0x14018ef81
mov r8d, dword [rdx + 0x70]
test r8d, r8d
je 0x14018ed0d
mov rcx, rbx
call qword [rbx + 0x38]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret