Function at 0x1800b6de0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
cmp qword [rcx + 0x78], 0
mov r15, r9
mov rbx, qword [rsp + 0x90]
mov r12d, r8d
mov r13, rdx
mov qword [rsp + 0x70], 0
mov rdi, rcx
mov ebp, 0xffffffff
jne 0x1800b6e4b
mov rdx, qword [rcx]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_ASC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.1800042ff
mov r8, rax
lea rdx, [rdi + 0x78]
mov rcx, rdi
call fcn.1800ac030
mov rsi, qword [rdi + 0x78]
mov r14d, 1
test rsi, rsi
je 0x1800b6ee1
movsxd r8, dword [r15]
mov edx, r14d
mov rcx, rsi
call fcn.180004f7f
mov r9d, r12d
mov qword [rsp + 0x20], 0
mov r8, r13
lea edx, [r14 + 1]
mov rcx, rsi
call fcn.18000496c
mov rcx, rsi
call fcn.180001145
cmp eax, 0x64
jne 0x1800b6eab
xor edx, edx
mov rcx, rsi
call fcn.180001aeb
mov rbp, rax
sar rbp, 1
and eax, r14d
mov dword [rsp + 0x70], eax
mov rcx, rsi
call fcn.180003206
mov edx, r14d
mov dword [rdi + 0x3c], eax
mov rcx, rsi
call fcn.18018df20
test eax, eax
jne 0x1800b6ed7
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800b6ed7
call qword [0x18028cbf0]
cmp dword [rdi + 0x3c], 0
jne 0x1800b7026
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 8], xmm0
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm0
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov qword [rbx + 0x78], rax
or dword [rbx + 8], r14d
mov qword [rbx], r15
test ebp, ebp
js 0x1800b6f52
lea eax, [rbp - 1]
mov rdx, rbx
mov rcx, rdi
mov dword [rbx + 0xc], eax
call fcn.1800b70e0
test byte [rbx + 8], 2
je 0x1800b6f35
lea rax, [0x1800b7510]
mov qword [rbx + 0x30], rax
jmp 0x1800b6f52
mov rax, qword [rdi]
lea rcx, [0x1800b6840]
lea rdx, [0x1800b7230]
cmp dword [rax + 0x60], r14d
cmove rcx, rdx
mov qword [rbx + 0x30], rcx
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800b7026
mov r8, qword [rcx]
movsxd rsi, dword [rcx + 0xc]
add r8, rsi
mov dword [rbx + 0x40], esi
movzx ecx, byte [r8]
test cl, cl
jns 0x1800b6fcb
movzx edx, byte [r8 + 1]
test dl, dl
js 0x1800b6f8d
and ecx, 0x7f
mov r14d, 2
shl ecx, 7
or ecx, edx
jmp 0x1800b6fcb
movzx eax, byte [r8 + 2]
shl ecx, 0xe
or eax, ecx
test al, al
js 0x1800b6fb2
mov ecx, edx
and eax, 0x1fc07f
and ecx, 0x7f
mov r14d, 3
shl ecx, 7
or ecx, eax
jmp 0x1800b6fcb
lea rdx, [rsp + 0x30]
mov rcx, r8
call fcn.18012af40
mov ecx, dword [rsp + 0x30]
btr ecx, 0x1f
movzx r14d, al
lea eax, [rsi + r14]
xor r8d, r8d
mov dword [rbx + 0x40], eax
mov rdx, rbx
mov eax, ecx
mov rcx, rdi
mov qword [rbx + 0x20], rax
call fcn.1800b66a0
mov rdx, rbx
mov rcx, rdi
call fcn.1800b64c0
cmp dword [rsp + 0x70], 0
je 0x1800b7026
mov edx, dword [rbx + 8]
mov r9d, dword [rbx + 0x38]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1800b7014
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 0xc]
cmp dword [rbx + 0x44], ecx
jl 0x1800b7026
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.18009df50
mov qword [rbx + 0x58], rax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret