Function at 0x1010ac60
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push ebp
push esi
xor ebp, ebp
mov esi, dword [ebx]
push edi
mov edi, dword [edx + 8]
mov dword [esp + 0x3c], esi
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x14], ebp
lea ecx, [eax - 1]
mov dword [esp + 0x38], ecx
test eax, eax
je 0x1010b112
push dword [edx]
push dword [esi + 8]
push dword [esi + 4]
push str.SELECT_segid__term___pgno__1____pgno1__FROM__Q._q_idx_WHERE_segid_d_ORDER_BY_1__2
call fcn.100285d0
add esp, 0x10
mov esi, eax
cmp dword [ebx + 0x2c], ebp
jne 0x1010ace1
test esi, esi
je 0x1010acda
mov ecx, dword [ebx]
lea eax, [esp + 0x14]
push ebp
push eax
push ebp
mov ecx, dword [ecx]
mov edx, esi
push 0x85
push 0xffffffffffffffff
call fcn.100966f0
mov ebp, dword [esp + 0x28]
add esp, 0x14
mov dword [ebx + 0x2c], eax
jmp 0x1010ace1
mov dword [ebx + 0x2c], 7
push esi
call fcn.10025b30
add esp, 4
cmp dword [ebx + 0x2c], 0
jne 0x1010b0fd
push ebp
call fcn.10050cc0
add esp, 4
cmp eax, 0x64
jne 0x1010b0fd
push 1
push ebp
call fcn.10051380
mov esi, dword [esp + 0x1c]
mov ebp, eax
push 1
push esi
call fcn.10051430
push 2
push esi
mov dword [esp + 0x38], eax
call fcn.100516b0
push 3
push dword [esp + 0x30]
mov esi, eax
mov dword [esp + 0x3c], esi
call fcn.100516b0
mov dword [esp + 0x54], eax
add esp, 0x20
mov eax, dword [esp + 0x18]
cmp esi, dword [eax + 4]
jl 0x1010b0de
mov eax, dword [eax]
xor esi, esi
cdq
mov ecx, eax
mov eax, dword [esp + 0x1c]
shl ecx, 5
cdq
add esi, eax
adc ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.10100b50
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1010b0fd
mov ecx, dword [eax + 4]
cmp ecx, 4
jl 0x1010b0ed
mov esi, dword [eax + 8]
cmp esi, ecx
jg 0x1010b0ed
jl 0x1010adbb
cmp dword [esp + 0x20], 0
jne 0x1010adaf
mov edx, dword [esp + 0x3c]
cmp dword [edx + 0x4c], 5
jne 0x1010adaf
cmp ecx, esi
jne 0x1010adaf
cmp ecx, 4
je 0x1010ae96
mov dword [ebx + 0x2c], 0x10b
jmp 0x1010ae96
mov ecx, dword [eax]
lea edx, [esp + 0x28]
lea ecx, [ecx + esi]
call fcn.10114730
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x28]
cmp ecx, eax
jge 0x1010ae80
cmp eax, esi
jge 0x1010ae80
lea ecx, [edx + eax]
lea edx, [esp + 0x2c]
call fcn.10114730
mov edx, dword [esp + 0x20]
mov ecx, eax
add ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
cmp esi, edx
cmovl edx, esi
test edx, edx
jle 0x1010ae76
mov esi, dword [esp + 0x10]
add ecx, dword [esi]
sub edx, 4
jb 0x1010ae32
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [ebp]
jne 0x1010ae37
add ecx, 4
add ebp, 4
sub edx, 4
jae 0x1010ae20
cmp edx, 0xfffffffc
je 0x1010ae6c
mov al, byte [ecx]
cmp al, byte [ebp]
jne 0x1010ae65
cmp edx, 0xfffffffd
je 0x1010ae6c
mov al, byte [ecx + 1]
cmp al, byte [ebp + 1]
jne 0x1010ae65
cmp edx, 0xfffffffe
je 0x1010ae6c
mov al, byte [ecx + 2]
cmp al, byte [ebp + 2]
jne 0x1010ae65
cmp edx, 0xffffffff
je 0x1010ae6c
mov al, byte [ecx + 3]
cmp al, byte [ebp + 3]
je 0x1010ae6c
sbb eax, eax
or eax, 1
jmp 0x1010ae6e
xor eax, eax
test eax, eax
jne 0x1010ae7e
mov esi, dword [esp + 0x2c]
mov eax, esi
sub eax, dword [esp + 0x20]
test eax, eax
jns 0x1010ae87
mov dword [ebx + 0x2c], 0x10b
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.1010a9e0
mov eax, dword [esp + 0x10]
push eax
call fcn.10025b30
add esp, 4
cmp dword [ebx + 0x2c], 0
jne 0x1010b0fd
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
inc ebp
dec eax
mov dword [esp + 0x38], eax
cmp ebp, eax
mov eax, dword [esp + 0x18]
jg 0x1010af34
mov eax, dword [eax]
xor esi, esi
cdq
mov ecx, eax
mov eax, ebp
shl ecx, 5
cdq
add esi, eax
adc ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.10100b50
mov esi, eax
add esp, 8
test esi, esi
je 0x1010af1a
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 4]
jge 0x1010aef1
mov dword [ebx + 0x2c], 0x10b
lea eax, [edi + 1]
cmp ebp, eax
jl 0x1010af1a
mov eax, dword [esi]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
mov eax, pe_nt_image_headers32
imul ecx, eax
xor eax, eax
add dx, cx
cmp ax, dx
je 0x1010af1a
mov dword [ebx + 0x2c], 0x10b
push esi
call fcn.10025b30
add esp, 4
inc ebp
cmp dword [ebx + 0x2c], 0
jne 0x1010b0fd
mov eax, dword [esp + 0x38]
jmp 0x1010aeb7
cmp dword [esp + 0x34], 0
je 0x1010b0d3
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov esi, dword [eax]
mov ebp, ecx
push ecx
push esi
mov ecx, ebx
xor edi, edi
call fcn.10102080
add esp, 8
mov dword [esp + 0x10], eax
mov edx, eax
mov ecx, ebx
call fcn.10101e90
test eax, eax
jne 0x1010b0c8
mov eax, esi
cdq
mov ecx, eax
mov eax, edx
mov dword [esp + 0x24], ecx
mov esi, ecx
mov dword [esp + 0x34], eax
nop dword [eax]
lea edi, [ebp + 1]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x18]
cmp edi, ebp
jge 0x1010afeb
shl ecx, 5
mov dword [esp + 0x38], ecx
mov eax, edi
cdq
add eax, 0
adc edx, ecx
mov ecx, ebx
push edx
push eax
call fcn.10100b50
add esp, 8
test eax, eax
je 0x1010afd3
mov esi, dword [eax]
mov ecx, pe_nt_image_headers32
movzx edx, byte [esi]
imul edx, ecx
movzx ecx, byte [esi + 1]
add dx, cx
je 0x1010afca
mov dword [ebx + 0x2c], 0x10b
push eax
call fcn.10025b30
add esp, 4
mov eax, dword [esp + 0x10]
inc edi
mov ecx, dword [esp + 0x38]
mov ebp, dword [eax + 0x18]
cmp edi, ebp
jl 0x1010af95
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov ecx, esi
mov dword [esp + 0x38], esi
mov eax, ebp
shl ecx, 5
xor esi, esi
cdq
add esi, eax
adc ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.10100b50
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
test esi, esi
je 0x1010b099
mov edx, dword [esi]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
add eax, ecx
cmp eax, dword [esi + 8]
jge 0x1010b078
cmp dword [esp + 0x30], 5
jne 0x1010b039
test eax, eax
je 0x1010b07f
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x38], ecx
lea ecx, [edx + eax]
lea edx, [esp + 0x44]
call fcn.101147c0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jl 0x1010b078
mov eax, dword [esp + 0x44]
jg 0x1010b069
cmp eax, esi
jb 0x1010b078
cmp dword [esp + 0x30], 5
je 0x1010b07f
cmp eax, esi
jne 0x1010b078
cmp edx, ecx
je 0x1010b07f
mov dword [ebx + 0x2c], 0x10b
push dword [esp + 0x40]
call fcn.10025b30
mov eax, dword [esp + 0x38]
add esp, 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jmp 0x1010b09d
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push 0
call fcn.10101de0
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, ebx
call fcn.10101e90
mov ecx, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x20]
je 0x1010af80
mov ecx, dword [esp + 0x10]
call fcn.10102000
jmp 0x1010b0d6
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
cmp dword [ebx + 0x2c], 0
jne 0x1010b0fd
mov ebp, dword [esp + 0x14]
jmp 0x1010acf4
push eax
mov dword [ebx + 0x2c], 0x10b
call fcn.10025b30
add esp, 4
push dword [esp + 0x14]
call fcn.1004fcb0
add esp, 4
cmp dword [ebx + 0x2c], 0
jne 0x1010b112
mov dword [ebx + 0x2c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret