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

Disassembly:
lea r12, [rsp - 0x50]
cmp r12, qword [r14 + 0x10]
jbe 0x6caee5
push rbp
mov rbp, rsp
sub rsp, 0xc8
movq qword [rsp + 0xc0], xmm15
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rcx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0xf8], rsi
mov byte [rsp + 0x2f], 0
mov ebx, 0x430
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x70], rax
lea rcx, [sym.modernc.org_sqlite_lib._fts5MergePrefixLists.deferwrap1]
mov qword [rsp + 0xb0], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xb8], rcx
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0xc0], rdx
mov byte [rsp + 0x2f], 1
lea rdx, [rax + 0x408]
mov qword [rsp + 0xa8], rdx
lea rsi, [rax + 0x418]
mov qword [rsp + 0xa0], rsi
mov edi, dword [rsp + 0xf0]
lea r8d, [rdi + 1]
mov dword [rsp + 0x44], r8d
movsxd r9, r8d
shl r9, 6
movsxd r10, edi
shl r10, 6
add r10, rax
mov qword [rsp + 0x98], r10
lea r11, [rax + 0x400]
mov qword [rsp + 0x90], r11
mov qword [r11], 0
movups xmmword [rdx], xmm15
movups xmmword [rsi], xmm15
mov rbx, rax
mov rax, rcx
xor ecx, ecx
mov rdi, r9
call sym.modernc.org_libc.Xmemset
mov rcx, qword [rsp + 0x90]
mov rdx, rcx
mov rsi, qword [rsp + 0x98]
mov qword [rcx], rsi
mov rdx, qword [rdx]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe8]
mov rcx, rdx
call sym.modernc.org_sqlite_lib._fts5DoclistIterInit
xor eax, eax
xor ecx, ecx
jmp 0x6ca599
mov rsi, qword [rsp + 0x98]
mov esi, dword [rsi + 8]
mov r8d, dword [rsp + 0x38]
lea ecx, [rsi + r8]
mov eax, dword [rsp + 0x40]
inc eax
mov esi, dword [rsp + 0xf0]
cmp esi, eax
jle 0x6ca608
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x40], eax
movsxd rdx, eax
mov rsi, rdx
shl rdx, 4
mov rdi, qword [rsp + 0xf8]
lea rbx, [rdx + rdi]
mov qword [rsp + 0x98], rbx
shl rsi, 6
mov rdx, qword [rsp + 0x70]
lea rcx, [rsi + rdx]
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._fts5DoclistIterInit
mov rdx, qword [rsp + 0x60]
mov rsi, rdx
cmp qword [rdx + 0x10], 0
je 0x6ca57f
mov r11, qword [rsp + 0x90]
mov rax, r11
jmp 0x6caead
test ecx, ecx
je 0x6ca671
mov rdx, qword [rsp + 0xe8]
lea esi, [rsi + rsi*4]
shl esi, 1
add esi, dword [rdx + 8]
lea edi, [rsi + rcx]
lea edi, [rdi + 9]
mov rbx, qword [rsp + 0xe0]
lea rdx, [rbx + 0x3c]
mov qword [rsp + 0x98], rdx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa8]
mov rbx, rdx
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferSize
test eax, eax
jne 0x6ca656
xor eax, eax
jmp 0x6ca691
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx]
call rax
add rsp, 0xc8
pop rbp
ret
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx]
call rax
add rsp, 0xc8
pop rbp
ret
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x90]
mov rdx, qword [rdx]
nop dword [rax]
test rdx, rdx
je 0x6ca82e
mov rsi, qword [rsp + 0x70]
lea rdi, [rsi + 0x410]
mov qword [rsp + 0x88], rdi
mov r8, qword [rsp + 0xa8]
movsxd rbx, dword [r8 + 8]
add rbx, qword [r8]
mov rcx, qword [rdx + 8]
sub rcx, rax
mov rax, qword [rsp + 0xd8]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PutVarint
mov rdx, qword [rsp + 0x88]
mov rsi, rdx
add dword [rdx], eax
mov rdx, qword [rsp + 0x90]
mov rdi, rdx
mov rbx, qword [rdx]
mov rdx, rbx
mov r8, qword [rdx + 0x38]
mov r9, qword [rdx + 8]
mov qword [rsp + 0x68], r9
test r8, r8
je 0x6ca75a
cmp qword [r8 + 8], r9
jne 0x6ca75a
mov rdx, qword [rsp + 0x70]
lea r8, [rdx + 0x428]
mov qword [rsp + 0x80], r8
mov r10, r8
mov qword [r8], 0
mov r8, rdi
mov r11, qword [rdi]
mov qword [rdi], 0
mov rax, qword [rsp + 0xd8]
mov ecx, 8
xor ebx, ebx
jmp 0x6ca92c
mov qword [rsp + 0x80], rbx
mov r8, qword [rsp + 0xa8]
mov r10, r8
movsxd rax, dword [r8 + 8]
mov r11d, dword [rdx + 0x1c]
add r11d, dword [rdx + 0x18]
movsxd rcx, r11d
add rax, qword [r8]
nop
test rcx, rcx
je 0x6ca7dc
movabs r8, 0x3ffffffffffff
cmp r8, rcx
jb 0x6ca8e6
mov rdx, qword [rdx + 0x10]
test byte [rax], al
test byte [rdx], al
cmp rdx, rax
je 0x6ca7dc
mov rbx, rdx
call sym.runtime.memmove
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
movabs r8, 0x3ffffffffffff
mov r9, qword [rsp + 0x68]
mov r10, qword [rsp + 0xa8]
mov rcx, rbx
mov edx, dword [rcx + 0x1c]
add edx, dword [rcx + 0x18]
add dword [rsi], edx
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._fts5DoclistIterNext
mov rcx, qword [rsp + 0x90]
mov rdx, rcx
mov rsi, qword [rsp + 0x80]
mov rdi, rsi
mov rsi, qword [rsi + 0x38]
mov qword [rcx], rsi
mov rcx, rdi
nop
cmp qword [rdi + 0x10], 0
nop word [rax + rax]
je 0x6ca68c
mov rax, rdx
jmp 0x6ca8ba
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe8]
nop
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferFree
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferFree
mov rcx, qword [rsp + 0xa8]
movsxd rbx, dword [rcx + 8]
add rbx, qword [rcx]
mov rax, qword [rsp + 0xd8]
xor ecx, ecx
mov edi, 8
call sym.modernc.org_libc.Xmemset
mov rcx, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [rcx], rsi
mov qword [rcx + 8], rdx
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx]
call rcx
add rsp, 0xc8
pop rbp
ret
lea rdx, [r9 + 0x38]
mov rsi, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x6ca8d4
mov r8, qword [rdi + 8]
mov r9, rdx
cmp qword [rdx + 8], r8
jl 0x6ca8b6
jmp 0x6ca8d7
mov r9, rdx
mov qword [rdi + 0x38], r9
mov qword [rsi], rcx
mov rdx, rax
jmp 0x6ca68c
mov rdx, rcx
mov rbx, r8
call sym.runtime.panicSlice3AlenU
mov ebx, dword [rsp + 0x3c]
inc ebx
mov r12, qword [rsp + 0x68]
mov rax, qword [rsp + 0xd8]
mov r11, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0x80]
mov ecx, r9d
mov r9, r12
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x30], ecx
test r11, r11
je 0x6ca9c9
mov rdi, r11
cmp qword [r11 + 8], r9
jne 0x6ca9cc
mov dword [rsp + 0x3c], ebx
lea rdx, [rdi + 0x28]
lea rsi, [rdi + 0x20]
mov r8, qword [r11 + 0x38]
mov qword [rsp + 0x58], r8
mov dword [r11 + 0x28], 0
mov r9, rdi
mov qword [rdi + 0x20], 0
mov r10, r9
movsxd r11, dword [r9 + 0x1c]
add r11, qword [r9 + 0x10]
mov qword [r9 + 0x30], r11
mov rbx, qword [r10 + 0x30]
mov ecx, dword [r10 + 0x18]
mov rdi, rdx
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistNext64
mov rdx, qword [rsp + 0x50]
mov r8, rdx
mov r9d, dword [rdx + 0x18]
mov r10, qword [rdx + 0x20]
mov r11d, dword [rsp + 0x30]
lea r9d, [r11 + r9]
lea r9d, [r9 + 0xa]
nop
test r10, r10
jl 0x6ca8f1
mov r11, qword [rsp + 0x90]
mov rax, r11
jmp 0x6cae83
mov rdi, r11
mov r8, qword [r8]
test r8, r8
je 0x6caa9c
cmp qword [r8 + 0x38], 0
nop dword [rax]
je 0x6caa9c
lea edx, [rbx + rbx*4]
lea edi, [rcx + rdx*2]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferSize
test eax, eax
jne 0x6ca82e
mov rbx, qword [rsp + 0xa0]
mov rdx, rbx
nop
mov dword [rdx + 8], 0
mov rdx, qword [rsp + 0x90]
mov r8, qword [rdx]
mov qword [rsp + 0x48], r8
mov r9, r8
mov r8, qword [r8 + 0x38]
mov qword [rdx], r8
mov rdi, qword [r9 + 0x20]
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistSafeAppend
mov rdi, qword [rsp + 0x48]
mov rsi, rdi
mov rbx, qword [rdi + 0x30]
mov ecx, dword [rdi + 0x18]
lea rdi, [rsi + 0x28]
lea rdx, [rsi + 0x20]
mov rax, qword [rsp + 0xd8]
mov rsi, rdx
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistNext64
mov rdx, qword [rsp + 0x48]
mov rsi, rdx
mov r8, qword [rdx + 0x20]
nop
test r8, r8
jl 0x6caab0
mov r11, qword [rsp + 0x90]
mov rax, r11
jmp 0x6cae58
mov rcx, qword [rsp + 0xe0]
mov dword [rcx + 0x3c], 0x10b
jmp 0x6ca82e
mov rdx, qword [rsp + 0x90]
mov r8, rdx
mov rdi, qword [rdx]
mov rsi, rdi
cmp qword [rdi + 0x38], 0
je 0x6cab58
mov qword [rsp + 0x78], rsi
mov rdi, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x80]
mov rdx, rcx
cmp qword [rdx], rdi
je 0x6caaff
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistSafeAppend
mov rsi, qword [rsp + 0x78]
mov rdi, rsi
mov rbx, qword [rsi + 0x30]
mov ecx, dword [rsi + 0x18]
lea rdx, [rdi + 0x28]
lea rsi, [rdi + 0x20]
mov rax, qword [rsp + 0xd8]
mov rdi, rdx
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistNext64
mov rdx, qword [rsp + 0x90]
mov r8, rdx
mov r9, qword [rsp + 0x78]
mov r10, r9
mov r9, qword [r9 + 0x38]
mov qword [rdx], r9
mov rdx, r10
mov r9, qword [r10 + 0x20]
nop
test r9, r9
jl 0x6caab0
mov rax, r8
jmp 0x6cae2a
mov rdi, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x80]
mov rdx, rcx
cmp qword [rdx], rdi
je 0x6cab8d
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xa0]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistSafeAppend
mov r8, qword [rsp + 0x90]
mov rsi, qword [r8]
mov edi, dword [rsi + 0x18]
sub edi, dword [rsi + 0x28]
mov rsi, qword [rsp + 0xa0]
mov r8, rsi
mov esi, dword [rsi + 8]
add esi, edi
mov r9d, dword [rsp + 0x30]
add r9d, 0xfffffff8
cmp r9d, esi
jl 0x6cad2c
mov dword [rsp + 0x34], edi
mov rdx, qword [rsp + 0xa8]
movsxd rbx, dword [rdx + 8]
add rbx, qword [rdx]
shl esi, 1
movsxd rcx, esi
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PutVarint
mov rdx, qword [rsp + 0x88]
mov rsi, rdx
add dword [rdx], eax
mov rdx, qword [rsp + 0xa8]
mov rdi, rdx
movsxd rax, dword [rdx + 8]
mov r8, qword [rsp + 0xa0]
mov r9, r8
movsxd rcx, dword [r8 + 8]
add rax, qword [rdx]
test rcx, rcx
je 0x6cac62
movabs rbx, 0x3ffffffffffff
nop word [rax + rax]
cmp rcx, rbx
ja 0x6cae19
mov r8, qword [r8]
test byte [rax], al
test byte [r8], al
cmp r8, rax
je 0x6cac6c
mov rbx, r8
call sym.runtime.memmove
movabs rbx, 0x3ffffffffffff
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0xa8]
mov r9, qword [rsp + 0xa0]
jmp 0x6cac6c
movabs rbx, 0x3ffffffffffff
mov r8, rsi
mov r10, r9
mov r9d, dword [r9 + 8]
add dword [rsi], r9d
mov esi, dword [rsp + 0x34]
nop dword [rax]
test esi, esi
jle 0x6cad03
mov r9, rdi
movsxd rax, dword [rdi + 8]
mov r11, qword [rsp + 0x90]
mov r12, r11
mov r11, qword [r11]
movsxd r13, dword [r11 + 0x28]
movsxd rdx, esi
add rax, qword [rdi]
add r13, qword [r11 + 0x30]
test rdx, rdx
je 0x6cacfe
cmp rbx, rdx
jb 0x6cae14
test byte [rax], al
test byte [r13], al
nop dword [rax + rax]
cmp r13, rax
je 0x6cacfe
mov rbx, r13
mov rcx, rdx
call sym.runtime.memmove
movabs rbx, 0x3ffffffffffff
mov esi, dword [rsp + 0x34]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x90]
add dword [r8], esi
jmp 0x6cad0e
mov r9, rdi
mov r12, qword [rsp + 0x90]
mov rdx, r12
mov rsi, qword [rsp + 0x50]
mov qword [r12], rsi
mov esi, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
xor eax, eax
jmp 0x6cad4c
mov rcx, qword [rsp + 0xe0]
cmp dword [rcx + 0x3c], 0
jne 0x6ca82e
mov dword [rcx + 0x3c], 0x10b
jmp 0x6ca82e
inc eax
cmp eax, esi
jge 0x6ca68c
movsxd r11, eax
shl r11, 6
add r11, r8
mov r12, r11
cmp qword [r11 + 0x10], 0
je 0x6cad4a
cmp qword [r11 + 8], rdi
jne 0x6cad4a
mov qword [rsp + 0x88], r12
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xd8]
mov rbx, r12
call sym.modernc.org_sqlite_lib._fts5DoclistIterNext
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
nop
cmp qword [rcx + 0x10], 0
je 0x6cadaa
mov r11, qword [rsp + 0x90]
mov rax, r11
jmp 0x6cade9
mov eax, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x90]
movabs rbx, 0x3ffffffffffff
mov esi, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xa0]
nop
jmp 0x6cad4a
lea r11, [r9 + 0x38]
mov rsi, r11
mov rdi, qword [r11]
test rdi, rdi
je 0x6cae08
mov r8, qword [rcx + 8]
mov r9, rdi
nop dword [rax + rax]
cmp qword [rdi + 8], r8
jl 0x6cade5
jmp 0x6cae0b
mov r9, rdi
mov qword [rcx + 0x38], r9
mov qword [rsi], rdx
jmp 0x6cadaa
call sym.runtime.panicSlice3AlenU
mov rdx, rcx
nop dword [rax]
call sym.runtime.panicSlice3AlenU
lea r8, [r12 + 0x38]
mov r11, r8
mov r8, qword [r8]
test r8, r8
je 0x6cae42
mov r12, r8
cmp qword [r8 + 0x20], r9
jl 0x6cae25
nop
jmp 0x6cae45
mov r12, r8
mov qword [r10 + 0x38], r12
mov qword [r11], rdx
mov r8, rax
jmp 0x6caab0
add r11, 0x38
mov r9, r11
mov r10, qword [r11]
nop
test r10, r10
je 0x6cae70
mov r11, r10
cmp qword [r10 + 0x20], r8
jl 0x6cae54
jmp 0x6cae73
mov r11, r10
mov qword [rdx + 0x38], r11
mov qword [r9], rsi
jmp 0x6caab0
lea r11, [r13 + 0x38]
mov r12, r11
mov r11, qword [r11]
test r11, r11
je 0x6cae99
mov r13, r11
cmp qword [r11 + 0x20], r10
jl 0x6cae7f
jmp 0x6cae9c
mov r13, r11
mov qword [rdx + 0x38], r13
mov qword [r12], r8
jmp 0x6ca8f1
add r11, 0x38
mov r8, r11
mov r9, qword [r11]
test r9, r9
je 0x6caec8
mov r10, qword [rdx + 8]
mov r11, r9
nop
cmp qword [r9 + 8], r10
jl 0x6caea9
jmp 0x6caecb
mov r11, r9
mov qword [rdx + 0x38], r11
mov qword [r8], rsi
jmp 0x6ca57f
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
nop dword [rax]
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]
nop dword [rax]
jmp sym.modernc.org_sqlite_lib._fts5MergePrefixLists