Function at 0x140108f80
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
xor esi, esi
movsxd rdi, edx
mov rbp, rcx
mov r13, r8
mov r12, r9
mov rcx, qword [rcx + rdi*8 + 0x28]
mov rbx, rdi
test rcx, rcx
je 0x140108fd0
mov qword [r13], rcx
call sym.sqlite3_reset
mov eax, esi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov r15, qword [rbp]
movq xmm0, rsi
movq xmm1, rax
lea r10, str.SELECT__s_FROM__s_T_WHERE_T._Q_
punpcklqdq xmm0, xmm1
lea rax, str.INSERT_INTO__Q._q_content_VALUES__s_
lea rsi, str.REPLACE_INTO__Q._q_content_VALUES__s_
movq xmm2, rax
movups xmmword [rsp + 0x50], xmm0
movq xmm0, r10
lea rax, str.DELETE_FROM__Q._q_content_WHERE_id_
punpcklqdq xmm0, xmm2
movq xmm3, rax
lea r11, str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
movups xmmword [rsp + 0x60], xmm0
movq xmm0, rsi
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_id_
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
punpcklqdq xmm0, xmm3
movq xmm4, rax
lea rax, str.REPLACE_INTO__Q._q_config_VALUES_____
movups xmmword [rsp + 0x70], xmm0
movq xmm0, r11
movq xmm5, rax
lea r9, str.SELECT__s_FROM__s_AS_T
punpcklqdq xmm0, xmm4
mov qword [rsp + 0xa0], r9
movups xmmword [rsp + 0x80], xmm0
movq xmm0, rcx
punpcklqdq xmm0, xmm5
movups xmmword [rsp + 0x90], xmm0
cmp edi, 0xa
ja case.0x1401090a7.5
lea rdx, [0x140165c18]
mov eax, edi
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov ecx, dword [0x14014efd4]
movsxd rsi, dword [r15 + 0x18]
test ecx, ecx
jne 0x140109320
call sym.sqlite3MutexInit
test eax, eax
jne 0x140109280
call sym.sqlite3_initialize.part.0
test eax, eax
jne 0x140109280
lea edx, [rsi + 1]
lea r14d, [rdx + rdx]
mov dword [rsp + 0x48], edx
lea ecx, [r14 + 1]
movsxd rcx, ecx
call sym.sqlite3Malloc
mov r9, rax
test rax, rax
je 0x140109280
mov edx, dword [rsp + 0x48]
test edx, edx
jle 0x14010932b
movzx edx, word [0x1401770d0]
lea rcx, [rax + rsi*2 + 2]
nop word [rax + rax]
mov word [rax], dx
add rax, 2
cmp rcx, rax
jne 0x140109120
movsxd r14, r14d
sub r14, 1
mov byte [r9 + r14], 0
mov rcx, qword [rsp + rdi*8 + 0x50]
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x10]
mov qword [rsp + 0x48], r9
call sym.sqlite3_mprintf
mov rcx, qword [rsp + 0x48]
mov r14, rax
call sym.sqlite3_free
test r14, r14
jne 0x140109242
jmp 0x140109280
mov r9, qword [r15 + 0x50]
mov r8, qword [r15 + 0x48]
mov rdx, qword [r15 + 0x68]
mov rcx, qword [rsp + rdi*8 + 0x50]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call sym.sqlite3_mprintf
mov r14, rax
test rax, rax
je 0x140109280
mov r9d, 0x81
mov rax, qword [rbp]
add ebx, 5
mov rcx, qword [r15]
mov r8d, 0xffffffff
movsxd rbx, ebx
mov rdx, r14
add dword [rax + 0x80], 1
lea rax, [rbp + rbx*8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3LockAndPrepare
mov rcx, r14
mov esi, eax
mov rax, qword [rbp]
sub dword [rax + 0x80], 1
call sym.sqlite3_free
test esi, esi
je 0x140109219
test r12, r12
je 0x140109219
mov rcx, qword [r15]
call sym.sqlite3_errmsg
lea rcx, [0x1401608f8]
mov rdx, rax
call sym.sqlite3_mprintf
mov qword [r12], rax
mov rcx, qword [rbp + rdi*8 + 0x28]
jmp 0x140108fae
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + rdi*8 + 0x50]
mov r8, qword [r15 + 0x10]
call sym.sqlite3_mprintf
mov r14, rax
test rax, rax
je 0x140109280
mov r9d, 0x85
jmp 0x1401091a2
mov edx, dword [r15 + 0x44]
lea rax, [0x140165a11]
mov r8, qword [r15 + 0x10]
mov rcx, r11
lea r9, [0x14015f198]
test edx, edx
mov rdx, qword [r15 + 8]
cmovne r9, rax
call sym.sqlite3_mprintf
mov r14, rax
test rax, rax
jne 0x140109242
mov esi, 7
jmp 0x140109219
mov rdx, qword [r15 + 0x68]
mov r8, qword [r15 + 0x48]
mov rcx, r9
call sym.sqlite3_mprintf
mov r9d, 0x85
mov r14, rax
test rax, rax
jne 0x1401091a2
jmp 0x140109280
mov rdx, qword [r15 + 0x68]
mov r9, qword [r15 + 0x50]
mov rcx, r10
mov r8, qword [r15 + 0x48]
call sym.sqlite3_mprintf
mov r14, rax
test rax, rax
jne 0x14010919c
jmp 0x140109280
mov eax, dword [r15 + 0x44]
lea rdx, [0x14015f198]
mov r9, qword [r15 + 0x10]
mov r8, qword [r15 + 8]
test eax, eax
lea rax, str._origin
cmovne rdx, rax
call sym.sqlite3_mprintf
mov r14, rax
test rax, rax
jne 0x140109242
jmp 0x140109280
lock or qword [rsp], 0
jmp 0x1401090dc
mov r14, 0xffffffffffffffff
jmp 0x140109133