Function at 0x1401c6210
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x98]
xorps xmm0, xmm0
mov rax, qword [rsp + 0x90]
xor r14d, r14d
mov r13d, r9d
mov ebp, r14d
and r13d, 8
mov r12d, r9d
movups xmmword [rbx + 8], xmm0
mov rsi, rcx
mov r15d, 1
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], rax
cmp qword [rcx + 0x60], rbp
jne 0x1401c62ad
mov rdx, qword [rcx]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.1401712f0
mov r8, rax
lea rdx, [rsi + 0x60]
mov rcx, rsi
call fcn.1401bded0
mov rax, qword [rsp + 0x90]
mov rdi, qword [rsi + 0x60]
cmp dword [rsi + 0x34], ebp
jne 0x1401c64b9
movsxd r8, dword [rax]
mov edx, r15d
mov rcx, rdi
call fcn.1401735b0
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.1401732b0
mov rcx, rdi
call fcn.1401745e0
cmp eax, 0x64
jne 0x1401c63ab
test rdi, rdi
je 0x1401c6339
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401c630f
call qword [0x1403430d0]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x1401c6325
cmp r14w, word [rdi + 0xc0]
jb 0x1401c6340
mov rcx, qword [rdi]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.140205c50
lea rcx, [0x14029d6e8]
movzx eax, word [rcx + 0x14]
test al, 0x24
je 0x1401c634d
mov rbp, qword [rcx]
jmp 0x1401c636e
test al, 8
je 0x1401c635c
movsd xmm0, qword [rcx]
call fcn.140187d80
jmp 0x1401c636b
test al, 0x12
je 0x1401c636e
cmp qword [rcx + 8], rbp
je 0x1401c636e
call fcn.1401daa90
mov rbp, rax
mov r15d, ebp
test rdi, rdi
je 0x1401c63a5
mov rcx, qword [rdi]
mov edx, dword [rdi + 0x34]
cmp byte [rcx + 0x67], r14b
jne 0x1401c638b
test edx, edx
jne 0x1401c638b
mov eax, r14d
jmp 0x1401c6390
call fcn.140179e40
mov dword [rdi + 0x34], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401c63a5
call qword [0x1403430e0]
sar r15d, 1
and ebp, 1
mov rcx, rdi
call fcn.1401493b0
mov edx, 1
mov dword [rsi + 0x34], eax
mov rcx, rdi
call fcn.140268670
test eax, eax
jne 0x1401c63d9
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401c63d9
call qword [0x1403430e0]
mov rax, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, rsi
mov eax, dword [rax + 4]
cmp r15d, eax
cmovge eax, r15d
cmovge r14d, ebp
dec eax
mov dword [rbx + 0xc], eax
call fcn.1401c5680
cmp qword [rbx + 0x10], 0
je 0x1401c6424
mov eax, dword [rsp + 0x80]
mov r8, rbx
mov r9, qword [rsp + 0x78]
mov edx, r13d
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401bff80
cmp dword [rsi + 0x34], 0
jne 0x1401c6489
test r13d, r13d
jne 0x1401c6489
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x1401c6489
and r12d, 2
je 0x1401c644d
or edx, 2
mov dword [rbx + 8], edx
test r14d, r14d
je 0x1401c6479
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1401c6467
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x1401c6479
mov rax, qword [rbx]
mov rcx, rsi
mov r8d, dword [rax]
call fcn.1401b51b0
mov qword [rbx + 0x50], rax
test r12d, r12d
je 0x1401c6489
mov rdx, rbx
mov rcx, rsi
call fcn.1401c5a50
test byte [rbx + 8], 2
je 0x1401c649c
lea rax, [0x1401c59c0]
mov qword [rbx + 0x28], rax
jmp 0x1401c64b9
mov rax, qword [rsi]
lea rcx, [0x1401c5230]
lea rdx, [0x1401c5790]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbx + 0x28], rcx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret