Function at 0x140150450
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x1401b7098]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x3c], 0
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
cmp qword [rcx + rax*8 + 0x28], 0
jne 0x140150818
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov qword [rsp + 0x60], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov qword [rsp + 0x68], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov qword [rsp + 0x70], rax
lea rax, str.INSERT_INTO__Q._q_content_VALUES__s_
mov qword [rsp + 0x78], rax
lea rax, str.REPLACE_INTO__Q._q_content_VALUES__s_
mov qword [rsp + 0x80], rax
lea rax, str.DELETE_FROM__Q._q_content_WHERE_id_
mov qword [rsp + 0x88], rax
lea rax, str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov qword [rsp + 0x90], rax
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov qword [rsp + 0x98], rax
lea rax, str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
mov qword [rsp + 0xa0], rax
lea rax, str.REPLACE_INTO__Q._q_config_VALUES_____
mov qword [rsp + 0xa8], rax
lea rax, str.SELECT__s_FROM__s_AS_T
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xa
ja case.0x14015057e.5
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x150864]
add rax, rcx
jmp rax
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rsp + rax*8 + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x40], rax
jmp 0x140150723
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x50]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rsp + rax*8 + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x40], rax
jmp 0x140150723
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x50]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rsp + rax*8 + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x40], rax
jmp 0x140150723
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
lea eax, [rax + rax + 1]
cdqe
mov rcx, rax
call sym.sqlite3.exe_sqlite3_malloc64
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401506f8
mov dword [rsp + 0x38], 0
jmp 0x14015067d
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x38], eax
jge 0x1401506ad
mov eax, dword [rsp + 0x38]
add eax, eax
cdqe
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0x3f
mov eax, dword [rsp + 0x38]
lea eax, [rax + rax + 1]
cdqe
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0x2c
jmp 0x140150673
mov eax, dword [rsp + 0x38]
lea eax, [rax + rax - 1]
cdqe
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0
movsxd rax, dword [rsp + 0xe8]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 8]
mov rcx, qword [rsp + rax*8 + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
call sym.sqlite3.exe_sqlite3_free
jmp 0x140150723
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 8]
mov rcx, qword [rsp + rax*8 + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140150738
mov dword [rsp + 0x3c], 7
jmp 0x140150818
mov dword [rsp + 0x48], 1
cmp dword [rsp + 0xe8], 2
jle 0x140150755
mov eax, dword [rsp + 0x48]
or eax, 4
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov dword [rcx + 0x78], eax
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax*8 + 0x28]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_prepare_v3
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov eax, dword [rax + 0x78]
dec eax
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov dword [rcx + 0x78], eax
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x3c], 0
je 0x140150818
cmp qword [rsp + 0xf8], 0
je 0x140150818
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_errmsg
mov rdx, rax
lea rcx, [0x1401af41c]
call sym.sqlite3.exe_sqlite3_mprintf
mov rcx, qword [rsp + 0xf8]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xe0]
mov rax, qword [rdx + rax*8 + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_reset
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140157ff0
add rsp, 0xd8
ret