Function at 0x1401b26b0
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, 0x48
xor edi, edi
mov r9d, dword [rcx + 0x3c]
mov r15, rcx
mov rbp, rdx
lea r14, [rcx + 0x3c]
mov r12, r8
test r9d, r9d
jne 0x1401b27ec
nop dword [rax]
mov rbx, qword [rbp + 0x58]
mov rsi, rdi
mov rax, qword [r15]
shl rsi, 5
add rbx, rsi
movsxd rcx, dword [rbx + 0x18]
cmp ecx, dword [rax + 0x88]
jge 0x1401b2800
mov eax, dword [rbx + 4]
test eax, eax
je 0x1401b2900
mov r8, r12
mov r13d, 1
sub r8, qword [rbx + 8]
movsxd rsi, dword [rbx + 0x1c]
lea eax, [rcx + 9]
mov r9, qword [rbx + 0x10]
cmp eax, esi
jbe 0x1401b27ab
test esi, esi
mov edx, 0x40
cmove rsi, rdx
cmp rax, rsi
jbe 0x1401b2748
nop dword [rax]
add rsi, rsi
cmp rsi, rax
jb 0x1401b2740
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
call sym.sqlite3_initialize
mov r8, qword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
test eax, eax
jne 0x1401b2968
mov qword [rsp + 0x20], r8
test r9, r9
je 0x1401b2a30
cmp rsi, 0x7ffffeff
ja 0x1401b2968
mov rcx, r9
mov rdx, rsi
call sym.sqlite3Realloc.part.0
mov r8, qword [rsp + 0x20]
mov r9, rax
test r9, r9
je 0x1401b2968
mov dword [rbx + 0x1c], esi
movsxd rcx, dword [rbx + 0x18]
mov qword [rbx + 0x10], r9
add rcx, r9
cmp r8, 0x7f
jbe 0x1401b28c0
cmp r8, 0x3fff
jbe 0x1401b28e0
mov rdx, r8
call sym.putVarint64
add dword [rbx + 0x18], eax
mov eax, dword [r15 + 0x3c]
add rdi, 1
mov dword [rbx + 4], 1
or r13d, eax
mov qword [rbx + 8], r12
je 0x1401b26e0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rbx + 0x10]
mov rcx, r15
mov byte [rax], 1
movsxd rdx, dword [rbp]
movabs rax, 0x1000000000
mov r8, qword [rbx + 0x10]
mov r9d, dword [rbx + 0x18]
shl rdx, 0x25
add rdx, rax
mov rax, rdi
shl rax, 0x1f
add rdx, rax
movsxd rax, dword [rbx]
add rdx, rax
call sym.fts5DataWrite
mov r8d, dword [r15 + 0x3c]
test r8d, r8d
jne 0x1401b2958
mov rcx, qword [rbp + 0x58]
lea r13d, [rdi + 2]
lea rbx, [rcx + rsi]
cmp dword [rbp + 0x54], r13d
jle 0x1401b2910
mov edx, dword [rbx + 0x38]
test edx, edx
je 0x1401b29c5
add dword [rbx], 1
xor r13d, r13d
mov r8d, 1
mov dword [rbx + 0x18], 0
mov dword [rbx + 4], 0
test rdi, rdi
jne 0x1401b28d0
movsxd rax, dword [rbp + 8]
lea rsi, [rbx + 0x10]
mov rcx, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
call sym.sqlite3Fts5BufferAppendVarint
mov rax, qword [rsp + 0x20]
mov rcx, r14
mov rdx, rsi
mov r8, rax
call sym.sqlite3Fts5BufferAppendVarint
movsxd rcx, dword [rbx + 0x18]
mov r8, r12
jmp 0x1401b2719
mov byte [rcx], r8b
mov eax, 1
jmp 0x1401b27cd
movsxd rax, dword [rbx - 0x20]
jmp 0x1401b288d
mov rax, r8
and r8d, 0x7f
shr rax, 7
mov byte [rcx + 1], r8b
or eax, 0xffffff80
mov byte [rcx], al
mov eax, 2
jmp 0x1401b27cd
xor r8d, r8d
mov r13d, 1
jmp 0x1401b2884
mov qword [rsp + 0x20], rcx
call sym.sqlite3_initialize
mov rcx, qword [rsp + 0x20]
test eax, eax
jne 0x1401b2949
movsxd rdx, r13d
shl rdx, 5
test rcx, rcx
je 0x1401b2a45
cmp rdx, 0x7ffffeff
ja 0x1401b2949
call sym.sqlite3Realloc.part.0
mov rbx, rax
test rbx, rbx
jne 0x1401b2980
mov dword [r15 + 0x3c], 7
nop dword [rax]
add rsi, qword [rbp + 0x58]
mov rbx, rsi
jmp 0x1401b286a
mov dword [r15 + 0x3c], 7
mov dword [rbx + 4], 1
mov qword [rbx + 8], r12
jmp 0x1401b27ec
movsxd rcx, dword [rbp + 0x54]
mov r8d, r13d
xor edx, edx
mov rax, rcx
sub r8d, ecx
shl rax, 5
movsxd r8, r8d
lea rcx, [rbx + rax]
shl r8, 5
call sub.msvcrt.dll_memset
mov ecx, dword [r15 + 0x3c]
mov qword [rbp + 0x58], rbx
add rbx, rsi
mov dword [rbp + 0x54], r13d
test ecx, ecx
jne 0x1401b286a
mov edx, dword [rbx + 0x38]
test edx, edx
jne 0x1401b286a
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x38]
lea r13, [rbx + 0x30]
lea rcx, [rax + 1]
call sym.sqlite3Fts5GetVarint
mov rcx, qword [rbx + 0x10]
movzx eax, al
lea rcx, [rcx + rax + 1]
call sym.sqlite3Fts5GetVarint
mov eax, dword [rbx]
xor r8d, r8d
mov rdx, r13
mov rcx, r14
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x20], eax
call sym.sqlite3Fts5BufferAppendVarint
movsxd r8, dword [rbx]
mov rdx, r13
mov rcx, r14
call sym.sqlite3Fts5BufferAppendVarint
mov r8, rsi
mov rdx, r13
mov rcx, r14
call sym.sqlite3Fts5BufferAppendVarint
mov dword [rbx + 0x24], 1
mov qword [rbx + 0x28], rsi
jmp 0x1401b286a
mov rcx, rsi
call sym.sqlite3Malloc
mov r8, qword [rsp + 0x20]
mov r9, rax
jmp 0x1401b2797
mov rcx, rdx
call sym.sqlite3Malloc
mov rbx, rax
jmp 0x1401b2944