Function at 0x140204640
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov eax, r8d
mov qword [rsp + 0x100], rcx
mov rbp, rdx
mov rsi, r9
sub eax, 6
mov dword [rsp + 0x110], r8d
cmp eax, 0x61
jbe 0x1402046c0
cmp r8d, 5
lea rax, str.Too_few_columns_for_an_rtree_table
lea rdx, str.Too_many_columns_for_an_rtree_table
mov ebp, 1
cmovle rdx, rax
lea rcx, [0x14037e000]
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov qword [rsi], rax
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x100]
mov r8d, 1
mov edx, 1
call dbg.sqlite3_vtab_config
mov rcx, qword [rsp + 0x100]
mov edx, 2
call dbg.sqlite3_vtab_config
mov rcx, qword [rsi + 8]
call sym.strlen
mov rcx, qword [rsi + 0x10]
mov r13, rax
call sym.strlen
mov r10d, dword [0x140241cd4]
mov rdi, rax
test r10d, r10d
jne 0x1402049c0
call dbg.sqlite3MutexInit
test eax, eax
jne 0x1402048e0
call sym.sqlite3_initialize.part.0
test eax, eax
jne 0x1402048e0
lea eax, [rdi + rdi]
movsxd r13, r13d
cdqe
lea rbx, [r13 + rax + 0x3d0]
mov rcx, rbx
call sym.sqlite3Malloc
mov r12, rax
test rax, rax
je 0x1402048e0
test rbp, rbp
mov r8, rbx
mov rcx, rax
movsxd rdi, edi
setne r15b
setne bpl
lea rbx, [rsi + 0x20]
xor edx, edx
call sym.memset
lea rcx, [r12 + 0x3c8]
mov byte [r12 + 0x26], r15b
mov r8, r13
lea r14, [rcx + r13 + 1]
lea rax, [0x140240da0]
mov qword [r12 + 0x30], rcx
movzx ebp, bpl
mov qword [r12], rax
lea rax, [r14 + rdi + 1]
mov qword [r12 + 0x38], r14
mov qword [r12 + 0x40], rax
mov rdx, qword [rsi + 8]
mov dword [r12 + 0x48], 1
call sym.memcpy
mov rdx, qword [rsi + 0x10]
mov r8, rdi
mov rcx, r14
mov r14d, 4
call sym.memcpy
mov rdx, qword [rsi + 0x10]
mov rcx, qword [r12 + 0x40]
mov r8, rdi
call sym.memcpy
add rdi, qword [r12 + 0x40]
mov r9d, 0x65
mov rcx, qword [rsp + 0x100]
mov word [rdi + 4], r9w
mov dword [rdi], 0x646f6e5f
lea rdi, [rsp + 0x70]
call sym.sqlite3_str_new
mov r15, qword [rsi + 0x18]
mov rdx, rdi
mov dword [rsp + 0x70], 0
mov r13, rax
mov rcx, r15
call dbg.sqlite3GetToken
mov r9, r15
lea rdx, str.CREATE_TABLE_x__.s_INT
mov rcx, r13
mov r8d, eax
lea r15, str.__.s_REAL
call dbg.sqlite3_str_appendf
jmp 0x14020488c
test al, al
jne 0x1402048f0
add byte [r12 + 0x25], 1
mov rcx, r9
mov rdx, rdi
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x70], 0
call dbg.sqlite3GetToken
mov rdx, qword [r15 + rbp*8]
mov r9, qword [rsp + 0x58]
mov rcx, r13
mov r8d, eax
call dbg.sqlite3_str_appendf
add r14d, 1
add rbx, 8
cmp dword [rsp + 0x110], r14d
je 0x1402048f0
mov r9, qword [rbx]
movzx eax, byte [r12 + 0x29]
cmp byte [r9], 0x2b
jne 0x140204840
add eax, 1
add r9, 1
mov rdx, rdi
mov byte [r12 + 0x29], al
mov rcx, r9
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x70], 0
call dbg.sqlite3GetToken
mov r9, qword [rsp + 0x58]
lea rdx, str.__.s
mov rcx, r13
mov r8d, eax
call dbg.sqlite3_str_appendf
jmp 0x14020487a
mov ebp, 7
jmp 0x1402046a6
lea rdx, [0x140384312]
mov rcx, r13
call dbg.sqlite3_str_appendf
test r13, r13
je 0x1402049d0
lea rax, [0x1402418c0]
cmp r13, rax
je 0x1402049d0
mov rax, qword [r13 + 8]
test rax, rax
je 0x1402049a0
mov edx, dword [r13 + 0x18]
mov byte [rax + rdx], 0
mov r8d, dword [r13 + 0x14]
test r8d, r8d
je 0x14020493d
test byte [r13 + 0x1d], 4
je 0x140204fee
mov r15, qword [r13 + 8]
mov rcx, r13
call sym.sqlite3_free
test r15, r15
je 0x1402049a8
cmp dword [rsp + 0x110], r14d
jle 0x1402049e8
lea rdx, str.Auxiliary_rtree_columns_must_be_last
lea rcx, [0x14037e000]
mov ebp, 1
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov rcx, r15
mov qword [rsi], rax
call sym.sqlite3_free
sub dword [r12 + 0x48], 1
jne 0x1402046a6
mov rcx, r12
call sym.rtreeRelease.part.0
jmp 0x1402046a6
mov rcx, r13
call sym.sqlite3_free
xor ecx, ecx
mov ebp, 7
call sym.sqlite3_free
jmp 0x140204987
mfence
jmp 0x14020472c
xor r15d, r15d
mov ebp, 7
mov rcx, r15
call sym.sqlite3_free
jmp 0x140204987
mov rcx, qword [rsp + 0x100]
mov rdx, r15
call sym.sqlite3_declare_vtab
mov ebp, eax
test eax, eax
jne 0x140204e58
mov rcx, r15
call sym.sqlite3_free
movzx eax, byte [r12 + 0x25]
mov edx, eax
shr dl, 1
mov byte [r12 + 0x24], dl
je 0x140204c80
cmp al, 0xa
ja 0x140204c58
lea rdx, str.Wrong_number_of_columns_for_an_rtree_table
test al, 1
jne 0x140204c5f
mov ecx, dword [rsp + 0x130]
lea eax, [rax*4 + 8]
mov rdx, qword [r12 + 0x30]
mov byte [r12 + 0x27], al
test ecx, ecx
jne 0x140204c89
mov r8, qword [r12 + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call dbg.sqlite3_mprintf
mov r13, rax
test rax, rax
je 0x140204fbe
mov rcx, qword [rsp + 0x100]
lea r8, [r12 + 0x20]
mov rdx, rax
call sym.getIntFromStmt.part.0
mov ebx, eax
test eax, eax
jne 0x140204fc3
cmp dword [r12 + 0x20], 0x1bf
jle 0x14020517b
mov rcx, r13
call sym.sqlite3_free
mov rax, qword [rsp + 0x100]
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
mov qword [r12 + 0x18], rax
lea rax, [r12 + 0x78]
mov rdx, qword [r12 + 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x70], rax
lea r8, str.sqlite_stat1
lea rax, [r12 + 0x80]
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x78], rax
lea rax, [r12 + 0x88]
mov qword [rsp + 0x80], rax
lea rax, [r12 + 0x90]
mov qword [rsp + 0x88], rax
lea rax, [r12 + 0x98]
mov qword [rsp + 0x90], rax
lea rax, [r12 + 0xa0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x98], rax
lea rax, [r12 + 0xa8]
mov qword [rsp + 0xa0], rax
lea rax, [r12 + 0xb0]
mov qword [rsp + 0xa8], rax
call dbg.sqlite3_table_column_metadata
mov r15d, eax
test eax, eax
je 0x140204ffe
mov qword [r12 + 0x50], 0x100000
cmp eax, 1
je 0x140204ec0
cmp byte [r12 + 0x29], 0
je 0x140204e26
cmp r15d, 7
je 0x140204e26
mov r8, rbx
mov rdx, rsi
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call dbg.sqlite3_mprintf
mov qword [r12 + 0x60], rax
test rax, rax
je 0x140204f61
mov rcx, qword [rsp + 0x100]
call sym.sqlite3_str_new
mov r9, rbx
mov r8, rsi
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov rcx, rax
mov r13, rax
lea rbx, str.a_d__d
call dbg.sqlite3_str_appendf
cmp byte [r12 + 0x29], 0
lea rsi, [0x14037d013]
je 0x140205097
lea r9d, [rbp + 2]
mov r8d, ebp
mov rdx, rbx
mov rcx, r13
call dbg.sqlite3_str_appendf
movzx eax, byte [r12 + 0x29]
add ebp, 1
cmp ebp, eax
jge 0x140205097
mov eax, dword [r13 + 0x18]
lea edx, [rax + 1]
cmp edx, dword [r13 + 0x10]
jae 0x140205158
add rax, qword [r13 + 8]
mov dword [r13 + 0x18], edx
mov byte [rax], 0x2c
jmp 0x140204c10
lea rdx, str.Too_many_columns_for_an_rtree_table
lea rcx, [0x14037e000]
mov ebp, 1
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov qword [rsi], rax
jmp 0x140204987
lea rdx, str.Too_few_columns_for_an_rtree_table
jmp 0x140204c5f
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0x70], 0
call dbg.sqlite3_mprintf
mov r13, rax
test rax, rax
je 0x140204f81
mov rcx, qword [rsp + 0x100]
mov r8, rdi
mov rdx, rax
call sym.getIntFromStmt.part.0
mov r15d, eax
test eax, eax
jne 0x140204f87
mov eax, dword [rsp + 0x70]
lea edx, [rax - 0x40]
movzx eax, byte [r12 + 0x27]
mov dword [r12 + 0x20], edx
imul eax, eax, 0x33
add eax, 4
cmp edx, eax
jle 0x140204ce8
mov dword [r12 + 0x20], eax
mov rcx, r13
lea r14, str._a_d
call sym.sqlite3_free
mov rax, qword [rsp + 0x100]
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
mov qword [r12 + 0x18], rax
mov rcx, rax
call sym.sqlite3_str_new
mov r9, rbx
mov r8, rsi
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov rcx, rax
mov r13, rax
call dbg.sqlite3_str_appendf
cmp byte [r12 + 0x29], 0
je 0x140204d55
nop dword [rax]
mov r8d, r15d
mov rdx, r14
mov rcx, r13
add r15d, 1
call dbg.sqlite3_str_appendf
movzx eax, byte [r12 + 0x29]
cmp r15d, eax
jl 0x140204d38
mov r9, rbx
mov r8, rsi
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov rcx, r13
call dbg.sqlite3_str_appendf
mov r9, rbx
mov r8, rsi
mov rcx, r13
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
call dbg.sqlite3_str_appendf
mov eax, dword [r12 + 0x20]
mov r9, rbx
mov r8, rsi
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov rcx, r13
mov dword [rsp + 0x20], eax
call dbg.sqlite3_str_appendf
test r13, r13
je 0x140204f61
lea rax, [0x1402418c0]
cmp r13, rax
je 0x140204f61
mov rax, qword [r13 + 8]
test rax, rax
je 0x14020516e
mov edx, dword [r13 + 0x18]
mov byte [rax + rdx], 0
mov edx, dword [r13 + 0x14]
test edx, edx
je 0x140204dde
test byte [r13 + 0x1d], 4
je 0x1402051a9
mov r14, qword [r13 + 8]
mov rcx, r13
call sym.sqlite3_free
test r14, r14
je 0x140204f61
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x100]
call dbg.sqlite3_exec
mov rcx, r14
mov r15d, eax
call sym.sqlite3_free
test r15d, r15d
je 0x140204abe
mov ebp, r15d
mov rcx, qword [rsp + 0x100]
call sym.sqlite3_errmsg
lea rcx, [0x14037e000]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov qword [rsi], rax
jmp 0x140204987
mov rcx, qword [rsp + 0x100]
call sym.sqlite3_errmsg
lea rcx, [0x14037e000]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov qword [rsi], rax
jmp 0x1402049d8
mov rcx, qword [rsp + 0x68]
mov r13d, 0x64
call dbg.sqlite3_step
cmp eax, 0x64
je 0x1402051b9
mov rcx, qword [rsp + 0x68]
call dbg.sqlite3_finalize
mov rcx, r14
mov r15d, eax
call sym.sqlite3_free
mov qword [r12 + 0x50], r13
test r15d, r15d
jne 0x140204b9b
xor r13d, r13d
jmp 0x140204f26
mov rdx, r14
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x30], 0
mov r9d, 0x85
mov rax, qword [rdi + r13*8]
mov r8d, 0xffffffff
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call dbg.sqlite3LockAndPrepare
mov rcx, r14
mov r15d, eax
call sym.sqlite3_free
lea edx, [r13 + 1]
cmp edx, 7
setle cl
test r15d, r15d
sete dl
add r13, 1
test cl, dl
je 0x1402051e2
cmp r13, 3
je 0x140204f70
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rcx, qword [rax + r13*8]
mov r8, rbx
mov rdx, rsi
call dbg.sqlite3_mprintf
mov r14, rax
test rax, rax
jne 0x140204ec8
xor ecx, ecx
call sym.sqlite3_free
cmp byte [r12 + 0x29], 0
jne 0x140205078
mov ebp, 7
jmp 0x140204e29
cmp byte [r12 + 0x29], 0
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x140204f37
jmp 0x140204f2c
mov r15d, 7
mov rcx, qword [rsp + 0x100]
mov ebp, r15d
call sym.sqlite3_errmsg
lea rcx, [0x14037e000]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov qword [rsi], rax
mov rcx, r13
call sym.sqlite3_free
jmp 0x140204987
mov ebx, 7
mov rcx, qword [rsp + 0x100]
mov ebp, ebx
call sym.sqlite3_errmsg
lea rcx, [0x14037e000]
mov rdx, rax
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov qword [rsi], rax
jmp 0x140204fb1
mov rcx, r13
call dbg.strAccumFinishRealloc
mov r15, rax
jmp 0x140204941
mov rdx, qword [r12 + 0x30]
mov r8, qword [r12 + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call dbg.sqlite3_mprintf
mov r14, rax
test rax, rax
je 0x140205083
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x100]
mov rdx, r14
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
mov r15d, eax
test eax, eax
je 0x140204e84
mov rcx, r14
call sym.sqlite3_free
mov qword [r12 + 0x50], 0x64
jmp 0x140204b9b
mov r15d, 7
jmp 0x140204e26
mov qword [r12 + 0x50], 0x64
mov r15d, 7
jmp 0x140204e26
lea rdx, str._WHERE_rowid_1
mov rcx, r13
call dbg.sqlite3_str_appendf
lea rax, [0x1402418c0]
cmp r13, rax
je 0x140204f61
test r13, r13
je 0x140204f61
mov rax, qword [r13 + 8]
test rax, rax
je 0x1402050e7
mov edx, dword [r13 + 0x18]
mov byte [rax + rdx], 0
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x1402050e3
test byte [r13 + 0x1d], 4
je 0x1402051d2
mov rax, qword [r13 + 8]
mov r15, rax
mov rcx, r13
call sym.sqlite3_free
test r15, r15
je 0x140204f61
lea rax, [r12 + 0xb8]
mov rcx, qword [rsp + 0x100]
mov rdx, r15
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov r9d, 0x85
mov r8d, 0xffffffff
mov qword [rsp + 0x20], 0
call dbg.sqlite3LockAndPrepare
mov rcx, r15
mov ebp, eax
call sym.sqlite3_free
test ebp, ebp
jne 0x140204e29
mov rax, qword [rsp + 0x120]
mov qword [rax], r12
jmp 0x1402046a6
mov r8d, 1
mov rdx, rsi
mov rcx, r13
call dbg.enlargeAndAppend
jmp 0x140204c10
mov rcx, r13
call sym.sqlite3_free
jmp 0x140204f61
mov rdx, qword [r12 + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov ebp, 0x10b
call dbg.sqlite3_mprintf
mov rsi, qword [rsp + 0x128]
mov rcx, r13
mov qword [rsi], rax
call sym.sqlite3_free
jmp 0x140204987
mov rcx, r13
call dbg.strAccumFinishRealloc
mov r14, rax
jmp 0x140204de2
mov rcx, qword [rsp + 0x68]
xor edx, edx
call sym.sqlite3_column_int64
cmp rax, 0x64
cmovge r13, rax
jmp 0x140204e9d
mov rcx, r13
call dbg.strAccumFinishRealloc
mov r15, rax
jmp 0x1402050ea
cmp byte [r12 + 0x29], 0
jne 0x140204ba7
mov ebp, r15d
jmp 0x140205140