Function at 0x100f9b30
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 0x100f9f92
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 0x100f9ba8
test edi, edi
je 0x100f9ba1
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.1008a230
mov ebp, dword [esp + 0x28]
add esp, 0x14
mov dword [ebx + 0x24], eax
jmp 0x100f9ba8
mov dword [ebx + 0x24], 7
push edi
call fcn.1001cd70
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100f9f7d
nop dword [eax + eax]
push ebp
call fcn.10045780
add esp, 4
cmp eax, 0x64
jne 0x100f9f7d
push 1
push ebp
call fcn.10045f20
mov edi, dword [esp + 0x1c]
mov ebp, eax
push 1
push edi
call fcn.10045fd0
push 2
push edi
mov dword [esp + 0x44], eax
call fcn.10046250
push 3
push dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x40], edi
call fcn.10046250
mov dword [esp + 0x48], eax
add esp, 0x20
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 4]
jl 0x100f9f5e
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.100f1cf0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x100f9f7d
mov ecx, dword [eax + 4]
cmp ecx, 4
jl 0x100f9f6d
mov edi, dword [eax + 8]
cmp edi, ecx
jg 0x100f9f6d
jl 0x100f9c69
mov dword [ebx + 0x24], 0x10b
jmp 0x100f9d46
mov ecx, dword [eax]
lea edx, [esp + 0x30]
lea ecx, [ecx + edi]
call fcn.101031d0
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 0x100f9d30
cmp eax, edi
jge 0x100f9d30
lea ecx, [edx + eax]
lea edx, [esp + 0x34]
call fcn.101031d0
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 0x100f9d2a
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
add ecx, edi
sub edx, 4
jb 0x100f9ce2
nop
mov eax, dword [ecx]
cmp eax, dword [ebp]
jne 0x100f9ce7
add ecx, 4
add ebp, 4
sub edx, 4
jae 0x100f9cd0
cmp edx, 0xfffffffc
je 0x100f9d1c
mov al, byte [ecx]
cmp al, byte [ebp]
jne 0x100f9d15
cmp edx, 0xfffffffd
je 0x100f9d1c
mov al, byte [ecx + 1]
cmp al, byte [ebp + 1]
jne 0x100f9d15
cmp edx, 0xfffffffe
je 0x100f9d1c
mov al, byte [ecx + 2]
cmp al, byte [ebp + 2]
jne 0x100f9d15
cmp edx, 0xffffffff
je 0x100f9d1c
mov al, byte [ecx + 3]
cmp al, byte [ebp + 3]
je 0x100f9d1c
sbb eax, eax
or eax, 1
jmp 0x100f9d1e
xor eax, eax
test eax, eax
jne 0x100f9d2e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
test eax, eax
jns 0x100f9d37
mov dword [ebx + 0x24], 0x10b
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.100f98b0
mov eax, dword [esp + 0x18]
push eax
call fcn.1001cd70
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100f9f7d
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 0x100f9de4
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.100f1cf0
mov edi, eax
add esp, 8
test edi, edi
je 0x100f9dca
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 4]
jge 0x100f9da1
mov dword [ebx + 0x24], 0x10b
lea eax, [esi + 1]
cmp ebp, eax
jl 0x100f9dca
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 0x100f9dca
mov dword [ebx + 0x24], 0x10b
push edi
call fcn.1001cd70
add esp, 4
inc ebp
cmp dword [ebx + 0x24], 0
jne 0x100f9f7d
mov eax, dword [esp + 0x38]
jmp 0x100f9d67
cmp dword [esp + 0x28], 0
je 0x100f9f53
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.100f3030
mov edi, eax
add esp, 8
mov edx, edi
mov dword [esp + 0x24], edi
mov ecx, ebx
call fcn.100f2e10
test eax, eax
jne 0x100f9f4a
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 0x100f9e9f
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.100f1cf0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100f9e8b
mov edi, dword [ebp]
mov ecx, 0x100
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
imul edx, ecx
add dx, ax
je 0x100f9e7e
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 0x100f9e46
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.100f1cf0
mov edi, eax
add esp, 8
test edi, edi
je 0x100f9f1b
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 0x100f9efb
add ecx, edx
lea edx, [esp + 0x3c]
call fcn.10103260
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
cmp eax, dword [ecx + 0x20]
jne 0x100f9efb
mov eax, dword [esp + 0x40]
cmp eax, dword [ecx + 0x24]
je 0x100f9f02
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.100f2d60
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.100f2e10
mov ecx, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
je 0x100f9e33
mov ecx, edi
call fcn.100f2fb0
jmp 0x100f9f56
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cmp dword [ebx + 0x24], 0
jne 0x100f9f7d
mov ebp, dword [esp + 0x14]
jmp 0x100f9bc0
push eax
mov dword [ebx + 0x24], 0x10b
call fcn.1001cd70
add esp, 4
push dword [esp + 0x14]
call fcn.100446d0
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100f9f92
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret