Function at 0x1402f6400
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa8
movsxd rbp, edx
lea r12, [rcx + 0x28]
lea r12, [r12 + rbp*8]
xor esi, esi
mov r14, r9
mov r13, rcx
cmp qword [r12], rsi
jne 0x1402f66f0
mov qword [r11 + 8], rbx
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov rbx, qword [rcx]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov qword [rsp + 0x48], rax
lea rax, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov qword [rsp + 0x50], rax
lea rax, str.INSERT_INTO__Q._q_content_VALUES__s_
mov qword [r11 - 0x80], rax
lea rax, str.REPLACE_INTO__Q._q_content_VALUES__s_
mov qword [r11 - 0x78], rax
lea rax, str.DELETE_FROM__Q._q_content_WHERE_id_
mov qword [r11 - 0x70], rax
lea rax, str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
mov qword [r11 - 0x68], rax
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov qword [r11 - 0x60], rax
lea rax, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
mov qword [r11 - 0x58], rax
lea rax, str.REPLACE_INTO__Q._q_config_VALUES_____
mov qword [r11 - 0x50], rax
lea rax, str.SELECT__s_FROM__s_AS_T
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x38], r15
cmp ebp, 0xa
ja case.0x1402f64d9.5
lea rcx, [0x140000000]
mov edx, dword [rcx + rbp*4 + 0x2f6718]
add rdx, rcx
jmp rdx
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x68]
jmp 0x1402f65fe
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x68]
mov rcx, qword [rsp + rbp*8 + 0x40]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.140285a90
jmp 0x1402f6608
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x68]
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.140285a90
jmp 0x1402f6608
movsxd r15, dword [rbx + 0x18]
lea eax, [r15 + r15]
movsxd rcx, eax
add rcx, 3
call fcn.140285cb0
mov r14, rax
test rax, rax
je 0x1402f6610
lea rdx, [r15 + 1]
mov ecx, esi
test rdx, rdx
jle 0x1402f656f
mov rax, rsi
mov ecx, edx
nop dword [rax + rax]
mov word [r14 + rax*2], 0x2c3f
inc rax
cmp rax, rdx
jl 0x1402f6560
lea eax, [rcx + rcx]
mov r9, r14
mov rcx, qword [rsp + rbp*8 + 0x40]
movsxd rdx, eax
mov byte [rdx + r14 - 1], sil
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
call fcn.140285a90
mov rcx, r14
mov rdi, rax
call fcn.140286150
mov r14, qword [rsp + 0xf8]
jmp 0x1402f660b
cmp dword [rbx + 0x44], esi
lea rax, [0x1403eb868]
mov r8, qword [rbx + 0x10]
lea r9, [0x1403f5736]
mov rdx, qword [rbx + 8]
cmovne r9, rax
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.140285a90
jmp 0x1402f6608
cmp dword [rbx + 0x44], esi
lea rax, str._origin
mov r9, qword [rbx + 0x10]
lea rdx, [0x1403f5736]
mov r8, qword [rbx + 8]
cmovne rdx, rax
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.140285a90
jmp 0x1402f6608
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.140285a90
mov rdi, rax
test rdi, rdi
jne 0x1402f661a
mov esi, 7
jmp 0x1402f66e0
mov rax, qword [r13]
mov r9d, 0x85
mov qword [rsp + 0x30], rsi
mov r8d, 0xffffffff
mov qword [rsp + 0x28], r12
mov rdx, rdi
mov qword [rsp + 0x20], rsi
inc dword [rax + 0x80]
mov eax, 0x81
mov rcx, qword [rbx]
cmp ebp, 2
cmovle r9d, eax
call fcn.14036b1c0
mov rcx, qword [r13]
mov esi, eax
dec dword [rcx + 0x80]
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
je 0x1402f66b4
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1402f667d
call qword [0x1404a5bd0]
mov rcx, rdi
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rdi
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1402f66bd
call qword [0x1404a5be0]
jmp 0x1402f66bd
mov rcx, rdi
call qword [0x1404a5b78]
test esi, esi
je 0x1402f66e0
test r14, r14
je 0x1402f66e0
mov rcx, qword [rbx]
call fcn.140287d20
mov rdx, rax
lea rcx, [0x1403e9084]
call fcn.140285a90
mov qword [r14], rax
mov r15, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [r12]
mov qword [rax], rcx
call fcn.14028bb90
mov eax, esi
add rsp, 0xa8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret