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

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x6d5a4a
push rbp
mov rbp, rsp
sub rsp, 0xb8
movq qword [rsp + 0xb0], xmm15
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rbx
mov dword [rsp + 0xd8], ecx
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], rsi
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x2c], 0
mov ebx, 0x20
nop dword [rax]
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x60], rax
lea rcx, [sym.modernc.org_sqlite_lib._fts5UpdateMethod.deferwrap1]
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x88], rcx
lea rdx, [rsp + 0x80]
mov qword [rsp + 0xb0], rdx
mov byte [rsp + 0x2b], 1
mov rdx, qword [rsp + 0xd0]
mov rsi, rdx
mov rdx, qword [rdx + 0x18]
mov qword [rsp + 0x48], rdx
mov rdi, rax
mov dword [rdi], 0
mov rdi, rdx
cmp dword [rdx + 0x90], 0
jne 0x6d531b
mov rbx, qword [rsi + 0x20]
mov rax, rcx
call sym.modernc.org_sqlite_lib._sqlite3Fts5IndexLoadConfig
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov dword [rcx], eax
mov rax, rdx
mov ecx, dword [rdx]
test ecx, ecx
jne 0x6d533b
mov rcx, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x48]
mov rdx, rsi
mov rsi, qword [rsi + 0x18]
lea r8, [rdx + 0x10]
mov qword [rsi + 0xc0], r8
mov rsi, rdx
mov rdx, qword [rdx + 0x30]
nop
mov rdx, qword [rdx + 0x48]
jmp 0x6d5362
mov dword [rsp + 0x2c], ecx
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x2c]
add rsp, 0xb8
pop rbp
ret
mov rdx, qword [r8 + 8]
test rdx, rdx
je 0x6d537e
mov r8, rdx
cmp dword [rdx + 0x20], 1
jne 0x6d535e
cmp qword [rdx], rsi
jne 0x6d535e
lea rdx, [r8 + 0x50]
or dword [rdx], 0x20
jmp 0x6d535e
mov rdx, qword [rsp + 0xe0]
mov r8, rdx
mov rbx, qword [rdx]
mov rdx, rbx
movzx edx, word [rdx + 0x14]
and edx, 0x3f
lea r9, [0x009bafc0]
movzx edx, byte [rdx + r9]
cmp edx, 5
jne 0x6d54f8
mov r10, rdi
mov r11d, dword [rdi + 0x18]
add r11d, 2
movsxd r11, r11d
lea r11, [r8 + r11*8]
mov r11, qword [r11]
mov r12, r11
movzx r11d, word [r11 + 0x14]
and r11d, 0x3f
movzx r9d, byte [r11 + r9]
cmp r9d, 5
je 0x6d54fb
nop
mov rax, rcx
mov rbx, r12
mov ecx, 1
call sym.modernc.org_sqlite_lib._sqlite3ValueText
mov rdx, qword [rsp + 0x48]
mov rsi, rdx
cmp dword [rdx + 0x40], 0
jne 0x6d53fe
xor edx, edx
jmp 0x6d5434
mov qword [rsp + 0x40], rax
mov rbx, qword [0x00a30e10]
add rbx, 0x4b5e
mov rcx, rax
mov rax, qword [rsp + 0xc8]
nop dword [rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_stricmp
test eax, eax
sete dl
mov rax, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
test dl, dl
je 0x6d54ad
cmp dword [rsi + 0x44], 0
je 0x6d547a
mov rbx, qword [0x00a30e10]
add rbx, 0x972f
mov rax, qword [rsp + 0xc8]
xor ecx, ecx
call sym.modernc.org_sqlite_lib.Xsqlite3_vmprintf
mov rdx, qword [rsp + 0xd0]
mov rsi, rdx
mov qword [rdx + 0x10], rax
mov rdx, qword [rsp + 0x60]
mov rdi, rdx
mov dword [rdx], 1
jmp 0x6d54f1
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib._fts5SpecialDelete
mov rdx, qword [rsp + 0x60]
mov dword [rdx], eax
mov rsi, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x60]
jmp 0x6d54f1
mov esi, dword [rsi + 0x18]
add esi, 3
movsxd rsi, esi
mov r8, qword [rsp + 0xe0]
lea rsi, [r8 + rsi*8]
mov rdi, qword [rsi]
mov rbx, qword [rsp + 0xd0]
mov rcx, rax
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._fts5SpecialInsert
mov rdx, qword [rsp + 0x60]
mov dword [rdx], eax
mov rsi, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x60]
xor eax, eax
jmp 0x6d597d
mov r10, rdi
mov r9, r10
mov r11d, dword [r10 + 0x40]
test r11d, r11d
je 0x6d550e
cmp dword [r10 + 0x44], 0
je 0x6d5538
mov r12, qword [r10]
movzx r12d, byte [r12 + 0x6c]
dec r12d
movsxd r12, r12d
nop dword [rax]
cmp r12, 5
jae 0x6d5a2a
lea r13, [0x009b872c]
movzx r12d, byte [r12 + r13]
jmp 0x6d5540
mov r12d, 4
nop
cmp edx, 1
jne 0x6d5637
cmp r11d, 1
jne 0x6d5637
cmp dword [r10 + 0x44], 0
jne 0x6d5637
mov edx, dword [rsp + 0xd8]
cmp edx, 1
jle 0x6d557a
mov rdx, qword [0x00a30e10]
add rdx, 0x5737
jmp 0x6d5588
mov rdx, qword [0x00a30e10]
add rdx, 0x976a
movups xmmword [rsp + 0x90], xmm15
movups xmmword [rsp + 0xa0], xmm15
mov qword [rsp + 0x70], rdx
lea rdx, [0x00728cc0]
mov qword [rsp + 0x90], rdx
lea rsi, [rax + 0x10]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x98], r8
mov r9, qword [r9 + 0x10]
mov qword [rsp + 0x68], r9
mov qword [rsp + 0xa0], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0xa8], rdx
lea rbx, [rsp + 0x90]
mov ecx, 2
mov rdi, rcx
mov rax, rsi
call sym.modernc.org_libc.VaList
mov rbx, qword [0x00a30e10]
add rbx, 0x9776
mov rcx, rax
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib.Xsqlite3_mprintf
mov rdx, qword [rsp + 0xd0]
mov rsi, rdx
mov qword [rdx + 0x10], rax
mov rdx, qword [rsp + 0x60]
mov r8, rdx
mov dword [rdx], 1
xor eax, eax
jmp 0x6d597a
mov edi, dword [rsp + 0xd8]
nop
cmp edi, 1
jne 0x6d5685
nop
mov rax, rcx
call sym.modernc.org_sqlite_lib._sqlite3VdbeIntValue
mov rcx, qword [rsp + 0xd0]
mov rbx, qword [rcx + 0x28]
mov rcx, rax
xor edi, edi
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageDelete
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov dword [rcx], eax
mov r8, rdx
mov eax, 1
nop
jmp 0x6d5972
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x34], r12d
lea rdx, [r8 + 8]
mov qword [rsp + 0x78], rdx
mov rbx, qword [rdx]
mov rax, rcx
nop dword [rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_value_numeric_type
cmp eax, 1
je 0x6d56d1
cmp eax, 5
je 0x6d56c8
mov r8, qword [rsp + 0x60]
mov r9, r8
mov dword [r8], 0x14
mov r8, r9
xor eax, eax
jmp 0x6d5972
mov edx, dword [rsp + 0x3c]
cmp edx, 1
jmp 0x6d56d8
mov edx, dword [rsp + 0x3c]
cmp edx, 1
je 0x6d5777
mov edx, dword [rsp + 0x34]
cmp edx, 5
jne 0x6d5739
cmp eax, 1
je 0x6d56f5
mov rbx, qword [rsp + 0x60]
xor eax, eax
jmp 0x6d5740
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._sqlite3VdbeIntValue
mov rcx, qword [rsp + 0xd0]
mov rbx, qword [rcx + 0x28]
mov rcx, rax
xor edi, edi
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageDelete
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
mov dword [rcx], eax
mov eax, 1
jmp 0x6d5740
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._fts5StorageInsert
mov r8, qword [rsp + 0x60]
mov eax, dword [rsp + 0x38]
jmp 0x6d5972
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xe0]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._sqlite3VdbeIntValue
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0xc8]
call sym.modernc.org_sqlite_lib._sqlite3VdbeIntValue
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jne 0x6d5919
mov rcx, qword [rsp + 0x50]
nop
cmp rax, rcx
je 0x6d591e
mov edx, dword [rsp + 0x34]
cmp edx, 5
jne 0x6d5865
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rdx + 0x28]
mov rax, qword [rsp + 0xc8]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageDelete
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov dword [rdx], eax
mov rdx, rbx
cmp dword [rdx], 0
jne 0x6d5832
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rdx + 0x28]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x58]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageDelete
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov dword [rdx], eax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._fts5StorageInsert
mov r8, qword [rsp + 0x60]
nop dword [rax]
jmp 0x6d596d
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rdx + 0x28]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageContentInsert
mov rdx, qword [rsp + 0x60]
mov rsi, rdx
mov dword [rdx], eax
mov rdx, rsi
cmp dword [rsi], 0
nop
jne 0x6d58d2
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rdx + 0x28]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x50]
xor edi, edi
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageDelete
mov rdx, qword [rsp + 0x60]
mov rsi, rdx
mov dword [rdx], eax
mov rdx, rsi
mov r8, rdx
cmp dword [rdx], 0
jne 0x6d596d
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rdx + 0x28]
mov rdx, qword [rsp + 0xe8]
mov rdi, qword [rdx]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageIndexInsert
mov rdx, qword [rsp + 0x60]
mov rsi, rdx
mov dword [rdx], eax
mov r8, rsi
jmp 0x6d596d
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xd0]
mov rbx, qword [rdx + 0x28]
mov rax, qword [rsp + 0xc8]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageDelete
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov dword [rdx], eax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._fts5StorageInsert
mov r8, qword [rsp + 0x60]
mov eax, 1
mov rsi, qword [rsp + 0xd0]
mov rdi, r8
mov r8, rdi
cmp dword [rdi], 0
jne 0x6d59f5
test eax, eax
je 0x6d59f5
mov r9, qword [rsp + 0x48]
cmp dword [r9 + 0xb8], 0
je 0x6d59f5
cmp dword [r9 + 0x88], 4
jne 0x6d59f5
mov rbx, qword [rsi + 0x28]
mov rcx, qword [0x00a30e10]
add rcx, 0x91bf
mov rax, qword [rsp + 0xc8]
xor edi, edi
mov esi, 5
call sym.modernc.org_sqlite_lib._sqlite3Fts5StorageConfigValue
mov rdx, qword [rsp + 0x60]
mov r8, rdx
mov dword [rdx], eax
mov rdx, r8
cmp dword [r8], 0
jne 0x6d59ea
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x88], 5
mov rsi, qword [rsp + 0xd0]
mov r8, rdx
mov rax, qword [rsi + 0x18]
mov qword [rax + 0xc0], 0
mov eax, dword [r8]
mov dword [rsp + 0x2c], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x2c]
add rsp, 0xb8
pop rbp
ret
mov rax, r12
mov ecx, 5
call sym.runtime.panicIndex
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x2c]
add rsp, 0xb8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
nop
jmp sym.modernc.org_sqlite_lib._fts5UpdateMethod