Function at 0x4ac0a4
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, 0x68
mov rbp, qword [rcx]
mov r12, rdx
mov edx, dword [rcx + 0x20]
mov rbx, rcx
mov r15, qword [rbp + 0x18]
cmp edx, 3
mov eax, dword [r15 + 0x18]
jne 0x4ac0e9
xor esi, esi
cmp r8d, eax
jne 0x4ac47a
mov rdx, qword [rcx + 0x58]
mov rcx, r12
call sym.sqlite3_result_int64
jmp 0x4ac47a
cmp r8d, eax
jne 0x4ac0ff
mov rdx, qword [rcx + 0x18]
mov rcx, r12
call sym.sqlite3_result_int64
jmp 0x4ac275
inc eax
cmp eax, r8d
jne 0x4ac423
cmp edx, 2
jne 0x4ac27c
mov rax, qword [rcx + 0x40]
xor ebp, ebp
mov dword [rsp + 0x40], 0
test rax, rax
je 0x4ac129
mov ebp, dword [rax + 0x1c]
lea rsi, [rsp + 0x50]
xor eax, eax
mov ecx, 4
mov rdi, rsi
rep stosd dword [rdi], eax
mov edi, dword [r15 + 0x5c]
test edi, edi
je 0x4ac164
cmp edi, 2
jne 0x4ac25c
lea eax, [rbp - 1]
xor r13d, r13d
mov dword [rsp + 0x3c], eax
lea r14, [rsp + 0x44]
lea r15, [rsp + 0x48]
jmp 0x4ac20a
lea eax, [rbp - 1]
xor r13d, r13d
mov dword [rsp + 0x3c], eax
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x40]
cmp r13d, dword [rsp + 0x3c]
jge 0x4ac1a1
mov rcx, qword [rbx + 0x40]
mov edx, r13d
mov r8, r14
inc r13d
call sym.sqlite3Fts5ExprPoslist
mov rdx, rsi
mov rcx, r15
movsxd r8, eax
call sym.sqlite3Fts5BufferAppendVarint
jmp 0x4ac178
lea r13, [rsp + 0x48]
lea r14, [rsp + 0x40]
cmp ebp, edi
jle 0x4ac25c
mov rcx, qword [rbx + 0x40]
mov edx, edi
mov r8, r13
inc edi
call sym.sqlite3Fts5ExprPoslist
mov r9, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, r14
mov r8d, eax
call sym.sqlite3Fts5BufferAppendBlob
jmp 0x4ac1ab
cmp r13d, dword [rsp + 0x3c]
jge 0x4ac214
mov rcx, qword [rbx + 0x40]
mov edx, r13d
mov r9, r14
mov r8, r15
inc r13d
call sym.sqlite3Fts5ExprPhraseCollist
movsxd r8, dword [rsp + 0x44]
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov dword [rsp + 0x40], eax
call sym.sqlite3Fts5BufferAppendVarint
mov edi, dword [rsp + 0x40]
test edi, edi
je 0x4ac1d8
jmp 0x4ac25c
lea r13, [rsp + 0x44]
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x40]
cmp dword [rsp + 0x40], 0
jne 0x4ac25c
cmp ebp, edi
jle 0x4ac25c
mov rcx, qword [rbx + 0x40]
mov edx, edi
mov r9, r13
mov r8, r14
inc edi
call sym.sqlite3Fts5ExprPhraseCollist
mov r9, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, r15
mov r8d, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
call sym.sqlite3Fts5BufferAppendBlob
jmp 0x4ac223
mov r8d, dword [rsp + 0x58]
lea r9, [sym.sqlite3_free]
mov rcx, r12
mov rdx, qword [rsp + 0x50]
call sym.sqlite3_result_blob
xor esi, esi
jmp 0x4ac47a
cmp edx, 1
je 0x4ac28c
xor esi, esi
cmp edx, 4
jne 0x4ac47a
mov rdi, qword [rbx + 0x70]
test rdi, rdi
je 0x4ac2cd
mov rax, qword [rbx + 0x70]
lea rcx, [0x004eeee0]
mov r8, r12
mov rdx, qword [rbx + 0x80]
mov r9d, dword [rbx + 0x78]
mov qword [rbx + 0x90], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
call qword [rax + 0x18]
mov qword [rbx + 0x90], 0
jmp 0x4ac275
mov r8, qword [rbx + 0x68]
mov dword [rsp + 0x48], 0
mov r13, qword [rbx + 0x60]
test r8, r8
jne 0x4ac2ef
mov rax, qword [rbp + 0x30]
mov rdi, qword [rax + 0x30]
jmp 0x4ac3f1
lea r14, [rsp + 0x48]
lea rdx, str.SELECT__s
mov rcx, r14
call sym.sqlite3Fts5Mprintf
test rax, rax
mov rsi, rax
je 0x4ac3d1
lea rax, [rsp + 0x50]
or r8d, 0xffffffff
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov rcx, qword [r15]
mov r9d, 1
mov qword [rsp + 0x50], 0
call sym.sqlite3_prepare_v3
mov rcx, rsi
mov dword [rsp + 0x48], eax
call sym.sqlite3_free
mov esi, dword [rsp + 0x48]
test esi, esi
jne 0x4ac3d1
mov rcx, qword [rsp + 0x50]
call sym.sqlite3_step
mov rcx, qword [rsp + 0x50]
cmp eax, 0x64
jne 0x4ac3c8
test rcx, rcx
je 0x4ac374
movzx esi, word [rcx + 0xc0]
movsxd rdx, esi
mov dword [rbx + 0x78], esi
mov rcx, r14
shl rdx, 3
call sym.sqlite3Fts5MallocZero
cmp dword [rsp + 0x48], 0
mov qword [rbx + 0x80], rax
je 0x4ac3a2
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x88], rax
jmp 0x4ac3d1
xor esi, esi
cmp dword [rbx + 0x78], esi
mov rcx, qword [rsp + 0x50]
jle 0x4ac394
mov rax, qword [rbx + 0x80]
mov edx, esi
lea r14, [rax + rsi*8]
inc rsi
call sym.sqlite3_column_value
mov qword [r14], rax
jmp 0x4ac3a4
call sym.sqlite3_finalize
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x4ac411
jmp 0x4ac2e2
mov rdx, qword [rdi + 8]
mov rcx, r13
call sym.sqlite3_stricmp
test eax, eax
je 0x4ac411
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x4ac3dd
lea rcx, str.no_such_function:__s
mov rdx, r13
call sym.sqlite3_mprintf
mov qword [rbp + 0x10], rax
mov dword [rsp + 0x48], 1
mov esi, dword [rsp + 0x48]
mov qword [rbx + 0x70], rdi
test esi, esi
je 0x4ac295
jmp 0x4ac47a
xor esi, esi
cmp dword [r15 + 0x40], 1
mov dword [rsp + 0xc0], r8d
je 0x4ac47a
add rbp, 0x10
mov edx, 1
mov qword [r15 + 0xb8], rbp
call sym.fts5SeekCursor
mov r8d, dword [rsp + 0xc0]
test eax, eax
mov esi, eax
jne 0x4ac46f
mov rcx, qword [rbx + 0x38]
lea edx, [r8 + 1]
call sym.sqlite3_column_value
mov rcx, r12
mov rdx, rax
call sym.sqlite3_result_value
mov qword [r15 + 0xb8], 0
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret