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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
xor eax, eax
mov dword [rsp + 0x148], r9d
lea r13d, [r8 + 1]
mov r9, qword [rcx]
mov rbx, rcx
mov qword [rsp + 0xb0], rax
mov r15, rdx
mov r14d, r8d
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0xc0], rax
mov r8d, r13d
mov qword [rsp + 0xc8], rax
lea rax, [rcx + 0x3c]
mov rcx, rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], rax
call sym.sqlite3Fts5BufferSize
mov ebp, eax
test eax, eax
jne 0x140229aea
test r14d, r14d
mov r12, qword [rsp + 0xc0]
mov r9, qword [rsp + 0x58]
jle 0x140229402
lea rax, [r12 + 1]
mov ecx, r14d
mov rsi, r15
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov edi, dword [rsp + 0x148]
and edi, 1
jne 0x140229412
xor esi, esi
jmp 0x140229478
xor eax, eax
xor edx, edx
cmp r14d, eax
jle 0x14022944e
cmp byte [r15 + rax], 0xbf
lea ecx, [rax + 1]
jbe 0x140229447
movsxd rax, ecx
mov ecx, eax
cmp r14d, eax
jle 0x140229447
movsx r8d, byte [r15 + rax]
inc rax
and r8d, 0xc0
cmp r8d, 0x80
je 0x140229428
inc edx
movsxd rax, ecx
jmp 0x140229416
mov r8d, dword [r9 + 0x30]
xor esi, esi
xor eax, eax
lea r10d, [rdx + 1]
cmp r8d, edi
jl 0x140229478
mov rcx, qword [r9 + 0x38]
mov ecx, dword [rcx + rax]
cmp ecx, edx
je 0x140229478
cmp r10d, ecx
cmove esi, edi
inc edi
add rax, 4
jmp 0x14022945a
cmp dword [r9 + 0x30], edi
jl 0x1402294ea
mov rcx, rbx
add edi, 0x30
call sym.fts5StructureRead
mov byte [r12], dil
mov rsi, rax
test rax, rax
je 0x140229ac4
lea rax, [rsp + 0xb0]
mov dword [rsp + 0x28], r13d
mov rcx, rbx
mov rdx, rsi
mov qword [rsp + 0x40], rax
xor eax, eax
mov r8d, dword [rsp + 0x148]
mov dword [rsp + 0x38], eax
mov r9, qword [rsp + 0x150]
mov dword [rsp + 0x30], 0xffffffff
or r8d, 0x10
mov qword [rsp + 0x20], r12
call sym.fts5MultiIterNew
mov rcx, rsi
call sym.fts5StructureRelease
jmp 0x140229ac4
mov rax, qword [rbx]
mov edi, dword [rax + 0x5c]
cmp edi, 1
jne 0x14022951a
lea rax, [sym.fts5AppendRowid]
mov dword [rsp + 0x90], 0x20
mov qword [rsp + 0x68], rax
lea rax, [sym.fts5MergeRowidLists]
mov qword [rsp + 0x70], rax
jmp 0x140229542
lea rax, [sym.fts5AppendPoslist]
mov edi, 0xf
mov dword [rsp + 0x90], 0x78
mov qword [rsp + 0x68], rax
lea rax, [sym.fts5MergePrefixLists]
mov qword [rsp + 0x70], rax
movsxd rdx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
shl rdx, 4
call sym.sqlite3Fts5MallocZero
mov rcx, rbx
mov qword [rsp + 0x58], rax
call sym.fts5StructureRead
cmp qword [rsp + 0x58], 0
mov qword [rsp + 0x60], rax
je 0x140229a4d
test rax, rax
je 0x140229a4d
xor eax, eax
xorps xmm0, xmm0
xor r14d, r14d
mov dword [rsp + 0xa8], 1
mov qword [rsp + 0xb8], rax
movaps xmmword [rsp + 0xd0], xmm0
test esi, esi
je 0x140229699
mov byte [r12], 0x30
mov rdx, qword [rsp + 0x60]
xor r15d, r15d
mov rcx, rbx
lea rax, [rsp + 0xb8]
mov dword [rsp + 0x28], r13d
mov r9, qword [rsp + 0x150]
mov r8d, 0x30
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x20], r12
mov dword [rsp + 0xac], r15d
call sym.fts5MultiIterNew
mov r15, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
mov rdx, r15
call sym.fts5IterSetOutputCb
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0x80], rax
cmp dword [rbx + 0x3c], 0
jne 0x140229691
cmp byte [r15 + 0x14], 0
jne 0x140229691
mov rdx, qword [r15 + 0x58]
mov rcx, r15
movzx edx, word [rdx + 4]
imul rdx, rdx, 0x88
lea rdx, [r15 + rdx + 0x60]
call qword [r15 + 0x38]
cmp dword [r15 + 0x10], 0
je 0x140229676
mov rdx, qword [r15]
mov r9, qword [rsp + 0x78]
mov r8, r15
mov rcx, rbx
mov rax, qword [rsp + 0x68]
sub rdx, r14
call rax
mov r14, qword [r15]
cmp dword [rbx + 0x3c], 0
jne 0x14022962c
mov r8, qword [rsp + 0x80]
mov rdx, r15
mov rcx, rbx
call sym.fts5MultiIterNext2.part.0
jmp 0x14022962c
mov rcx, r15
call sym.fts5MultiIterFree
xor r11d, r11d
add esi, 0x30
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
lea rax, [rsp + 0xb8]
mov byte [r12], sil
mov r9, qword [rsp + 0x150]
mov r8d, 0x38
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
call sym.fts5MultiIterNew
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call sym.fts5IterSetOutputCb
movsxd rax, r13d
mov qword [rsp + 0x88], rax
lea eax, [rdi + rdi]
mov dword [rsp + 0x94], eax
cmp dword [rbx + 0x3c], 0
jne 0x1402298de
cmp byte [rsi + 0x14], 0
jne 0x1402298de
mov rax, qword [rsi + 0x58]
movzx edx, word [rax + 4]
mov rax, rdx
imul rdx, rdx, 0x88
imul rax, rax, 0x88
add rdx, rsi
mov rcx, qword [rdx + 0xc8]
mov r15d, dword [rdx + 0xd0]
lea rdx, [rsi + rax + 0x60]
mov qword [rsp + 0x78], rcx
mov rcx, rsi
call qword [rsi + 0x38]
cmp dword [rsp + 0xa8], 0
je 0x14022978a
cmp r13d, r15d
jg 0x1402298de
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov rcx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1402298de
cmp dword [rsi + 0x10], 0
je 0x1402298bc
cmp qword [rsi], r14
jg 0x14022989e
cmp dword [rsp + 0xd8], 0
jle 0x14022989e
lea rax, [rsp + 0xd0]
movsxd r11, edi
mov r15d, edi
xor r14d, r14d
mov qword [rsp + 0x80], rax
cmp dword [rbx + 0x3c], 0
jne 0x14022989b
cmp dword [rsp + 0xd8], 0
je 0x14022989b
mov eax, r15d
mov r9, r14
sub eax, edi
shl r9, 4
mov dword [rsp + 0x78], eax
mov edx, eax
mov rax, qword [rsp + 0x58]
add r9, rax
mov rax, r9
cmp dword [rax + 8], 0
jne 0x14022982e
mov rcx, qword [rsp + 0xd8]
movups xmm1, xmmword [rax]
xor r10d, r10d
mov r8, qword [rsp + 0xd0]
movaps xmmword [rsp + 0xd0], xmm1
mov qword [rax], r8
mov qword [rax + 8], rcx
mov dword [rsp + 0xd8], r10d
jmp 0x140229839
inc edx
add rax, 0x10
cmp edx, r15d
jl 0x1402297f9
cmp edx, r15d
je 0x140229855
mov r15d, dword [rsp + 0x78]
mov eax, dword [rsp + 0x94]
add r14, r11
add r15d, eax
jmp 0x1402297c4
mov qword [rsp + 0x98], r11
mov rax, qword [rsp + 0x70]
mov r8d, edi
mov rcx, rbx
mov rdx, qword [rsp + 0x80]
call rax
mov r11, qword [rsp + 0x98]
mov rax, r14
cmp r15d, eax
jle 0x14022983e
mov rdx, rax
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
inc rax
shl rdx, 4
mov dword [rcx + rdx + 8], r8d
jmp 0x14022987d
xor r14d, r14d
mov rdx, qword [rsi]
mov rax, qword [rsp + 0x68]
mov r8, rsi
mov rcx, rbx
lea r9, [rsp + 0xd0]
sub rdx, r14
call rax
mov r14, qword [rsi]
cmp dword [rbx + 0x3c], 0
jne 0x14022970c
lea r8, [rsp + 0xa8]
mov rdx, rsi
mov rcx, rbx
call sym.fts5MultiIterNext2.part.0
jmp 0x14022970c
movsxd r13, edi
mov r12, qword [rsp + 0x58]
shl r13, 4
cmp dword [rbx + 0x3c], 0
jne 0x140229908
mov rax, qword [rsp + 0x70]
mov r9, r12
mov r8d, edi
mov rcx, rbx
lea rdx, [rsp + 0xd0]
call rax
lea r14d, [rbp + rdi]
mov r15, r12
mov rcx, r15
inc ebp
add r15, 0x10
call sym.sqlite3Fts5BufferFree
cmp ebp, r14d
jl 0x140229910
add r12, r13
cmp dword [rsp + 0x90], r14d
jle 0x140229935
mov ebp, r14d
jmp 0x1402298ea
mov rcx, rsi
call sym.fts5MultiIterFree
movsxd rdx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x50]
add rdx, 0x18
call sym.sqlite3Fts5MallocZero
mov rbp, rax
test rax, rax
je 0x140229a40
movsxd rcx, dword [rsp + 0xd8]
lea rax, [rax + 0x10]
mov qword [rbp], rax
mov dword [rbp + 0xc], ecx
mov dword [rbp + 8], ecx
test ecx, ecx
je 0x140229986
mov rsi, qword [rsp + 0xd0]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov edx, 2
mov rcx, rbx
call sym.fts5MultiIterAlloc
mov rsi, rax
test rax, rax
je 0x140229a38
cmp dword [rbp + 0xc], 0
lea rdi, [rax + 0xe8]
mov dword [rax + 0xf0], 1
jle 0x140229a21
mov qword [rax + 0xf8], rbp
mov rcx, qword [rbp]
lea rdx, [rax + 0x160]
call sym.sqlite3Fts5GetVarint
movzx eax, al
mov qword [rsi + 0x108], rax
mov eax, dword [rbp + 8]
mov dword [rsi + 0x134], eax
mov rax, qword [rsi + 0x58]
mov word [rax + 4], 1
test byte [rsp + 0x148], 2
je 0x140229a12
mov dword [rsi + 0x44], 1
mov rdx, rdi
mov rcx, rbx
mov dword [rsi + 0xf0], 3
call sym.fts5SegIterReverseInitPage
jmp 0x140229a1d
mov rdx, rdi
mov rcx, rbx
call sym.fts5SegIterLoadNPos
xor ebp, ebp
jmp 0x140229a25
mov byte [rax + 0x14], 1
mov rdx, rdi
mov rcx, rbx
call sym.fts5SegIterSetNext
mov qword [rsp + 0xb0], rsi
mov rcx, rbp
call sym.sqlite3_free
lea rcx, [rsp + 0xd0]
call sym.sqlite3Fts5BufferFree
mov rcx, qword [rsp + 0x60]
call sym.fts5StructureRelease
mov rcx, qword [rsp + 0x58]
call sym.sqlite3_free
mov rsi, qword [rsp + 0xb0]
test rsi, rsi
je 0x140229ac4
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call sym.fts5IterSetOutputCb
cmp dword [rbx + 0x3c], 0
je 0x140229aa2
mov rcx, qword [rsp + 0xb0]
call sym.sqlite3Fts5IterClose
xor ecx, ecx
mov qword [rsp + 0xb0], rcx
mov rcx, rbx
call sym.sqlite3Fts5IndexCloseReader
jmp 0x140229aca
mov rax, qword [rsi + 0x58]
movzx edx, word [rax + 4]
imul rdx, rdx, 0x88
cmp qword [rsi + rdx + 0x70], 0
je 0x140229aca
lea rdx, [rsi + rdx + 0x60]
mov rcx, rsi
call qword [rsi + 0x38]
cmp dword [rbx + 0x3c], 0
jne 0x140229a81
mov rax, qword [rsp + 0x158]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0xc0]
mov qword [rax], rdx
call sym.sqlite3Fts5BufferFree
mov eax, dword [rbx + 0x3c]
xor edx, edx
mov dword [rbx + 0x3c], edx
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret