Function at 0x5b279a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], edx
push esi
mov esi, dword [edx + 8]
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
lea ecx, [eax - 1]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x5b27d7d
push dword [edx]
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_segid__term___pgno__1____pgno1__FROM__Q._q_idx_WHERE_segid_d_ORDER_BY_1__2
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0x10
mov edi, eax
cmp dword [ebx + 0x24], 0
jne 0x5b27a1c
test edi, edi
je 0x5b27a15
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push 0
push eax
push 0
mov ecx, dword [ecx]
mov edx, edi
push 0x85
push 0xffffffffffffffff
call fcn.05bb1a30
add esp, 0x14
mov dword [ebx + 0x24], eax
jmp 0x5b27a1c
mov dword [ebx + 0x24], 7
push edi
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x5b27d68
nop
mov edi, dword [ebp - 4]
push edi
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 4
cmp eax, 0x64
jne 0x5b27d6b
push 1
push edi
call sym.SQLite.Interop.dll_SI2f17e57366f2805e
push 1
push edi
mov dword [ebp - 0x18], eax
call sym.SQLite.Interop.dll_SI3145812b5ff77358
push 2
push edi
mov dword [ebp - 0xc], eax
call sym.SQLite.Interop.dll_SI02ba66995d97a90f
mov edi, eax
mov eax, dword [ebp - 4]
push 3
push eax
mov dword [ebp - 0x10], edi
call sym.SQLite.Interop.dll_SI02ba66995d97a90f
mov dword [ebp - 0x30], eax
add esp, 0x20
mov eax, dword [ebp - 0x20]
cmp edi, dword [eax + 4]
jl 0x5b27d4c
mov eax, dword [eax]
xor edi, edi
cdq
mov ecx, eax
mov eax, dword [ebp - 0x10]
shl ecx, 5
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.05b32310
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x5b27d68
mov ecx, dword [eax + 4]
cmp ecx, 4
jl 0x5b27d58
mov edi, dword [eax + 8]
cmp edi, ecx
jg 0x5b27d58
cmp ecx, edi
jg 0x5b27af1
cmp dword [ebp - 0xc], 0
jne 0x5b27ae5
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x48], 5
jne 0x5b27ae5
cmp ecx, edi
jne 0x5b27ae5
cmp ecx, 4
je 0x5b27bc0
mov dword [ebx + 0x24], 0x10b
jmp 0x5b27bc0
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
lea ecx, [ecx + edi]
call fcn.05b1e3b0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x5b27bac
cmp eax, edi
jge 0x5b27bac
lea ecx, [edx + eax]
lea edx, [ebp - 0x1c]
call fcn.05b1e3b0
mov edx, dword [ebp - 0xc]
mov ecx, eax
add ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
cmp edi, edx
cmovl edx, edi
test edx, edx
jle 0x5b27ba3
mov edi, dword [ebp - 8]
add ecx, dword [edi]
mov edi, dword [ebp - 0x18]
sub edx, 4
jb 0x5b27b61
nop
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x5b27b66
add ecx, 4
add edi, 4
sub edx, 4
jae 0x5b27b50
cmp edx, 0xfffffffc
je 0x5b27b9a
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x5b27b93
cmp edx, 0xfffffffd
je 0x5b27b9a
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x5b27b93
cmp edx, 0xfffffffe
je 0x5b27b9a
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x5b27b93
cmp edx, 0xffffffff
je 0x5b27b9a
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x5b27b9a
sbb eax, eax
or eax, 1
jmp 0x5b27b9c
xor eax, eax
test eax, eax
jne 0x5b27baa
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, dword [ebp - 0xc]
test eax, eax
jns 0x5b27bb3
mov dword [ebx + 0x24], 0x10b
mov edx, dword [ebp - 8]
mov ecx, ebx
call fcn.05b27d90
mov eax, dword [ebp - 8]
push eax
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x5b27d68
mov edi, dword [ebp - 0x10]
inc esi
mov ecx, ebx
lea eax, [edi - 1]
push eax
mov eax, dword [ebp - 0x28]
push esi
mov esi, dword [ebp - 0x20]
inc eax
push eax
mov edx, esi
call fcn.05b27fd0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x5b27d68
cmp dword [ebp - 0x30], 0
je 0x5b27d46
mov eax, dword [esi]
xor edx, edx
push edi
push eax
mov ecx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], eax
xor esi, esi
call fcn.05b30880
mov edi, eax
add esp, 8
mov edx, edi
mov dword [ebp - 0x28], edi
mov ecx, ebx
call fcn.05b30cd0
test eax, eax
jne 0x5b27d3a
mov eax, dword [ebp - 0x30]
cdq
mov ecx, eax
shl ecx, 5
mov dword [ebp - 0xc], ecx
nop
mov esi, dword [ebp - 0x18]
inc esi
cmp esi, dword [edi + 0x18]
jge 0x5b27c9a
nop dword [eax]
mov eax, esi
cdq
add eax, 0
adc edx, ecx
mov ecx, ebx
push edx
push eax
call fcn.05b32310
add esp, 8
test eax, eax
je 0x5b27c91
mov ecx, dword [eax]
movzx edi, byte [ecx + 1]
movzx edx, byte [ecx]
mov ecx, 0x100
imul edx, ecx
add di, dx
je 0x5b27c85
mov dword [ebx + 0x24], 0x10b
push eax
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
mov edi, dword [ebp - 0x28]
add esp, 4
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, dword [edi + 0x18]
jl 0x5b27c50
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
cdq
add eax, 0
adc edx, ecx
mov ecx, ebx
push edx
push eax
call fcn.05b32310
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x5b27d18
mov eax, dword [eax]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
add ecx, edx
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 8]
jge 0x5b27d06
cmp dword [ebp - 0x24], 5
jne 0x5b27cd9
test ecx, ecx
je 0x5b27d0d
add ecx, eax
lea edx, [ebp - 0x38]
call fcn.05b1e230
mov edx, dword [edi + 0x24]
cmp dword [ebp - 0x34], edx
jl 0x5b27d06
mov eax, dword [ebp - 0x38]
mov ecx, dword [edi + 0x20]
jg 0x5b27cf7
cmp eax, ecx
jb 0x5b27d06
cmp dword [ebp - 0x24], 5
je 0x5b27d0d
cmp eax, ecx
jne 0x5b27d06
cmp dword [ebp - 0x34], edx
je 0x5b27d0d
mov dword [ebx + 0x24], 0x10b
push dword [ebp - 8]
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
push 0
mov edx, edi
mov ecx, ebx
call fcn.05b30dd0
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.05b30cd0
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x5b27c40
mov ecx, edi
call fcn.05b309c0
mov edi, dword [ebp - 0x10]
jmp 0x5b27d49
mov esi, dword [esi + 8]
mov dword [ebp - 0x28], edi
cmp dword [ebx + 0x24], 0
je 0x5b27a30
jmp 0x5b27d68
push eax
mov dword [ebx + 0x24], 0x10b
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
mov edi, dword [ebp - 4]
push edi
call fcn.05bf3ed0
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x5b27d7d
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret