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

Disassembly:
lea r12, [rsp - 0x90]
cmp r12, qword [r14 + 0x10]
jbe 0x6c592e
push rbp
mov rbp, rsp
sub rsp, 0x108
movq qword [rsp + 0x100], xmm15
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rcx
mov dword [rsp + 0x130], edi
mov qword [rsp + 0x138], rsi
mov byte [rsp + 0x4b], 0
mov ebx, 0xa0
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._fts5IndexMergeLevel.deferwrap1]
mov qword [rsp + 0xf0], rcx
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0xf8], rcx
lea rdx, [rsp + 0xf0]
mov qword [rsp + 0x100], rdx
mov byte [rsp + 0x4b], 1
mov rdx, qword [rsp + 0x128]
mov rdx, qword [rdx]
mov qword [rsp + 0x88], rdx
mov edi, dword [rsp + 0x130]
movsxd r8, edi
shl r8, 4
mov qword [rsp + 0xd8], r8
mov rbx, rax
mov qword [rax], 0
lea r9, [r8 + rdx]
lea r9, [r9 + 0x20]
mov qword [rsp + 0xa0], r9
mov r10, qword [rsp + 0x138]
nop dword [rax]
test r10, r10
je 0x6c4faa
mov r10d, dword [r10]
jmp 0x6c4fad
xor r10d, r10d
mov qword [rsp + 0xd0], rbx
mov dword [rsp + 0x50], r10d
mov rdx, qword [rsp + 0x120]
mov rdx, qword [rdx]
lea r8, [rbx + 8]
mov qword [rsp + 0xc8], r8
lea r9, [rbx + 0x80]
mov qword [rsp + 0xc0], r9
mov edx, dword [rdx + 0x60]
mov dword [rsp + 0x6c], edx
mov rax, rcx
xor ecx, ecx
mov edi, 0x78
mov rbx, r8
call sym.modernc.org_libc.Xmemset
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0xc0]
xor ecx, ecx
mov edi, 0x10
call sym.modernc.org_libc.Xmemset
mov rdx, qword [rsp + 0xa0]
mov edx, dword [rdx]
nop
test edx, edx
je 0x6c50de
mov dword [rsp + 0x68], edx
mov edx, dword [rsp + 0x130]
lea esi, [rdx + 1]
movsxd rsi, esi
shl rsi, 4
mov r8, qword [rsp + 0x88]
lea rsi, [r8 + rsi]
lea rsi, [rsi + 0x20]
mov qword [rsp + 0x98], rsi
mov r10d, dword [rsi + 4]
dec r10d
movsxd r10, r10d
imul r10, r10, 0x38
add r10, qword [rsi + 8]
mov qword [rsp + 0x90], r10
mov edi, dword [r10]
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._fts5WriteInit
mov rdx, qword [rsp + 0xc8]
mov rsi, rdx
mov r8, qword [rsp + 0x90]
mov r8d, dword [r8 + 8]
inc r8d
mov dword [rdx + 8], r8d
mov dword [rsi + 0x70], 0
mov r9, qword [rsp + 0x98]
mov r12d, dword [rsp + 0x68]
mov r11, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
mov rax, qword [rsp + 0xa0]
jmp 0x6c5268
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x88]
call sym.modernc.org_sqlite_lib._fts5AllocateSegid
mov dword [rsp + 0x58], eax
mov rdx, qword [rsp + 0x88]
mov rsi, rdx
mov edx, dword [rdx + 0x1c]
dec edx
mov edi, dword [rsp + 0x130]
cmp edi, edx
jne 0x6c5153
mov rbx, qword [rsp + 0x120]
lea rdx, [rbx + 0x3c]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x128]
mov rbx, rdx
call sym.modernc.org_sqlite_lib._fts5StructureAddLevel
mov rdx, qword [rsp + 0x128]
mov rdx, qword [rdx]
mov edi, dword [rsp + 0x130]
mov rsi, rdx
mov qword [rsp + 0x88], rsi
mov rbx, qword [rsp + 0x120]
lea rdx, [rbx + 0x3c]
lea r9d, [rdi + 1]
mov dword [rsp + 0x68], r9d
mov rax, qword [rsp + 0x118]
mov rcx, rsi
mov esi, 1
xor r8d, r8d
mov rbx, rdx
mov edi, r9d
call sym.modernc.org_sqlite_lib._fts5StructureExtendLevel
mov rbx, qword [rsp + 0x120]
mov rdx, rbx
cmp dword [rdx + 0x3c], 0
nop dword [rax]
jne 0x6c531d
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc8]
mov edi, dword [rsp + 0x58]
call sym.modernc.org_sqlite_lib._fts5WriteInit
mov rdx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xd8]
lea rsi, [rsi + rdx]
lea rsi, [rsi + 0x20]
mov r8d, dword [rsp + 0x68]
movsxd r8, r8d
shl r8, 4
lea r8, [rdx + r8]
lea r8, [r8 + 0x20]
mov r9, r8
mov r10d, dword [r8 + 4]
movsxd r11, r10d
imul r11, r11, 0x38
add r11, qword [r8 + 8]
inc r10d
mov dword [r8 + 4], r10d
mov r8, r11
mov dword [r11 + 4], 1
mov r10, r8
mov r11d, dword [rsp + 0x58]
mov dword [r8], r11d
mov r8, rdx
inc dword [rdx + 0x18]
mov rdx, rsi
mov r11, r8
mov r12d, dword [rsi + 4]
cmp qword [r8 + 0x10], 0
jbe 0x6c5262
mov r13, r10
mov r15, qword [rsi + 8]
mov r15, qword [r15 + 0x10]
mov qword [r10 + 0x10], r15
mov r15, r13
mov rax, rdx
mov ecx, dword [rdx + 4]
dec ecx
movsxd rcx, ecx
imul rcx, rcx, 0x38
add rcx, qword [rdx + 8]
mov rdx, qword [rcx + 0x18]
mov qword [r13 + 0x18], rdx
nop
jmp 0x6c5268
mov rax, rdx
mov r15, r10
mov qword [rsp + 0x98], r9
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x90], r15
cmp dword [r9 + 4], 1
jne 0x6c52a2
mov rcx, r11
mov r10d, dword [rsp + 0x130]
lea r13d, [r10 + 2]
cmp dword [r11 + 0x1c], r13d
sete r13b
nop
jmp 0x6c52b0
mov rcx, r11
mov r10d, dword [rsp + 0x130]
xor r13d, r13d
mov byte [rsp + 0x4a], r13b
mov dword [rsp + 0x54], r12d
mov qword [rsp + 0xd8], rcx
mov rdx, qword [rsp + 0xd0]
mov qword [rsp], rdx
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
mov edi, 0x20
xor esi, esi
mov r8, rsi
xor r9d, r9d
mov r11d, r12d
call sym.modernc.org_sqlite_lib._fts5MultiIterNew
movzx edx, byte [rsp + 0x4a]
movzx edx, dl
mov dword [rsp + 0x64], edx
mov rbx, qword [rsp + 0x120]
mov r12, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xd0]
xor eax, eax
xor ecx, ecx
jmp 0x6c538a
mov byte [rsp + 0x4b], 0
mov rdx, qword [rsp + 0x100]
mov rax, qword [rdx]
call rax
add rsp, 0x108
pop rbp
ret
mov dword [rsp + 0x60], ecx
mov r8, qword [r8]
mov rax, qword [rsp + 0x118]
xor edi, edi
xor esi, esi
mov rcx, r8
call sym.modernc.org_sqlite_lib._fts5MultiIterNext
mov rbx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xd0]
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x64]
mov r12, qword [rsp + 0xc0]
mov r13, r8
mov eax, r10d
mov ecx, r9d
mov r8, r13
mov r9, rbx
mov r10, qword [r13]
cmp dword [r9 + 0x3c], 0
je 0x6c53a2
mov esi, 1
jmp 0x6c53b4
mov r9, r10
cmp byte [r10 + 0x14], 0
setne r10b
mov esi, r10d
mov r10, r9
movzx r9d, sil
nop dword [rax + rax]
test r9d, r9d
jne 0x6c56c5
lea r9, [r8 + 0x90]
mov r11, r10
mov r10, qword [r10 + 0x60]
add r10, 4
movzx r10d, word [r10]
shl r10, 7
lea r10, [r11 + r10]
lea r10, [r10 + 0x68]
mov r11, r9
mov r13, r10
mov r10d, dword [r10 + 0x68]
mov dword [r9], r10d
mov r9, r11
mov edi, dword [r11]
mov r10, r12
mov r11, r13
mov rsi, qword [r13 + 0x60]
mov qword [rsp + 0x80], rsi
mov r13d, dword [r12 + 8]
cmp r13d, edi
jne 0x6c5432
test edi, edi
jle 0x6c542a
mov r15, qword [r12]
movsxd rax, edi
jmp 0x6c58d8
cmp r13d, edi
mov eax, 0
mov qword [rsp + 0xb8], r11
mov dword [rsp + 0x4c], eax
nop
je 0x6c544f
mov r13, qword [rsp + 0x138]
test r13, r13
jmp 0x6c5462
test eax, eax
je 0x6c54e4
mov r13, qword [rsp + 0x138]
test r13, r13
mov qword [rsp + 0xb0], r9
je 0x6c548a
mov rcx, qword [rsp + 0xc8]
mov r15, rcx
mov r13d, dword [rsp + 0x50]
nop dword [rax]
cmp dword [r15 + 0x4c], r13d
jg 0x6c56c5
lea rdx, [rbx + 0x3c]
mov dword [r12 + 8], 0
mov rax, qword [rsp + 0x118]
mov rcx, r10
mov rbx, rdx
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferAppendBlob
mov eax, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x64]
mov rbx, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x80]
mov r8, qword [rsp + 0xd0]
mov r9, qword [rsp + 0xb0]
mov r10, qword [rsp + 0xc0]
mov r11, qword [rsp + 0xb8]
xor ecx, ecx
mov r12, r11
cmp dword [r11 + 0x78], 0
jne 0x6c5509
test edx, edx
jne 0x6c5338
movzx r11d, byte [r11 + 0x7c]
nop dword [rax + rax]
test r11d, r11d
je 0x6c5338
mov r11, rbx
cmp dword [r11 + 0x3c], 0
jne 0x6c5544
test ecx, ecx
jne 0x6c5544
mov edi, dword [r9]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._fts5WriteAppendTerm
mov rbx, qword [rsp + 0x120]
mov r8, qword [rsp + 0xd0]
mov ecx, 1
mov dword [rsp + 0x60], ecx
mov rsi, qword [r8]
mov r8, rsi
mov rsi, qword [rsi + 0x60]
add rsi, 4
movzx esi, word [rsi]
shl rsi, 7
lea rsi, [r8 + rsi]
lea rsi, [rsi + 0x68]
mov rdi, qword [rsi + 0x70]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._fts5WriteAppendRowid
mov edx, dword [rsp + 0x6c]
cmp edx, 1
jne 0x6c5611
mov r8, qword [rsp + 0xb8]
cmp byte [r8 + 0x7c], 0
je 0x6c56a9
mov rbx, qword [rsp + 0x120]
lea rdx, [rbx + 0x3c]
mov qword [rsp + 0xb0], rdx
mov rcx, qword [rsp + 0xd0]
lea rsi, [rcx + 0x18]
mov qword [rsp + 0xa8], rsi
mov rax, qword [rsp + 0x118]
xor edi, edi
mov rbx, rdx
mov rcx, rsi
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferAppendVarint
mov rdx, qword [rsp + 0xb8]
cmp dword [rdx + 0x78], 0
jle 0x6c5608
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferAppendVarint
mov edx, dword [rsp + 0x6c]
jmp 0x6c56a9
mov rdx, qword [rsp + 0xb8]
mov r8d, dword [rdx + 0x78]
movzx edx, byte [rdx + 0x7c]
lea edx, [rdx + r8*2]
mov rbx, qword [rsp + 0x120]
lea r8, [rbx + 0x3c]
mov rcx, qword [rsp + 0xd0]
lea r9, [rcx + 0x18]
movsxd rdi, edx
mov rax, qword [rsp + 0x118]
mov rbx, r8
mov rcx, r9
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferAppendVarint
lea rdx, [0x007340c0]
mov qword [rsp + 0xe0], rdx
lea rsi, vtable.I_fv_UHH_H__HL_HHs_HB.0
mov qword [rsp + 0xe8], rsi
mov r8, qword [rsp + 0xe8]
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc8]
mov rsi, r8
nop dword [rax]
call sym.modernc.org_sqlite_lib._fts5ChunkIterate
mov edx, dword [rsp + 0x6c]
mov rbx, qword [rsp + 0x120]
mov r8, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x60]
nop dword [rax]
jmp 0x6c5338
mov rdi, qword [rsp + 0x90]
lea rdx, [rdi + 8]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc8]
mov rdi, rdx
call sym.modernc.org_sqlite_lib._fts5WriteFinish
mov rdx, qword [rsp + 0xd0]
mov rsi, rdx
mov rbx, qword [rsp + 0x120]
mov r8, rbx
mov rcx, qword [rdx]
cmp dword [r8 + 0x3c], 0
je 0x6c5710
mov edi, 1
jmp 0x6c571b
mov rdi, rcx
cmp byte [rdi + 0x14], 0
setne dil
movzx edi, dil
nop
test edi, edi
je 0x6c572b
xor eax, eax
jmp 0x6c5803
mov rax, qword [rsp + 0x118]
call sym.modernc.org_sqlite_lib._fts5TrimSegments
mov rdx, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x54]
mov dword [rdx], esi
mov rcx, qword [rsp + 0xd0]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0x118]
call sym.modernc.org_sqlite_lib._fts5MultiIterFree
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0xc0]
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferFree
mov rcx, qword [rsp + 0x138]
nop dword [rax + rax]
test rcx, rcx
je 0x6c5794
mov eax, dword [rcx]
mov rbx, qword [rsp + 0xc8]
sub eax, dword [rbx + 0x4c]
mov dword [rcx], eax
mov byte [rsp + 0x4b], 0
mov rdx, qword [rsp + 0x100]
mov rax, qword [rdx]
call rax
add rsp, 0x108
pop rbp
ret
mov dword [rsp + 0x5c], eax
mov rdx, qword [rsp + 0xa0]
movsxd rdi, eax
imul rcx, rdi, 0x38
add rcx, qword [rdx + 8]
mov rdx, qword [rsp + 0x90]
lea rdi, [rdx + 0x30]
mov r8, rcx
mov r9, qword [r8 + 0x30]
sub r9, qword [r8 + 0x28]
add qword [rdi], r9
mov rax, qword [rsp + 0x118]
call sym.modernc.org_sqlite_lib._fts5DataRemoveSegment
mov eax, dword [rsp + 0x5c]
inc eax
mov rbx, qword [rsp + 0x120]
mov rsi, qword [rsp + 0xd0]
mov edi, dword [rsp + 0x54]
cmp eax, edi
jl 0x6c57af
mov r8, qword [rsp + 0xa0]
mov r9, r8
mov r10d, dword [r8 + 4]
cmp edi, r10d
je 0x6c5879
sub r10d, edi
movsxd r10, r10d
imul r10, r10, 0x38
mov rax, qword [r8 + 8]
movsxd r8, edi
imul r8, r8, 0x38
movsxd rdx, r10d
lea rbx, [r8 + rax]
nop dword [rax + rax]
test rdx, rdx
je 0x6c5879
movabs r8, 0x3ffffffffffff
cmp r8, rdx
jb 0x6c58b9
test byte [rax], al
test byte [rbx], al
cmp rbx, rax
je 0x6c5879
mov rcx, rdx
call sym.runtime.memmove
mov rsi, qword [rsp + 0xd0]
mov edi, dword [rsp + 0x54]
mov r9, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xd8]
lea rdx, [rcx + 0x18]
sub dword [rdx], edi
lea rdx, [r9 + 4]
sub dword [rdx], edi
mov dword [r9], 0
mov rdx, qword [rsp + 0x90]
cmp dword [rdx + 8], 0
jne 0x6c5746
mov rdx, qword [rsp + 0x98]
dec dword [rdx + 4]
dec dword [rcx + 0x18]
jmp 0x6c5746
mov rbx, r8
nop dword [rax]
call sym.runtime.panicSlice3AlenU
dec rax
mov rsi, qword [rsp + 0x78]
inc rsi
mov r15, qword [rsp + 0x70]
inc r15
test rax, rax
je 0x6c5909
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rsi
movzx esi, byte [rsi]
movzx r15d, byte [r15]
cmp r15b, sil
ja 0x6c58ff
jae 0x6c58c5
cmp r13d, edi
mov eax, 1
jmp 0x6c5911
cmp r13d, edi
mov eax, 0xffffffff
jmp 0x6c5911
cmp r13d, edi
mov eax, 0
mov rsi, qword [rsp + 0x80]
jmp 0x6c5432
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], rsi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edi, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jmp sym.modernc.org_sqlite_lib._fts5IndexMergeLevel