Function at 0x1402f1040
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 0x1402f10ab
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.140285a90
mov r8, rax
lea rdx, [rdi + 0x78]
mov rcx, rdi
call fcn.1402e8430
mov rsi, qword [rdi + 0x78]
mov r14d, 1
test rsi, rsi
je 0x1402f1142
movsxd r8, dword [r15]
mov edx, r14d
mov rcx, rsi
call fcn.140288b80
mov r9d, r12d
mov qword [rsp + 0x20], 0
mov r8, r13
mov edx, 2
mov rcx, rsi
call fcn.140288950
mov rcx, rsi
call fcn.14028a180
cmp eax, 0x64
jne 0x1402f110c
xor edx, edx
mov rcx, rsi
call fcn.14028b260
mov rbp, rax
sar rbp, 1
and eax, r14d
mov dword [rsp + 0x70], eax
mov rcx, rsi
call fcn.14028bb90
mov edx, r14d
mov dword [rdi + 0x3c], eax
mov rcx, rsi
call fcn.1403b3950
test eax, eax
jne 0x1402f1138
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1402f1138
call qword [0x1404a5be0]
cmp dword [rdi + 0x3c], 0
jne 0x1402f1287
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 0x1402f11b3
lea eax, [rbp - 1]
mov rdx, rbx
mov rcx, rdi
mov dword [rbx + 0xc], eax
call fcn.1402f12b0
test byte [rbx + 8], 2
je 0x1402f1196
lea rax, [0x1402f1610]
mov qword [rbx + 0x30], rax
jmp 0x1402f11b3
mov rax, qword [rdi]
lea rcx, [0x1402f0bc0]
lea rdx, [0x1402f13c0]
cmp dword [rax + 0x60], r14d
cmove rcx, rdx
mov qword [rbx + 0x30], rcx
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402f1287
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 0x1402f122c
movzx edx, byte [r8 + 1]
test dl, dl
js 0x1402f11ee
and ecx, 0x7f
mov r14d, 2
shl ecx, 7
or ecx, edx
jmp 0x1402f122c
movzx eax, byte [r8 + 2]
shl ecx, 0xe
or eax, ecx
test al, al
js 0x1402f1213
mov ecx, edx
and eax, 0x1fc07f
and ecx, 0x7f
mov r14d, 3
shl ecx, 7
or ecx, eax
jmp 0x1402f122c
lea rdx, [rsp + 0x30]
mov rcx, r8
call fcn.14035a690
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.1402f0a70
mov rdx, rbx
mov rcx, rdi
call fcn.1402f08f0
cmp dword [rsp + 0x70], 0
je 0x1402f1287
mov edx, dword [rbx + 8]
mov r9d, dword [rbx + 0x38]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1402f1275
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 0xc]
cmp dword [rbx + 0x44], ecx
jl 0x1402f1287
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.1402dd640
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