Function at 0x85c0e0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
lea rax, str.Wrong_number_of_columns_for_an_rtree_table
lea rbx, str.Auxiliary_rtree_columns_must_be_last
mov qword [rsp + 0x130], rcx
lea ecx, [r8 - 6]
mov rbp, rdx
mov rsi, r9
mov qword [rsp + 0x78], rax
lea rdx, str.Too_many_columns_for_an_rtree_table
cmp ecx, 0x61
lea rax, str.Too_few_columns_for_an_rtree_table
mov dword [rsp + 0x140], r8d
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x90], rbx
jbe 0x85c190
cmp r8d, 5
mov r14d, 1
cmovle rdx, rax
lea rcx, [0x00c4e892]
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov qword [rsi], rax
mov eax, r14d
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x130]
mov r8d, 1
mov edx, 1
call dbg.sqlite3_vtab_config
mov rcx, qword [rsi + 8]
call sym.strlen
mov rcx, qword [rsi + 0x10]
mov rdi, rax
call sym.strlen
mov r12, rax
call sym.sqlite3_initialize
test eax, eax
jne 0x85c410
movsxd rdi, edi
movsxd r12, r12d
lea r15, [rdi + r12 + 0x3ca]
mov rcx, r15
call sym.sqlite3Malloc
test rax, rax
mov rbx, rax
je 0x85c410
test rbp, rbp
mov r8, r15
mov rcx, rax
lea r15, str.__.s_REAL
setne r13b
xor edx, edx
call sym.memset
lea rcx, [rbx + 0x3c8]
mov byte [rbx + 0x26], r13b
mov r8, rdi
lea rbp, [rcx + rdi + 1]
mov qword [rbx + 0x30], rcx
and r13d, 1
mov qword [rbx + 0x38], rbp
mov rdx, qword [rsi + 8]
lea rax, [0x008b7b00]
mov dword [rbx + 0x40], 1
mov qword [rbx], rax
call sym.memcpy
mov rdx, qword [rsi + 0x10]
mov r8, r12
mov rcx, rbp
call sym.memcpy
mov rcx, qword [rsp + 0x130]
call dbg.sqlite3_str_new
mov rdi, qword [rsi + 0x18]
mov dword [rsp + 0xa0], 0
mov rbp, rax
lea rax, [rsp + 0xa0]
mov rdx, rax
mov qword [rsp + 0x50], rax
mov rcx, rdi
call dbg.sqlite3GetToken
mov r9, rdi
mov rcx, rbp
lea rdx, str.CREATE_TABLE_x__.s_INT
mov r8d, eax
call dbg.sqlite3_str_appendf
mov eax, dword [rsp + 0x140]
lea r12d, [rax - 5]
lea rax, [r12 + 5]
mov r12d, 4
mov qword [rsp + 0x58], rax
mov rax, r13
mov r13, rbx
mov rbx, rax
jmp 0x85c316
test al, al
jne 0x85c372
add byte [r13 + 0x25], 1
mov rcx, r14
add r12, 1
mov dword [rsp + 0xa0], 0
mov rdx, qword [rsp + 0x50]
call dbg.sqlite3GetToken
mov rdx, qword [r15 + rbx*8]
mov r9, r14
mov rcx, rbp
mov r8d, eax
call dbg.sqlite3_str_appendf
cmp qword [rsp + 0x58], r12
lea r8d, [rdi + 1]
je 0x85c372
mov r14, qword [rsi + r12*8]
mov edi, r12d
mov r8d, r12d
movzx eax, byte [r13 + 0x29]
cmp byte [r14], 0x2b
jne 0x85c2d0
mov rdx, qword [rsp + 0x50]
add eax, 1
add r14, 1
add r12, 1
mov byte [r13 + 0x29], al
mov rcx, r14
mov dword [rsp + 0xa0], 0
call dbg.sqlite3GetToken
mov r9, r14
mov rcx, rbp
lea rdx, str.__.s
mov r8d, eax
call dbg.sqlite3_str_appendf
cmp qword [rsp + 0x58], r12
lea r8d, [rdi + 1]
jne 0x85c316
lea rdx, [0x00c5510e]
mov rcx, rbp
mov dword [rsp + 0x58], r8d
mov rbx, r13
call dbg.sqlite3_str_appendf
test rbp, rbp
mov r8d, dword [rsp + 0x58]
je 0x85c420
lea rdi, [0x008b83a0]
cmp rbp, rdi
je 0x85c420
mov rcx, rbp
mov dword [rsp + 0x58], r8d
call sym.sqlite3_str_finish.part.383
test rax, rax
mov rbp, rax
je 0x85c420
mov r8d, dword [rsp + 0x58]
cmp dword [rsp + 0x140], r8d
jle 0x85c430
mov rdx, qword [rsp + 0x90]
lea rcx, [0x00c4e892]
mov r14d, 1
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov rcx, rbp
mov qword [rsi], rax
call sym.sqlite3_free
mov eax, dword [rbx + 0x40]
sub eax, 1
mov dword [rbx + 0x40], eax
jne 0x85c179
mov rcx, rbx
call sym.rtreeRelease.part.650
jmp 0x85c179
mov r14d, 7
jmp 0x85c179
xor ecx, ecx
mov r14d, 7
call sym.sqlite3_free
jmp 0x85c3f4
mov rcx, qword [rsp + 0x130]
mov rdx, rax
call sym.sqlite3_declare_vtab
test eax, eax
mov r14d, eax
jne 0x85c7c2
mov rcx, rbp
call sym.sqlite3_free
movzx eax, byte [rbx + 0x25]
mov edx, eax
shr dl, 1
cmp al, 1
mov byte [rbx + 0x24], dl
jbe 0x85c810
cmp al, 0xa
ja 0x85c800
test al, 1
mov edx, 1
je 0x85c4a0
mov rdx, qword [rsp + rdx*8 + 0x70]
lea rcx, [0x00c4e892]
mov r14d, 1
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov qword [rsi], rax
jmp 0x85c3f4
lea eax, [rax*4 + 8]
mov rdx, qword [rbx + 0x30]
mov byte [rbx + 0x27], al
mov eax, dword [rsp + 0x160]
test eax, eax
je 0x85c81a
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0xa0], 0
call dbg.sqlite3_mprintf
test rax, rax
mov rbp, rax
je 0x85c9e2
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call sym.getIntFromStmt.part.685
test eax, eax
mov r15d, eax
jne 0x85c9e8
mov eax, dword [rsp + 0xa0]
lea edx, [rax - 0x40]
movzx eax, byte [rbx + 0x27]
mov dword [rbx + 0x20], edx
imul eax, eax, 0x33
add eax, 4
cmp edx, eax
jle 0x85c51e
mov dword [rbx + 0x20], eax
lea r13, str._a_d
mov rcx, rbp
call sym.sqlite3_free
mov rax, qword [rsp + 0x130]
mov rbp, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
mov rcx, rax
mov qword [rbx + 0x18], rax
call dbg.sqlite3_str_new
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r9, rbp
mov r8, rsi
mov rcx, rax
mov r12, rax
call dbg.sqlite3_str_appendf
cmp byte [rbx + 0x29], 0
je 0x85c58b
nop word [rax + rax]
mov r8d, r15d
mov rdx, r13
mov rcx, r12
call dbg.sqlite3_str_appendf
movzx eax, byte [rbx + 0x29]
add r15d, 1
cmp r15d, eax
jl 0x85c570
mov r9, rbp
mov r8, rsi
mov rcx, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
call dbg.sqlite3_str_appendf
mov r9, rbp
mov r8, rsi
mov rcx, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
call dbg.sqlite3_str_appendf
mov eax, dword [rbx + 0x20]
mov r9, rbp
mov r8, rsi
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov rcx, r12
mov dword [rsp + 0x20], eax
call dbg.sqlite3_str_appendf
test r12, r12
je 0x85c9b0
cmp r12, rdi
je 0x85c9b0
mov rcx, r12
call sym.sqlite3_str_finish.part.383
test rax, rax
mov r12, rax
je 0x85c9b0
mov rcx, qword [rsp + 0x130]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x20], 0
call dbg.sqlite3_exec
mov rcx, r12
mov r13d, eax
call sym.sqlite3_free
test r13d, r13d
jne 0x85cbac
lea rax, [rbx + 0x78]
mov rdx, qword [rbx + 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0xa0], rax
lea rax, [rbx + 0x80]
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0xa8], rax
lea rax, [rbx + 0x88]
mov qword [rsp + 0xb0], rax
lea rax, [rbx + 0x90]
mov qword [rsp + 0xb8], rax
lea rax, [rbx + 0x98]
mov qword [rsp + 0xc0], rax
lea rax, [rbx + 0xa0]
mov qword [rsp + 0xc8], rax
lea rax, [rbx + 0xa8]
mov qword [rsp + 0xd0], rax
lea r8, str.sqlite_stat1
mov qword [rsp + 0x38], 0
lea rax, [rbx + 0xb0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0xd8], rax
call dbg.sqlite3_table_column_metadata
test eax, eax
je 0x85c883
cmp eax, 1
mov qword [rbx + 0x48], 0x100000
je 0x85c8fc
cmp byte [rbx + 0x29], 0
je 0x85cbb4
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov r8, rbp
mov rdx, rsi
call dbg.sqlite3_mprintf
test rax, rax
mov qword [rbx + 0x58], rax
je 0x85c9b0
mov rcx, qword [rsp + 0x130]
lea r13, str.a_d__d
call dbg.sqlite3_str_new
mov r9, rbp
mov r8, rsi
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov rcx, rax
mov r12, rax
call dbg.sqlite3_str_appendf
cmp byte [rbx + 0x29], 0
lea rbp, str.a_dcoalesce___d_a_d_
lea rsi, [0x00c4e0ee]
jne 0x85c7a5
jmp 0x85ca67
mov dword [rsp + 0x20], r14d
mov r8d, r14d
mov rdx, rbp
mov rcx, r12
call dbg.sqlite3_str_appendf
movzx eax, byte [rbx + 0x29]
add r14d, 1
cmp r14d, eax
jge 0x85ca67
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call dbg.sqlite3_str_append
movzx eax, byte [rbx + 0x2a]
lea r9d, [r14 + 2]
cmp r14d, eax
jl 0x85c770
mov r8d, r14d
mov rdx, r13
mov rcx, r12
call dbg.sqlite3_str_appendf
jmp 0x85c783
mov rcx, qword [rsp + 0x130]
call dbg.sqlite3_errmsg
lea rcx, [0x00c4e892]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov rcx, rbp
mov qword [rsi], rax
call sym.sqlite3_free
jmp 0x85c3f4
mov edx, 3
jmp 0x85c477
mov edx, 2
jmp 0x85c477
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call dbg.sqlite3_mprintf
test rax, rax
mov rbp, rax
je 0x85ca1f
mov rcx, qword [rsp + 0x130]
lea r8, [rbx + 0x20]
mov rdx, rax
call sym.getIntFromStmt.part.685
test eax, eax
mov r12d, eax
jne 0x85ca25
cmp dword [rbx + 0x20], 0x1bf
jle 0x85cb3a
mov rcx, rbp
call sym.sqlite3_free
mov rax, qword [rsp + 0x130]
mov rbp, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
mov qword [rbx + 0x18], rax
jmp 0x85c62a
mov rdx, qword [rbx + 0x30]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov r8, qword [rbx + 0x38]
call dbg.sqlite3_mprintf
test rax, rax
mov r12, rax
je 0x85cafa
mov rcx, qword [rsp + 0x130]
lea rax, [rsp + 0x68]
mov rdx, r12
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov r9d, pe_nt_image_headers64
mov r8d, 0xffffffff
mov qword [rsp + 0x20], 0
call dbg.sqlite3LockAndPrepare
test eax, eax
je 0x85cb04
cmp eax, 7
je 0x85cb25
mov qword [rbx + 0x48], 0x100000
mov rcx, r12
call sym.sqlite3_free
xor r13d, r13d
mov dword [rsp + 0x58], r14d
mov r12, qword [rsp + 0x50]
jmp 0x85c96e
mov rdx, r15
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x30], 0
mov r9d, 0x85
mov rax, qword [r12 + r13*8]
mov r8d, 0xffffffff
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call dbg.sqlite3LockAndPrepare
mov rcx, r15
mov r14d, eax
call sym.sqlite3_free
lea edx, [r13 + 1]
cmp edx, 7
setle cl
test r14d, r14d
sete dl
add r13, 1
test cl, dl
je 0x85cbbc
cmp r13, 3
je 0x85ca51
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rcx, qword [rax + r13*8]
mov r8, rbp
mov rdx, rsi
call dbg.sqlite3_mprintf
test rax, rax
mov r15, rax
jne 0x85c910
xor ecx, ecx
mov r14d, dword [rsp + 0x58]
call sym.sqlite3_free
cmp byte [rbx + 0x29], 0
jne 0x85c70a
mov r14d, 7
mov rcx, qword [rsp + 0x130]
call dbg.sqlite3_errmsg
lea rcx, [0x00c4e892]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov qword [rsi], rax
jmp 0x85c3f4
mov r15d, 7
mov rcx, qword [rsp + 0x130]
mov r14d, r15d
call dbg.sqlite3_errmsg
lea rcx, [0x00c4e892]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov qword [rsi], rax
mov rcx, rbp
call sym.sqlite3_free
jmp 0x85c3f4
mov r12d, 7
mov rcx, qword [rsp + 0x130]
mov r14d, r12d
call dbg.sqlite3_errmsg
lea rcx, [0x00c4e892]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov qword [rsi], rax
jmp 0x85ca12
cmp byte [rbx + 0x29], 0
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x85c983
jmp 0x85c978
lea rdx, str._WHERE_rowid_1
mov rcx, r12
call dbg.sqlite3_str_appendf
test r12, r12
je 0x85c9b0
cmp r12, rdi
je 0x85c9b0
mov rcx, r12
call sym.sqlite3_str_finish.part.383
test rax, rax
mov rsi, rax
je 0x85c9b0
lea rax, [rbx + 0xb8]
mov r9d, 0x85
mov rdx, rsi
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x30], 0
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call dbg.sqlite3LockAndPrepare
mov rcx, rsi
mov r14d, eax
call sym.sqlite3_free
test r14d, r14d
jne 0x85c9b6
mov rax, qword [rsp + 0x150]
mov qword [rax], rbx
jmp 0x85c179
mov eax, 7
jmp 0x85c700
mov rcx, qword [rsp + 0x68]
call dbg.sqlite3_step
cmp eax, 0x64
je 0x85cb68
mov rcx, qword [rsp + 0x68]
call dbg.sqlite3_finalize
test eax, eax
je 0x85c8ec
mov rcx, r12
mov dword [rsp + 0x50], eax
call sym.sqlite3_free
mov eax, dword [rsp + 0x50]
jmp 0x85c700
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov r14d, 0x10b
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x158]
mov rcx, rbp
mov qword [rsi], rax
call sym.sqlite3_free
jmp 0x85c3f4
mov rcx, qword [rsp + 0x68]
xor edx, edx
call dbg.sqlite3_column_int64
mov rcx, qword [rsp + 0x68]
mov r13, rax
call dbg.sqlite3_finalize
test eax, eax
jne 0x85cb25
test r13, r13
je 0x85c8ec
cmp r13, 0x64
mov eax, 0x64
mov rcx, r12
cmovl r13, rax
mov qword [rbx + 0x48], r13
call sym.sqlite3_free
jmp 0x85c8fc
mov r14d, r13d
jmp 0x85c9b6
mov r14d, eax
jmp 0x85c9b6
cmp byte [rbx + 0x29], 0
mov r12d, r14d
mov r14d, dword [rsp + 0x58]
jne 0x85c70a
mov r14d, r12d
jmp 0x85cae1