Function at 0x100f9a70
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
mov eax, dword [edi + 4]
mov ecx, dword [ebx]
mov esi, dword [edi + 8]
lea edx, [eax - 1]
mov dword [esp + 0x38], edx
test eax, eax
je 0x100f9ed2
push dword [edi]
push dword [ecx + 8]
push dword [ecx + 4]
push str.SELECT_segid__term___pgno__1____pgno1__FROM__Q._q_idx_WHERE_segid_d_ORDER_BY_1__2
call fcn.1001fce0
add esp, 0x10
mov edi, eax
cmp dword [ebx + 0x24], ebp
jne 0x100f9ae8
test edi, edi
je 0x100f9ae1
mov ecx, dword [ebx]
lea eax, [esp + 0x14]
push ebp
push eax
push ebp
mov ecx, dword [ecx]
mov edx, edi
push 0x85
push 0xffffffffffffffff
call fcn.1008a1c0
mov ebp, dword [esp + 0x28]
add esp, 0x14
mov dword [ebx + 0x24], eax
jmp 0x100f9ae8
mov dword [ebx + 0x24], 7
push edi
call fcn.1001cd70
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100f9ebd
nop dword [eax + eax]
push ebp
call fcn.10045740
add esp, 4
cmp eax, 0x64
jne 0x100f9ebd
push 1
push ebp
call fcn.10045ee0
mov edi, dword [esp + 0x1c]
mov ebp, eax
push 1
push edi
call fcn.10045f90
push 2
push edi
mov dword [esp + 0x44], eax
call fcn.10046210
push 3
push dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x40], edi
call fcn.10046210
mov dword [esp + 0x48], eax
add esp, 0x20
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 4]
jl 0x100f9e9e
mov eax, dword [eax]
xor edi, edi
cdq
mov ecx, eax
mov eax, dword [esp + 0x20]
shl ecx, 5
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.100f1c30
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x100f9ebd
mov ecx, dword [eax + 4]
cmp ecx, 4
jl 0x100f9ead
mov edi, dword [eax + 8]
cmp edi, ecx
jg 0x100f9ead
jl 0x100f9ba9
mov dword [ebx + 0x24], 0x10b
jmp 0x100f9c86
mov ecx, dword [eax]
lea edx, [esp + 0x30]
lea ecx, [ecx + edi]
call fcn.10103100
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
jge 0x100f9c70
cmp eax, edi
jge 0x100f9c70
lea ecx, [edx + eax]
lea edx, [esp + 0x34]
call fcn.10103100
mov ecx, dword [esp + 0x2c]
mov edi, eax
add edi, dword [esp + 0x30]
mov edx, ecx
mov eax, dword [esp + 0x34]
cmp eax, ecx
cmovl edx, eax
test edx, edx
jle 0x100f9c6a
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
add ecx, edi
sub edx, 4
jb 0x100f9c22
nop
mov eax, dword [ecx]
cmp eax, dword [ebp]
jne 0x100f9c27
add ecx, 4
add ebp, 4
sub edx, 4
jae 0x100f9c10
cmp edx, 0xfffffffc
je 0x100f9c5c
mov al, byte [ecx]
cmp al, byte [ebp]
jne 0x100f9c55
cmp edx, 0xfffffffd
je 0x100f9c5c
mov al, byte [ecx + 1]
cmp al, byte [ebp + 1]
jne 0x100f9c55
cmp edx, 0xfffffffe
je 0x100f9c5c
mov al, byte [ecx + 2]
cmp al, byte [ebp + 2]
jne 0x100f9c55
cmp edx, 0xffffffff
je 0x100f9c5c
mov al, byte [ecx + 3]
cmp al, byte [ebp + 3]
je 0x100f9c5c
sbb eax, eax
or eax, 1
jmp 0x100f9c5e
xor eax, eax
test eax, eax
jne 0x100f9c6e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
test eax, eax
jns 0x100f9c77
mov dword [ebx + 0x24], 0x10b
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.100f97f0
mov eax, dword [esp + 0x18]
push eax
call fcn.1001cd70
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100f9ebd
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
inc ebp
dec eax
mov dword [esp + 0x38], eax
cmp ebp, eax
mov eax, dword [esp + 0x1c]
jg 0x100f9d24
mov eax, dword [eax]
xor edi, edi
cdq
mov ecx, eax
mov eax, ebp
shl ecx, 5
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.100f1c30
mov edi, eax
add esp, 8
test edi, edi
je 0x100f9d0a
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 4]
jge 0x100f9ce1
mov dword [ebx + 0x24], 0x10b
lea eax, [esi + 1]
cmp ebp, eax
jl 0x100f9d0a
mov edx, dword [edi]
mov eax, 0x100
movzx ecx, byte [edx]
imul ecx, eax
movzx eax, byte [edx + 1]
add cx, ax
xor eax, eax
cmp ax, cx
je 0x100f9d0a
mov dword [ebx + 0x24], 0x10b
push edi
call fcn.1001cd70
add esp, 4
inc ebp
cmp dword [ebx + 0x24], 0
jne 0x100f9ebd
mov eax, dword [esp + 0x38]
jmp 0x100f9ca7
cmp dword [esp + 0x28], 0
je 0x100f9e93
mov ecx, dword [esp + 0x20]
xor edx, edx
mov eax, dword [eax]
mov ebp, ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x40], eax
xor esi, esi
call fcn.100f2f60
mov edi, eax
add esp, 8
mov edx, edi
mov dword [esp + 0x24], edi
mov ecx, ebx
call fcn.100f2d50
test eax, eax
jne 0x100f9e8a
mov eax, dword [esp + 0x38]
cdq
mov ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
mov edx, eax
lea esi, [ebp + 1]
mov ebp, dword [edi + 0x18]
cmp esi, ebp
jge 0x100f9ddf
mov ecx, edx
shl ecx, 5
mov dword [esp + 0x2c], ecx
mov eax, esi
cdq
add eax, 0
adc edx, ecx
mov ecx, ebx
push edx
push eax
call fcn.100f1c30
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100f9dcb
mov edi, dword [ebp]
mov ecx, 0x100
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
imul edx, ecx
add dx, ax
je 0x100f9dbe
mov dword [ebx + 0x24], 0x10b
push ebp
call fcn.1001cd70
mov edi, dword [esp + 0x28]
add esp, 4
mov ebp, dword [edi + 0x18]
inc esi
mov ecx, dword [esp + 0x2c]
cmp esi, ebp
jl 0x100f9d86
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
xor edi, edi
mov ecx, eax
mov dword [esp + 0x28], eax
shl ecx, 5
mov eax, ebp
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.100f1c30
mov edi, eax
add esp, 8
test edi, edi
je 0x100f9e5b
mov edx, dword [edi]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
cmp ecx, dword [edi + 8]
jge 0x100f9e3b
add ecx, edx
lea edx, [esp + 0x3c]
call fcn.10103190
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
cmp eax, dword [ecx + 0x20]
jne 0x100f9e3b
mov eax, dword [esp + 0x40]
cmp eax, dword [ecx + 0x24]
je 0x100f9e42
mov dword [ebx + 0x24], 0x10b
push edi
call fcn.1001cd70
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x24]
mov ecx, ebx
push 0
mov edx, edi
call fcn.100f2ca0
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.100f2d50
mov ecx, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
je 0x100f9d73
mov ecx, edi
call fcn.100f2ee0
jmp 0x100f9e96
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cmp dword [ebx + 0x24], 0
jne 0x100f9ebd
mov ebp, dword [esp + 0x14]
jmp 0x100f9b00
push eax
mov dword [ebx + 0x24], 0x10b
call fcn.1001cd70
add esp, 4
push dword [esp + 0x14]
call fcn.10044690
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100f9ed2
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret