Function at 0x665cec00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [eax + 0x1d4]
test edx, edx
mov ebp, dword [eax + 0x1d0]
lea esi, [ebx + 1]
mov dword [eax + 0x1d0], ebx
mov ebx, dword [eax]
mov dword [eax + 0x1d4], esi
je 0x665cec38
cmp byte [ebx + 0x41], 0
jne 0x665cec38
mov esi, dword [eax + 0x40]
test esi, esi
je 0x665cec50
mov eax, 1
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, 0x15
mov dword [esp + 0x2c], eax
call sym._sqlite3AuthCheck
test eax, eax
jne 0x665cec38
lea edi, [esp + 0xe0]
mov ecx, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
cmp byte [eax], 8
jbe 0x665cefd2
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
xor ecx, ecx
call sym._sqlite3SelectPrep
xor eax, eax
mov dword [esp + eax + 0xa4], 0
add eax, 4
cmp eax, 0x1c
jb 0x665ceca7
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x30]
mov dword [esp + 0xa4], eax
mov eax, dword [ecx + 0x40]
test eax, eax
mov dword [esp + 0x50], eax
jne 0x665cefa0
cmp byte [ebx + 0x41], 0
jne 0x665cefa0
mov eax, dword [ecx + 8]
mov esi, dword [edi + 0x20]
mov edx, dword [edi]
movzx edi, word [edi + 6]
test eax, eax
mov dword [esp + 0x34], eax
je 0x665cffa9
cmp dword [edx], 1
jle 0x665ced15
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
sub eax, 0xa
cmp eax, 1
jbe 0x665cfa78
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x665cf382
mov eax, edi
mov edx, dword [esi]
shr ax, 2
and eax, 1
mov dword [esp + 0x40], eax
xor eax, eax
test edx, edx
jle 0x665cf3bb
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x38], ebx
mov ebp, eax
jmp 0x665ced74
test byte [eax + 0x30], 4
je 0x665ceff1
mov eax, dword [esp + 0x28]
add ebp, 1
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x665cf37e
cmp dword [esi], ebp
jle 0x665cf3b3
lea eax, [ebp + ebp*8]
lea eax, [esi + eax*8]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x665ced5a
mov edx, dword [eax + 0x20]
test edx, edx
jne 0x665ced50
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xc0]
mov dword [esp + 0xc0], 0
call sym._heightOfSelect
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0xc0]
add dword [edi + 0x1cc], eax
mov eax, dword [edi]
test byte [eax + 0x3c], 1
mov dword [esp + 0x3c], eax
jne 0x665cedf2
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
mov edi, eax
mov dword [esp + 0x44], eax
movzx eax, word [ebx + 6]
and ax, 4
mov word [esp + 0x48], ax
je 0x665cf096
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x665cedf2
cmp dword [edi], 1
jle 0x665cf012
cmp dword [esi], 1
jne 0x665cee05
mov eax, dword [esp + 0x38]
test byte [eax + 0x3d], 1
je 0x665cf962
mov edi, dword [esp + 0x2c]
lea edx, [ebp + ebp*8]
xor ecx, ecx
mov eax, dword [edi + 0x48]
mov dword [esp + 0x3c], eax
add eax, 1
mov dword [edi + 0x48], eax
lea edi, [esi + edx*8]
mov edx, 0x19
mov dword [edi + 0x24], eax
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
call sym._sqlite3VdbeAddOp3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], eax
add eax, 1
test byte [edi + 0x30], 2
mov dword [edi + 0x20], eax
je 0x665cf950
lea eax, [ebp + ebp*8]
lea ecx, [esp + 0xc0]
mov edx, ebx
lea edi, [esi + eax*8]
mov eax, dword [edi + 0x34]
mov byte [esp + 0xc0], 0xc
mov byte [esp + 0xc1], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x1d4]
mov byte [edi + 0x31], al
mov eax, dword [esp + 0x2c]
call sym._sqlite3Select
mov edi, dword [edi + 0x18]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
call sym._sqlite3LogEst
mov word [edi + 0x26], ax
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x665ceeeb
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x20]
cmp eax, edi
jbe 0x665ceede
lea edx, [edi + edi*4]
shl edx, 2
add edx, dword [ecx + 4]
mov dword [edx + 8], eax
mov edi, dword [esp + 0x34]
sub eax, 1
mov edx, dword [edi + 0x18]
mov dword [edx + 0x58], eax
lea eax, [ebp + ebp*8]
mov edi, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, 0x12
mov ecx, dword [esi + eax*8 + 0x24]
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov esi, dword [esp + 0x44]
cmp dword [edi + 0x20], esi
jbe 0x665cef27
mov ebx, dword [edi + 4]
lea edx, [esi + esi*4]
lea edx, [ebx + edx*4]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x2c]
mov byte [eax + 0x13], 0
mov dword [eax + 0x38], 0
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x41], 0
jne 0x665cef8f
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x98]
mov dword [esp + 0x98], 0
mov eax, edi
call sym._heightOfSelect
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x98]
sub dword [esi + 0x1cc], eax
mov eax, edi
mov esi, dword [edi + 0x20]
mov edi, dword [esp + 0x30]
cmp byte [edi], 8
jbe 0x665ced5a
mov eax, dword [eax + 0x30]
mov dword [esp + 0xa4], eax
jmp 0x665ced5a
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x2c]
mov edi, 1
mov dword [eax + 0x1d0], ebp
mov edx, dword [esp + 0xfc]
mov eax, ebx
call sym._sqlite3DbFree
mov edx, dword [esp + 0x108]
mov eax, ebx
call sym._sqlite3DbFree
mov eax, edi
jmp 0x665cec3d
mov edi, dword [esp + 0x28]
mov eax, ebx
mov edx, dword [edi + 0x30]
call sym._sqlite3ExprListDelete
mov dword [edi + 0x30], 0
and word [edi + 6], 0xfffe
jmp 0x665cec96
mov dword [esp], edx
mov dword [esp + 4], 0
mov edx, 0x11
mov ecx, dword [eax + 0x24]
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
jmp 0x665ced5a
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x665cf027
test byte [eax + 6], 0x20
jne 0x665cedf2
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
je 0x665cf05e
mov edx, dword [eax]
test edx, edx
jle 0x665cf05e
mov eax, dword [eax + 4]
lea edx, [edx + edx*2]
xor ecx, ecx
lea edi, [eax + edx*8]
mov edx, dword [eax]
test edx, edx
je 0x665cf04b
or ecx, dword [edx + 4]
add eax, 0x18
cmp edi, eax
jne 0x665cf042
and ecx, 0x200000
jne 0x665cedf2
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x665cf096
mov edx, dword [eax]
test edx, edx
jle 0x665cf096
mov eax, dword [eax + 4]
xor ecx, ecx
imul edx, edx, 0x18
lea edi, [eax + edx]
mov edx, dword [eax]
test edx, edx
je 0x665cf083
or ecx, dword [edx + 4]
add eax, 0x18
cmp edi, eax
jne 0x665cf07a
and ecx, 0x200000
jne 0x665cedf2
mov edi, dword [esp + 0x44]
lea eax, [ebp + ebp*8]
mov edi, dword [edi + eax*8 + 0x1c]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x665cff8c
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x665cedf2
mov edx, dword [edi + 0x40]
test edx, edx
jne 0x665cedf2
movzx eax, word [eax + 6]
test al, 0x40
jne 0x665cedf2
mov byte [esp + 0x54], 1
mov ecx, dword [edi + 0x20]
cmp dword [ecx], 0
je 0x665cedf2
movzx ecx, word [edi + 6]
mov word [esp + 0x5c], cx
and cl, 1
jne 0x665cedf2
cmp byte [esp + 0x54], 0
je 0x665cf115
mov ecx, dword [esp + 0x44]
cmp dword [ecx], 1
jg 0x665cedf2
cmp dword [esp + 0x40], 0
jne 0x665cedf2
mov ecx, eax
and ecx, 1
cmp word [esp + 0x48], 0
je 0x665cf12a
test cl, cl
jne 0x665cedf2
mov edx, dword [esp + 0x28]
mov edx, dword [edx + 0x30]
test edx, edx
mov dword [esp + 0x58], edx
je 0x665d10ab
cmp dword [edi + 0x30], 0
jne 0x665cedf2
cmp byte [esp + 0x54], 0
je 0x665cf164
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x24], 0
jne 0x665cedf2
test cl, cl
jne 0x665cedf2
test word [esp + 0x5c], 0x1800
jne 0x665cedf2
test ah, 8
je 0x665d1489
cmp dword [edi + 0x34], 0
jne 0x665cedf2
imul eax, ebp, 0x48
mov ecx, dword [esp + 0x44]
test byte [ecx + eax + 0x2c], 0x20
jne 0x665cedf2
imul eax, ebp, 0x48
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov edx, 0x15
add esi, eax
mov dword [esp + 0x6c], eax
mov ebx, dword [ecx + 0x1ec]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x1ec], eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._sqlite3AuthCheck
mov eax, dword [esp + 0x2c]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x64], ebp
mov dword [eax + 0x1ec], ebx
mov ebx, dword [esp + 0x28]
test edi, edi
je 0x665d1220
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x3c]
xor ecx, ecx
mov ebp, dword [ebx + 0x40]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x3c], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebp
mov edx, ebx
mov ebp, dword [ebx + 0x34]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
call sym._sqlite3SelectDup
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
test eax, eax
mov byte [ebx + 4], 0x74
mov dword [ebx + 0x40], ecx
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x20], ecx
je 0x665d10a3
test ebp, ebp
mov dword [eax + 0x34], ebp
je 0x665cf273
mov dword [ebp + 0x38], eax
mov dword [eax + 0x38], ebx
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x41], 0
jne 0x665cf352
mov edi, dword [edi + 0x34]
jmp 0x665cf1f1
mov dword [ebx + 0x30], eax
mov dword [ebp + 0x30], 0
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x665d158c
mov eax, dword [esp + 0x3c]
mov dword [esp], 0
xor ecx, ecx
call sym._exprDup
mov esi, eax
cmp word [esp + 0x48], 0
mov edx, dword [ebx + 0x24]
je 0x665d1561
mov edi, dword [esp + 0x3c]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x24], esi
mov dword [esp], eax
mov eax, edi
call sym._substExpr
mov dword [ebx + 0x2c], eax
mov edx, dword [ebp + 0x2c]
xor ecx, ecx
mov dword [esp], 0
mov eax, edi
call sym._exprDup
mov edx, dword [ebx + 0x2c]
mov ecx, eax
mov eax, edi
call sym._sqlite3ExprAnd
mov edx, dword [ebp + 0x28]
mov dword [ebx + 0x2c], eax
xor ecx, ecx
mov eax, edi
call sym._sqlite3ExprListDup
mov dword [ebx + 0x28], eax
movzx eax, word [ebp + 6]
and eax, 1
or word [ebx + 6], ax
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x665cf332
mov dword [ebx + 0x3c], eax
mov dword [ebp + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov ebp, dword [ebp + 0x34]
test ebx, ebx
jne 0x665d12bc
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
mov ecx, 1
call sym._clearSelect
cmp word [esp + 0x48], 0
mov ebp, 0xffffffff
je 0x665cef36
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], 1
mov ebp, 0xffffffff
or word [eax + 6], 4
jmp 0x665cef36
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
movzx eax, word [edx + 6]
mov word [esp + 0x28], ax
and eax, 1
mov byte [esp + 0x98], al
mov eax, edi
call sym._multiSelect
mov dword [edi + 0x1d0], ebp
jmp 0x665cec3d
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
mov dword [esp + 0x3c], edi
mov edi, dword [eax + 0x24]
mov dword [esp + 0x44], edi
mov edi, dword [eax + 0x28]
mov dword [esp + 0x38], edi
mov edi, dword [eax + 0x2c]
movzx eax, word [eax + 6]
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
mov edi, eax
and eax, 1
mov byte [esp + 0x98], al
mov eax, edi
and eax, 5
cmp ax, 1
je 0x665d0439
mov edi, dword [esp + 0xa4]
test edi, edi
je 0x665cffd0
mov eax, dword [esp + 0x3c]
mov edx, edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [eax]
mov dword [esp], eax
mov eax, edi
call sym._keyInfoFromExprList
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x48], eax
lea eax, [ecx + 1]
mov dword [esp + 0xac], ecx
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0x3c]
mov dword [esp + 4], 0
mov edx, dword [eax]
mov eax, dword [edi]
lea eax, [edx + eax + 1]
mov edx, 0x39
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x48]
mov edi, eax
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp], 0xfffffffa
call sym._sqlite3VdbeChangeP4
mov dword [esp + 0xb8], edi
mov eax, dword [esp + 0x30]
cmp byte [eax], 0xc
je 0x665d0412
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 8]
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], 0x7fffffff
test edx, edx
je 0x665d0072
mov eax, dword [esp + 0x28]
test byte [eax + 6], 1
jne 0x665cffe0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x665cfa9c
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x665cfa9c
cmp byte [esp + 0x98], 1
mov dword [esp + 0xc], 0
mov edx, esi
mov ecx, dword [esp + 0x44]
sbb eax, eax
not eax
and ax, 0x400
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call sym._sqlite3WhereBegin
test eax, eax
mov edi, eax
je 0x665cefa0
movsx eax, word [eax + 0x20]
cmp ax, 9
jle 0x665d0110
call sym._sqlite3LogEstToInt.part.13
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x1c], edx
jb 0x665cf565
ja 0x665cf55b
cmp dword [ecx + 0x18], eax
jbe 0x665cf565
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
cmp byte [esp + 0x98], 0
je 0x665cf57e
movzx eax, byte [edi + 0x28]
test al, al
je 0x665cf57e
mov byte [esp + 0x99], al
mov edx, dword [esp + 0xa4]
test edx, edx
je 0x665d02e4
movsx eax, byte [edi + 0x24]
cmp dword [edx], eax
mov dword [esp + 0xa8], eax
je 0x665d02d9
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x30]
mov dword [esp], 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
lea eax, [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
call sym._selectInnerLoop
mov eax, edi
call sym._sqlite3WhereEnd
cmp byte [esp + 0x99], 3
je 0x665d019c
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x665cf8ee
mov edi, dword [esp + 0xa8]
mov eax, str.ORDER_BY
mov edx, str.RIGHT_PART_OF_ORDER_BY
test edi, edi
cmovle edx, eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1c2], 2
je 0x665d0a47
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
mov edi, eax
mov dword [esp + 0x38], eax
mov eax, dword [eax + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov edi, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x4c], eax
movzx eax, byte [edi]
mov byte [esp + 0x5c], al
mov eax, dword [edi + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x665d01fb
mov eax, dword [esp + 0xac]
mov dword [esp + 0x48], eax
movzx eax, byte [esp + 0x5c]
and eax, 0xfffffffb
cmp al, 9
jne 0x665d00d8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], 0
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
sub eax, dword [esp + 0xa8]
test byte [esp + 0xbc], 1
mov dword [esp + 0x6c], eax
je 0x665d026c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xb4]
mov edi, dword [eax + 0x48]
add edi, 1
mov dword [eax + 0x48], edi
mov dword [esp + 0x70], edi
mov edi, eax
mov eax, dword [eax + 0x44]
mov dword [esp + 0x4c], eax
add eax, 1
test ecx, ecx
mov dword [edi + 0x44], eax
jne 0x665d037e
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x50]
mov edx, 0x3c
mov ecx, dword [esp + 0x4c]
lea eax, [eax + edi + 1]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
mov edx, 0x6a
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
add eax, 1
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0xc]
test edx, edx
jle 0x665cf777
mov ecx, dword [esp + 0x68]
mov eax, edi
call sym._codeOffset.part.440
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, 0x64
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call sym._sqlite3VdbeAddOp3
xor eax, eax
add eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
mov edi, ecx
add edi, eax
mov edx, edi
mov edi, eax
mov eax, dword [esp + 0x40]
sub eax, edi
test ecx, ecx
mov dword [esp + 0x28], eax
jle 0x665cf7fe
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebx
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x50], esi
mov esi, edx
nop
lea eax, [ebp + edi]
mov dword [esp], edi
mov ecx, ebx
mov edx, 0x2f
add edi, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
call sym._sqlite3VdbeAddOp3
cmp edi, esi
jne 0x665cf7d0
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
movzx eax, byte [esp + 0x5c]
cmp al, 0xb
je 0x665d030e
ja 0x665d0130
cmp al, 0xa
jne 0x665d03de
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov dword [esp], 1
call sym._sqlite3ExprCodeMove
mov edx, dword [esp + 0x44]
test edx, edx
je 0x665cf85a
cmp dword [esp + 0x40], 0
je 0x665cf84d
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
call sym._sqlite3ReleaseTempReg.part.166
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
call sym._sqlite3ReleaseTempReg.part.166
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
xor ecx, 0xffffffff
mov eax, dword [edi + 0x18]
js 0x665cf877
mov edx, dword [eax + 0x70]
test edx, edx
je 0x665cf877
mov edi, dword [edi + 0x20]
mov dword [edx + ecx*4], edi
mov edi, dword [esp + 0x38]
test byte [esp + 0xbc], 1
mov ecx, dword [edi + 0x20]
lea edx, [ecx - 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x58], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], 0
mov dword [esp], eax
je 0x665d00c5
mov edx, 5
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x665d02b7
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
xor ecx, 0xffffffff
mov eax, dword [edi + 0x18]
js 0x665cf8e1
mov edx, dword [eax + 0x70]
test edx, edx
je 0x665cf8e1
mov edi, dword [edi + 0x20]
mov dword [edx + ecx*4], edi
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 0x20]
sub edx, 1
mov dword [eax + 0x58], edx
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x34]
xor ecx, 0xffffffff
mov edx, dword [edi + 0x18]
js 0x665cf90b
mov eax, dword [edx + 0x70]
test eax, eax
je 0x665cf90b
mov edi, dword [edi + 0x20]
mov dword [eax + ecx*4], edi
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov eax, dword [eax + 0x20]
sub eax, 1
mov dword [edx + 0x58], eax
mov eax, dword [edi + 0x40]
mov dword [edi + 0x1d0], ebp
test eax, eax
jg 0x665d10bb
mov eax, dword [esp + 0x30]
xor edi, edi
cmp byte [eax], 9
jne 0x665cefaf
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov edx, esi
call sym._generateColumnNames
jmp 0x665cefaf
mov eax, dword [esp + 0x2c]
call sym._sqlite3CodeOnce
mov dword [esp + 0x3c], eax
jmp 0x665cee57
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov edi, dword [eax + 0x20]
mov ecx, dword [edx + 0x48]
lea eax, [ebp + ebp*8]
mov dword [esp + 0x2c], edx
lea esi, [esi + eax*8]
lea eax, [edi + 1]
add ecx, 1
mov dword [edx + 0x48], ecx
mov dword [esi + 0x24], ecx
mov edx, 0x14
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
lea eax, [edi + 1]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xc0]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
mov byte [esp + 0xc0], 0xd
mov byte [esp + 0xc1], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], eax
mov eax, dword [ecx + 0x1d4]
mov ecx, edx
mov edx, ebx
mov byte [esi + 0x31], al
mov eax, dword [esp + 0x2c]
call sym._sqlite3Select
mov ecx, dword [esi + 0x18]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x3c], ecx
call sym._sqlite3LogEst
mov ecx, dword [esp + 0x3c]
mov edx, 0x15
mov word [ecx + 0x26], ax
lea ecx, [esi + 0x20]
or byte [ecx + 0x10], 4
mov eax, dword [esp + 0xc8]
mov dword [esi + 0x28], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [esi + 0x24]
mov esi, dword [esp + 0x34]
mov eax, esi
call sym._sqlite3VdbeAddOp3
mov eax, dword [esi + 0x20]
cmp edi, eax
jae 0x665cfa57
lea edx, [edi + edi*4]
shl edx, 2
add edx, dword [esi + 4]
mov dword [edx + 8], eax
mov edi, dword [esp + 0x34]
sub eax, 1
mov edx, dword [edi + 0x18]
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x2c]
mov byte [eax + 0x13], 0
mov dword [eax + 0x38], 0
jmp 0x665cef36
mov edi, dword [esp + 0x2c]
mov dword [esp + 4], str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
mov dword [esp], edi
call sym._sqlite3ErrorMsg
mov dword [edi + 0x1d0], ebp
mov edi, 1
jmp 0x665cefaf
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
test edi, edi
je 0x665d0ab6
mov edx, dword [eax]
mov eax, dword [edx]
mov edx, dword [edx + 4]
test eax, eax
jle 0x665cface
mov esi, esi
lea edi, [edi]
xor ecx, ecx
add edx, 0x18
mov word [edx - 2], cx
sub eax, 1
jne 0x665cfac0
mov edi, dword [esp + 0x38]
mov eax, dword [edi]
mov edx, dword [edi + 4]
test eax, eax
jle 0x665cfaee
nop
lea esi, [esi]
xor edi, edi
add edx, 0x18
mov word [edx - 2], di
sub eax, 1
jne 0x665cfae0
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x1c], 0
ja 0x665cfafe
cmp dword [eax + 0x18], 0x64
jbe 0x665cfb10
mov eax, dword [esp + 0x28]
mov dword [eax + 0x18], 0x64
mov dword [eax + 0x1c], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x38]
mov ecx, 0xffffffff
call sym._sqlite3ExprListCompare
test eax, eax
sete al
movzx eax, al
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x40], eax
xor eax, eax
mov edi, dword [esp + 0x40]
mov dword [edi + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x665cfb4e
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0xe0]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc0], eax
mov eax, dword [eax + 0x48]
add eax, 1
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xf8], eax
mov eax, edi
call sym._sqlite3ExprAnalyzeAggList
mov edx, dword [esp + 0xa4]
mov eax, edi
call sym._sqlite3ExprAnalyzeAggList
mov eax, dword [esp + 0x58]
test eax, eax
je 0x665cfbdc
mov edx, eax
mov eax, edi
call sym._sqlite3ExprAnalyzeAggregates
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x100]
test edx, edx
mov dword [esp + 0x104], eax
jle 0x665cfc5a
xor edi, edi
movzx eax, word [esp + 0xdc]
mov dword [esp + 0x50], esi
mov esi, edi
mov edi, ebx
mov ebx, dword [esp + 0x40]
nop
lea esi, [esi]
or eax, 8
mov word [esp + 0xdc], ax
mov eax, esi
add esi, 1
shl eax, 4
add eax, dword [esp + 0x108]
mov eax, dword [eax]
mov edx, dword [eax + 0x14]
mov eax, ebx
call sym._sqlite3ExprAnalyzeAggList
movzx eax, word [esp + 0xdc]
mov edx, dword [esp + 0x10c]
and eax, 0xfffffff7
cmp edx, esi
mov word [esp + 0xdc], ax
jg 0x665cfc10
mov esi, dword [esp + 0x50]
mov ebx, edi
mov edi, dword [esp + 0x2c]
cmp byte [ebx + 0x41], 0
mov eax, dword [edi + 0x48]
mov dword [esp + 0xf4], eax
jne 0x665cefa0
cmp dword [esp + 0x38], 0
je 0x665d0b3d
mov eax, dword [edi + 0x44]
xor ecx, ecx
lea edx, [eax + 1]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x100]
mov dword [edi + 0x44], edx
mov edx, dword [esp + 0x38]
mov dword [esp], eax
mov eax, edi
call sym._keyInfoFromExprList
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xec]
mov edx, 0x3a
mov ecx, dword [esp + 0xe4]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x60]
mov edx, eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp], 0xfffffffa
call sym._sqlite3VdbeChangeP4
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x64], ecx
lea ecx, [eax + 2]
mov dword [esp + 0x68], ecx
lea ecx, [eax + 3]
mov eax, dword [esp + 0x34]
mov dword [edi + 0x48], ecx
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov dword [esp + 0x6c], eax
mov eax, edi
mov edi, dword [edi + 0x48]
mov dword [esp + 0x40], edi
add edi, 1
mov ecx, edi
mov edi, eax
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], ecx
mov eax, dword [eax + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x48]
mov edx, dword [edx]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x5c], ecx
lea ecx, [eax + 1]
add eax, edx
mov edx, dword [esp + 0x68]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], ecx
mov dword [esp + 4], 0
xor ecx, ecx
mov dword [esp], edx
mov edx, 0x19
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov edx, 0x19
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
add ecx, dword [edx]
mov edx, 0x1c
mov eax, ecx
mov ecx, dword [esp + 0x5c]
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], ecx
xor ecx, ecx
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x34]
mov edx, 0x11
mov dword [esp + 4], 0
mov dword [esp], ecx
mov ecx, dword [esp + 0x70]
call sym._sqlite3VdbeAddOp3
cmp dword [esp + 0x48], 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], edx
mov edx, esi
sbb eax, eax
and eax, 0xfffff800
add eax, 0x900
mov dword [esp + 8], eax
mov eax, edi
call sym._sqlite3WhereBegin
test eax, eax
mov dword [esp + 0x7c], eax
je 0x665cefa0
mov edx, dword [esp + 0x38]
movsx eax, byte [eax + 0x24]
cmp dword [edx], eax
je 0x665d0fe2
cmp byte [esp + 0x98], 0
mov edx, str.GROUP_BY
je 0x665cfe59
mov eax, dword [esp + 0x28]
test byte [eax + 6], 1
mov eax, str.DISTINCT
cmove edx, eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1c2], 2
je 0x665d147f
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x100]
mov eax, dword [eax]
test edx, edx
mov ecx, eax
mov dword [esp + 0x80], eax
jle 0x665d146f
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x40], ecx
imul edx, edx, 0x18
add edx, eax
cmp dword [eax + 0xc], ecx
jl 0x665cfea5
add dword [esp + 0x40], 1
add ecx, 1
add eax, 0x18
cmp eax, edx
jne 0x665cfe98
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [edi + 0x38]
cmp eax, ecx
jl 0x665d0a2d
mov edx, dword [edi + 0x3c]
sub eax, ecx
mov dword [edi + 0x38], eax
mov dword [esp + 0x44], edx
add edx, ecx
mov dword [edi + 0x3c], edx
mov edi, dword [esp + 0x2c]
mov eax, edi
call sym._sqlite3ExprCacheClear
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, edi
mov dword [esp], 0
xor edi, edi
call sym._sqlite3ExprCodeExprList
cmp dword [esp + 0x100], 0
jle 0x665d04a8
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], esi
mov ebx, dword [esp + 0x80]
jmp 0x665cff30
add edi, 1
cmp dword [esp + 0x100], edi
jle 0x665d049a
mov edx, dword [esp + 0xfc]
lea eax, [edi + edi*2]
lea eax, [edx + eax*8]
cmp dword [eax + 0xc], ebx
jl 0x665cff20
mov esi, dword [esp + 0x44]
mov ecx, dword [eax + 8]
mov dword [esp + 8], 0
add esi, ebx
mov dword [esp + 4], esi
mov edx, dword [eax + 4]
mov dword [esp], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCodeGetColumn
cmp esi, eax
je 0x665cff87
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], esi
mov edx, 0x22
call sym._sqlite3VdbeAddOp3
add ebx, 1
jmp 0x665cff20
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x665cedf2
mov eax, dword [esp + 0x28]
mov byte [esp + 0x54], 0
movzx eax, word [eax + 6]
jmp 0x665cf0d8
mov eax, ecx
mov dword [esp + 0x38], edx
call sym._sqlite3GetVdbe.part.430
test eax, eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
je 0x665cefa0
jmp 0x665cecfd
mov dword [esp + 0xb8], 0xffffffff
jmp 0x665cf484
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi + 0x44]
lea edx, [eax + 1]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x44], edx
mov dword [esp], 0
mov edx, dword [eax]
mov eax, edi
call sym._keyInfoFromExprList
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x48], eax
mov edx, 0x39
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x48]
mov edi, eax
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp], 0xfffffffa
call sym._sqlite3VdbeChangeP4
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
test eax, eax
je 0x665d0065
imul edx, dword [edi + 0x20], 0x14
mov byte [eax + edx - 0x11], 8
mov byte [esp + 0x99], 3
jmp 0x665cf4d4
mov edi, eax
mov edx, eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
call sym._computeLimitRegisters.part.490
cmp dword [edi + 8], 0
jne 0x665cf4be
mov eax, dword [esp + 0xb8]
test eax, eax
js 0x665cf4be
mov edi, dword [esp + 0x34]
mov edx, 0x6663c028
mov ecx, dword [edi]
cmp byte [ecx + 0x41], 0
jne 0x665d00b5
imul eax, eax, 0x14
add eax, dword [edi + 4]
mov edx, eax
mov byte [edx], 0x3a
or byte [esp + 0xbc], 1
jmp 0x665cf4be
mov eax, dword [esp + 0x38]
mov edx, 9
call sym._sqlite3VdbeAddOp3
jmp 0x665cf8b5
mov edi, dword [esp + 0x2c]
movzx eax, byte [edi + 0x13]
test al, al
jne 0x665d01bc
mov eax, dword [edi + 0x48]
add eax, 1
mov dword [esp + 0x44], eax
mov dword [edi + 0x48], eax
mov edi, dword [esp + 0x2c]
add eax, 1
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], eax
mov dword [edi + 0x48], eax
jmp 0x665cf6c0
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x1c], 0
ja 0x665d0124
cmp dword [eax + 0x18], 1
jbe 0x665cf565
mov eax, 1
xor edx, edx
jmp 0x665cf55b
movzx eax, byte [esp + 0x5c]
cmp al, 0xc
je 0x665d0141
cmp al, 0xe
jne 0x665d03de
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edx, 0x4a
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
mov edx, 0x4b
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [edi + 4]
test eax, eax
je 0x665cf831
imul edx, dword [edi + 0x20], 0x14
mov byte [eax + edx - 0x11], 8
jmp 0x665cf831
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1c2], 2
jne 0x665cf5f9
mov edx, str.DISTINCT
call sym._explainTempTable.part.435
jmp 0x665cf5f9
lea edx, [eax - 1]
mov edi, dword [esp + 0x2c]
movzx ecx, dl
test dl, dl
mov byte [edi + 0x13], dl
mov edi, dword [edi + ecx*4 + 0x18]
mov dword [esp + 0x44], edi
je 0x665d0ee1
mov edi, dword [esp + 0x2c]
sub eax, 2
mov dword [esp + 0x50], 1
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x40], eax
jmp 0x665cf6c0
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0xb0]
mov edx, 0x11
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov edx, 0x10
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0xb4]
mov edx, dword [edi + 0x18]
xor eax, 0xffffffff
js 0x665d0256
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x665d0256
mov edi, dword [edi + 0x20]
mov dword [ecx + eax*4], edi
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x40], eax
sub eax, 1
mov dword [edx + 0x58], eax
jmp 0x665cf68a
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
mov edx, 0x6b
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov ecx, edi
call sym._sqlite3VdbeAddOp3
lea ecx, [eax + 1]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
test edx, edx
jg 0x665d047f
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, 1
jmp 0x665cf79a
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0
mov edx, 0x12
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
jmp 0x665cf8c4
mov dword [esp + 0xa4], 0
mov edx, dword [esp + 0xb8]
test edx, edx
js 0x665cf5a0
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x20], edx
jle 0x665cf5a0
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeChangeToNoop.part.291
jmp 0x665cf5a0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edx, 0x31
mov ecx, dword [esp + 0x40]
mov dword [esp], 1
mov dword [esp + 4], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x30]
mov edx, eax
mov dword [esp], 1
mov eax, edi
add ecx, 1
call sym._sqlite3VdbeChangeP4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov ecx, 1
call sym._sqlite3ExprCacheRemove
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
mov edx, 0x6e
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
jmp 0x665cf831
mov eax, edi
call sym._sqlite3CodeOnce
mov ecx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x6c]
mov edx, 0x3c
lea eax, [eax + ecx + 1]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call sym._sqlite3VdbeAddOp3
test edi, edi
je 0x665cf737
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x20]
cmp edi, edx
jae 0x665d03cc
imul eax, edi, 0x14
add eax, dword [ecx + 4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x38]
sub edx, 1
mov eax, dword [eax + 0x18]
mov dword [eax + 0x58], edx
jmp 0x665cf737
cmp byte [esp + 0x5c], 9
je 0x665d0eed
mov eax, dword [esp + 0x30]
mov edx, 0x16
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
jmp 0x665cf831
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x3c]
mov edx, 0x39
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
jmp 0x665cf491
mov edi, dword [esp + 0xa4]
mov edx, dword [esp + 0x3c]
or ecx, 0xffffffff
mov eax, edi
call sym._sqlite3ExprListCompare
test eax, eax
jne 0x665cf405
movzx eax, word [esp + 0x48]
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov edx, dword [esp + 0x3c]
and eax, 0xfffffffe
mov word [edi + 6], ax
mov eax, ebx
call sym._sqlite3ExprListDup
mov dword [esp + 0x38], eax
mov dword [edi + 0x28], eax
jmp 0x665cf3fe
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
call sym._codeOffset.part.440
mov dword [esp + 0x4c], edi
mov eax, 1
jmp 0x665cf79a
mov esi, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x13]
test al, al
jne 0x665d0aa0
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x48]
mov dword [esp + 0x80], edi
add edi, 1
mov dword [eax + 0x48], edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, 0x31
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0xe4]
mov eax, dword [esp + 0x34]
mov edx, 0x6d
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._sqlite3VdbeAddOp3
test edi, edi
je 0x665d0518
mov eax, dword [esp + 0x2c]
mov edx, edi
call sym._sqlite3ReleaseTempReg.part.166
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, edi
call sym._sqlite3ExprCacheRemove
mov eax, edi
mov edi, dword [esp + 0x40]
cmp dword [eax + 0x38], edi
jge 0x665d0540
mov dword [eax + 0x38], edi
mov edi, dword [esp + 0x44]
mov dword [eax + 0x3c], edi
mov eax, dword [esp + 0x7c]
call sym._sqlite3WhereEnd
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x44]
mov ecx, eax
mov dword [esp + 0x44], eax
add eax, 1
mov dword [edi + 0x44], eax
movzx eax, byte [edi + 0x13]
mov dword [esp + 0xe8], ecx
test al, al
jne 0x665d0a7a
mov eax, edi
mov edi, dword [edi + 0x48]
mov dword [esp + 0x80], edi
add edi, 1
mov dword [eax + 0x48], edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, 0x3c
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov edx, 0x6a
mov dword [esp + 4], 0
mov dword [esp], ecx
mov ecx, dword [esp + 0xe4]
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xe1], 1
call sym._sqlite3ExprCacheClear
cmp dword [esp + 0x48], 0
je 0x665d0a90
test byte [ebx + 0x3c], 4
jne 0x665d0a90
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xa4], 0
mov eax, dword [eax + 0x20]
cmp eax, edx
mov dword [esp + 0x48], eax
jg 0x665d1099
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCacheClear
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xe4]
mov edx, 0x64
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
test eax, eax
jle 0x665d06bd
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], esi
xor edi, edi
mov dword [esp + 0x88], ebx
mov ebx, ecx
mov esi, eax
jmp 0x665d0687
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov edx, 0x2f
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [ebx]
add edi, 1
add esi, 1
cmp eax, edi
jle 0x665d06af
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x665d0662
mov edx, dword [ebx + 4]
lea eax, [edi + edi*2]
mov byte [esp + 0xe0], 1
mov ecx, esi
lea eax, [edx + eax*8]
mov edx, dword [eax]
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCode
jmp 0x665d067b
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x60]
test edi, edi
je 0x665d06c8
add dword [edi], 1
mov edi, dword [esp + 0x34]
mov dword [esp + 4], eax
mov edx, 0x2a
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x60]
mov edx, eax
mov dword [esp], 0xfffffffa
mov eax, edi
call sym._sqlite3VdbeChangeP4
mov eax, edi
mov edi, dword [edi + 0x20]
mov edx, 0x2b
mov dword [esp], 0
mov dword [esp + 0x34], eax
lea ecx, [edi + 1]
mov dword [esp + 4], ecx
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCodeMove
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
mov edx, 0x11
mov dword [esp + 4], 0
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov edx, 0x89
mov dword [esp + 4], 0
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x34]
mov edx, 0x11
mov dword [esp + 4], 0
mov dword [esp], ecx
mov ecx, dword [esp + 0x70]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x20]
cmp edi, edx
jae 0x665d07ad
imul eax, edi, 0x14
add eax, dword [ecx + 4]
mov dword [eax + 8], edx
mov edi, dword [esp + 0x34]
sub edx, 1
mov eax, dword [edi + 0x18]
mov dword [eax + 0x58], edx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xe0]
call sym._updateAccumulator
mov eax, dword [esp + 0x64]
mov dword [esp + 4], 0
mov ecx, 1
mov edx, 0x19
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
cmp dword [esp + 0x40], 0
je 0x665d0a51
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xe4]
mov edx, 5
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov edx, 0x11
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov edx, dword [esp + 0x4c]
xor ecx, ecx
mov dword [esp + 4], 0
mov eax, edi
mov dword [esp], edx
mov edx, 0x10
call sym._sqlite3VdbeAddOp3
mov edx, dword [edi + 0x20]
mov ecx, 1
mov eax, edi
mov dword [esp + 4], 0
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov edx, 0x19
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], 0
mov edx, 0x12
mov dword [esp], 0
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x6c]
mov eax, dword [edi + 0x18]
xor ecx, 0xffffffff
js 0x665d08b6
mov edx, dword [eax + 0x70]
test edx, edx
je 0x665d08b6
mov edi, dword [edi + 0x20]
mov dword [edx + ecx*4], edi
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x34], edi
lea edx, [ecx - 1]
mov ecx, dword [esp + 0x64]
mov dword [eax + 0x58], edx
mov edi, dword [edi + 0x20]
mov edx, 0x89
mov dword [esp + 4], 0
lea eax, [edi + 2]
add edi, 1
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov edx, 0x12
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0x10c]
mov eax, dword [eax + 8]
call sym._finalizeAggFunctions.isra.434
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp], 0x10
call sym._sqlite3ExprIfFalse
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x98]
mov dword [esp + 0x10], edi
mov dword [esp], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edx
lea edx, [esp + 0xa4]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
call sym._selectInnerLoop
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov edx, 0x12
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x74]
mov eax, dword [edi + 0x18]
xor ecx, 0xffffffff
js 0x665d09ba
mov edx, dword [eax + 0x70]
test edx, edx
je 0x665d09ba
mov edi, dword [edi + 0x20]
mov dword [edx + ecx*4], edi
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x20]
lea edx, [ecx - 1]
mov dword [esp + 0x38], ecx
mov dword [eax + 0x58], edx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xe0]
call sym._resetAccumulator
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], 0
mov edx, 0x12
mov dword [esp], 0
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
xor ecx, 0xffffffff
mov edx, dword [edi + 0x18]
js 0x665d0a17
mov eax, dword [edx + 0x70]
test eax, eax
je 0x665d0a17
mov edi, dword [edi + 0x20]
mov dword [eax + ecx*4], edi
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x38], eax
sub eax, 1
mov dword [edx + 0x58], eax
jmp 0x665cf5eb
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
add eax, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
mov dword [edi + 0x48], eax
jmp 0x665cfed0
call sym._explainTempTable.part.435
jmp 0x665cf62f
mov eax, dword [esp + 0x7c]
call sym._sqlite3WhereEnd
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x84]
cmp edi, dword [eax + 0x20]
jge 0x665d0817
mov edx, edi
call sym._sqlite3VdbeChangeToNoop.part.291
jmp 0x665d0817
mov edi, dword [esp + 0x2c]
sub eax, 1
mov byte [edi + 0x13], al
movzx eax, al
mov edi, dword [edi + eax*4 + 0x18]
jmp 0x665d0581
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x48], eax
jmp 0x665d060d
mov edi, dword [esp + 0x2c]
sub eax, 1
mov byte [edi + 0x13], al
movzx eax, al
mov edi, dword [edi + eax*4 + 0x18]
jmp 0x665d04cc
mov edx, dword [esp + 0xa4]
or ecx, 0xffffffff
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
xor eax, eax
lea edi, [esp + 0xc0]
call sym._sqlite3ExprListCompare
test eax, eax
sete al
movzx eax, al
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov ecx, 8
mov dword [esp + 0x40], edi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0xe0]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc0], eax
mov eax, dword [eax + 0x48]
mov dword [esp + 0x5c], eax
add eax, 1
mov dword [esp + 0xf0], eax
jmp 0x665cfb98
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x24], 0
jne 0x665d0f26
mov ecx, dword [eax]
cmp dword [ecx], 1
jne 0x665d0f26
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jne 0x665d0f26
cmp dword [eax + 0x1c], 0
jne 0x665d0f26
mov edi, dword [eax + 0x18]
test byte [edi + 0x2a], 0x10
jne 0x665d0f26
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp byte [eax], 0x9b
jne 0x665d0f26
test edx, edx
je 0x665d0f26
mov ecx, dword [esp + 0x108]
mov ecx, dword [ecx + 4]
test byte [ecx + 3], 1
je 0x665d0f26
test byte [eax + 4], 0x10
jne 0x665d0f26
mov edx, dword [edi + 0x40]
mov eax, dword [esp + 0x2c]
test edx, edx
mov eax, dword [eax]
je 0x665d1157
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x665d114a
mov eax, dword [eax + 0x10]
cmp edx, dword [eax + 0xc]
je 0x665d114a
add eax, 0x1c
mov dword [esp + 0x38], 0
jmp 0x665d0bea
add eax, 0x10
cmp edx, dword [eax - 0x10]
je 0x665d0bf5
add dword [esp + 0x38], 1
cmp dword [esp + 0x38], ecx
jne 0x665d0be2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x40], eax
add eax, 1
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x48], eax
mov eax, ecx
call sym._sqlite3CodeVerifySchema
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esp + 0x38]
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
call sym._sqlite3TableLock
test byte [edi + 0x2a], 0x20
je 0x665d0c65
mov eax, dword [edi + 8]
test eax, eax
je 0x665d0c65
movzx edx, byte [eax + 0x34]
and edx, 3
cmp dl, 2
mov edx, eax
jne 0x665d0c5e
jmp 0x665d0c7a
movzx ecx, byte [edx + 0x34]
and ecx, 3
cmp cl, 2
je 0x665d0c7a
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x665d0c52
mov eax, dword [edi + 8]
xor edx, edx
mov dword [esp + 0x44], 0
test eax, eax
je 0x665d0e53
test byte [eax + 0x34], 4
jne 0x665d0c94
movzx ecx, word [eax + 0x2c]
cmp cx, word [edi + 0x28]
jge 0x665d0c94
cmp dword [eax + 0x24], 0
je 0x665d1012
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x665d0c7a
test edx, edx
mov dword [esp + 0x44], edx
je 0x665d0e53
mov ecx, dword [edx + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], ecx
call sym._sqlite3KeyInfoOfIndex
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 1
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov edx, 0x36
call sym._sqlite3VdbeAddOp4Int
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x665d0cff
mov eax, dword [esp + 0x34]
mov dword [esp], 0xfffffffa
or edx, 0xffffffff
call sym._sqlite3VdbeChangeP4
mov eax, dword [esp + 0x108]
mov dword [esp + 4], 0
mov edx, 0x32
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov edx, 0x3d
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1c2], 2
jne 0x665d0e4f
test byte [edi + 0x2a], 0x20
je 0x665d0d75
mov eax, dword [esp + 0x44]
movzx eax, byte [eax + 0x34]
mov byte [esp + 0x38], al
and eax, 3
cmp al, 2
je 0x665d0ed5
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov eax, str._USING_COVERING_INDEX
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov edi, dword [esp + 0x2c]
mov dword [esp + 4], str.SCAN_TABLE__s_s_s
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], eax
call sym._sqlite3MPrintf
mov dword [esp + 0x38], eax
mov eax, edi
mov edi, dword [edi + 8]
mov ecx, dword [eax + 0x1d0]
mov edx, 0x9d
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x38]
mov edx, eax
mov dword [esp], 0xffffffff
mov eax, edi
xor edi, edi
call sym._sqlite3VdbeChangeP4
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
mov dword [esp], 0x10
mov dword [esp + 0xa4], 0
call sym._sqlite3ExprIfFalse
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx]
call sym._selectInnerLoop
mov edx, edi
mov eax, ebx
call sym._sqlite3ExprListDelete
jmp 0x665d09fa
xor edi, edi
jmp 0x665d0de4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, 0x36
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp4Int
mov eax, dword [esp + 0x108]
mov dword [esp + 4], 0
mov edx, 0x32
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov edx, 0x3d
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1c2], 2
jne 0x665d0e4f
mov edx, 0x6661a381
mov eax, edx
jmp 0x665d0d80
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x48]
jmp 0x665d00f5
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
mov edx, 0x23
mov ecx, dword [edi + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0
call sym._sqlite3VdbeAddOp3
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCacheRemove
jmp 0x665cf831
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x2c], 0
je 0x665d10d3
mov byte [esp + 0x38], 0
xor edi, edi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xe0]
call sym._resetAccumulator
movzx eax, byte [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
call sym._sqlite3WhereBegin
test eax, eax
mov dword [esp + 0x38], eax
je 0x665d10c5
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xe0]
call sym._updateAccumulator
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x24], 0
jle 0x665d0fba
mov dword [esp + 4], 0
mov eax, dword [eax + 0x34]
xor ecx, ecx
mov edx, 0x10
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x38]
call sym._sqlite3WhereEnd
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0x10c]
mov eax, dword [eax + 8]
call sym._finalizeAggFunctions.isra.434
jmp 0x665d0de4
cmp dword [esp + 0x48], 0
jne 0x665d1022
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCacheClear
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x665d063e
test edx, edx
je 0x665d1092
cmp cx, word [edx + 0x2c]
cmovl edx, eax
jmp 0x665d0c94
test byte [ebx + 0x3c], 4
jne 0x665d0fe9
mov eax, dword [esp + 0x7c]
cmp byte [eax + 0x25], 0
je 0x665d0fe9
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xa4], 0
mov eax, dword [eax + 0x20]
cmp edx, eax
mov dword [esp + 0x48], eax
jge 0x665d0ff4
xor edi, edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x34]
call sym._sqlite3VdbeChangeToNoop.part.291
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
call sym._sqlite3ExprCacheClear
cmp dword [esp + 0x40], 0
je 0x665d063e
jmp 0x665d0616
mov edx, eax
jmp 0x665d0c94
mov dword [esp + 0x40], 1
jmp 0x665d1065
mov dword [ebx + 0x34], ebp
jmp 0x665cf279
cmp dword [esp + 0x40], 0
je 0x665cf147
jmp 0x665cf13d
mov edi, 1
jmp 0x665cefaf
mov edx, edi
mov eax, ebx
call sym._sqlite3ExprListDelete
jmp 0x665cefa0
sub edx, 1
jne 0x665d0f34
mov eax, dword [esp + 0x108]
mov eax, dword [eax]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x665d11b6
cmp dword [edi], 1
jne 0x665d0f34
mov edx, dword [edi + 4]
mov edx, dword [edx]
cmp byte [edx], 0x9c
jne 0x665d0f34
mov edx, dword [eax + 8]
test edx, edx
je 0x665d0f34
mov dword [esp + 0x38], edx
mov ecx, 0x6661c741
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x38]
movzx eax, byte [eax]
test al, al
je 0x665d11ae
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x66626580]
cmp byte [eax + 0x66626580], dl
jne 0x665d1164
add dword [esp + 0x38], 1
add ecx, 1
jmp 0x665d111f
mov dword [esp + 0x38], 0
jmp 0x665d0bf5
mov dword [esp + 0x38], 0xfff0bdc0
jmp 0x665d0bf5
mov edx, dword [esp + 0x40]
movzx ecx, byte [ecx]
movzx ecx, byte [ecx + 0x66626580]
cmp byte [eax + 0x66626580], cl
je 0x665d1219
mov eax, 0x6661c745
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x38]
movzx ecx, byte [ecx]
test cl, cl
je 0x665d11c0
movzx edx, byte [eax]
movzx edx, byte [edx + 0x66626580]
cmp byte [ecx + 0x66626580], dl
jne 0x665d11c2
add dword [esp + 0x38], 1
add eax, 1
jmp 0x665d1187
mov edx, dword [esp + 0x40]
xor eax, eax
jmp 0x665d1168
mov byte [esp + 0x38], 0
jmp 0x665d0f3b
xor ecx, ecx
movzx eax, byte [eax]
mov edx, 2
movzx eax, byte [eax + 0x66626580]
cmp byte [ecx + 0x66626580], al
jne 0x665d0f34
mov byte [esp + 0x38], dl
xor ecx, ecx
mov edx, edi
mov eax, ebx
call sym._sqlite3ExprListDup
test eax, eax
mov edi, eax
je 0x665d0f3b
cmp byte [ebx + 0x41], 0
jne 0x665d0f3b
cmp byte [esp + 0x38], 1
mov eax, dword [edi + 4]
setne byte [eax + 0xc]
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov byte [eax], 0x9a
jmp 0x665d0f3b
mov edx, 1
jmp 0x665d11dd
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x3c]
mov edx, dword [esi + 0xc]
imul ebx, ebp, 0x48
add ebx, dword [esp + 0x44]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, edi
call sym._sqlite3DbFree
mov edx, dword [esi + 0x10]
mov eax, edi
call sym._sqlite3DbFree
mov edx, dword [esi + 0x14]
mov eax, edi
call sym._sqlite3DbFree
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], 0
test eax, eax
je 0x665d129b
movzx edx, word [eax + 0x24]
cmp dx, 1
je 0x665d1506
sub edx, 1
mov word [eax + 0x24], dx
imul eax, ebp, 0x48
mov edi, dword [esp + 0x44]
mov dword [edi + eax + 0x18], 0
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x78], ebp
mov esi, eax
imul eax, ebp, 0x48
mov ebp, esi
add edi, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edi
mov esi, dword [ebp + 0x20]
mov eax, dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x20]
test eax, eax
mov dword [esp + 0x44], eax
je 0x665d1375
mov eax, dword [esp + 0x74]
movzx eax, byte [eax + 0x2c]
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x60]
cmp eax, 1
jle 0x665d1316
lea ecx, [eax - 1]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
add eax, 1
mov dword [esp], eax
mov eax, edi
call sym._sqlite3SrcListEnlarge
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x41], 0
mov dword [esp + 0x44], eax
jne 0x665cf340
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x6c]
lea edi, [esi + 8]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x58], edi
mov ebx, eax
add ebx, 0x48
mov edi, dword [esp + 0x64]
cmp dword [esp + 0x60], edi
jle 0x665d13a2
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx - 0xc]
lea edi, [ebx - 0x40]
call sym._sqlite3IdListDelete
mov eax, 0x12
mov esi, dword [esp + 0x58]
add dword [esp + 0x64], 1
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x58]
add dword [esp + 0x58], 0x48
mov eax, ecx
mov ecx, 0x12
rep stosd dword es:[edi], eax
jmp 0x665d1333
mov eax, dword [esp + 0x3c]
xor ecx, ecx
xor edx, edx
mov dword [esp], 0
call sym._sqlite3SrcListAppend
test eax, eax
mov dword [esp + 0x44], eax
mov dword [ebx + 0x20], eax
je 0x665cf340
mov byte [esp + 0x68], 0
jmp 0x665d12e0
movzx eax, byte [esp + 0x68]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x44], ebp
mov byte [edi + esi + 0x2c], al
mov edi, dword [ebx]
xor esi, esi
mov ebp, ebx
cmp esi, dword [edi]
jge 0x665d13f8
imul ebx, esi, 0x18
mov eax, dword [edi + 4]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x665d13f3
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x3c]
call sym._sqlite3DbStrDup
mov dword [esp + 0x58], eax
call sym._sqlite3Dequote
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x58]
mov dword [eax + ebx + 4], edx
add esi, 1
jmp 0x665d13c1
mov ebx, ebp
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx]
call sym._substExprList
cmp dword [esp + 0x40], 0
je 0x665d1449
mov eax, dword [ebp]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov edx, dword [ebx + 0x28]
mov ecx, esi
mov dword [esp], eax
mov eax, edi
call sym._substExprList
mov eax, dword [ebp]
mov edx, dword [ebx + 0x2c]
mov ecx, esi
mov dword [esp], eax
mov eax, edi
call sym._substExpr
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x665d1593
xor edx, edx
cmp edx, dword [eax]
jge 0x665cf28f
imul ecx, edx, 0x18
add ecx, dword [eax + 4]
add edx, 1
mov word [ecx + 0x14], 0
jmp 0x665d1456
mov eax, dword [esp + 0x80]
mov dword [esp + 0x40], eax
jmp 0x665cfeac
call sym._explainTempTable.part.435
jmp 0x665cfe6a
imul eax, ebp, 0x48
mov edx, dword [esp + 0x44]
test byte [edx + eax + 0x2c], 0x20
jne 0x665cedf2
cmp dword [edi + 0x34], 0
je 0x665cf196
cmp dword [edi + 0x30], 0
setne al
or al, byte [esp + 0x40]
jne 0x665cedf2
test cl, cl
jne 0x665cedf2
cmp dword [edx], 1
mov eax, edi
jne 0x665cedf2
test byte [eax + 6], 5
jne 0x665cedf2
mov edx, dword [eax + 0x34]
test edx, edx
je 0x665d14e4
cmp byte [eax + 4], 0x74
jne 0x665cedf2
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 0
jle 0x665cedf2
mov ecx, dword [edi]
mov eax, dword [eax]
mov eax, dword [eax]
cmp dword [ecx], eax
jne 0x665cedf2
test edx, edx
je 0x665d1529
mov eax, edx
jmp 0x665d14c9
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0x198]
test edx, edx
cmove edx, edi
mov ecx, dword [edx + 0x20c]
mov dword [eax + 0x44], ecx
mov dword [edx + 0x20c], eax
jmp 0x665d128c
mov eax, dword [esp + 0x58]
test eax, eax
je 0x665cf196
mov ecx, dword [eax]
xor eax, eax
mov dword [esp + 0x54], ecx
cmp eax, dword [esp + 0x54]
jge 0x665cf196
mov ecx, dword [esp + 0x58]
imul edx, eax, 0x18
add edx, dword [ecx + 4]
cmp word [edx + 0x14], 0
je 0x665cedf2
add eax, 1
jmp 0x665d153d
mov eax, dword [ebp]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov eax, edi
call sym._substExpr
mov ecx, esi
mov dword [ebx + 0x24], eax
mov edx, eax
mov eax, edi
call sym._sqlite3ExprAnd
mov dword [ebx + 0x24], eax
jmp 0x665cf316
xor esi, esi
jmp 0x665cf2b8
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x665cf299
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call sym._substExprList
jmp 0x665cf299