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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + 6]
mov edx, eax
or edx, 0x10
mov word [edi + 6], dx
cmp byte [ecx + 0x41], 0
je 0x665e82b1
mov eax, 2
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [edi + 0x20]
test edx, edx
mov dword [esp + 0x3c], edx
je 0x665e8450
test al, 0x10
jne 0x665e8450
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa4]
mov eax, dword [eax]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa0]
cmp dword [eax + 8], 0x66585890
je 0x665e83e4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, edi
call sym._sqlite3SrcListAssignCursors
mov ebx, dword [edi]
lea edx, [edi + 8]
mov dword [esp + 0x50], edx
test ebx, ebx
jle 0x665e8516
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
test byte [eax + 0x28], 8
jne 0x665e84fc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x665e8415
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
test edx, edx
jne 0x665e8770
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 8]
test edi, edi
je 0x665e877b
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [eax + 0x214]
test eax, eax
mov dword [esp + 0x34], eax
je 0x665e8473
mov eax, dword [esp + 0x34]
xor esi, esi
mov ecx, dword [eax]
lea ebx, [eax + 8]
test ecx, ecx
mov dword [esp + 0x28], ecx
jg 0x665e83a3
jmp 0x665e8460
add esi, 1
add ebx, 0x10
cmp esi, dword [esp + 0x28]
je 0x665e8460
mov ebp, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], ebp
call sym.libsqlite3_0.dll_sqlite3_stricmp
test eax, eax
jne 0x665e8393
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x665e8640
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e82a1
mov edx, eax
mov eax, dword [edx + 0x38]
test eax, eax
jne 0x665e83e2
mov eax, dword [edx + 0x44]
test eax, eax
je 0x665e82f0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x214]
mov dword [eax + 4], edx
mov dword [ecx + 0x214], eax
mov byte [ecx + 0x1c1], 0
jmp 0x665e82f0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edx, dword [eax + 0xc]
jmp 0x665e8432
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x665e8430
mov eax, dword [ecx + 0x44]
mov dword [esp + 0xa4], ecx
test eax, eax
je 0x665e8450
mov eax, dword [eax + 4]
mov dword [edx + 0x214], eax
add esp, 0x8c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x34], eax
jne 0x665e837b
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
xor edx, edx
mov ecx, edi
call sym._sqlite3LocateTableItem
mov ebx, eax
test ebx, ebx
mov dword [edi + 0x10], ebx
je 0x665e82a1
movzx eax, word [ebx + 0x24]
cmp ax, 0xffff
je 0x665e900c
mov edi, dword [ebx + 0xc]
add eax, 1
mov word [ebx + 0x24], ax
test edi, edi
je 0x665e881a
mov eax, dword [esp + 0x38]
mov edx, ebx
call sym._sqlite3ViewGetColumnNames
test eax, eax
jne 0x665e82a1
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x44]
xor ecx, ecx
call sym._sqlite3SelectDup
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x14], eax
mov edx, eax
mov eax, dword [esp + 0xa0]
call sym._sqlite3WalkSelect
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
call sym._sqlite3IndexedByLookup
test eax, eax
jne 0x665e82a1
mov edx, dword [esp + 0x3c]
add dword [esp + 0x30], 1
mov eax, dword [esp + 0x30]
add dword [esp + 0x2c], 0x48
cmp dword [edx], eax
jg 0x665e8320
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x41], 0
jne 0x665e82a1
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
lea edx, [eax + 8]
lea ecx, [eax + 0x50]
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
jle 0x665e88d6
mov dword [esp + 0x2c], 1
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov esi, dword [edx + 0x10]
mov eax, dword [eax + 0x10]
test esi, esi
mov dword [esp + 0x40], eax
je 0x665e88ae
test eax, eax
je 0x665e88ae
mov eax, dword [esp + 0x48]
xor ecx, ecx
movzx eax, byte [eax + 0x24]
mov edi, eax
and edi, 0x20
setne cl
test al, 4
mov dword [esp + 0x4c], ecx
je 0x665e8d51
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x665e9140
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x665e9140
mov eax, dword [esp + 0xa4]
xor ebx, ebx
mov ebp, dword [esp + 0x40]
lea esi, [eax + 0x24]
mov eax, dword [esp + 0x40]
cmp word [eax + 0x22], 0
jg 0x665e85df
jmp 0x665e88ae
movsx eax, word [ebp + 0x22]
add ebx, 1
cmp ebx, eax
jge 0x665e8d51
mov edx, dword [ebp + 4]
lea eax, [ebx + ebx*2]
lea ecx, [esp + 0x74]
mov dword [esp], ecx
lea eax, [edx + eax*8]
lea edx, [esp + 0x78]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x30]
call sym._tableAndColumnIndex
test eax, eax
je 0x665e85d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call sym._addWhereTerm
jmp 0x665e85d0
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov edx, 0x48
mov edi, dword [eax]
mov eax, edi
call sym._sqlite3DbMallocZero
mov ebp, eax
mov eax, dword [esp + 0x2c]
test ebp, ebp
mov dword [eax + 0x10], ebp
je 0x665e82a1
mov edx, dword [ebx + 8]
mov eax, 1
mov word [ebp + 0x24], ax
mov eax, edi
call sym._sqlite3DbStrDup
or byte [ebp + 0x2a], 2
mov dword [ebp], eax
mov eax, 0xffffffff
mov edx, dword [ebx + 0x10]
mov word [ebp + 0x20], ax
mov eax, 0xc8
mov word [ebp + 0x26], ax
xor ecx, ecx
mov eax, edi
call sym._sqlite3SelectDup
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [edx + 0x14], eax
cmp byte [edi + 0x41], 0
jne 0x665e82a1
movzx eax, byte [eax + 4]
sub eax, 0x73
cmp al, 1
mov byte [esp + 0x48], al
jbe 0x665e8829
cmp word [ebp + 0x24], 2
ja 0x665e8fb8
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x14], str.circular_reference:__s
mov edi, dword [eax + 0x214]
mov dword [eax + 0x214], edx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xa0]
call sym._sqlite3WalkSelect
mov edx, dword [esp + 0x28]
jmp 0x665e8703
mov edx, eax
mov eax, dword [edx + 0x34]
test eax, eax
jne 0x665e8701
mov eax, dword [edx]
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x665e90ac
test eax, eax
je 0x665e8727
mov eax, dword [eax]
mov ecx, dword [edx]
cmp eax, ecx
jne 0x665e8f80
lea eax, [ebp + 4]
lea ecx, [ebp + 0x22]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
call sym._selectColumnsFromExprList.isra.412
cmp byte [esp + 0x48], 1
jbe 0x665e903b
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x14], 0
mov dword [eax + 0x214], edi
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x665e84e7
lea esi, [esi]
lea edi, [edi]
mov eax, dword [eax + 8]
test eax, eax
jne 0x665e8473
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0xa0]
mov ebx, dword [edi + 0x14]
mov edx, ebx
call sym._sqlite3WalkSelect
test eax, eax
jne 0x665e82a1
mov ebp, dword [esp + 0x44]
xor ecx, ecx
mov edx, 0x48
mov eax, ebp
call sym._sqlite3DbMallocZero
mov esi, eax
test esi, esi
mov dword [edi + 0x10], esi
je 0x665e82a1
mov eax, 1
mov word [esi + 0x24], ax
mov dword [esp + 8], esi
mov dword [esp + 4], str.sqlite_sq__p
mov dword [esp], ebp
call sym._sqlite3MPrintf
mov dword [esi], eax
jmp 0x665e87e2
mov ebx, eax
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x665e87e0
lea eax, [esi + 4]
lea ecx, [esi + 0x22]
mov ebp, 0xffffffff
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov edx, dword [ebx]
mov eax, dword [eax]
call sym._selectColumnsFromExprList.isra.412
mov eax, 0xc8
mov word [esi + 0x20], bp
or byte [esi + 0x2a], 2
mov word [esi + 0x26], ax
jmp 0x665e84e7
test byte [ebx + 0x2a], 0x10
je 0x665e84e7
jmp 0x665e84b1
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x665e8eb1
lea edx, [eax + 0xc]
xor edi, edi
mov dword [esp + 0x58], esi
jmp 0x665e885e
add edi, 1
add edx, 0x48
cmp edi, ecx
je 0x665e8ead
mov esi, dword [edx]
test esi, esi
jne 0x665e8850
mov eax, dword [edx + 4]
test eax, eax
je 0x665e8850
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 4], edx
call sym.libsqlite3_0.dll_sqlite3_stricmp
test eax, eax
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
jne 0x665e8850
mov esi, dword [esp + 0x4c]
lea eax, [edi + edi*8]
mov dword [edx + 0xc], ebp
or byte [esi + eax*8 + 0x30], 8
mov eax, dword [esp + 0x28]
add word [ebp + 0x24], 1
or word [eax + 6], 0x800
jmp 0x665e8850
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add dword [esp + 0x48], 0x48
add dword [esp + 0x58], 0x48
add dword [esp + 0x2c], 1
mov eax, dword [eax]
mov dword [esp + 0x28], eax
sub eax, 1
cmp eax, esi
jg 0x665e8551
mov eax, dword [esp + 0x54]
mov edi, dword [eax]
test edi, edi
jle 0x665e9107
mov eax, dword [esp + 0x54]
xor ebx, ebx
mov esi, dword [eax + 4]
mov ecx, dword [esi]
lea edx, [esi + 0x18]
movzx eax, byte [ecx]
cmp al, 0x74
jne 0x665e8917
jmp 0x665e8923
add ebx, 1
cmp ebx, edi
je 0x665e9107
mov ecx, dword [edx]
add edx, 0x18
movzx eax, byte [ecx]
cmp al, 0x74
je 0x665e8923
cmp al, 0x7a
jne 0x665e8900
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0x74
jne 0x665e8900
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x6c], 0
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
and eax, 0x60
mov dword [esp + 0x64], eax
jmp 0x665e89c0
cmp al, 0x7a
jne 0x665e8959
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0x74
je 0x665e9112
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov eax, dword [eax]
call sym._sqlite3ExprListAppend.isra.447
test eax, eax
mov ecx, eax
mov dword [esp + 0x40], eax
je 0x665e899c
mov eax, dword [eax]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x68]
lea eax, [eax + edx*8 - 0x18]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esp + 0x68]
mov dword [eax], 0
mov ecx, dword [esp + 0x54]
add dword [esp + 0x6c], 1
mov eax, dword [esp + 0x6c]
add dword [esp + 0x68], 0x18
cmp dword [ecx], eax
jle 0x665e90b3
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
movzx eax, byte [ecx]
cmp al, 0x74
jne 0x665e8949
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov eax, dword [eax]
test eax, eax
jle 0x665e9161
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], ecx
test eax, eax
mov dword [esp + 0x5c], eax
je 0x665e9001
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x41], 0
jne 0x665e8c99
mov eax, dword [esp + 0x48]
test eax, eax
je 0x665e8cd0
test byte [eax + 7], 2
je 0x665e8cd0
mov dword [esp + 0x58], 0
cmp word [edi + 0x22], 0
jle 0x665e8c7f
mov eax, dword [esp + 0x48]
test eax, eax
mov eax, dword [esp + 0x30]
setne dl
test eax, eax
setne al
xor ebp, ebp
and edx, eax
mov byte [esp + 0x28], dl
jmp 0x665e8ae5
test byte [esi + 0x17], 2
jne 0x665e8ad6
mov eax, dword [esp + 0x2c]
mov esi, dword [esi]
test eax, eax
jle 0x665e8b24
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x665e8b24
mov eax, dword [esp + 0x4c]
test byte [eax + 0x24], 4
je 0x665e8abc
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._tableAndColumnIndex
test eax, eax
jne 0x665e8ace
mov eax, dword [esp + 0x4c]
mov edx, esi
mov eax, dword [eax + 0x34]
call sym._sqlite3IdListIndex
test eax, eax
js 0x665e8b24
mov dword [esp + 0x34], 1
movsx eax, word [edi + 0x22]
add ebp, 1
cmp eax, ebp
jle 0x665e8c7f
lea ebx, [ebp + ebp*2]
mov esi, dword [edi + 4]
shl ebx, 3
add esi, ebx
cmp byte [esp + 0x28], 0
je 0x665e8a70
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx + 8]
mov dword [esp], 0
call sym._sqlite3MatchSpanName
test eax, eax
je 0x665e8ad6
jmp 0x665e8a70
mov eax, dword [esp + 0x44]
mov ecx, esi
mov edx, 0x1b
call sym._sqlite3Expr
cmp dword [esp + 0x64], 0x20
mov dword [esp + 0x34], eax
je 0x665e8ee3
mov eax, dword [esp + 0x3c]
cmp dword [eax], 1
jle 0x665e8bbe
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
mov edx, 0x1b
call sym._sqlite3Expr
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], edx
mov edx, 0x7a
call sym._sqlite3PExpr
mov edx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
test edx, edx
je 0x665e8bbe
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
mov edx, 0x1b
call sym._sqlite3Expr
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], edx
mov edx, 0x7a
call sym._sqlite3PExpr
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov eax, dword [eax]
call sym._sqlite3ExprListAppend.isra.447
test esi, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], esi
je 0x665e8d4a
cmp byte [esi], 0
je 0x665e8d4a
mov eax, esi
add eax, 1
cmp byte [eax], 0
jne 0x665e8bf4
sub eax, esi
and eax, 0x3fffffff
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x38]
mov dword [esp], 0
call sym._sqlite3ExprListSetName.isra.301
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x665e8c6d
mov edx, dword [esp + 0xa4]
test byte [edx + 7], 2
je 0x665e8c6d
mov eax, dword [ecx]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
lea ecx, [eax + edx*8 - 0x18]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
test eax, eax
je 0x665e9064
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x44]
call sym._sqlite3DbStrDup
mov ecx, dword [esp + 0x34]
mov dword [ecx + 8], eax
or byte [ecx + 0x10], 2
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x44]
call sym._sqlite3DbFree
jmp 0x665e8ace
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
add dword [esp + 0x4c], 0x48
cmp dword [ecx], eax
jg 0x665e89ff
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x665e89a6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x665e9161
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.no_such_table:__s
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e89a6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x665e8cec
mov edx, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.libsqlite3_0.dll_sqlite3_stricmp
test eax, eax
jne 0x665e8c7f
mov ebx, dword [edi + 0x40]
test ebx, ebx
je 0x665e8fec
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x665e919a
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x10]
xor eax, eax
cmp ebx, dword [esi + 0xc]
lea edx, [esi + 0x1c]
jne 0x665e8d2c
jmp 0x665e9193
add edx, 0x10
cmp ebx, dword [edx - 0x10]
je 0x665e8fe2
add eax, 1
cmp eax, ecx
jne 0x665e8d20
shl ecx, 4
mov eax, dword [esi + ecx]
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], eax
jmp 0x665e8a48
xor eax, eax
jmp 0x665e8c03
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x665e9130
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x34]
test ecx, ecx
jne 0x665e917a
mov ecx, edi
test cl, cl
jne 0x665e9098
mov ecx, eax
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x38]
mov edx, dword [edx + 0x24]
mov eax, dword [eax]
call sym._sqlite3ExprAnd
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 0x30], 0
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x34]
test edx, edx
je 0x665e88ae
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], 0
mov eax, dword [eax + 4]
test eax, eax
jle 0x665e88ae
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
mov edi, dword [eax + edx*8]
mov eax, dword [esp + 0x40]
movsx esi, word [eax + 0x22]
mov edx, dword [eax + 4]
test esi, esi
jle 0x665e8e90
mov ebp, edx
xor ebx, ebx
jmp 0x665e8e03
add ebx, 1
add ebp, 0x18
cmp esi, ebx
je 0x665e8e90
mov dword [esp + 4], edi
mov eax, dword [ebp]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_stricmp
test eax, eax
jne 0x665e8df5
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 4], eax
lea eax, [esp + 0x74]
mov esi, edx
mov dword [esp], eax
mov eax, dword [esp + 0x30]
call sym._tableAndColumnIndex
test eax, eax
je 0x665e8e90
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ebx
add eax, 0x24
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call sym._addWhereTerm
mov edx, dword [esp + 0x34]
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
cmp eax, dword [edx + 4]
jl 0x665e8dcf
jmp 0x665e88b2
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], str.cannot_join_using_column__s___column_not_present_in_both_tables
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e82a1
mov esi, dword [esp + 0x58]
cmp word [ebp + 0x24], 2
ja 0x665e8fb8
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x14], str.circular_reference:__s
mov edi, dword [eax + 0x214]
mov dword [eax + 0x214], edx
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x34]
jmp 0x665e86ef
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
mov edx, 0x1b
call sym._sqlite3Expr
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], 0
mov edx, 0x7a
mov dword [esp], ecx
mov ecx, eax
mov eax, dword [esp + 0x38]
call sym._sqlite3PExpr
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x665e8f55
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
mov edx, 0x1b
call sym._sqlite3Expr
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], edx
mov edx, 0x7a
call sym._sqlite3PExpr
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str._s._s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._sqlite3MPrintf
mov esi, eax
mov dword [esp + 0x60], eax
jmp 0x665e8bc6
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, esi
shl eax, 4
mov esi, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov eax, dword [edx + eax + 8]
mov dword [esp + 4], str.table__s_has__d_values_for__d_columns
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sqlite3ErrorMsg
mov dword [esi + 0x214], edi
jmp 0x665e82a1
mov ecx, dword [esp + 0x34]
mov eax, esi
shl eax, 4
mov eax, dword [ecx + eax + 8]
mov dword [esp + 4], str.multiple_references_to_recursive_table:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e82a1
test eax, eax
mov ecx, eax
jns 0x665e8d33
mov dword [esp + 0x58], 0x6661ab4c
mov dword [esp + 0x48], 0
jmp 0x665e8a48
mov eax, dword [edi]
mov dword [esp + 0x5c], eax
jmp 0x665e8a1c
mov eax, dword [ebx]
mov dword [esp + 4], str.too_many_references_to___s_:_max_65535
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym._sqlite3ErrorMsg
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x10], 0
mov eax, 2
jmp 0x665e82a6
mov edx, dword [esp + 0x28]
mov ecx, str.recursive_reference_in_a_subquery:__s
mov eax, str.multiple_recursive_references:__s
test byte [edx + 7], 8
cmove eax, ecx
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0xa0]
call sym._sqlite3WalkSelect
jmp 0x665e8746
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], esi
mov dword [esp + 4], str._s._s._s
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._sqlite3MPrintf
mov ecx, dword [esp + 0x34]
mov dword [ecx + 8], eax
jmp 0x665e8c69
mov edi, dword [esp + 0x48]
mov edx, dword [edi + 0x2c]
call sym._setJoinExpr
mov eax, dword [edi + 0x30]
jmp 0x665e8d79
mov edx, eax
jmp 0x665e8727
mov eax, dword [esp + 0x44]
mov edx, ecx
call sym._sqlite3ExprListDelete
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x40]
mov dword [edx], eax
mov edx, eax
xor eax, eax
test edx, edx
je 0x665e82a6
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x60]
cmp dword [edx], ecx
jle 0x665e82a6
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.too_many_columns_in_result_set
mov dword [esp], eax
call sym._sqlite3ErrorMsg
mov eax, dword [esp + 0x28]
jmp 0x665e82a6
mov eax, dword [esp + 0xa4]
mov edx, dword [eax]
jmp 0x665e90cd
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
test eax, eax
jg 0x665e89e7
jmp 0x665e8ca5
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
jmp 0x665e8dac
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e82a1
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.no_tables_specified
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e89a6
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.cannot_have_both_ON_and_USING_clauses_in_the_same_join
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665e82a1
xor ecx, ecx
jmp 0x665e8d36
mov esi, dword [eax + 0x10]
xor ecx, ecx
jmp 0x665e8d36