Function at 0x62a8c0
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, 0xa8
xor edi, edi
cmp dword [rcx + 0x34], 0
movsxd rsi, dword [rsp + 0x120]
mov r13, rdx
mov rbx, rcx
mov dword [rsp + 0x100], r8d
mov edx, dword [rsp + 0x128]
jne 0x62a923
test esi, esi
jns 0x62a90d
xor edi, edi
cmp qword [rcx + 0x18], 0
setne dil
add edi, dword [r13 + 0x10]
jmp 0x62a923
movsxd rax, esi
mov edi, edx
inc rax
shl rax, 4
add rax, r13
cmp dword [rax + 0xc], edx
cmovle edi, dword [rax + 0xc]
mov edx, edi
mov rcx, rbx
mov qword [rsp + 0x30], r9
call fcn.0062a660
mov rbp, rax
mov rax, qword [rsp + 0x130]
test rbp, rbp
mov qword [rax], rbp
je 0x62b4b4
mov eax, dword [rsp + 0x100]
mov r9, qword [rsp + 0x30]
and eax, 2
mov qword [rbp + 0x30], r9
mov dword [rsp + 0x44], eax
setne al
movzx eax, al
mov dword [rbp + 0x44], eax
mov eax, dword [rsp + 0x100]
shr eax, 4
and eax, 1
test byte [rsp + 0x100], 0x20
mov byte [rbp + 0x48], al
jne 0x62a98f
lea rcx, [rbx + 0x34]
mov rdx, rbp
call fcn.006299a0
mov eax, dword [rbx + 0x34]
test eax, eax
mov dword [rsp + 0x30], eax
je 0x62a9af
cmp dword [rbx + 0x34], 0
jne 0x62b465
mov eax, dword [rbp + 0x40]
lea esi, [rax - 1]
jmp 0x62b3c6
test esi, esi
jns 0x62b373
movsxd rax, dword [r13 + 0x14]
mov r15, qword [rbx + 0x18]
shl rax, 4
test r15, r15
lea rax, [r13 + rax + 0x18]
mov qword [rsp + 0x60], rax
je 0x62ac77
cmp qword [rsp + 0x110], 0
lea rax, [rbp + 0x60]
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x38], rax
je 0x62aa11
mov edi, dword [rsp + 0x100]
and edi, 8
je 0x62aab8
mov r8d, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
lea r9, [r15 + 0x18]
mov rcx, r15
mov qword [rsp + 0x98], 0
call fcn.00627d40
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x90]
lea r9, [rsp + 0x8c]
lea r8, [rsp + 0x98]
mov dword [rbx + 0x34], eax
call fcn.00664c70
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x62aa7e
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, rcx
not rax
dec eax
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x98], 0
je 0x62ac62
lea rcx, [rbx + 0x34]
mov edx, 0x10
call fcn.00665f70
test rax, rax
mov r12, rax
je 0x62ac62
mov rax, qword [rsp + 0x98]
mov qword [r12], rax
jmp 0x62abdf
mov eax, dword [rsp + 0x118]
mov r8d, dword [r15 + 0x14]
lea edx, [rax - 1]
mov eax, 0xd
movsxd rdx, edx
test edx, edx
js 0x62aaf0
mov rsi, qword [rsp + 0x110]
lea ecx, [rax*8]
movzx r9d, byte [rsi + rdx]
dec rdx
xor ecx, r9d
xor eax, ecx
jmp 0x62aace
xor edx, edx
movsxd rsi, dword [rsp + 0x118]
div r8d
mov eax, edx
mov rdx, qword [r15 + 0x20]
mov r14, qword [rdx + rax*8]
test r14, r14
je 0x62ab3b
mov r12d, dword [r14 + 0x1c]
lea eax, [r12 + 1]
cmp dword [rsp + 0x118], eax
jne 0x62ab36
mov rdx, qword [rsp + 0x110]
lea rcx, [r14 + 0x30]
mov r8, rsi
call sub.ntdll.dll_memcmp
test eax, eax
je 0x62ab40
mov r14, qword [r14]
jmp 0x62ab07
xor r12d, r12d
jmp 0x62abaf
mov eax, dword [r14 + 0x18]
lea edx, [r12 + 0x32]
mov dword [rsp + 0x40], edx
sub eax, edx
lea ecx, [rax + 0x1a]
mov dword [rsp + 0x30], eax
movsxd rcx, ecx
call fcn.00698860
test rax, rax
mov r12, rax
mov edx, dword [rsp + 0x40]
je 0x62b47e
lea rax, [r12 + 0x10]
movsxd rcx, dword [rsp + 0x30]
movsxd rsi, edx
add rsi, r14
mov r8d, 0x10
mov rdi, rax
sub r8d, edx
mov rdx, r14
rep movsb byte [rdi], byte [rsi]
movsxd r8, r8d
mov rcx, r15
add r8, r12
call fcn.00627bd0
mov edi, dword [rsp + 0x30]
lea r15d, [rdi + rax]
xor edi, edi
mov dword [rsp + 0x8c], r15d
test r12, r12
mov dword [rbx + 0x34], edi
je 0x62abc0
lea rax, [r12 + 0x10]
mov qword [r12], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x118]
or dword [rbp + 0x68], 1
mov dword [rsp + 0x30], eax
test r12, r12
je 0x62ac62
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x30]
lea rdx, [rbp + 0xb8]
lea rcx, [rbx + 0x34]
call fcn.00663850
mov eax, dword [rsp + 0x8c]
mov rcx, qword [r12]
lea rdx, [rbp + 0xc8]
mov dword [r12 + 0xc], eax
mov dword [r12 + 8], eax
mov qword [rbp + 0x70], r12
call fcn.006649e0
cmp dword [rsp + 0x44], 0
movzx eax, al
mov qword [rbp + 0x80], rax
mov eax, dword [r12 + 8]
mov dword [rbp + 0x9c], eax
je 0x62ac55
or dword [rbp + 0x68], 2
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.0062dc20
jmp 0x62ac62
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.0062d460
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.0062de80
mov dword [rsp + 0x30], 1
lea rax, [r13 + 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rsi
jae 0x62a99a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], 0
mov eax, dword [rax + 4]
mov dword [rsp + 0x48], eax
dec eax
mov dword [rsp + 0x70], eax
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x78
lea r15, [rbp + rax + 0x60]
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x74], eax
mov esi, dword [rsp + 0x50]
cmp dword [rsp + 0x74], esi
js 0x62b355
movsxd rsi, dword [rsp + 0x70]
mov rax, qword [rsp + 0x38]
sub rsi, qword [rsp + 0x50]
imul rsi, rsi, 0xc
add rsi, qword [rax + 8]
cmp qword [rsp + 0x110], 0
jne 0x62ad11
mov r8, r15
mov rdx, rsi
mov rcx, rbx
call fcn.0062d3d0
jmp 0x62b347
lea rdx, [r15 + 8]
xor eax, eax
mov ecx, 0x1c
mov rdi, rdx
rep stosd dword [rdi], eax
mov qword [r15], rsi
cmp qword [rbx + 0x60], 0
jne 0x62ad51
mov rax, qword [rbx]
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.00698900
lea rdx, [rbx + 0x60]
mov r8, rax
mov rcx, rbx
call fcn.00628c80
mov eax, dword [rbx + 0x34]
test eax, eax
mov dword [rsp + 0x40], eax
jne 0x62b347
mov rdi, qword [rbx + 0x60]
mov r8d, dword [rsi]
mov edx, 1
mov rcx, rdi
call fcn.006947e0
mov r9d, dword [rsp + 0x118]
mov r8, qword [rsp + 0x110]
mov edx, 2
mov rcx, rdi
mov qword [rsp + 0x20], 0
call fcn.00694710
mov rcx, rdi
call fcn.00699ec0
cmp eax, 0x64
jne 0x62adbf
xor edx, edx
mov rcx, rdi
call fcn.00695620
movsxd r12, eax
and eax, 1
sar r12, 1
mov r13d, eax
jmp 0x62adc8
xor r13d, r13d
mov r12d, 1
mov rcx, rdi
call fcn.00699140
mov edx, 2
mov dword [rbx + 0x34], eax
mov rcx, rdi
call fcn.00694850
mov edx, dword [rsi + 4]
cmp edx, r12d
jg 0x62adf0
mov dword [rsp + 0x40], r13d
mov edx, r12d
mov eax, dword [rsp + 0x100]
dec edx
mov rcx, rbx
mov dword [r15 + 0xc], edx
mov rdx, r15
and eax, 8
mov dword [rsp + 0x4c], eax
call fcn.0062d950
mov rax, qword [r15 + 0x10]
test rax, rax
je 0x62b13d
mov rdi, qword [rax]
mov r12d, dword [rax + 8]
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x8c], 0
mov ecx, dword [rax + 0xc]
mov dword [rsp + 0x88], 0
mov rsi, rcx
add rcx, rdi
call fcn.00664ba0
mov edx, dword [rsp + 0x90]
cmp r12d, edx
mov dword [rsp + 0x84], edx
jb 0x62af8a
add esi, eax
lea rax, [rsp + 0x8c]
xor r14d, r14d
mov qword [rsp + 0x78], rax
jmp 0x62aea1
lea edx, [rax + 1]
mov ecx, eax
add rcx, rdi
mov dword [rsp + 0x84], edx
movzx r8d, byte [rcx]
test r8b, r8b
mov dword [rsp + 0x88], r8d
js 0x62afbe
mov r14d, r13d
mov ecx, dword [rsp + 0x84]
lea eax, [rcx + 1]
mov rdx, rcx
add rcx, rdi
mov dword [rsp + 0x84], eax
movzx r8d, byte [rcx]
test r8b, r8b
mov dword [rsp + 0x8c], r8d
jns 0x62aee1
mov dword [rsp + 0x84], edx
mov rdx, qword [rsp + 0x78]
call fcn.00664ba0
add dword [rsp + 0x84], eax
cmp dword [rsp + 0x88], r14d
jb 0x62b493
mov r13d, r14d
jne 0x62af52
mov r8d, dword [rsp + 0x118]
mov ecx, dword [rsp + 0x8c]
mov r11d, dword [rsp + 0x84]
sub r8d, r14d
cmp r8d, ecx
cmova r8d, ecx
xor eax, eax
mov dword [rsp + 0x68], r8d
cmp dword [rsp + 0x68], eax
mov edx, eax
lea r13d, [r14 + rax]
jbe 0x62af44
mov r8, qword [rsp + 0x110]
lea r9d, [r11 + rdx]
mov r10d, r13d
inc rax
mov r10b, byte [r8 + r10]
cmp byte [rdi + r9], r10b
je 0x62af1c
cmp dword [rsp + 0x118], r13d
je 0x62af96
cmp ecx, edx
ja 0x62afa3
cmp r12d, esi
jbe 0x62afdb
mov rdx, qword [rsp + 0x58]
mov ecx, esi
add rcx, rdi
call fcn.00664ba0
add esi, eax
mov eax, dword [rsp + 0x88]
add eax, dword [rsp + 0x90]
cmp r12d, eax
mov dword [rsp + 0x90], eax
ja 0x62ae7a
mov dword [rbx + 0x34], 0x10b
jmp 0x62b13d
cmp ecx, edx
jne 0x62b493
jmp 0x62b06d
mov rcx, qword [rsp + 0x110]
add edx, r11d
mov eax, r13d
mov al, byte [rcx + rax]
cmp byte [rdi + rdx], al
jbe 0x62af52
jmp 0x62b493
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x84], eax
call fcn.00664ba0
add dword [rsp + 0x84], eax
jmp 0x62ae9e
cmp dword [rsp + 0x4c], 0
je 0x62b49e
mov rdx, r15
mov rcx, rbx
call fcn.0062d950
mov rax, qword [r15 + 0x10]
test rax, rax
je 0x62b13d
mov esi, dword [rax + 0xc]
cmp esi, dword [rax + 8]
jge 0x62afe6
mov rdi, qword [rax]
lea rdx, [rsp + 0x84]
mov ecx, esi
add rcx, rdi
call fcn.00664ba0
mov edx, dword [rsp + 0x84]
cmp edx, 3
jbe 0x62af8a
mov r8, qword [r15 + 0x10]
mov ecx, edx
movsxd r9, dword [r8 + 0xc]
cmp rcx, r9
jge 0x62af8a
mov dword [rsp + 0x90], edx
lea rdx, [rsp + 0x8c]
add rcx, rdi
add esi, eax
mov dword [rsp + 0x88], 0
mov r12d, dword [r8 + 8]
call fcn.00664ba0
add dword [rsp + 0x84], eax
mov r8d, dword [rsp + 0x8c]
mov ecx, dword [rsp + 0x84]
mov rdx, r8
mov rax, rcx
add rcx, r8
mov r8d, r12d
cmp rcx, r8
jg 0x62af8a
test edx, edx
je 0x62af8a
lea ecx, [rax + rdx]
mov eax, dword [r15 + 0xc]
lea r14, [r15 + 0x58]
lea r13, [rbx + 0x34]
mov r9, qword [rsp + 0x110]
mov r8d, dword [rsp + 0x88]
mov qword [r15 + 0x20], rcx
mov dword [r15 + 0x34], ecx
mov rdx, r14
mov dword [r15 + 0x30], eax
mov rcx, r13
call fcn.00663850
mov eax, dword [rsp + 0x84]
mov r8d, dword [rsp + 0x8c]
mov rdx, r14
mov rcx, r13
lea r9, [rdi + rax]
call fcn.00663720
cmp r12d, esi
ja 0x62b0fd
mov rax, qword [r15 + 0x10]
mov eax, dword [rax + 8]
inc eax
jmp 0x62b11f
mov ecx, esi
lea rdx, [rsp + 0x98]
add rcx, rdi
call fcn.00664ba0
add esi, eax
mov eax, dword [rsp + 0x98]
add eax, dword [rsp + 0x90]
mov rdx, r15
mov rcx, rbx
mov dword [r15 + 0x3c], eax
mov dword [r15 + 0x38], esi
call fcn.0062d510
mov rdx, r15
mov rcx, rbx
call fcn.0062d460
mov esi, dword [rsp + 0x4c]
or esi, dword [rbx + 0x34]
jne 0x62b33c
mov eax, dword [r15 + 8]
mov rcx, qword [r15 + 0x10]
mov edx, eax
or edx, 1
test rcx, rcx
mov dword [r15 + 8], edx
je 0x62b33c
cmp dword [rsp + 0x44], 0
je 0x62b1a5
or eax, 3
cmp dword [rsp + 0x40], 0
mov dword [r15 + 8], eax
jne 0x62b1b0
mov rax, qword [r15 + 0x50]
test rax, rax
je 0x62b1e9
mov esi, dword [rax + 0x1c]
mov rax, qword [r15]
mov rcx, rbx
movsxd rdx, dword [rax]
movsxd rax, esi
shl rdx, 0x25
add rdx, rax
call fcn.00629d30
mov r14, rax
jmp 0x62b2c6
cmp dword [rsp + 0x40], 0
je 0x62b33c
mov edx, dword [r15 + 8]
mov r9d, dword [r15 + 0x30]
and edx, 2
cmp r9d, dword [r15 + 0xc]
jne 0x62b1ca
mov eax, dword [rcx + 0xc]
cmp dword [r15 + 0x3c], eax
jl 0x62b1dc
mov rax, qword [r15]
mov rcx, rbx
mov r8d, dword [rax]
call fcn.00625040
mov qword [r15 + 0x50], rax
cmp dword [rsp + 0x44], 0
je 0x62b33c
jmp 0x62b179
mov r8d, dword [r15 + 0xc]
cmp dword [r15 + 0x30], r8d
mov eax, 4
mov r9, qword [r15 + 0x10]
jne 0x62b200
mov eax, dword [r15 + 0x34]
mov r12, qword [r9]
lea edi, [rax + 9]
inc eax
cdqe
mov cl, byte [r12 + rax - 1]
movsxd rdx, eax
shr cl, 7
cmp edi, eax
setg r11b
inc rax
test cl, r11b
jne 0x62b20a
mov eax, dword [r9 + 0xc]
cmp dword [r15 + 0x3c], eax
mov qword [r15 + 0x20], rdx
jl 0x62b331
lea r12d, [r8 + 1]
mov rdi, qword [r15]
xor r13d, r13d
xor r14d, r14d
movsxd rax, r12d
mov qword [rsp + 0x68], rax
cmp dword [rbx + 0x34], 0
lea r8d, [r12 + r13]
jne 0x62b2c6
cmp dword [rdi + 8], r8d
jl 0x62b2c6
movsxd rdx, dword [rdi]
mov rax, qword [rsp + 0x68]
mov rcx, rbx
mov dword [rsp + 0x78], r8d
add rax, r13
shl rdx, 0x25
add rdx, rax
call fcn.00629d30
test rax, rax
je 0x62b2c1
mov edx, dword [rax + 0xc]
mov rcx, qword [rax]
mov dword [rsp + 0x40], edx
mov edx, dword [rax + 8]
mov dword [rsp + 0x4c], edx
movzx edx, byte [rcx]
movzx ecx, byte [rcx + 1]
shl edx, 8
add dx, cx
je 0x62b2af
mov r8d, dword [rsp + 0x78]
mov rdx, r14
mov r14, rax
mov rax, rdx
mov esi, r8d
mov rcx, rax
call fcn.00697980
mov ecx, dword [rsp + 0x4c]
cmp dword [rsp + 0x40], ecx
jl 0x62b2c6
inc r13
jmp 0x62b24a
test r14, r14
je 0x62b331
mov rcx, qword [r15 + 0x10]
call fcn.00697980
mov rcx, qword [r14]
mov dword [r15 + 0xc], esi
mov qword [r15 + 0x10], r14
movzx eax, byte [rcx]
movzx edx, byte [rcx + 1]
shl eax, 8
add eax, edx
movzx esi, ax
cmp esi, dword [r14 + 0xc]
jle 0x62b2fd
mov dword [rbx + 0x34], 0x10b
jmp 0x62b33c
movzx eax, ax
lea rdx, [r15 + 0x68]
add rcx, rax
call fcn.006649e0
movzx eax, al
add eax, esi
cdqe
mov qword [r15 + 0x20], rax
mov eax, dword [r14 + 8]
cmp dword [r14 + 0xc], eax
jl 0x62b325
inc eax
jmp 0x62b32d
mov rcx, r14
call fcn.00629d00
mov dword [r15 + 0x3c], eax
mov rdx, r15
mov rcx, rbx
call fcn.0062dc20
mov rdx, r15
mov rcx, rbx
call fcn.0062de80
inc qword [rsp + 0x50]
add r15, 0x78
jmp 0x62acce
cmp dword [rsp + 0x48], 0
mov eax, 0
cmovns eax, dword [rsp + 0x48]
add qword [rsp + 0x38], 0x10
add dword [rsp + 0x30], eax
jmp 0x62ac8d
inc rsi
lea r12d, [rdi - 1]
lea r14, [rbp + 0x60]
xor eax, eax
shl rsi, 4
lea r15, [rax + 1]
cmp edi, r15d
js 0x62a99a
movsxd rdx, r12d
mov r8, r14
mov rcx, rbx
sub rdx, rax
add r14, 0x78
imul rdx, rdx, 0xc
add rdx, qword [r13 + rsi + 0x10]
call fcn.0062d3d0
mov rax, r15
jmp 0x62b384
mov edx, esi
mov rcx, rbp
call fcn.0062a6d0
test eax, eax
mov edi, eax
jne 0x62b3cc
dec esi
test esi, esi
jg 0x62b3b4
jmp 0x62b3ff
movsxd r9, eax
imul r9, r9, 0x78
cmp dword [rbx + 0x34], 0
lea rdx, [rbp + r9 + 0x60]
jne 0x62b3ec
xor r8d, r8d
mov rcx, rbx
call qword [rbp + r9 + 0x88]
mov r9d, esi
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call fcn.0062a5e0
jmp 0x62b3c4
mov rax, qword [rbp + 0x58]
movzx eax, word [rax + 4]
mov r8, rax
imul rax, rax, 0x78
add rax, rbp
mov r9, qword [rax + 0x70]
test r9, r9
sete byte [rbp + 0x14]
cmp byte [rbp + 0x48], 0
mov rax, qword [rax + 0xc8]
mov qword [rbp + 0x50], rax
je 0x62b44f
mov ecx, dword [rbx + 0x34]
mov rdx, rbp
call fcn.0062a890
test eax, eax
je 0x62b44f
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.0062b4d0
jmp 0x62b4b4
test r9, r9
je 0x62b4b4
imul r8, r8, 0x78
mov rcx, rbp
lea rdx, [rbp + r8 + 0x60]
call qword [rbp + 0x38]
jmp 0x62b4b4
mov rcx, rbp
call fcn.0062a800
mov rax, qword [rsp + 0x130]
mov qword [rax], 0
jmp 0x62b4b4
mov dword [rsp + 0x8c], 0
mov edi, 7
jmp 0x62abaf
cmp dword [rsp + 0x4c], 0
jne 0x62b06d
mov rcx, qword [r15 + 0x10]
call fcn.00697980
mov qword [r15 + 0x10], 0
jmp 0x62b13d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret