Function at 0x1801216f0
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0xd8
mov rax, qword [0x18015a008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movsxd r15, edx
lea r13, [rcx + 0x28]
lea r13, [r13 + r15*8]
mov qword [rsp + 0x48], r8
xor ebp, ebp
mov qword [rsp + 0x40], rcx
mov r12, r9
mov rbx, rcx
cmp qword [r13], rbp
jne 0x180121a16
mov qword [r11 - 0x38], rdi
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov rdi, qword [rcx]
mov qword [rsp + 0x50], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov qword [rsp + 0x58], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov qword [rsp + 0x60], rax
lea rax, str.INSERT_INTO__Q._q_content_VALUES__s_
mov qword [rsp + 0x68], rax
lea rax, str.REPLACE_INTO__Q._q_content_VALUES__s_
mov qword [rsp + 0x70], rax
lea rax, str.DELETE_FROM__Q._q_content_WHERE_id_
mov qword [rsp + 0x78], rax
lea rax, str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov qword [r11 - 0x88], rax
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov qword [r11 - 0x80], rax
lea rax, str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
mov qword [r11 - 0x78], rax
lea rax, str.REPLACE_INTO__Q._q_config_VALUES_____
mov qword [r11 - 0x70], rax
lea rax, str.SELECT__s_FROM__s_AS_T
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x40], r14
cmp r15d, 0xa
ja case.0x1801217e6.5
lea rcx, [0x180000000]
mov edx, dword [rcx + r15*4 + 0x121a4c]
add rdx, rcx
jmp rdx
mov r8, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rsp + r15*8 + 0x50]
call sym.QoOBJSl.dll_hqlite3_mprintf
mov rsi, rax
jmp 0x180121915
mov r9, qword [rdi + 0x50]
mov r8, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rsp + r15*8 + 0x50]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call sym.QoOBJSl.dll_hqlite3_mprintf
mov rsi, rax
jmp 0x180121915
mov r9, qword [rdi + 0x50]
mov r8, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rsp + r15*8 + 0x50]
call sym.QoOBJSl.dll_hqlite3_mprintf
mov rsi, rax
jmp 0x180121915
movsxd r14, dword [rdi + 0x18]
lea ebx, [r14 + 1]
call sym.QoOBJSl.dll_hqlite3_initialize
test eax, eax
jne 0x18012191a
lea eax, [rbx + rbx]
movsxd rcx, eax
inc rcx
call fcn.180005840
mov rbx, rax
test rax, rax
je 0x18012191a
lea rcx, [r14 + 1]
mov edx, ebp
test rcx, rcx
jle 0x18012189e
mov rax, rbp
mov edx, ecx
nop word [rax + rax]
mov word [rbx + rax*2], 0x2c3f
inc rax
cmp rax, rcx
jl 0x180121890
lea eax, [rdx + rdx]
mov r9, rbx
movsxd rcx, eax
mov byte [rcx + rbx - 1], bpl
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsp + r15*8 + 0x50]
call sym.QoOBJSl.dll_hqlite3_mprintf
cmp dword [0x18015a080], ebp
mov rsi, rax
je 0x180121924
mov rcx, qword [0x18015d358]
test rcx, rcx
je 0x1801218db
call qword [0x18015a100]
mov rcx, rbx
call qword [0x18015a0b8]
dec qword [0x18015d0e8]
movsxd rcx, eax
sub qword [0x18015d0a0], rcx
mov rcx, rbx
call qword [0x18015a0a8]
mov rcx, qword [0x18015d358]
test rcx, rcx
je 0x180121910
call qword [0x18015a110]
mov rbx, qword [rsp + 0x40]
test rsi, rsi
jne 0x180121946
mov ebp, 7
jmp 0x180121a06
mov rcx, rbx
call qword [0x18015a0a8]
jmp 0x180121910
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsp + r15*8 + 0x50]
call sym.QoOBJSl.dll_hqlite3_mprintf
mov rsi, rax
jmp 0x180121915
mov rax, qword [rbx]
mov r9d, 0x85
mov qword [rsp + 0x30], rbp
mov r8d, 0xffffffff
mov qword [rsp + 0x28], r13
mov rdx, rsi
mov qword [rsp + 0x20], rbp
inc dword [rax + 0x78]
mov eax, 0x81
mov rcx, qword [rdi]
cmp r15d, 2
cmovle r9d, eax
call fcn.1800894d0
mov rcx, qword [rbx]
mov ebp, eax
dec dword [rcx + 0x78]
cmp dword [0x18015a080], 0
je 0x1801219d9
mov rcx, qword [0x18015d358]
test rcx, rcx
je 0x1801219a2
call qword [0x18015a100]
mov rcx, rsi
call qword [0x18015a0b8]
dec qword [0x18015d0e8]
movsxd rcx, eax
sub qword [0x18015d0a0], rcx
mov rcx, rsi
call qword [0x18015a0a8]
mov rcx, qword [0x18015d358]
test rcx, rcx
je 0x1801219e2
call qword [0x18015a110]
jmp 0x1801219e2
mov rcx, rsi
call qword [0x18015a0a8]
test ebp, ebp
je 0x180121a06
test r12, r12
je 0x180121a06
mov rcx, qword [rdi]
call sym.QoOBJSl.dll_hqlite3_errmsg
mov rdx, rax
lea rcx, [0x180138810]
call sym.QoOBJSl.dll_hqlite3_mprintf
mov qword [r12], rax
mov rdi, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x48]
mov rcx, qword [r13]
mov qword [rax], rcx
call sym.QoOBJSl.dll_hqlite3_reset
mov eax, ebp
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18012ba20
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret