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

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x6bdd1f
push rbp
mov rbp, rsp
sub rsp, 0x98
movq qword [rsp + 0x90], xmm15
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xc0], rdi
mov byte [rsp + 0x33], 0
mov ebx, 0x30
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x48], rax
lea rcx, [sym.modernc.org_sqlite_lib._fts5SegIterNext.deferwrap1]
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rcx
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x90], rdx
mov byte [rsp + 0x33], 1
mov rdx, qword [rsp + 0xb8]
mov rsi, rdx
mov rbx, qword [rdx + 0x10]
lea rdx, [rax + 4]
mov qword [rsp + 0x78], rdx
mov rdi, rdx
mov dword [rdx], 0
mov rdx, rbx
mov r8d, dword [rdx + 0xc]
mov r9, rax
mov r10, rsi
movsxd r11, dword [rsi + 0x78]
add r11, qword [rsi + 0x20]
mov rdx, qword [rdx]
mov dword [rax], r11d
mov rsi, r9
mov r11d, dword [r9]
cmp r11d, r8d
jge 0x6bd7eb
mov r8, r10
nop word [rax + rax]
cmp dword [r10 + 0x44], r11d
jg 0x6bd776
mov qword [rsp + 0x50], rdx
mov rax, rcx
call sym.modernc.org_sqlite_lib._fts5LeafFirstTermOff
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
mov edx, dword [rdx]
nop dword [rax]
cmp eax, edx
je 0x6bd76f
movsxd rdx, edx
mov rsi, qword [rsp + 0x50]
lea rbx, [rdx + rsi]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint32
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
add dword [rdx], eax
mov eax, 1
jmp 0x6bd7bc
movsxd rdi, r11d
lea rbx, [rdi + rdx]
lea rdx, [r8 + 0x70]
mov qword [rsp + 0x40], rdx
lea rdi, [rsi + 8]
mov qword [rsp + 0x70], rdi
mov rax, rcx
mov rcx, rdi
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
movzx esi, al
add dword [rdx], esi
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rdx]
mov rdi, qword [rsp + 0x70]
add rsi, qword [rdi]
mov qword [rdx], rsi
xor eax, eax
mov rsi, qword [rsp + 0xb8]
mov r9, rcx
movsxd r9, dword [r9]
mov qword [rsi + 0x20], r9
mov rdi, qword [rsp + 0x78]
mov r8, rcx
mov r11, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
jmp 0x6bdbd1
mov r11, r10
cmp qword [r10], 0
jne 0x6bd9b8
lea rdx, [rsi + 0x10]
mov qword [rsp + 0x70], rdx
mov r9, rdx
mov qword [rdx], 0
lea rdx, [rsi + 0x18]
mov r10, rdx
mov qword [rdx], 0
lea rdx, [rsi + 0x20]
mov r12, rdx
mov dword [rdx], 0
lea r8, [rsi + 0x24]
mov rdx, r8
mov dword [rdx], 0
mov rdx, r11
mov r11d, dword [r11 + 8]
bt r11d, 0
nop
jb 0x6bd8b3
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r8
mov rdx, qword [rsp + 0xb0]
mov r11, rdx
mov rdx, qword [rdx + 0x18]
mov r13, qword [rdx + 0x18]
mov r13, qword [r13 + 8]
mov qword [rdx + 0x18], r13
mov rbx, qword [r11 + 0x18]
mov rax, rcx
mov rcx, r10
mov rdi, r12
mov rsi, r9
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5HashScanEntry
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov r9, qword [r9]
test r9, r9
jne 0x6bd8e7
mov rbx, qword [rdx + 0x10]
mov rax, rcx
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
mov qword [rdx + 0x10], 0
mov r8, qword [rsp + 0xc0]
jmp 0x6bd997
mov r11, rdx
mov rdx, qword [rdx + 0x10]
mov qword [rdx], r9
mov rdx, r11
mov r9, qword [r11 + 0x10]
mov r11, r8
mov r8d, dword [r8]
mov dword [r9 + 8], r8d
mov r8, rdx
mov rdx, qword [rdx + 0x10]
mov r9, r11
mov r11d, dword [r11]
mov dword [rdx + 0xc], r11d
mov rdx, r8
mov r9d, dword [r9]
inc r9d
mov dword [r8 + 0x44], r9d
mov rbx, qword [rsp + 0xb0]
lea r8, [rbx + 0x3c]
lea r9, [rdx + 0x60]
mov edi, dword [r12]
mov rsi, qword [r10]
lea r10, [rdx + 0x70]
mov qword [rsp + 0x68], r10
mov r11, r9
mov dword [r9 + 8], 0
mov rax, rcx
mov rcx, r11
mov rbx, r8
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferAppendBlob
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
movzx r8d, al
mov qword [rdx + 0x20], r8
mov rdx, qword [rsp + 0xc0]
mov r8, rdx
mov dword [rdx], 1
mov rcx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x48]
mov r11, qword [rsp + 0xb8]
xor eax, eax
jmp 0x6bdbd1
mov dword [r9], 0
xor eax, eax
jmp 0x6bd9db
mov rcx, qword [rsp + 0xa8]
mov rsi, r8
mov rdi, qword [rsp + 0x78]
mov r11, qword [rsp + 0xb8]
mov r8, rsi
cmp dword [rsi], 0
jne 0x6bdbd1
mov dword [rsp + 0x34], eax
mov rax, rcx
mov rbx, qword [rsp + 0xb0]
mov rcx, r11
call sym.modernc.org_sqlite_lib._fts5SegIterNextPage
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x6bdbb3
mov qword [rsp + 0x38], rdx
mov rsi, rdx
mov r8, qword [rdx]
mov r9, qword [rsp + 0x48]
mov r10, r9
mov r11, r8
movzx r8d, byte [r8]
movzx r8d, r8w
shl r8d, 8
inc r11
movzx r11d, byte [r11]
add r8d, r11d
movzx r8d, r8w
mov dword [r9], r8d
test r8d, r8d
je 0x6bdb04
mov r8, r10
mov r9d, dword [r10]
mov r10, rsi
nop dword [rax + rax]
cmp dword [rsi + 0xc], r9d
jle 0x6bdb0a
movsxd rbx, r9d
add rbx, qword [rsi]
lea rdx, [rcx + 0x70]
mov rax, qword [rsp + 0xa8]
mov rcx, rdx
nop
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
movzx esi, al
add dword [rdx], esi
mov rdx, qword [rsp + 0xb8]
mov rsi, rdx
mov rdi, rcx
movsxd rdi, dword [rdi]
mov qword [rdx + 0x20], rdi
mov rdx, qword [rsp + 0x38]
mov rdi, rdx
mov r8d, dword [rdx + 0xc]
cmp dword [rdx + 8], r8d
jle 0x6bdaf6
movsxd rbx, r8d
add rbx, qword [rdx]
lea rcx, [rsi + 0x44]
mov rax, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint32
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
mov rsi, qword [rsp + 0x38]
mov rdi, rsi
add eax, dword [rsi + 0xc]
mov dword [rdx + 0x40], eax
mov rcx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0xb8]
mov rcx, rsi
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsp + 0x34]
jmp 0x6bdb76
mov r8, r10
mov r10, rsi
mov rsi, r10
mov r9d, dword [r10 + 0xc]
cmp dword [r10 + 8], r9d
jg 0x6bdb23
mov rdi, rsi
mov eax, dword [rsp + 0x34]
mov rsi, r8
jmp 0x6bdb76
movsxd rbx, r9d
add rbx, qword [r10]
mov rax, qword [rsp + 0xa8]
mov rcx, r8
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint32
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
mov rsi, qword [rsp + 0x38]
mov rdi, rsi
add eax, dword [rsi + 0xc]
mov dword [rdx + 0x40], eax
mov rdx, rcx
mov rsi, qword [rsp + 0x48]
mov r8, rsi
movsxd rsi, dword [rsi]
mov qword [rdx + 0x20], rsi
mov rdx, rcx
mov rsi, r8
mov r8d, dword [r8]
mov dword [rdx + 0x44], r8d
mov eax, 1
mov r8, rsi
mov esi, dword [rsi]
nop dword [rax + rax]
cmp dword [rdi + 0xc], esi
jge 0x6bd9c3
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x3c], 0x10b
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
add rsp, 0x98
pop rbp
ret
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x48]
mov r11, qword [rsp + 0xb8]
mov rsi, r11
mov rbx, qword [r11 + 0x10]
nop dword [rax + rax]
test rbx, rbx
je 0x6bdcf6
test eax, eax
je 0x6bdc68
mov edx, dword [r11 + 8]
bt edx, 0
jae 0x6bdc1a
nop
mov rax, rcx
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x10], 0
jmp 0x6bdcf6
mov edi, dword [rdi]
mov rax, rcx
mov rbx, qword [rsp + 0xb0]
mov rcx, rsi
call sym.modernc.org_sqlite_lib._fts5SegIterLoadTerm
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._fts5SegIterLoadNPos
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x6bdcf6
mov dword [rdx], 1
jmp 0x6bdcf6
lea rdi, [rsi + 0x20]
mov r9, rdi
mov r10, qword [rdi]
lea r11, [r10 + 1]
mov qword [rdi], r11
mov rdi, rsi
mov rsi, qword [rsi + 0x10]
mov rsi, qword [rsi]
add rsi, r10
movzx esi, byte [rsi]
add r8, 0x28
mov r10, r8
mov dword [r8], esi
mov rsi, r10
mov r8d, dword [r10]
bt r8d, 7
nop
jae 0x6bdce1
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], rsi
mov rdx, rdi
dec qword [rdi + 0x20]
mov r8, qword [rdx + 0x10]
mov rbx, qword [rdx + 0x20]
add rbx, qword [r8]
mov rax, rcx
mov rcx, rsi
call sym.modernc.org_sqlite_lib._sqlite3Fts5GetVarint32
mov rdx, qword [rsp + 0x78]
movsxd rsi, eax
add qword [rdx], rsi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xb8]
mov rax, rdi
mov rcx, rsi
mov ebx, dword [rsi]
and ebx, 1
mov byte [rdi + 0x7c], bl
mov ecx, dword [rcx]
sar ecx, 1
mov dword [rax + 0x78], ecx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
add rsp, 0x98
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.modernc.org_sqlite_lib._fts5SegIterNext