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

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0x5c], 0
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5StructureRead
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5StructureInvalidate
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.sqlite3Fts5HashIsEmpty
test eax, eax
jne 0x1401d1f1d
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5AllocateSegid
mov dword [rbp + 0xac], eax
cmp dword [rbp + 0xac], 0
je 0x1401d1f1d
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax]
mov eax, dword [rax + 0x88]
mov dword [rbp + 0xa8], eax
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax]
mov eax, dword [rax + 0x5c]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax]
mov eax, dword [rax + 0xb0]
mov dword [rbp + 0xa0], eax
mov ecx, dword [rbp + 0xac]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r8d, ecx
mov rcx, rax
call sym.fts5WriteInit
lea rax, [rbp - 0x50]
add rax, 0x10
mov qword [rbp + 0x98], rax
lea rax, [rbp - 0x50]
add rax, 0x20
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1da9
mov rax, qword [rbp + 0xb0]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.sqlite3Fts5HashScanInit
mov rdx, qword [rbp + 0xf0]
mov dword [rdx + 0x3c], eax
jmp 0x1401d1da9
lea r8, [rbp + 0x44]
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x50]
mov rax, qword [rbp + 0xb0]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.sqlite3Fts5HashScanEntry
mov rax, qword [rbp + 0x50]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0x8c], eax
cmp dword [rbp + 0xa0], 0
jne 0x1401d16c7
mov r8, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x8c]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sym.fts5WriteAppendTerm
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1dd0
cmp dword [rbp + 0xa0], 0
jne 0x1401d173d
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x90]
mov eax, dword [rax + 8]
add edx, eax
mov eax, dword [rbp + 0x44]
add eax, edx
cmp dword [rbp + 0xa8], eax
jle 0x1401d173d
mov eax, dword [rbp + 0x44]
movsxd r8, eax
mov rax, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rdx]
mov rdx, qword [rbp + 0x98]
mov edx, dword [rdx + 8]
movsxd rdx, edx
add rcx, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov eax, dword [rbp + 0x44]
add edx, eax
mov rax, qword [rbp + 0x98]
mov dword [rax + 8], edx
jmp 0x1401d1d8c
cmp dword [rbp + 0xa0], 0
sete al
movzx eax, al
mov dword [rbp + 0xdc], eax
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov dword [rbp + 0xc4], 0
jmp 0x1401d1d6c
mov qword [rbp + 0x38], 0
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
lea rcx, [rdx + rax]
lea rax, [rbp + 0x38]
mov rdx, rax
call sym.sqlite3Fts5GetVarint
movzx eax, al
add dword [rbp + 0xc4], eax
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0x38]
add rax, rdx
mov qword [rbp + 0xd0], rax
cmp dword [rbp + 0xa0], 0
je 0x1401d18ce
cmp dword [rbp + 0xa4], 1
jne 0x1401d185e
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xc4], eax
jge 0x1401d18ce
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x1401d18ce
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xf0]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.fts5FlushSecureDelete
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xc4], eax
jge 0x1401d1d6b
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x1401d1d6b
add dword [rbp + 0xc4], 1
mov dword [rbp + 0x44], 0
jmp 0x1401d18ce
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
and eax, 1
test eax, eax
je 0x1401d18ce
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xf0]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.fts5FlushSecureDelete
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d18c2
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 1
jne 0x1401d18ce
add dword [rbp + 0xc4], 1
jmp 0x1401d1d6c
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1912
cmp dword [rbp + 0xdc], 0
jne 0x1401d1912
mov r8, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x8c]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sym.fts5WriteAppendTerm
mov dword [rbp + 0xdc], 1
movzx eax, byte [rbp - 7]
test al, al
je 0x1401d199f
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
movzx edx, ax
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, rax
call sym.fts5PutU16
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rdx]
mov rdx, qword [rbp + 0x98]
mov edx, dword [rdx + 8]
movsxd rdx, edx
add rcx, rdx
mov rdx, rax
call sym.sqlite3Fts5PutVarint
mov rdx, qword [rbp + 0x98]
mov edx, dword [rdx + 8]
add edx, eax
mov rax, qword [rbp + 0x98]
mov dword [rax + 8], edx
mov byte [rbp - 7], 0
mov rcx, qword [rbp + 0xd0]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r8, rcx
mov rcx, rax
call sym.fts5WriteDlidxAppend
jmp 0x1401d19f6
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xc8]
sub rdx, rax
mov qword [rbp + 0x80], rdx
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
cdqe
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0x80]
mov rdx, rax
call sym.sqlite3Fts5PutVarint
mov rdx, qword [rbp + 0x98]
mov edx, dword [rdx + 8]
add edx, eax
mov rax, qword [rbp + 0x98]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1d8b
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xc8], rax
cmp dword [rbp + 0xa4], 1
jne 0x1401d1b07
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xc4], eax
jge 0x1401d1acd
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x1401d1acd
mov rax, qword [rbp + 0x98]
mov r8, qword [rax]
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
lea ecx, [rax + 1]
mov rdx, qword [rbp + 0x98]
mov dword [rdx + 8], ecx
cdqe
add rax, r8
mov byte [rax], 0
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xc4], eax
jge 0x1401d1acd
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x1401d1acd
mov rax, qword [rbp + 0x98]
mov r8, qword [rax]
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
lea ecx, [rax + 1]
mov rdx, qword [rbp + 0x98]
mov dword [rdx + 8], ecx
cdqe
add rax, r8
mov byte [rax], 0
add dword [rbp + 0xc4], 1
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x90]
mov eax, dword [rax + 8]
add eax, edx
cmp dword [rbp + 0xa8], eax
jg 0x1401d1d6c
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5WriteFlushLeaf
jmp 0x1401d1d6c
mov dword [rbp + 0x34], 0
mov dword [rbp + 0x30], 0
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
lea rcx, [rdx + rax]
lea rdx, [rbp + 0x34]
lea rax, [rbp + 0x30]
mov r8, rdx
mov rdx, rax
call sym.fts5GetPoslistSize
mov dword [rbp + 0xc0], eax
mov eax, dword [rbp + 0x34]
test eax, eax
je 0x1401d1b8b
cmp dword [rbp + 0xa0], 0
je 0x1401d1b8b
mov eax, dword [rbp + 0x30]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0xf0]
lea rcx, [rax + 0x3c]
mov rax, qword [rbp + 0x98]
mov r8, rdx
mov rdx, rax
call sym.sqlite3Fts5BufferAppendVarint
mov eax, dword [rbp + 0xc0]
add dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0xc0], eax
jmp 0x1401d1b94
mov eax, dword [rbp + 0x30]
add dword [rbp + 0xc0], eax
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x90]
mov eax, dword [rax + 8]
add edx, eax
mov eax, dword [rbp + 0xc0]
add eax, edx
cmp dword [rbp + 0xa8], eax
jl 0x1401d1c14
mov eax, dword [rbp + 0xc0]
movsxd r8, eax
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rdx, rax
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
cdqe
add rax, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov eax, dword [rbp + 0xc0]
add edx, eax
mov rax, qword [rbp + 0x98]
mov dword [rax + 8], edx
jmp 0x1401d1d5d
mov rdx, qword [rbp + 0x48]
mov eax, dword [rbp + 0xc4]
cdqe
add rax, rdx
mov qword [rbp + 0x78], rax
mov dword [rbp + 0xbc], 0
jmp 0x1401d1d48
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
mov edx, dword [rbp + 0xa8]
sub edx, eax
mov rax, qword [rbp + 0x90]
mov eax, dword [rax + 8]
sub edx, eax
mov dword [rbp + 0x74], edx
mov dword [rbp + 0xb8], 0
mov eax, dword [rbp + 0xc0]
sub eax, dword [rbp + 0xbc]
cmp dword [rbp + 0x74], eax
jl 0x1401d1c86
mov eax, dword [rbp + 0xc0]
sub eax, dword [rbp + 0xbc]
mov dword [rbp + 0xb8], eax
jmp 0x1401d1ca7
mov eax, dword [rbp + 0xbc]
movsxd rdx, eax
mov rax, qword [rbp + 0x78]
lea rcx, [rdx + rax]
mov eax, dword [rbp + 0x74]
mov edx, eax
call sym.fts5PoslistPrefix
mov dword [rbp + 0xb8], eax
mov eax, dword [rbp + 0xb8]
movsxd r8, eax
mov eax, dword [rbp + 0xbc]
movsxd rdx, eax
mov rax, qword [rbp + 0x78]
add rdx, rax
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + 8]
cdqe
add rax, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov eax, dword [rbp + 0xb8]
add edx, eax
mov rax, qword [rbp + 0x98]
mov dword [rax + 8], edx
mov eax, dword [rbp + 0xb8]
add dword [rbp + 0xbc], eax
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x90]
mov eax, dword [rax + 8]
add eax, edx
cmp dword [rbp + 0xa8], eax
jg 0x1401d1d3a
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5WriteFlushLeaf
mov eax, dword [rbp + 0xbc]
cmp eax, dword [rbp + 0xc0]
jge 0x1401d1d5c
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
je 0x1401d1c36
jmp 0x1401d1d5d
nop
mov eax, dword [rbp + 0xc0]
add dword [rbp + 0xc4], eax
jmp 0x1401d1d6c
nop
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1d8c
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xc4], eax
jl 0x1401d1775
jmp 0x1401d1d8c
nop
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1da9
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.sqlite3Fts5HashScanNext
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1dd1
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.sqlite3Fts5HashScanEof
test eax, eax
je 0x1401d1656
jmp 0x1401d1dd1
nop
lea rcx, [rbp + 0x5c]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r8, rcx
mov rcx, rax
call sym.fts5WriteFinish
mov eax, dword [rbp + 0x5c]
test eax, eax
jle 0x1401d1f1d
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x1c]
test eax, eax
jne 0x1401d1e18
mov rax, qword [rbp + 0xf0]
lea rcx, [rax + 0x3c]
lea rax, [rbp + 0x60]
mov rdx, rax
call sym.fts5StructureAddLevel
mov rax, qword [rbp + 0x60]
mov rdx, qword [rbp + 0xf0]
lea rcx, [rdx + 0x3c]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, 0
mov rdx, rax
call sym.fts5StructureExtendLevel
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x3c]
test eax, eax
jne 0x1401d1f02
mov rax, qword [rbp + 0x60]
mov r8, qword [rax + 0x28]
mov rax, qword [rbp + 0x60]
mov edx, dword [rax + 0x24]
lea ecx, [rdx + 1]
mov dword [rax + 0x24], ecx
movsxd rdx, edx
mov rax, rdx
shl rax, 3
sub rax, rdx
shl rax, 3
add rax, r8
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov edx, dword [rbp + 0xac]
mov dword [rax], edx
mov rax, qword [rbp + 0x68]
mov dword [rax + 4], 1
mov edx, dword [rbp + 0x5c]
mov rax, qword [rbp + 0x68]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1401d1ef5
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x68]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x68]
mov qword [rax + 0x18], rdx
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x38]
movsxd rdx, eax
mov rax, qword [rbp + 0x68]
mov qword [rax + 0x30], rdx
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax + 0x10]
add rdx, 1
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x60]
mov edx, dword [rax + 0x18]
add edx, 1
mov dword [rax + 0x18], edx
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0xf0]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.fts5StructurePromote
mov rax, qword [rbp + 0xf0]
mov edx, dword [rax + 0x34]
mov eax, dword [rbp + 0x5c]
lea ecx, [rdx + rax]
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0xf0]
mov r8d, ecx
mov rcx, rax
call sym.fts5IndexAutomerge
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5IndexCrisismerge
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.fts5StructureWrite
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sym.fts5StructureRelease
nop
add rsp, 0x160
pop rbp
ret