Function at 0x14012ceb0
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, 0x148
mov r15, qword [rdx]
movsxd r14, r8d
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x1a8], r9
lea r12, [r14 + 2]
mov dword [rsp + 0x58], 0
mov rbp, r14
mov qword [rsp + 0x98], 0
shl r12, 4
test r9, r9
je 0x14012cf02
mov eax, dword [r9]
mov dword [rsp + 0x58], eax
mov rax, qword [rbx]
mov ecx, 0xf
shl r14, 4
pxor xmm0, xmm0
lea rdi, [rsp + 0xc0]
movups xmmword [rsp + 0xa0], xmm0
mov eax, dword [rax + 0x60]
mov qword [rsp + 0x50], rdi
mov r11, rdi
mov dword [rsp + 0x68], eax
xor eax, eax
rep stosq qword [rdi], rax
lea rax, [r15 + r14]
mov r13d, dword [rax + 0x20]
test r13d, r13d
je 0x14012d3c0
movsxd rcx, dword [rax + 0x34]
mov rax, qword [rax + 0x38]
lea rsi, [r15 + r12 + 0x10]
lea rdi, [r15 + r12]
mov qword [rsp + 0x60], rsi
xor r12d, r12d
lea rdx, [rcx*8]
sub rdx, rcx
mov rcx, rbx
lea rsi, [rax + rdx*8 - 0x38]
mov rdx, r11
mov r8d, dword [rsi]
call sym.fts5WriteInit
mov eax, dword [rsi + 8]
mov dword [rsp + 0x130], 0
add eax, 1
mov dword [rsp + 0xc8], eax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 4], 1
je 0x14012d498
mov dword [rsp + 0x30], ebp
mov r8d, 0x20
xor r9d, r9d
mov rdx, r15
lea rax, [rsp + 0x98]
mov dword [rsp + 0x38], r13d
mov rcx, rbx
xor ebp, ebp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call sym.fts5MultiIterNew
mov r8d, dword [rbx + 0x3c]
mov r14, qword [rsp + 0x98]
test r8d, r8d
jne 0x14012d1b3
mov dword [rsp + 0x70], 0
mov rax, r14
mov r14, rsi
mov dword [rsp + 0x84], r12d
mov rsi, rax
mov qword [rsp + 0x78], rdi
mov rdi, rbx
cmp byte [rsi + 0x14], 0
jne 0x14012d19a
mov rax, qword [rsi + 0x60]
movzx r12d, word [rax + 4]
movzx ebp, r12w
mov rax, rbp
shl rax, 7
add rax, rsi
mov ebx, dword [rax + 0xd0]
mov r9, qword [rax + 0xc8]
cmp dword [rsp + 0xa8], ebx
je 0x14012d5e0
cmp qword [rsp + 0x1a8], 0
je 0x14012d06f
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x10c], eax
jg 0x14012d19a
lea rdx, [rsp + 0xa0]
lea rcx, [rdi + 0x3c]
mov r8d, ebx
mov qword [rsp + 0x88], r9
mov dword [rsp + 0xa8], 0
call sym.sqlite3Fts5BufferAppendBlob
mov dword [rsp + 0x70], 0
mov r9, qword [rsp + 0x88]
mov rax, rbp
shl rax, 7
add rax, rsi
mov ecx, dword [rax + 0xe0]
test ecx, ecx
jne 0x14012d0d6
mov edx, dword [rsp + 0x84]
test edx, edx
jne 0x14012d17e
cmp byte [rax + 0xe4], 0
je 0x14012d17e
mov eax, dword [rdi + 0x3c]
mov ecx, dword [rsp + 0x70]
or ecx, eax
je 0x14012d890
test eax, eax
jne 0x14012d15d
mov rax, qword [rsi + 0x60]
mov rdx, qword [rdi]
movzx eax, word [rax + 4]
shl rax, 7
mov rbx, qword [rsi + rax + 0xd8]
mov eax, dword [rsp + 0xe8]
add eax, dword [rsp + 0xd8]
cmp eax, dword [rdx + 0x90]
jge 0x14012d924
cmp byte [rsp + 0x109], 0
jne 0x14012d8f8
cmp word [rsp + 0x108], 0
lea rcx, [rdi + 0x3c]
lea rdx, [rsp + 0xd0]
mov r8, rbx
je 0x14012d8b0
call sym.sqlite3Fts5BufferAppendVarint
mov qword [rsp + 0x100], rbx
mov word [rsp + 0x108], 0
shl rbp, 7
add rbp, rsi
cmp dword [rsp + 0x68], 1
movzx eax, byte [rbp + 0xe4]
jne 0x14012d780
test al, al
jne 0x14012d8bd
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call sym.fts5MultiIterNext
mov eax, dword [rdi + 0x3c]
test eax, eax
je 0x14012d018
mov rax, rsi
mov rbx, rdi
mov rdi, qword [rsp + 0x78]
mov rsi, r14
mov rbp, qword [rsp + 0xa0]
mov r14, rax
mov rdx, qword [rsp + 0x50]
lea r8, [rsi + 8]
mov rcx, rbx
call sym.fts5WriteFinish
mov edx, dword [rbx + 0x3c]
test edx, edx
je 0x14012d4b0
test r13d, r13d
jle 0x14012d334
movsxd rax, r13d
lea rcx, [rbx + 0x68]
mov dword [rsp + 0x58], r13d
mov r13, rbx
lea r12, [rax*8]
mov qword [rsp + 0x78], rbp
sub r12, rax
mov qword [rsp + 0x50], rcx
lea rax, [r12*8]
xor r12d, r12d
mov qword [rsp + 0x68], r15
mov rbp, r12
mov qword [rsp + 0x70], r14
mov r12, rax
jmp 0x14012d289
lea edx, [r14 + 0x10000]
sub r8d, 1
mov rcx, r13
shl rdx, 0x25
movsxd r8, r8d
add r8, rdx
call sym.fts5DataDelete.part.0
cmp qword [r13 + 0x68], 0
je 0x14012d2f0
mov r11d, dword [r13 + 0x3c]
test r11d, r11d
jne 0x14012d278
mov rcx, qword [r13 + 0x68]
mov r8, rbx
mov edx, 1
call sym.sqlite3_bind_int64
mov rcx, qword [r13 + 0x68]
call sym.sqlite3_step
mov rcx, qword [r13 + 0x68]
call sym.sqlite3_reset
mov dword [r13 + 0x3c], eax
add rbp, 0x38
cmp rbp, r12
je 0x14012d320
mov edx, dword [r13 + 0x3c]
mov r15, qword [rdi + 8]
add r15, rbp
movsxd rbx, dword [r15]
mov rax, qword [r15 + 0x30]
add rax, qword [rsi + 0x30]
sub rax, qword [r15 + 0x28]
mov qword [rsi + 0x30], rax
mov r14, rbx
test edx, edx
jne 0x14012d2c7
lea edx, [rbx + 1]
mov rcx, rbx
shl rdx, 0x25
shl rcx, 0x25
lea r8, [rdx - 1]
mov rdx, rcx
mov rcx, r13
call sym.fts5DataDelete.part.0
mov r8d, dword [r15 + 0x20]
test r8d, r8d
je 0x14012d23d
mov r15d, dword [r13 + 0x3c]
test r15d, r15d
je 0x14012d220
cmp qword [r13 + 0x68], 0
jne 0x14012d278
nop dword [rax + rax]
mov rax, qword [r13]
lea rcx, str.DELETE_FROM__q._q_idx_WHERE_segid_
mov rdx, qword [rax + 8]
mov r8, qword [rax + 0x10]
call sym.sqlite3_mprintf
mov rdx, qword [rsp + 0x50]
mov rcx, r13
mov r8, rax
call sym.fts5IndexPrepareStmt
jmp 0x14012d248
mov r13d, dword [rsp + 0x58]
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov r8d, dword [rdi + 4]
mov edx, r13d
cmp r8d, r13d
jne 0x14012d590
mov eax, dword [r15 + 0x18]
mov r10d, dword [rsi + 8]
sub edx, r13d
sub eax, r13d
mov dword [r15 + 0x18], eax
mov dword [rdi + 4], edx
mov dword [rdi], 0
test r10d, r10d
jne 0x14012d374
mov rdi, qword [rsp + 0x60]
sub eax, 1
sub dword [rdi + 4], 1
mov dword [r15 + 0x18], eax
test r14, r14
je 0x14012d381
mov rcx, r14
call sym.fts5MultiIterFree.part.0
mov rcx, rbp
call sym.sqlite3_free
cmp qword [rsp + 0x1a8], 0
je 0x14012d3a5
mov rbx, qword [rsp + 0x1a8]
mov eax, dword [rsp + 0x10c]
sub dword [rbx], eax
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r15
mov rcx, rbx
lea r13, [rbx + 0x3c]
call sym.fts5AllocateSegid
mov edi, eax
mov eax, dword [r15 + 0x1c]
sub eax, 1
cmp eax, ebp
je 0x14012d5c0
mov r10d, dword [rbx + 0x3c]
test r10d, r10d
jne 0x14012d3a5
xor r9d, r9d
lea r8d, [rbp + 1]
mov rdx, r15
mov rcx, r13
call sym.fts5StructureExtendLevel.part.0.constprop.0
mov r9d, dword [rbx + 0x3c]
test r9d, r9d
jne 0x14012d3a5
mov rdx, qword [rsp + 0x50]
add r14, r15
mov rcx, rbx
mov r8d, edi
call sym.fts5WriteInit
movsxd rcx, dword [r14 + 0x34]
lea rdx, [rcx*8]
mov rax, rcx
sub rdx, rcx
mov rcx, qword [r14 + 0x38]
add eax, 1
mov dword [r14 + 0x34], eax
lea rsi, [rcx + rdx*8]
mov dword [rsi + 4], 1
mov dword [rsi], edi
add dword [r15 + 0x18], 1
cmp qword [r15 + 0x10], 0
mov r13d, dword [r14 + 0x24]
je 0x14012d471
mov rdx, qword [r14 + 0x28]
movsxd rcx, r13d
lea rax, [rcx*8]
movq xmm0, qword [rdx + 0x10]
sub rax, rcx
movhps xmm0, qword [rdx + rax*8 - 0x20]
movups xmmword [rsi + 0x10], xmm0
lea rax, [r15 + r12 + 0x10]
lea rdi, [r15 + r12]
xor r12d, r12d
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 4], 1
jne 0x14012cfa5
nop dword [rax]
xor r12d, r12d
lea eax, [rbp + 2]
cmp dword [r15 + 0x1c], eax
sete r12b
jmp 0x14012cfa5
cmp byte [r14 + 0x14], 0
jne 0x14012d1cf
mov r9d, dword [r14 + 0x48]
pxor xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
test r9d, r9d
jle 0x14012d936
xor r15d, r15d
lea rax, [rbx + 0x3c]
mov qword [rsp + 0x70], rbp
lea rsi, [r14 + 0x68]
mov qword [rsp + 0x50], rax
mov ebp, r15d
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x68], rdi
jmp 0x14012d573
movsxd rdi, dword [rax]
movsxd r12, dword [rsi + 0x38]
mov rcx, rbx
mov r13d, dword [rsi + 0x3c]
shl rdi, 0x25
add r12, rdi
mov rdx, r12
call sym.fts5DataRead
mov r15, rax
test rax, rax
je 0x14012d557
mov r8d, dword [rax + 8]
cmp r8d, 3
jle 0x14012d740
mov eax, dword [rax + 0xc]
cmp r8d, eax
jl 0x14012d740
cmp r13d, eax
jle 0x14012d620
mov dword [rbx + 0x3c], 0x10b
mov rcx, r15
call sym.sqlite3_free
add ebp, 1
sub rsi, 0xffffffffffffff80
cmp ebp, dword [r14 + 0x48]
jge 0x14012d758
mov eax, dword [rbx + 0x3c]
test eax, eax
jne 0x14012d758
mov rax, qword [rsi]
test rax, rax
je 0x14012d557
cmp qword [rsi + 0x10], 0
jne 0x14012d500
mov qword [rax + 4], 0
jmp 0x14012d557
sub r8d, r13d
movsxd rdx, r13d
mov rcx, qword [rdi + 8]
imul r8d, r8d, 0x38
lea rax, [rdx*8]
sub rax, rdx
lea rdx, [rcx + rax*8]
movsxd r8, r8d
call sym.memmove
mov edx, dword [rdi + 4]
jmp 0x14012d344
mov rdx, rsi
mov rcx, r13
call sym.fts5StructureAddLevel
mov r10d, dword [rbx + 0x3c]
mov r15, qword [rsi]
test r10d, r10d
jne 0x14012d3a5
jmp 0x14012d3e9
test ebx, ebx
jle 0x14012d0a6
mov rdx, qword [rsp + 0xa0]
mov rcx, r9
movsxd r8, ebx
mov qword [rsp + 0x88], r9
call sym.memcmp
mov r9, qword [rsp + 0x88]
test eax, eax
je 0x14012d0a6
jmp 0x14012d053
mov dword [rsp + 0xb8], 0
cmp dword [rsp + 0xbc], r8d
jb 0x14012d830
lea rcx, [rsp + 0xb0]
xor eax, eax
mov r8d, 4
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0xb0]
mov dword [rsp + 0xb8], r8d
mov dword [rdx + rax], 0
movsxd r8, dword [rsi + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call sym.sqlite3Fts5BufferAppendVarint
mov r9, qword [rsi + 0x60]
mov r8d, dword [rsi + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call sym.sqlite3Fts5BufferAppendBlob
mov r8d, dword [r15 + 0xc]
mov rdx, qword [rsp + 0x58]
movsxd r9, r13d
mov rcx, qword [rsp + 0x50]
add r9, qword [r15]
sub r8d, r13d
call sym.sqlite3Fts5BufferAppendBlob
mov r8d, dword [rbx + 0x3c]
test r8d, r8d
jne 0x14012d6cc
movzx eax, word [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
rol ax, 8
mov word [rdx + 2], ax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r8d, 4
call sym.sqlite3Fts5BufferAppendVarint
mov eax, dword [rsi + 0x38]
cmp dword [rsi + 0xc], eax
je 0x14012d7c0
mov rdx, qword [rsi]
mov ecx, dword [rbx + 0x3c]
mov dword [rdx + 4], eax
test ecx, ecx
jne 0x14012d54f
lea rdx, [rdi + 1]
mov r8, r12
mov rcx, rbx
call sym.fts5DataDelete.part.0
mov edx, dword [rbx + 0x3c]
mov r9d, dword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
test edx, edx
jne 0x14012d54f
mov rdx, r12
mov rcx, rbx
call sym.fts5DataWrite.part.0
jmp 0x14012d54f
mov dword [rbx + 0x3c], 0x10b
mov rcx, r15
call sym.sqlite3_free
jmp 0x14012d557
mov r13d, dword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call sym.sqlite3_free
mov dword [rdi], r13d
jmp 0x14012d379
mov edx, dword [rbp + 0xe0]
lea rcx, [rdi + 0x3c]
shl r12, 7
lea r8d, [rax + rdx*2]
lea rdx, [rsp + 0xd0]
movsxd r8, r8d
call sym.sqlite3Fts5BufferAppendVarint
mov r8, qword [rsp + 0x50]
lea rdx, [rsi + r12 + 0x68]
mov rcx, rdi
lea r9, [sym.fts5MergeChunkCallback]
call sym.fts5ChunkIterate
jmp 0x14012d17e
mov ecx, dword [rsi + 0x44]
mov edx, dword [r15 + 0xc]
cmp ecx, edx
jge 0x14012d6ed
mov r10d, dword [r15 + 8]
cmp dword [rsi + 0x40], r10d
jg 0x14012d6ed
movsxd r8, dword [rsp + 0xb8]
sub edx, ecx
mov r13, qword [rsp + 0x50]
movsxd rax, edx
mov rdx, r8
mov rcx, r13
sub rdx, rax
lea r8, [rdx - 5]
mov rdx, qword [rsp + 0x58]
call sym.sqlite3Fts5BufferAppendVarint
movsxd r9, dword [rsi + 0x40]
mov r8d, dword [r15 + 8]
mov rcx, r13
mov rdx, qword [rsp + 0x58]
mov rax, r9
add r9, qword [r15]
sub r8d, eax
call sym.sqlite3Fts5BufferAppendBlob
mov eax, dword [rsi + 0x38]
jmp 0x14012d6ed
lea rax, [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x58], rax
call sym.sqlite3Fts5BufferSize
movsxd rax, dword [rsp + 0xb8]
lea r8d, [rax + 4]
cmp dword [rsp + 0xbc], r8d
jae 0x14012d64e
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call sym.sqlite3Fts5BufferSize
test eax, eax
jne 0x14012d665
movsxd rax, dword [rsp + 0xb8]
lea r8d, [rax + 4]
jmp 0x14012d64e
mov rdx, qword [rsp + 0x50]
mov r8d, ebx
mov rcx, rdi
call sym.fts5WriteAppendTerm
mov dword [rsp + 0x70], 1
mov eax, dword [rdi + 0x3c]
jmp 0x14012d0e5
sub r8, qword [rsp + 0x100]
jmp 0x14012d146
lea rbx, [rdi + 0x3c]
lea r12, [rsp + 0xd0]
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call sym.sqlite3Fts5BufferAppendVarint
mov eax, dword [rbp + 0xe0]
test eax, eax
jle 0x14012d17e
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call sym.sqlite3Fts5BufferAppendVarint
jmp 0x14012d17e
movzx eax, word [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov r8, rbx
mov rcx, rdi
rol ax, 8
mov word [rdx], ax
mov rdx, qword [rsp + 0x50]
call sym.fts5WriteDlidxAppend
jmp 0x14012d128
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call sym.fts5WriteFlushLeaf
jmp 0x14012d11a
xor ecx, ecx
jmp 0x14012d76f