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

Disassembly:
lea r12, [rsp - 0x48]
cmp r12, qword [r14 + 0x10]
jbe 0x6d0f77
push rbp
mov rbp, rsp
sub rsp, 0xc0
movq qword [rsp + 0xb8], xmm15
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rcx
mov dword [rsp + 0xe8], edi
mov byte [rsp + 0x4f], 0
mov dword [rsp + 0x50], 0
mov ebx, 0x30
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x80], rax
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3Fts5IndexIntegrityCheck.deferwrap1]
mov qword [rsp + 0xa8], rcx
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xb0], rcx
lea rdx, [rsp + 0xa8]
mov qword [rsp + 0xb8], rdx
mov byte [rsp + 0x4f], 1
mov rbx, qword [rsp + 0xd8]
mov rdx, rbx
mov rdx, qword [rdx]
mov edx, dword [rdx + 0x60]
mov dword [rsp + 0x5c], edx
movups xmmword [rax], xmm15
mov rax, rcx
call sym.modernc.org_sqlite_lib._fts5StructureRead
test rax, rax
je 0x6d0b15
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
xor ecx, ecx
jmp 0x6d0b4f
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rax + 0x3c]
mov dword [rax + 0x3c], 0
mov dword [rsp + 0x50], ecx
mov byte [rsp + 0x4f], 0
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x50]
add rsp, 0xc0
pop rbp
ret
inc ecx
mov rax, r12
mov r12, rax
cmp dword [rax + 0x1c], ecx
jle 0x6d0b65
mov dword [rsp + 0x58], ecx
xor eax, eax
nop dword [rax]
jmp 0x6d0f46
mov r13, qword [rsp + 0x80]
lea r15, [r13 + 0x10]
mov qword [rsp + 0xa0], r15
mov qword [rsp], r15
mov rax, rdx
mov rcx, r12
mov edi, 0x20
xor esi, esi
mov r8, rsi
xor r9d, r9d
mov r10d, 0xffffffff
mov r11d, r9d
call sym.modernc.org_sqlite_lib._fts5MultiIterNew
mov rbx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x80]
mov r12, qword [rsp + 0xa0]
mov r13d, dword [rsp + 0x5c]
xor eax, eax
jmp 0x6d0c03
mov qword [rsp + 0x78], rax
mov rcx, qword [r11]
xor edi, edi
xor esi, esi
mov rax, qword [rsp + 0xd0]
call sym.modernc.org_sqlite_lib._fts5MultiIterNext
mov rbx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xa0]
mov r9d, dword [rsp + 0x5c]
mov r10, qword [rsp + 0x78]
mov r12, r8
mov r13d, r9d
mov rax, r10
mov r10, rbx
cmp dword [r10 + 0x3c], 0
je 0x6d0c15
mov r11d, 1
jmp 0x6d0c28
mov r10, r12
mov r11, qword [r12]
cmp byte [r11 + 0x14], 0
setne r11b
mov r12, r10
mov qword [rsp + 0x78], rax
movzx r10d, r11b
test r10d, r10d
jne 0x6d0dec
lea r10, [rdx + 0x20]
mov r11, r10
mov qword [r10], 0
lea r10, [rdx + 0x28]
mov r15, r10
mov dword [r10], 0
mov r10, r12
mov r12, qword [r12]
lea rcx, [rdx + 0x18]
mov rsi, r12
mov r12, qword [r12 + 0x60]
add r12, 4
movzx r12d, word [r12]
shl r12, 7
lea r12, [rsi + r12]
lea r12, [r12 + 0x68]
mov rsi, rcx
mov rdi, r12
mov r8d, dword [r12 + 0x68]
mov r12, qword [r12 + 0x70]
mov dword [rcx], r8d
mov rcx, rbx
cmp dword [rcx + 0x3c], 0
jne 0x6d0def
mov r8, qword [rdi + 0x60]
cmp r13d, 1
jne 0x6d0d38
mov r11, r10
mov r10, qword [r10]
mov r15, r10
mov r10, qword [r10 + 0x60]
add r10, 4
movzx r10d, word [r10]
shl r10, 7
lea r10, [r15 + r10]
lea r10, [r10 + 0x68]
cmp qword [r10 + 0x10], 0
je 0x6d0ce2
cmp dword [r10 + 0x78], 0
sete r10b
nop
jmp 0x6d0ce5
xor r10d, r10d
movzx r10d, r10b
test r10d, r10d
jne 0x6d0bbf
mov r9d, dword [rsi]
mov rax, qword [rsp + 0xd0]
mov rbx, r12
xor ecx, ecx
mov edi, ecx
mov esi, 0xffffffff
call sym.modernc.org_sqlite_lib._sqlite3Fts5IndexEntryCksum
mov rdx, qword [rsp + 0x78]
xor rax, rdx
mov rdx, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xd8]
mov r11, qword [rsp + 0xa0]
mov r13d, dword [rsp + 0x5c]
jmp 0x6d0bbf
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x60], r8
mov rsi, rdx
mov dword [rdx + 8], 0
mov r8, qword [r10]
mov r9, r8
mov r8, qword [r8 + 0x60]
add r8, 4
movzx r8d, word [r8]
shl r8, 7
lea rcx, [r9 + r8]
lea rcx, [rcx + 0x68]
mov rax, qword [rsp + 0xd0]
xor edi, edi
call sym.modernc.org_sqlite_lib._fts5SegiterPoslist
mov rbx, qword [rsp + 0xd8]
lea rdx, [rbx + 0x3c]
mov rsi, qword [0x00a30e10]
add rsi, 0x9586
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x80]
mov edi, 4
mov rbx, rdx
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferAppendBlob
mov rax, qword [rsp + 0x78]
jmp 0x6d0ed7
mov rbx, qword [rsp + 0xd8]
mov r11, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x78]
jmp 0x6d0bbf
mov r10, r12
mov rbx, qword [r10]
mov rax, qword [rsp + 0xd0]
call sym.modernc.org_sqlite_lib._fts5MultiIterFree
mov rcx, qword [rsp + 0xd8]
mov rdx, rcx
cmp dword [rcx + 0x3c], 0
jne 0x6d0e34
mov esi, dword [rsp + 0xe8]
test esi, esi
je 0x6d0e34
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x78]
cmp rsi, rdi
je 0x6d0e34
mov dword [rcx + 0x3c], 0x10b
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._fts5StructureRelease
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._sqlite3Fts5BufferFree
mov rcx, qword [rsp + 0xd8]
mov edx, dword [rcx + 0x3c]
mov dword [rcx + 0x3c], 0
mov dword [rsp + 0x50], edx
mov byte [rsp + 0x4f], 0
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x50]
add rsp, 0xc0
pop rbp
ret
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
mov rdi, rcx
sar rcx, 0x20
and edi, 0x7fffffff
mov rdx, qword [rsp + 0x88]
mov r9d, dword [rdx]
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x70]
mov esi, 0xffffffff
mov r8, qword [rsp + 0x60]
call sym.modernc.org_sqlite_lib._sqlite3Fts5IndexEntryCksum
mov rdx, qword [rsp + 0x78]
xor rax, rdx
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x80]
mov rbx, qword [rdx]
mov ecx, dword [rdx + 8]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rax, qword [rsp + 0xd0]
call sym.modernc.org_sqlite_lib._sqlite3Fts5PoslistNext64
test eax, eax
je 0x6d0e90
jmp 0x6d0dd2
mov dword [rsp + 0x54], eax
movsxd rsi, eax
imul rcx, rsi, 0x38
add rcx, qword [r13 + 8]
mov rax, rdx
call sym.modernc.org_sqlite_lib._fts5IndexIntegrityCheckSegment
mov eax, dword [rsp + 0x54]
inc eax
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov r12, qword [rsp + 0x68]
movsxd r13, ecx
shl r13, 4
lea r13, [r12 + r13]
lea r13, [r13 + 0x20]
cmp dword [r13 + 4], eax
jg 0x6d0f10
nop dword [rax + rax]
jmp 0x6d0b4a
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
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]
jmp sym.modernc.org_sqlite_lib._sqlite3Fts5IndexIntegrityCheck