Function at 0x140020640
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
xor r10d, r10d
lea rbp, [0x140150e4d]
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
mov r13, rdx
test rcx, rcx
je 0x140020b25
mov qword [rsp + 0x60], rcx
mov r14, rcx
lea r8, [rsp + 0xa8]
mov edx, 1
xor edi, edi
cmp r10, rcx
je 0x140020a13
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x48], r8
nop word [rax + rax]
mov rsi, qword [r14]
mov rcx, qword [rbx + 8]
mov r8, r13
lea r9, str.SELECT_CREATE_TEMP__substr_sql__7__FROM_sqlite_schema_WHERE_tbl_name___Q_AND_type_IN__table__trigger__ORDER_BY_type_
mov rdx, qword [rsp + 0x48]
mov rdi, qword [rsi + 8]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call sym.idxPrintfPrepareStmt
jmp 0x1400206f4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
call sym.sqlite3_exec
mov dword [rsp + 0xa0], eax
mov rcx, qword [rsp + 0xa8]
test eax, eax
jne 0x140020820
call sym.sqlite3_step
cmp eax, 0x64
jne 0x14002073e
mov rcx, qword [rsp + 0xa8]
xor edx, edx
call sym.sqlite3_column_text
mov rdx, rax
test rax, rax
jne 0x1400206e0
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_step
cmp eax, 0x64
je 0x140020715
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_finalize
mov dword [rsp + 0xa0], eax
test eax, eax
jne 0x14002079e
mov rdx, rdi
lea r8, str.t592690916721053953805701627921227776
lea rcx, str.ALTER_TABLE_temp._Q_RENAME_TO__Q
call sym.sqlite3_mprintf
mov rdi, rax
test rax, rax
je 0x140020a38
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call sym.sqlite3_exec
mov rcx, rdi
mov dword [rsp + 0xa0], eax
call sym.sqlite3_free
mov eax, dword [r14 + 8]
cmp eax, 0x12
je 0x140020832
cmp eax, 0x17
je 0x1400208c0
cmp eax, 9
je 0x1400207d3
mov r8d, 0x3390
lea rdx, str.shell.c
lea rcx, str.pWrite__eOpSQLITE_DELETE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
mov edi, dword [rsp + 0xa0]
test edi, edi
je 0x140020a50
xor ecx, ecx
call sym.sqlite3_free
mov dword [rsp + 0x84], edi
cmp edi, 0x305
jne 0x140020a81
test r13, r13
je 0x140020af5
lea rcx, str.Cannot_find_a_unique_index_name_to_propose.
call sym.sqlite3_mprintf
mov qword [r13], rax
jmp 0x140020af5
call sym.sqlite3_finalize
mov eax, dword [r14 + 8]
cmp eax, 0x12
jne 0x1400207ab
xor edx, edx
lea rdi, [rsp + 0xa0]
lea r9, str.t592690916721053953805701627921227776
lea r8, str.INSERT_INTO__Q_VALUES_
mov rcx, rdi
call sym.idxAppendText
mov r11d, dword [rsi]
mov rdx, rax
test r11d, r11d
jle 0x14002088a
xor r15d, r15d
lea r9, [0x140150568]
lea r12, [0x1401551f0]
nop
mov r8, r12
mov rcx, rdi
add r15d, 1
call sym.idxAppendText
mov r9, rbp
mov rdx, rax
cmp r15d, dword [rsi]
jl 0x140020870
lea r8, [0x140152555]
mov rcx, rdi
call sym.idxAppendText
mov rdx, rax
mov edi, dword [rsp + 0xa0]
test edi, edi
je 0x140020940
mov rcx, rdx
call sym.sqlite3_free
jmp 0x1400207e9
xor edx, edx
lea rdi, [rsp + 0xa0]
lea r9, str.t592690916721053953805701627921227776
lea r8, str.UPDATE__Q_SET
mov rcx, rdi
call sym.idxAppendText
mov r10d, dword [rsi]
mov rdx, rax
test r10d, r10d
jle 0x14002089c
xor r12d, r12d
lea r15, [0x140150568]
nop dword [rax]
mov r9, qword [rsi + 0x10]
lea rcx, [r12 + r12*2]
test r12, r12
lea r8, str._s_Q_
lea rcx, [r9 + rcx*8]
mov r9, rbp
mov rax, qword [rcx]
cmove r9, r15
mov rcx, rdi
add r12, 1
mov qword [rsp + 0x20], rax
call sym.idxAppendText
mov rdx, rax
cmp dword [rsi], r12d
jg 0x1400208f8
mov edi, dword [rsp + 0xa0]
test edi, edi
jne 0x1400208ab
mov rcx, qword [rbx + 0x18]
mov r8d, 0xffffffff
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0xb0], 0
call sym.sqlite3_prepare_v2
mov rcx, qword [rsp + 0xb0]
mov edi, eax
call sym.sqlite3_finalize
test edi, edi
mov rdx, qword [rsp + 0x58]
je 0x1400209c0
mov r11, rdx
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], r11
call sym.sqlite3_errmsg
lea rcx, [0x1401509b2]
mov rdx, rax
call sym.sqlite3_mprintf
mov rcx, qword [rsp + 0x48]
mov qword [r13], rax
call sym.sqlite3_free
jmp 0x1400207e9
mov dword [rsp + 0xa0], eax
test eax, eax
jne 0x1400214ea
mov rcx, rdx
call sym.sqlite3_free
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea rdx, str.DROP_TABLE_t592690916721053953805701627921227776
call sym.sqlite3_exec
mov r14, qword [r14 + 0x10]
test eax, eax
mov edi, eax
mov rax, qword [rsp + 0x50]
sete dl
cmp r14, rax
je 0x140020a0f
test dl, dl
jne 0x1400206a0
mov rcx, qword [rbx + 0x30]
mov r10, qword [rsp + 0x60]
cmp rcx, r10
je 0x1400214d6
test dl, dl
je 0x1400214d6
mov qword [rsp + 0x60], rcx
jmp 0x140020675
mov dword [rsp + 0xa0], 7
jmp 0x14002079e
lea rdx, str.t592690916721053953805701627921227776
lea rcx, str.DELETE_FROM__Q
call sym.sqlite3_mprintf
mov rdx, rax
test rax, rax
jne 0x140020940
xor ecx, ecx
call sym.sqlite3_free
mov dword [rsp + 0x84], 7
mov rsi, qword [rbx + 0x58]
test rsi, rsi
je 0x140020aea
mov rdx, qword [rbx + 0x2058]
lea r14, [rsp + 0x84]
lea r12, str.____stat1:
lea rbp, [0x140150568]
lea rdi, str._s__s_s_n
nop
mov rax, qword [rsi + 0x10]
mov rcx, rbp
mov r9, qword [rsi + 8]
mov r8, rdi
test rax, rax
mov qword [rsp + 0x28], rax
cmovne rcx, r12
mov qword [rsp + 0x20], rcx
mov rcx, r14
call sym.idxAppendText
mov rsi, qword [rsi + 0x20]
mov qword [rbx + 0x2058], rax
mov rdx, rax
test rsi, rsi
jne 0x140020ab0
mov edi, dword [rsp + 0x84]
test edi, edi
je 0x140020b0b
mov eax, edi
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r13
mov rcx, rbx
call sym.idxFindIndexes
mov edi, eax
test eax, eax
jne 0x140020af5
mov dword [rbx + 0x40], 1
jmp 0x140020af5
mov dword [rsp + 0x84], 0
mov rsi, qword [rbx + 0x28]
test rsi, rsi
je 0x140021336
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call sym.idxCreateFromWhere
test eax, eax
je 0x140020b60
mov dword [rsp + 0x84], eax
jmp 0x140020a81
mov r8, qword [rsi + 0x18]
mov edx, 1
test r8, r8
je 0x140020b7e
mov rdx, rsi
mov rcx, rbx
call sym.idxCreateFromWhere
test eax, eax
sete dl
mov rsi, qword [rsi + 0x30]
test rsi, rsi
je 0x140020b8b
test dl, dl
jne 0x140020b3d
mov dword [rsp + 0x84], eax
test eax, eax
jne 0x140020a81
mov dword [rsp + 0x88], 0
mov esi, dword [rbx]
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
test esi, esi
je 0x140020c31
mov rsi, qword [rbx + 0x10]
lea rbp, [rsp + 0xb0]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
mov r9, rbp
lea rdx, str.SELECT_max_i.seqno__FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l____pragma_index_info_l.name__AS_i_WHERE_s.type__table
mov qword [rsp + 0xb0], 0
mov rcx, rsi
call sym.sqlite3_prepare_v2
mov dword [rsp + 0x6c], eax
test eax, eax
jne 0x140020c3d
mov rcx, qword [rsp + 0xb0]
call sym.sqlite3_step
cmp eax, 0x64
je 0x140020c77
mov rcx, qword [rsp + 0xb0]
call sym.sqlite3_finalize
mov esi, eax
mov dword [rsp + 0x84], esi
jmp 0x140020a81
mov qword [rsp + 0xb0], 0
mov rcx, rsi
call sym.sqlite3_errmsg
lea rcx, [0x1401509b2]
mov rdx, rax
call sym.sqlite3_mprintf
mov rcx, qword [rsp + 0xb0]
mov qword [r13], rax
call sym.sqlite3_finalize
mov esi, dword [rsp + 0x6c]
jmp 0x140020c31
mov rcx, qword [rsp + 0xb0]
xor edx, edx
call sym.sqlite3_column_int
mov rcx, qword [rsp + 0xb0]
mov edi, eax
lea r15d, [rax + 1]
call sym.sqlite3_finalize
mov dword [rsp + 0x88], eax
mov esi, eax
test r15d, r15d
jle 0x140020c31
test eax, eax
jne 0x140020c31
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
xor r12d, r12d
mov qword [rsp + 0x20], 0
lea rdx, str.ANALYZE__PRAGMA_writable_schema1
call sym.sqlite3_exec
mov dword [rsp + 0x88], eax
mov r14d, eax
test eax, eax
je 0x140021530
mov qword [rsp + 0x50], r12
mov rsi, 0xfffffffffffe7960
test r14d, r14d
jne 0x1400213e0
mov rcx, qword [rsp + 0x90]
call sym.sqlite3_step
cmp eax, 0x64
jne 0x140021361
mov rcx, qword [rsp + 0x90]
xor edx, edx
call sym.sqlite3_column_int64
mov rcx, qword [rsp + 0x90]
mov edx, 1
mov qword [rsp + 0x70], rax
mov r15, rax
call sym.sqlite3_column_text
mov rcx, qword [rsp + 0x90]
mov edx, 2
mov rdi, rax
call sym.sqlite3_column_text
test rdi, rdi
je 0x140020cf4
test rax, rax
je 0x140020cf4
mov qword [rsp + 0x58], rax
mov eax, dword [rbx]
mov qword [rsp + 0x60], rdi
cmp eax, 0x63
jg 0x140020e22
cmp r15, rsi
je 0x140020e22
mov rcx, qword [rbx + 0x18]
pxor xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
cvtsi2sd xmm0, eax
mov dword [rsp + 0xb0], eax
divsd xmm0, qword [0x14015ec68]
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
movsd qword [rsp + 0xb8], xmm0
call sym.sqlite3_exec
mov esi, eax
test eax, eax
jne 0x140021279
mov rdx, rdi
lea rcx, str.CREATE_TABLE_temp.t592690916721053953805701627921227776_AS_SELECT__FROM__Q
call sym.sqlite3_mprintf
mov rdi, rax
test rax, rax
je 0x140021352
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_exec
mov rcx, rdi
mov esi, eax
call sym.sqlite3_free
mov dword [rsp + 0x88], esi
test esi, esi
jne 0x1400216be
mov eax, dword [rbx]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x78], rsi
test eax, eax
jle 0x140021093
mov qword [rsp + 0x20], 0
mov rcx, rbp
xor edi, edi
xor esi, esi
mov r8, qword [rsp + 0x58]
mov r9d, 0xffffffff
mov edx, 1
lea r15, [0x140150e4d]
call sym.sqlite3_bind_text
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x128], r13
jmp 0x140020f2f
test rsi, rsi
lea rbx, [0x140150568]
mov rcx, rbp
cmovne rbx, r15
xor edx, edx
call sym.sqlite3_column_text
mov edx, 1
mov rcx, rbp
mov r13, rax
call sym.sqlite3_column_text
mov r12, qword [rsp + 0x48]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x28], r14d
lea r8, str._sx._Q_IS_rem__d__x._Q__COLLATE__s
add r14d, 1
mov qword [rsp + 0x38], rax
mov rcx, r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], r13
call sym.idxAppendText
mov dword [rsp + 0x20], r14d
mov rdx, rdi
mov r9, rbx
lea r8, str._s_d
mov rcx, r12
mov rsi, rax
call sym.idxAppendText
mov r8d, dword [rsp + 0x8c]
mov rdi, rax
test r8d, r8d
jne 0x14002103c
mov rcx, rbp
call sym.sqlite3_step
cmp eax, 0x64
je 0x140020ea4
mov rbx, qword [rsp + 0x120]
mov rcx, rbp
mov r13, qword [rsp + 0x128]
call sym.sqlite3_reset
cmp dword [rbx], 0x64
je 0x14002125d
mov r8, rdi
mov rdx, rsi
lea rcx, str.SELECT__s_FROM_temp.t592690916721053953805701627921227776_x_ORDER_BY__s
call sym.sqlite3_mprintf
mov rcx, rsi
mov rbp, rax
call sym.sqlite3_free
mov rcx, rdi
call sym.sqlite3_free
cmp dword [rbx], 0x64
je 0x140021254
mov rdi, qword [rbx + 0x18]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
mov rdx, rbp
mov rcx, rdi
lea r9, [rsp + 0xa8]
call sym.sqlite3_prepare_v2
mov esi, eax
test eax, eax
jne 0x140021220
mov rcx, rbp
lea r12, [rsp + 0x8c]
mov dword [rsp + 0x8c], 0
call sym.sqlite3_free
lea edx, [r14*4 + 4]
mov rcx, r12
call sym.idxMalloc
mov edi, dword [rsp + 0x8c]
mov rsi, rax
test edi, edi
jne 0x14002150d
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_step
cmp eax, 0x64
je 0x1400210b2
mov rcx, rsi
call sym.sqlite3_free
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_finalize
mov r14d, eax
mov dword [rsp + 0x88], r14d
mov rsi, qword [rsp + 0x70]
jmp 0x140020ceb
mov rcx, rbp
mov rbx, qword [rsp + 0x120]
mov r13, qword [rsp + 0x128]
call sym.sqlite3_reset
mov rcx, rsi
call sym.sqlite3_free
mov rcx, rdi
call sym.sqlite3_free
mov esi, dword [rsp + 0x8c]
xor ecx, ecx
call sym.sqlite3_free
test esi, esi
je 0x140020fda
xor ecx, ecx
mov r14d, esi
call sym.sqlite3_free
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_finalize
jmp 0x14002102a
mov r8d, 0x3499
lea rdx, str.shell.c
lea rcx, str.p__iSample_0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
jmp 0x140020e56
movsxd rax, r14d
lea rdx, [rsi + rax*4 + 4]
mov rax, rsi
mov dword [rax], 1
add rax, 4
cmp rdx, rax
jne 0x1400210bd
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_step
cmp eax, 0x64
jne 0x140021132
add dword [rsi], 1
xor edi, edi
test r14d, r14d
jne 0x1400210f8
jmp 0x1400210cc
add edi, 1
cmp edi, r14d
je 0x1400210cc
mov rcx, qword [rsp + 0xa8]
mov edx, edi
call sym.sqlite3_column_int
test eax, eax
jne 0x1400210f0
cmp edi, r14d
jge 0x1400210cc
mov edx, r14d
movsxd rcx, edi
sub edx, edi
lea rax, [rsi + rcx*4]
add rdx, rcx
lea rdx, [rsi + rdx*4]
add dword [rax + 4], 1
add rax, 4
cmp rdx, rax
jne 0x140021123
jmp 0x1400210cc
mov ebp, dword [rsi]
lea rcx, [0x140155570]
mov edx, ebp
call sym.sqlite3_mprintf
mov rdi, rax
test rax, rax
je 0x1400214c6
mov r15d, 1
lea r8, [0x140155573]
test r14d, r14d
jne 0x14002117c
jmp 0x140021444
add r15, 1
lea r8, [0x140155573]
cmp r14d, r15d
jl 0x140021444
mov ecx, dword [rsi + r15*4]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
add eax, ebp
cdq
idiv ecx
mov rdx, rdi
mov rcx, r12
mov r9d, eax
call sym.idxAppendText
mov ecx, dword [rsp + 0x8c]
mov rdi, rax
test ecx, ecx
je 0x140021168
mov r15, qword [rsp + 0x58]
mov rcx, r15
call sym.strlen
lea rcx, [rbx + 0x58]
mov rdx, r15
mov r8d, eax
call sym.idxHashFind
mov rbp, rax
test rax, rax
je 0x1400214f8
cmp qword [rax + 0x10], 0
je 0x1400211f3
mov r8d, 0x34e0
lea rdx, str.shell.c
lea rcx, str.pEntry__zVal20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
mov qword [rbp + 0x10], rdi
mov r14d, dword [rsp + 0x8c]
mov rcx, rsi
call sym.sqlite3_free
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_finalize
test r14d, r14d
cmove r14d, eax
jmp 0x14002102a
mov qword [rsp + 0xa8], 0
mov rcx, rdi
call sym.sqlite3_errmsg
lea rcx, [0x1401509b2]
mov rdx, rax
call sym.sqlite3_mprintf
mov rcx, rbp
mov qword [r13], rax
call sym.sqlite3_free
jmp 0x14002107a
mov rdi, qword [rbx + 8]
jmp 0x140020f93
mov r8, qword [rsp + 0x60]
mov r9, rdi
mov rdx, rsi
lea rcx, str.SELECT__s_FROM__Q_x_ORDER_BY__s
call sym.sqlite3_mprintf
jmp 0x140020f73
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x88], esi
call sym.sqlite3_finalize
mov rcx, qword [rsp + 0x98]
mov edi, esi
call sym.sqlite3_finalize
mov rcx, qword [rsp + 0xa0]
mov ebp, edi
call sym.sqlite3_finalize
test r12, r12
je 0x14002134e
mov eax, dword [r12]
test eax, eax
jle 0x140021346
mov edi, dword [rsp + 0x6c]
lea rsi, [r12 + 0x28]
mov rcx, qword [rsi]
add edi, 1
add rsi, 0x28
call sym.sqlite3_free
cmp edi, dword [r12]
jl 0x1400212ce
mov esi, ebp
mov rcx, r12
call sym.sqlite3_free
test esi, esi
jne 0x140021312
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, str.ANALYZE_sqlite_schema
call sym.sqlite3_exec
mov esi, eax
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
call sym.sqlite3_exec
jmp 0x140020c31
mov dword [rsp + 0x84], 0
jmp 0x140020b9a
mov rcx, r12
call sym.sqlite3_free
mov esi, ebp
jmp 0x140021312
mov r12, qword [rsp + 0x50]
mov esi, 7
jmp 0x14002127e
cmp dword [rbx], 0x63
mov r12, qword [rsp + 0x50]
jle 0x140021400
mov rcx, qword [rsp + 0x90]
call sym.sqlite3_finalize
mov edi, eax
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x88], edi
call sym.sqlite3_finalize
mov ebp, eax
test edi, edi
jne 0x1400212a1
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x88], eax
call sym.sqlite3_finalize
mov esi, eax
test ebp, ebp
jne 0x1400212b0
mov dword [rsp + 0x88], eax
test r12, r12
je 0x1400212ed
mov edx, dword [r12]
mov ebp, eax
test edx, edx
jg 0x1400212c5
jmp 0x1400212e5
mov r12, qword [rsp + 0x50]
mov esi, r14d
mov rcx, qword [rsp + 0x90]
call sym.sqlite3_finalize
jmp 0x140021292
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
call sym.sqlite3_exec
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x88], eax
mov esi, eax
call sym.sqlite3_finalize
mov edi, eax
test esi, esi
je 0x14002137e
jmp 0x140021292
mov r15, qword [rsp + 0x78]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rcx, r15
call sym.sqlite3_bind_text
mov r8, qword [rsp + 0x58]
mov edx, 2
mov rcx, r15
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
call sym.sqlite3_bind_text
mov r8, rdi
mov edx, 3
mov rcx, r15
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
call sym.sqlite3_bind_text
mov rcx, r15
call sym.sqlite3_step
mov rcx, r15
call sym.sqlite3_reset
mov dword [rsp + 0x8c], eax
jmp 0x1400211aa
mov dword [rsp + 0x8c], 7
jmp 0x1400211aa
mov dword [rsp + 0x84], edi
test edi, edi
jne 0x1400207f0
jmp 0x140020b30
mov r11, rdx
mov edi, eax
jmp 0x14002098c
mov rcx, rdi
call sym.sqlite3_free
mov r14d, dword [rsp + 0x8c]
jmp 0x1400211ff
mov rcx, rax
mov r14d, edi
call sym.sqlite3_free
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3_finalize
jmp 0x14002102a
lea eax, [r15 + r15*4]
lea rcx, [rsp + 0x88]
lea edx, [rax*8 + 0x30]
call sym.idxMalloc
mov r14d, dword [rsp + 0x88]
mov r12, rax
test r14d, r14d
jne 0x140020cdf
cmp dword [rbx], 0x64
je 0x140021715
mov rcx, qword [rbx + 0x18]
lea rax, [sym.idxRemFunc]
mov qword [rsp + 0x20], r12
mov r9d, 1
mov r8d, 2
mov qword [rsp + 0x38], 0
lea rdx, [0x140155352]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call sym.sqlite3_create_function
mov dword [rsp + 0x88], eax
mov r14d, eax
test eax, eax
jne 0x140020cdf
lea rax, [sym.idxSampleFunc]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov r9d, 1
lea rdx, str.sample
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call sym.sqlite3_create_function
mov dword [rsp + 0x88], eax
mov r14d, eax
test eax, eax
jne 0x140020cdf
add edi, 2
mov rsi, qword [rbx + 0x10]
lea r9, [rsp + 0x90]
mov r8d, 0xffffffff
mov dword [r12], edi
lea rdx, str.SELECT_s.rowid__s.name__l.name_FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l_WHERE_s.type__table
mov qword [rsp + 0x20], 0
mov rcx, rsi
call sym.sqlite3_prepare_v2
mov r14d, eax
test eax, eax
jne 0x140021707
mov rsi, qword [rbx + 0x10]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
lea rdx, str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
mov rcx, rsi
call sym.sqlite3_prepare_v2
mov r14d, eax
test eax, eax
jne 0x1400216f9
mov rsi, qword [rbx + 0x10]
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
lea rdx, str.INSERT_INTO_sqlite_stat1_VALUES_________
mov dword [rsp + 0x88], 0
mov rcx, rsi
call sym.sqlite3_prepare_v2
mov r14d, eax
test eax, eax
jne 0x1400216d0
mov dword [rsp + 0x88], r14d
jmp 0x140020cdf
mov r12, qword [rsp + 0x50]
jmp 0x1400213e8
mov qword [rsp + 0xa0], 0
mov rcx, rsi
call sym.sqlite3_errmsg
lea rcx, [0x1401509b2]
mov rdx, rax
call sym.sqlite3_mprintf
mov qword [r13], rax
jmp 0x1400216b1
mov qword [rsp + 0x98], 0
jmp 0x1400216dc
mov qword [rsp + 0x90], 0
jmp 0x1400216dc
mov rcx, qword [rbx + 8]
jmp 0x140021569