Function at 0x1401df7a0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
xor ebx, ebx
mov rax, qword [rsp + 0x130]
cmp dword [rcx + 0x34], 0
movsxd rsi, dword [rsp + 0x140]
mov qword [rsp + 0x30], rax
mov r13, rdx
mov rbp, rcx
mov rdi, r9
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x44], r8d
mov edx, dword [rsp + 0x148]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x70], rax
jne 0x1401df822
test esi, esi
jns 0x1401df811
xor ebx, ebx
cmp qword [rcx + 0x18], 0
setne bl
add ebx, dword [r13 + 0x10]
jmp 0x1401df822
movsxd rax, esi
shl rax, 4
mov ebx, dword [rax + r13 + 0x1c]
cmp edx, ebx
cmovle ebx, edx
mov edx, ebx
mov rcx, rbp
call fcn.1401df550
mov r12, rax
mov rax, qword [rsp + 0x70]
mov qword [rax], r12
test r12, r12
je 0x1401e0368
mov eax, dword [rsp + 0x44]
mov qword [r12 + 0x30], rdi
and eax, 2
mov dword [rsp + 0x5c], eax
setne al
movzx eax, al
mov dword [r12 + 0x44], eax
mov eax, dword [rsp + 0x44]
shr eax, 4
and eax, 1
mov byte [r12 + 0x48], al
test byte [rsp + 0x44], 0x20
jne 0x1401df87d
lea rcx, [rbp + 0x34]
mov rdx, r12
call fcn.1401de840
mov eax, dword [rbp + 0x34]
mov dword [rsp + 0x38], eax
test eax, eax
jne 0x1401e02fb
test esi, esi
jns 0x1401e01e0
movsxd rax, dword [r13 + 0x14]
mov r10, qword [rbp + 0x18]
shl rax, 4
lea rax, [r13 + rax + 0x18]
mov qword [rsp + 0x80], rax
test r10, r10
je 0x1401dfaf1
lea rax, [r12 + 0x60]
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0xac], eax
xor eax, eax
cmp qword [rsp + 0x30], 0
mov qword [rsp + 0xb0], rax
je 0x1401df8e6
test byte [rsp + 0x44], 8
je 0x1401df973
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
lea r9, [r10 + 0x18]
xor eax, eax
mov rcx, r10
mov qword [rsp + 0xb8], rax
call fcn.1401dc6a0
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0xb0]
lea r9, [rsp + 0xac]
mov dword [rbp + 0x34], eax
lea r8, [rsp + 0xb8]
call fcn.14021c570
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x1401df940
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x38], eax
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x1401dfadc
lea rcx, [rbp + 0x34]
mov edx, 0x10
call fcn.14021d840
mov rbx, rax
test rax, rax
je 0x1401dfadc
mov qword [rax], rsi
jmp 0x1401dfa60
mov eax, dword [rsp + 0x40]
mov r8d, dword [r10 + 0x14]
lea edx, [rax - 1]
mov eax, 0xd
movsxd rdx, edx
test edx, edx
js 0x1401df9a5
mov rdi, qword [rsp + 0x30]
lea ecx, [rax*8]
movzx r9d, byte [rdi + rdx]
dec rdx
xor ecx, r9d
xor eax, ecx
jmp 0x1401df986
xor edx, edx
movsxd rsi, dword [rsp + 0x40]
div r8d
mov rax, qword [r10 + 0x20]
mov r15, qword [rax + rdx*8]
test r15, r15
je 0x1401e0358
mov r14d, dword [r15 + 0x1c]
lea eax, [r14 + 1]
cmp dword [rsp + 0x40], eax
jne 0x1401df9f1
mov rdx, qword [rsp + 0x30]
lea rcx, [r15 + 0x30]
mov r8, rsi
mov qword [rsp + 0x38], r10
call sub.msvcrt.dll_memcmp
mov r10, qword [rsp + 0x38]
test eax, eax
je 0x1401e031f
mov r15, qword [r15]
jmp 0x1401df9b7
lea r11, [rbx + 0x10]
movsxd rsi, r14d
movsxd rcx, dword [rsp + 0x38]
mov rdx, r15
mov rdi, r11
add rsi, r15
mov r8d, 0x10
xor r15d, r15d
rep movsb byte [rdi], byte [rsi]
sub r8d, r14d
mov rcx, r10
mov qword [rsp + 0x50], r11
movsxd r8, r8d
add r8, rbx
call fcn.1401dc510
mov edi, dword [rsp + 0x38]
mov r11, qword [rsp + 0x50]
mov dword [rbp + 0x34], r15d
add eax, edi
mov qword [rbx], r11
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x30]
or dword [r12 + 0x68], 1
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x38]
lea rdx, [r12 + 0xb8]
lea rcx, [rbp + 0x34]
call fcn.14021b1d0
mov esi, dword [rsp + 0xac]
mov rcx, qword [rbx]
lea rdx, [r12 + 0xc8]
mov dword [rbx + 0xc], esi
mov dword [rbx + 8], esi
mov qword [r12 + 0x70], rbx
call fcn.14021c300
cmp dword [rsp + 0x5c], 0
mov dword [r12 + 0x9c], esi
movzx eax, al
mov qword [r12 + 0x80], rax
je 0x1401dfacf
or dword [r12 + 0x68], 2
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
call fcn.1401e2b80
jmp 0x1401dfadc
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
call fcn.1401e23c0
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
call fcn.1401e2dd0
mov dword [rsp + 0x38], 1
lea rax, [r13 + 0x18]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x80]
cmp qword [rsp + 0x48], rdi
jae 0x1401e01f9
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
mov dword [rsp + 0x60], eax
dec eax
mov dword [rsp + 0x64], eax
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x78
lea rbx, [r12 + rax + 0x60]
movsxd rax, dword [rsp + 0x64]
imul rax, rax, 0xc
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
and eax, 8
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x98], rax
cmp dword [rsp + 0x64], 0
js 0x1401e01c5
mov rax, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x68]
add rsi, qword [rax + 8]
cmp qword [rsp + 0x30], 0
jne 0x1401dfb94
cmp dword [rsi + 4], 0
je 0x1401e01b2
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.1401e2330
jmp 0x1401e01b2
lea rdx, [rbx + 8]
xor eax, eax
mov ecx, 0x1c
mov rdi, rdx
rep stosd dword [rdi], eax
mov qword [rbx], rsi
cmp qword [rbp + 0x60], 0
jne 0x1401dfbd5
mov rax, qword [rbp]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov rdx, qword [rax + 8]
mov r8, qword [rax + 0x10]
call fcn.14024d770
lea rdx, [rbp + 0x60]
mov rcx, rbp
mov r8, rax
call fcn.1401ddbb0
cmp dword [rbp + 0x34], 0
mov rdi, qword [rbp + 0x60]
jne 0x1401e01b2
mov r8d, dword [rsi]
mov edx, 1
mov rcx, rdi
xor r14d, r14d
call fcn.140249750
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x40]
mov rcx, rdi
mov r8, qword [rsp + 0x30]
mov edx, 2
call fcn.140249680
mov rcx, rdi
call fcn.14024eef0
cmp eax, 0x64
jne 0x1401dfc38
xor edx, edx
mov rcx, rdi
call fcn.14024a540
movsxd r13, eax
and eax, 1
mov dword [rsp + 0x50], eax
sar r13, 1
jmp 0x1401dfc46
xor r13d, r13d
mov dword [rsp + 0x50], r13d
mov r13d, 1
mov rcx, rdi
call fcn.14024e1c0
mov edx, 2
mov rcx, rdi
mov dword [rbp + 0x34], eax
call fcn.1402497b0
mov eax, dword [rsi + 4]
cmp eax, r13d
jle 0x1401dfc71
xor r11d, r11d
mov r13d, eax
mov dword [rsp + 0x50], r11d
dec r13d
mov rdx, rbx
mov rcx, rbp
mov dword [rbx + 0xc], r13d
call fcn.1401e28c0
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x1401dffe5
mov ecx, dword [r14 + 0xc]
mov rdi, qword [r14]
xor r10d, r10d
mov rdx, qword [rsp + 0x98]
mov r13d, dword [r14 + 8]
mov dword [rsp + 0xa8], r10d
mov rsi, rcx
add rcx, rdi
mov dword [rsp + 0xac], r10d
call fcn.14021c4a0
mov edx, dword [rsp + 0xb0]
mov dword [rsp + 0xa4], edx
cmp r13d, edx
jb 0x1401dfdfc
add esi, eax
lea rax, [rsp + 0xac]
xor r8d, r8d
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x78], rax
jmp 0x1401dfd22
mov ecx, r8d
lea eax, [r8 + 1]
add rcx, rdi
mov dword [rsp + 0xa4], eax
movzx edx, byte [rcx]
mov dword [rsp + 0xa8], edx
test dl, dl
js 0x1401dfe3c
mov r8d, r15d
mov ecx, dword [rsp + 0xa4]
lea eax, [rcx + 1]
mov r15, rcx
add rcx, rdi
movzx edx, byte [rcx]
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0xac], edx
test dl, dl
jns 0x1401dfd6e
mov rdx, qword [rsp + 0x90]
mov dword [rsp + 0x88], r8d
call fcn.14021c4a0
mov r8d, dword [rsp + 0x88]
add eax, r15d
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa8], r8d
jb 0x1401e030f
mov r15d, r8d
jne 0x1401dfdc1
mov ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0xac]
mov r10d, dword [rsp + 0xa4]
sub ecx, r8d
cmp ecx, edx
cmova ecx, edx
xor eax, eax
mov dword [rsp + 0x88], ecx
lea r15d, [r8 + rax]
cmp dword [rsp + 0x88], eax
jne 0x1401dfe08
cmp dword [rsp + 0x40], r15d
je 0x1401dfe65
cmp eax, edx
jb 0x1401dfe22
cmp esi, r13d
jae 0x1401dfe8c
mov ecx, esi
mov rdx, qword [rsp + 0x78]
add rcx, rdi
call fcn.14021c4a0
mov r8d, dword [rsp + 0xa8]
add r8d, dword [rsp + 0xb0]
mov dword [rsp + 0xb0], r8d
add esi, eax
cmp r8d, r13d
jb 0x1401dfcfc
mov dword [rbp + 0x34], 0x10b
jmp 0x1401dffe5
mov rcx, qword [rsp + 0x30]
mov r11d, r15d
lea r9d, [r10 + rax]
mov cl, byte [rcx + r11]
cmp byte [rdi + r9], cl
jne 0x1401dfdb2
inc eax
jmp 0x1401dfda5
add eax, r10d
mov rcx, qword [rsp + 0x30]
mov edx, r15d
mov eax, eax
mov al, byte [rdi + rax]
cmp byte [rcx + rdx], al
jae 0x1401dfdc1
jmp 0x1401e030f
mov rdx, qword [rsp + 0x78]
mov dword [rsp + 0x88], r8d
call fcn.14021c4a0
mov r8d, dword [rsp + 0x88]
add eax, r8d
mov dword [rsp + 0xa4], eax
jmp 0x1401dfd1f
cmp dword [rsp + 0x58], 0
jne 0x1401dff1c
cmp edx, eax
je 0x1401dff1c
mov rcx, r14
call fcn.14024c7d0
xor r9d, r9d
mov qword [rbx + 0x10], r9
jmp 0x1401dffe5
cmp dword [rsp + 0x58], 0
je 0x1401dfe78
mov rdx, rbx
mov rcx, rbp
call fcn.1401e28c0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1401e01a7
mov esi, dword [rax + 0xc]
mov r13d, dword [rax + 8]
mov rdi, qword [rax]
cmp esi, r13d
jge 0x1401dfe93
mov ecx, esi
lea rdx, [rsp + 0xa4]
add rcx, rdi
call fcn.14021c4a0
mov r14d, dword [rsp + 0xa4]
cmp r14d, 3
jbe 0x1401e0162
mov ecx, r14d
movsxd rdx, esi
cmp rcx, rdx
jge 0x1401e0162
xor r8d, r8d
lea rdx, [rsp + 0xac]
add rcx, rdi
add esi, eax
mov dword [rsp + 0xa8], r8d
mov dword [rsp + 0xb0], r14d
call fcn.14021c4a0
add eax, r14d
mov dword [rsp + 0xa4], eax
mov ecx, dword [rsp + 0xac]
mov r14d, dword [rsp + 0xa4]
mov r8d, r13d
mov r15, rcx
add rcx, r14
cmp rcx, r8
jg 0x1401dfdfc
test r15d, r15d
je 0x1401dfdfc
mov edx, dword [rbx + 0xc]
lea eax, [r14 + r15]
mov r9, qword [rsp + 0x30]
lea rcx, [rbp + 0x34]
mov qword [rbx + 0x20], rax
mov r8d, dword [rsp + 0xa8]
mov dword [rbx + 0x30], edx
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x34], eax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x78], rcx
call fcn.14021b1d0
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
mov r8d, r15d
lea r9, [rdi + r14]
call fcn.14021b0b0
cmp esi, r13d
jb 0x1401dffa7
mov rax, qword [rbx + 0x10]
mov eax, dword [rax + 8]
inc eax
jmp 0x1401dffc9
mov ecx, esi
lea rdx, [rsp + 0xb8]
add rcx, rdi
call fcn.14021c4a0
add esi, eax
mov eax, dword [rsp + 0xb8]
add eax, dword [rsp + 0xb0]
mov dword [rbx + 0x3c], eax
mov rdx, rbx
mov rcx, rbp
mov dword [rbx + 0x38], esi
call fcn.1401e2470
mov rdx, rbx
mov rcx, rbp
call fcn.1401e23c0
mov edi, dword [rsp + 0x58]
or edi, dword [rbp + 0x34]
jne 0x1401e01a7
mov eax, dword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov edx, eax
or edx, 1
mov dword [rbx + 8], edx
test rcx, rcx
je 0x1401e01a7
cmp dword [rsp + 0x5c], 0
je 0x1401e004b
or eax, 3
cmp dword [rsp + 0x50], 0
mov dword [rbx + 8], eax
jne 0x1401e0056
mov r15, qword [rbx + 0x50]
test r15, r15
je 0x1401e008d
mov rax, qword [rbx]
mov edi, dword [r15 + 0x1c]
mov rcx, rbp
movsxd rdx, dword [rax]
movsxd rax, edi
shl rdx, 0x25
add rdx, rax
call fcn.1401debb0
mov r15, rax
jmp 0x1401e013a
cmp dword [rsp + 0x50], 0
je 0x1401e01a7
mov rax, qword [rbx]
mov edx, dword [rbx + 8]
mov r9d, dword [rbx + 0x30]
mov r8d, dword [rax]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1401e0074
mov eax, dword [rcx + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x1401e0080
mov rcx, rbp
call fcn.1401d9f80
mov qword [rbx + 0x50], rax
cmp dword [rsp + 0x5c], 0
je 0x1401e01a7
jmp 0x1401e001e
mov r9, qword [rbx + 0x10]
mov esi, dword [rbx + 0xc]
mov eax, 4
cmp dword [rbx + 0x30], esi
jne 0x1401e00a1
mov eax, dword [rbx + 0x34]
lea r11d, [rax + 9]
mov r13, qword [r9]
inc eax
cdqe
mov cl, byte [r13 + rax - 1]
mov rdx, rax
shr cl, 7
cmp r11d, eax
setg r10b
inc rax
test cl, r10b
jne 0x1401e00ac
movsxd rdx, edx
mov eax, dword [r9 + 0xc]
mov qword [rbx + 0x20], rdx
cmp dword [rbx + 0x3c], eax
jl 0x1401e019c
inc esi
mov r14, qword [rbx]
movsxd r13, esi
cmp dword [rbp + 0x34], 0
jne 0x1401e013a
cmp esi, dword [r14 + 8]
jg 0x1401e013a
movsxd rdx, dword [r14]
mov rcx, rbp
shl rdx, 0x25
add rdx, r13
call fcn.1401debb0
mov rcx, rax
test rax, rax
je 0x1401e0133
mov rdx, qword [rcx]
mov eax, dword [rax + 0xc]
cmp word [rdx], 0
mov dword [rsp + 0x50], eax
mov eax, dword [rcx + 8]
je 0x1401e0120
mov edi, esi
xchg r15, rcx
mov dword [rsp + 0x78], eax
call fcn.14024c7d0
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x50], eax
jl 0x1401e013a
inc esi
inc r13
jmp 0x1401e00e2
test r15, r15
je 0x1401e019c
mov rcx, qword [rbx + 0x10]
call fcn.14024c7d0
mov rcx, qword [r15]
mov esi, dword [r15 + 0xc]
mov dword [rbx + 0xc], edi
mov qword [rbx + 0x10], r15
mov ax, word [rcx]
xchg al, ah
movzx edi, ax
cmp edi, esi
jle 0x1401e016b
mov dword [rbp + 0x34], 0x10b
jmp 0x1401e01a7
movzx eax, ax
lea rdx, [rbx + 0x68]
add rcx, rax
call fcn.14021c300
movzx eax, al
add eax, edi
cdqe
mov qword [rbx + 0x20], rax
mov eax, dword [r15 + 8]
cmp esi, eax
jl 0x1401e0191
inc eax
jmp 0x1401e0199
mov rcx, r15
call fcn.1401deb80
mov dword [rbx + 0x3c], eax
mov rdx, rbx
mov rcx, rbp
call fcn.1401e2b80
mov rdx, rbx
mov rcx, rbp
call fcn.1401e2dd0
dec dword [rsp + 0x64]
add rbx, 0x78
sub qword [rsp + 0x68], 0xc
jmp 0x1401dfb56
xor eax, eax
cmp dword [rsp + 0x60], 0
cmovns eax, dword [rsp + 0x60]
add qword [rsp + 0x48], 0x10
add dword [rsp + 0x38], eax
jmp 0x1401dfafa
dec ebx
inc rsi
lea r14, [r12 + 0x60]
movsxd rdi, ebx
shl rsi, 4
imul rdi, rdi, 0xc
test ebx, ebx
jns 0x1401e020d
cmp dword [rbp + 0x34], 0
jne 0x1401e02fb
mov eax, dword [r12 + 0x40]
lea ebx, [rax - 1]
jmp 0x1401e0244
mov rdx, qword [r13 + rsi + 0x10]
add rdx, rdi
cmp dword [rdx + 4], 0
je 0x1401e0226
mov r8, r14
mov rcx, rbp
call fcn.1401e2330
dec ebx
sub rdi, 0xc
add r14, 0x78
jmp 0x1401e01f5
mov edx, ebx
mov rcx, r12
call fcn.1401df5c0
mov esi, eax
test eax, eax
jne 0x1401e024a
dec ebx
test ebx, ebx
jg 0x1401e0232
jmp 0x1401e027c
cmp dword [rbp + 0x34], 0
jne 0x1401e0269
cdqe
xor r8d, r8d
mov rcx, rbp
imul rax, rax, 0x78
lea rdx, [r12 + rax + 0x60]
call qword [r12 + rax + 0x88]
mov r9d, ebx
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call fcn.1401df4d0
jmp 0x1401e0242
mov rcx, r12
call fcn.1401e0750
cmp byte [r12 + 0x48], 0
je 0x1401e02bf
mov ecx, dword [rbp + 0x34]
mov rdx, r12
call fcn.1401df770
test eax, eax
je 0x1401e02bf
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401e0380
cmp byte [r12 + 0x14], 0
jne 0x1401e0368
mov rax, qword [r12 + 0x58]
mov rcx, r12
movzx eax, word [rax + 4]
imul rax, rax, 0x78
lea rdx, [r12 + rax + 0x60]
mov rax, qword [r12 + 0x38]
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rcx, r12
call fcn.1401df6e0
mov rax, qword [rsp + 0x70]
xor edx, edx
mov qword [rax], rdx
jmp 0x1401e0368
cmp dword [rsp + 0x58], 0
jne 0x1401dff1c
jmp 0x1401dfe78
mov eax, dword [r15 + 0x18]
add r14d, 0x32
mov qword [rsp + 0x50], r10
sub eax, r14d
lea ecx, [rax + 0x1a]
mov dword [rsp + 0x38], eax
movsxd rcx, ecx
call fcn.14024d6d0
mov r10, qword [rsp + 0x50]
test rax, rax
mov rbx, rax
jne 0x1401df9f6
mov dword [rbp + 0x34], 7
jmp 0x1401e035d
xor eax, eax
mov dword [rbp + 0x34], eax
or dword [r12 + 0x68], 1
jmp 0x1401dfadc
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret