Function at 0x14012cedc
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc8
mov rax, qword [0x140250b18]
xor rax, rsp
mov qword [rbp + 7], rax
movsxd rdi, edx
xor r15d, r15d
mov r13, r9
mov qword [rbp - 0x69], r8
mov r12, rcx
lea rax, [rcx + rdi*8]
cmp qword [rax + 0x28], r15
jne 0x14012d116
mov rbx, qword [rcx]
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov qword [rbp - 0x59], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov qword [rbp - 0x51], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov qword [rbp - 0x49], rax
lea rax, str.INSERT_INTO__Q._q_content_VALUES__s_
mov qword [rbp - 0x41], rax
lea rax, str.REPLACE_INTO__Q._q_content_VALUES__s_
mov qword [rbp - 0x39], rax
lea rax, str.DELETE_FROM__Q._q_content_WHERE_id_
mov qword [rbp - 0x31], rax
lea rax, str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov qword [rbp - 0x29], rax
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov qword [rbp - 0x21], rax
lea rax, str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
mov qword [rbp - 0x19], rax
lea rax, str.REPLACE_INTO__Q._q_config_VALUES_____
mov qword [rbp - 0x11], rax
lea rax, str.SELECT__s_FROM__s_AS_T
mov qword [rbp - 9], rax
test edx, edx
js 0x14012d07d
cmp edi, 1
jle 0x14012d05b
cmp edi, 2
je 0x14012d043
jle 0x14012d07d
cmp edi, 4
jle 0x14012cfd8
cmp edi, 0xa
jne 0x14012d07d
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
jmp 0x14012d085
movsxd rsi, dword [rbx + 0x18]
lea eax, [rsi + rsi]
movsxd rcx, eax
add rcx, 3
call fcn.1400f35e8
mov r15, rax
test rax, rax
je 0x14012d097
xor edx, edx
lea rax, [rsi + 1]
test rax, rax
jle 0x14012d015
xor ecx, ecx
mov edx, eax
mov word [r15 + rcx*2], 0x2c3f
inc rcx
cmp rcx, rax
jl 0x14012d006
lea eax, [rdx + rdx]
mov r9, r15
movsxd rcx, eax
mov byte [rcx + r15 - 1], 0
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, qword [rbp + rdi*8 - 0x59]
call fcn.1400f3418
mov rcx, r15
mov rsi, rax
call fcn.1400f3680
jmp 0x14012d092
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rbp + rdi*8 - 0x59]
call fcn.1400f3418
jmp 0x14012d08f
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rbp + rdi*8 - 0x59]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.1400f3418
jmp 0x14012d08f
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, qword [rbp + rdi*8 - 0x59]
call fcn.1400f3418
mov rsi, rax
test rsi, rsi
jne 0x14012d09f
mov r15d, 7
jmp 0x14012d116
mov rax, qword [r12]
mov rdx, rsi
inc dword [rax + 0x78]
mov eax, 0x81
mov rcx, qword [rbx]
cmp edi, 2
lea r9d, [rax + 4]
cmovle r9d, eax
and qword [rsp + 0x30], 0
lea rax, [r12 + 0x28]
or r8d, 0xffffffff
lea rax, [rax + rdi*8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call fcn.1401692ec
mov rdx, qword [r12]
mov rcx, rsi
mov r15d, eax
dec dword [rdx + 0x78]
call fcn.1400f3680
test r15d, r15d
je 0x14012d116
test r13, r13
je 0x14012d116
mov rcx, qword [rbx]
call fcn.1400f4224
mov rdx, rax
lea rcx, [0x1402201e8]
call fcn.1400f3418
mov qword [r13], rax
mov rax, qword [rbp - 0x69]
mov rcx, qword [r12 + rdi*8 + 0x28]
mov qword [rax], rcx
call fcn.1400f5e6c
mov eax, r15d
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14019eac0
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret