Function at 0x1800bd540
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 0x1800bd830
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.0x1800bd619.5
lea rcx, [0x180000000]
mov edx, dword [rcx + rbp*4 + 0xbd858]
add rdx, rcx
jmp rdx
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x68]
jmp 0x1800bd73e
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.1800042ff
jmp 0x1800bd748
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x68]
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.1800042ff
jmp 0x1800bd748
movsxd r15, dword [rbx + 0x18]
lea eax, [r15 + r15]
movsxd rcx, eax
add rcx, 3
call fcn.180001dd4
mov r14, rax
test rax, rax
je 0x1800bd750
lea rdx, [r15 + 1]
mov ecx, esi
test rdx, rdx
jle 0x1800bd6af
mov rax, rsi
mov ecx, edx
nop dword [rax + rax]
mov word [r14 + rax*2], 0x2c3f
inc rax
cmp rax, rdx
jl 0x1800bd6a0
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.1800042ff
mov rcx, r14
mov rdi, rax
call fcn.1800022bb
mov r14, qword [rsp + 0xf8]
jmp 0x1800bd74b
cmp dword [rbx + 0x44], esi
lea rax, [0x18024531c]
mov r8, qword [rbx + 0x10]
lea r9, [0x180238455]
mov rdx, qword [rbx + 8]
cmovne r9, rax
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.1800042ff
jmp 0x1800bd748
cmp dword [rbx + 0x44], esi
lea rax, str._origin
mov r9, qword [rbx + 0x10]
lea rdx, [0x180238455]
mov r8, qword [rbx + 8]
cmovne rdx, rax
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.1800042ff
jmp 0x1800bd748
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + rbp*8 + 0x40]
call fcn.1800042ff
mov rdi, rax
test rdi, rdi
jne 0x1800bd75a
mov esi, 7
jmp 0x1800bd820
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.180140280
mov rcx, qword [r13]
mov esi, eax
dec dword [rcx + 0x80]
cmp dword [0x18028cb60], 0
je 0x1800bd7f4
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800bd7bd
call qword [0x18028cbe0]
mov rcx, rdi
call qword [0x18028cb98]
dec qword [0x180294eb8]
movsxd rcx, eax
sub qword [0x180294e70], rcx
mov rcx, rdi
call qword [0x18028cb88]
mov rcx, qword [0x180294f30]
test rcx, rcx
je 0x1800bd7fd
call qword [0x18028cbf0]
jmp 0x1800bd7fd
mov rcx, rdi
call qword [0x18028cb88]
test esi, esi
je 0x1800bd820
test r14, r14
je 0x1800bd820
mov rcx, qword [rbx]
call fcn.1800046e2
mov rdx, rax
lea rcx, [0x180242e14]
call fcn.1800042ff
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.180003206
mov eax, esi
add rsp, 0xa8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret