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

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x6cce55
push rbp
mov rbp, rsp
sub rsp, 0x98
movq qword [rsp + 0x90], xmm15
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
mov byte [rsp + 0x33], 0
mov ebx, 0x10
nop
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._fts5IterSetOutputsTokendata.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 rbx, qword [rsp + 0xb0]
mov rdx, rbx
mov rsi, qword [rdx + 0x18]
mov dword [rdx + 0x10], 0
mov rdx, rbx
mov qword [rdx + 8], 0
xor edx, edx
xor edi, edi
movabs r8, 0x8000000000000000
xor r9d, r9d
jmp 0x6cc8fa
lea r11d, [rsi + 1]
mov rsi, r10
mov r9d, edx
mov edx, r11d
mov r10, rsi
nop dword [rax]
cmp dword [rsi], edx
jle 0x6cc969
movsxd r11, edx
lea r11, [r10 + r11*8]
lea r11, [r11 + 0x28]
mov r11, qword [r11]
mov r12, r11
movzx r13d, byte [r11 + 0x14]
test r13d, r13d
jne 0x6cc962
nop
test edi, edi
je 0x6cc92c
mov r13, qword [r11]
cmp r8, r13
jle 0x6cc94f
mov r9, rbx
mov r13, qword [r11 + 8]
mov r8, qword [r11]
mov qword [r9 + 8], r13
mov r9, rbx
mov r11d, dword [r12 + 0x10]
mov dword [r9 + 0x10], r11d
mov esi, edx
mov edi, 1
jmp 0x6cc8ed
lea r11d, [rdi + 1]
cmp r8, r13
cmove edi, r11d
mov esi, edx
mov edx, r9d
nop
jmp 0x6cc8ed
mov esi, edx
mov edx, r9d
jmp 0x6cc8ed
test edi, edi
je 0x6cca8b
mov r11, rbx
mov r12, qword [r11 + 0x20]
mov r12, qword [r12]
mov r12d, dword [r12 + 0x60]
mov byte [r11 + 0x14], 0
mov r11, rbx
mov qword [r11], r8
cmp edi, 1
jne 0x6cc9c0
test r12d, r12d
je 0x6cc99b
cmp edi, 1
jmp 0x6cc9c0
mov rbx, qword [rbx + 0x20]
mov rax, rcx
mov rcx, r10
mov edi, r9d
mov rsi, r8
mov r8, 0xffffffffffffffff
call sym.modernc.org_sqlite_lib._fts5TokendataIterAppendMap
jmp 0x6cca8f
jle 0x6cca8f
cmp r12d, 1
je 0x6cca8f
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x38], edi
mov rsi, rax
mov qword [rax], 0
mov r9, r10
cmp qword [r10 + 0x18], 0
jne 0x6cca66
mov rbx, qword [rbx + 0x20]
add rbx, 0x3c
movsxd rsi, dword [r10]
lea rsi, [rsi + rsi*8]
shl rsi, 2
mov rax, rcx
mov rcx, rsi
call sym.modernc.org_sqlite_lib._sqlite3Fts5MallocZero
mov rdx, qword [rsp + 0x78]
mov rsi, rdx
mov qword [rdx + 0x18], rax
mov rdx, rsi
mov rdi, qword [rsi + 0x18]
test rdi, rdi
je 0x6cca6f
movsxd r8, dword [rsi]
shl r8, 5
add r8, rdi
mov qword [rsi + 0x20], r8
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x60]
mov edi, dword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
mov r9, rdx
mov r12d, dword [rsp + 0x48]
xor eax, eax
xor edx, edx
xor r10d, r10d
jmp 0x6ccab0
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
nop
call rax
add rsp, 0x98
pop rbp
ret
mov byte [rbx + 0x14], 1
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
nop
call rax
add rsp, 0x98
pop rbp
ret
inc eax
mov r9, r11
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x3c], edx
mov r11, r9
nop dword [rax]
cmp dword [r9], eax
jle 0x6ccb65
movsxd r13, eax
lea r13, [r11 + r13*8]
lea r13, [r13 + 0x28]
mov r13, qword [r13]
mov r15, r13
nop dword [rax + rax]
cmp qword [r13], r8
jne 0x6ccaab
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x40], eax
movsxd rdi, r10d
mov rdx, rdi
shl rdx, 2
add rdx, qword [r9 + 0x20]
mov dword [rdx], eax
mov rbx, qword [r15 + 8]
mov esi, dword [r15 + 0x10]
shl rdi, 5
add rdi, qword [r11 + 0x18]
mov rax, rcx
mov ecx, esi
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistReaderInit
mov rdx, qword [rsp + 0x70]
mov edx, dword [rdx + 0x10]
mov r10d, dword [rsp + 0x34]
inc r10d
mov esi, dword [rsp + 0x3c]
add edx, esi
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x60]
mov edi, dword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
mov r11, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x48]
nop dword [rax + rax]
jmp 0x6ccaab
lea r9, [rbx + 0x28]
mov qword [rsp + 0x70], r9
mov r13, r9
mov r15d, dword [r9 + 8]
lea eax, [rdi + rdi*4]
lea eax, [rdx + rax*2]
lea edi, [r15 + rax]
mov r9d, dword [r9 + 0xc]
cmp r9d, edi
jb 0x6ccb8c
xor eax, eax
jmp 0x6ccbd7
mov rbx, qword [rbx + 0x20]
add rbx, 0x3c
lea edi, [rax + r15]
mov rax, rcx
mov rcx, r13
nop
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferSize
mov rcx, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x34]
mov r11, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x48]
mov r13, qword [rsp + 0x70]
test eax, eax
jne 0x6cccac
nop
test r12d, r12d
jne 0x6ccc9d
mov r9, r11
mov r15d, dword [r11 + 0xc]
mov eax, dword [r11 + 8]
add eax, edx
cmp r15d, eax
jge 0x6ccca0
add edx, r15d
shl edx, 1
mov dword [rsp + 0x4c], edx
mov rbx, qword [r11 + 0x10]
movsxd rsi, edx
lea rsi, [rsi + rsi*2]
shl rsi, 3
mov rax, rcx
mov rcx, rsi
nop dword [rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_realloc
test rax, rax
je 0x6ccc6f
mov rsi, qword [rsp + 0x78]
mov r8, rsi
mov qword [rsi + 0x10], rax
mov r9d, dword [rsp + 0x4c]
mov dword [r8 + 0xc], r9d
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x34]
mov r12d, dword [rsp + 0x48]
mov r13, qword [rsp + 0x70]
jmp 0x6ccca0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov dword [rax + 0x3c], 7
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
add rsp, 0x98
pop rbp
ret
mov r9, r11
mov r11, rbx
mov dword [rbx + 0x30], 0
jmp 0x6cccee
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
add rsp, 0x98
pop rbp
ret
mov rcx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x34]
mov r11, qword [rsp + 0xb0]
mov r12d, edx
mov r13, qword [rsp + 0x70]
xor eax, eax
movabs rdx, 0x7fffffffffffffff
xor ebx, ebx
nop dword [rax]
jmp 0x6ccdf1
movabs r15, 0x7fffffffffffffff
cmp rdx, r15
je 0x6cce31
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x58], rdx
mov rax, rcx
mov rbx, r13
mov rcx, rsi
mov rdi, rdx
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistSafeAppend
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x44]
movsxd rbx, r8d
mov qword [rsp + 0x68], rbx
mov r8, rbx
shl r8, 5
add r8, qword [rdx + 0x18]
mov rax, qword [rsp + 0xa8]
mov rbx, r8
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistReaderNext
mov edx, dword [rsp + 0x48]
test edx, edx
jne 0x6ccdd6
mov rsi, qword [rsp + 0x78]
mov r8, rsi
movsxd r9, dword [rsi + 8]
lea r9, [r9 + r9*2]
shl r9, 3
add r9, qword [rsi + 0x10]
mov rsi, qword [rsp + 0x58]
mov qword [r9 + 8], rsi
mov rsi, r8
movsxd r9, dword [r8 + 8]
lea r9, [r9 + r9*2]
shl r9, 3
add r9, qword [r8 + 0x10]
mov r10, qword [rsp + 0x68]
shl r10, 2
add r10, qword [r8 + 0x20]
mov r8d, dword [r10]
mov dword [r9 + 0x10], r8d
mov r8, rsi
movsxd r9, dword [rsi + 8]
lea r9, [r9 + r9*2]
shl r9, 3
add r9, qword [rsi + 0x10]
mov rsi, qword [rsp + 0x50]
mov qword [r9], rsi
mov r9, r8
inc dword [r8 + 8]
jmp 0x6cccc7
mov rsi, qword [rsp + 0x50]
mov r9, qword [rsp + 0x78]
jmp 0x6cccc7
inc edx
mov ebx, eax
mov eax, edx
mov rdx, r9
mov r9, r15
cmp eax, r10d
jge 0x6ccd05
mov r15, r9
movsxd rdi, eax
shl rdi, 5
add rdi, qword [r9 + 0x18]
movzx r9d, byte [rdi + 0x11]
test r9d, r9d
jne 0x6cce28
mov r9, qword [rdi + 0x18]
cmp rdx, r9
jle 0x6cce1f
mov edx, eax
jmp 0x6ccde5
mov r9, rdx
mov edx, eax
mov eax, ebx
jmp 0x6ccde5
mov r9, rdx
mov edx, eax
mov eax, ebx
jmp 0x6ccde5
mov rax, r11
mov rcx, qword [r11 + 0x28]
mov qword [r11 + 8], rcx
mov ecx, dword [rax + 0x30]
mov dword [rax + 0x10], ecx
jmp 0x6cca8f
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.modernc.org_sqlite_lib._fts5IterSetOutputsTokendata