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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x34], edx
mov dword [eax], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x665ef4f6
mov dword [esp], eax
call dword [0x666191d4]
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov edx, 0x1c
call sym._sqlite3DbMallocZero
test eax, eax
mov dword [esp + 0x24], eax
je 0x665efae9
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov edx, 0x218
call sym._sqlite3DbMallocRaw
test eax, eax
mov esi, eax
mov dword [esp + 0x18], eax
je 0x665efb2a
mov edi, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
test edi, edi
setne al
mov dword [esp + 0x1c], eax
add eax, 2
mov dword [esp + 0x28], eax
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x3c], eax
mov eax, esi
add eax, 4
mov dword [esp + 0x38], eax
lea esi, [esi]
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0x214], 0
mov edi, dword [esp + 0x38]
mov ecx, esi
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x218
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x4c]
mov dword [esi], eax
call sym._sqlite3DbFree
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], 0
call sym._sqlite3BtreeEnterAll
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
xor edx, edx
mov dword [esp], eax
mov eax, esi
call sym._sqlite3LocateTable
test eax, eax
mov dword [esp + 0x14], eax
je 0x665ef611
movzx eax, byte [eax + 0x2a]
test al, 0x10
jne 0x665ef70b
test al, 0x20
jne 0x665ef6ea
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x665ef72c
mov eax, dword [esp + 0x78]
mov dword [esp + 4], str.cannot_open_view:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._sqlite3ErrorMsg
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
test eax, eax
je 0x665ef63b
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x4c]
call sym._sqlite3DbFree
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
call sym._sqlite3BtreeLeaveAll
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x665ef65c
call sym._sqlite3VdbeFinalize
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
call sym._sqlite3DbFree
mov edx, dword [esp + 0x4c]
mov ecx, 0
mov eax, 0x6661ac50
mov esi, dword [esp + 0x2c]
test edx, edx
mov dword [esp + 0xc], edx
cmove eax, ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sym._sqlite3ErrorWithMsg
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
call sym._sqlite3DbFree
mov ebx, dword [esp + 0x18]
mov eax, ebx
call sym._sqlite3ParserReset
mov eax, dword [esp + 0x70]
mov edx, ebx
call sym._sqlite3DbFree
mov eax, dword [esp + 0x70]
mov edx, esi
call sym._sqlite3ApiExit
mov esi, dword [esp + 0x70]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x665ef6e2
mov dword [esp + 0x10], eax
mov dword [esp], edx
call dword [0x666191dc]
mov eax, dword [esp + 0x10]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x78]
mov dword [esp + 4], str.cannot_open_table_without_rowid:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665ef611
mov eax, dword [esp + 0x78]
mov dword [esp + 4], str.cannot_open_virtual_table:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._sqlite3ErrorMsg
jmp 0x665ef611
movsx ebx, word [eax + 0x22]
test ebx, ebx
jle 0x665ef78e
mov esi, dword [eax + 4]
mov ebp, dword [esp + 0x7c]
xor edi, edi
lea esi, [esi]
mov dword [esp + 4], ebp
mov eax, dword [esi]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_stricmp
test eax, eax
je 0x665ef790
add edi, 1
add esi, 0x18
cmp ebx, edi
jne 0x665ef740
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x4c]
call sym._sqlite3DbFree
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], str.no_such_column:___s_
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sym._sqlite3MPrintf
mov dword [esp + 0x4c], eax
jmp 0x665ef63b
xor edi, edi
cmp ebx, edi
je 0x665ef75c
mov ebx, dword [esp + 0x88]
test ebx, ebx
je 0x665ef848
mov eax, dword [esp + 0x70]
test byte [eax + 0x1a], 8
je 0x665efa70
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov ebx, str.foreign_key
mov edx, dword [eax + 0x10]
test edx, edx
je 0x665efa70
mov esi, esi
lea edi, [edi]
mov ecx, dword [edx + 0x14]
xor eax, eax
test ecx, ecx
jle 0x665ef7ee
lea esi, [esi]
cmp dword [edx + eax*8 + 0x24], edi
cmove ebp, ebx
add eax, 1
cmp ecx, eax
jne 0x665ef7e0
mov edx, dword [edx + 4]
test edx, edx
jne 0x665ef7d0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x10], eax
je 0x665ef840
mov esi, str.indexed
lea esi, [esi]
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0x2e]
test ecx, ecx
je 0x665ef831
mov ebx, dword [eax + 4]
xor eax, eax
movsx edx, word [ebx + eax*2]
cmp edx, edi
cmove ebp, esi
add eax, 1
cmp eax, ecx
jne 0x665ef821
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x665ef810
test ebp, ebp
jne 0x665efb41
mov eax, dword [esp + 0x18]
call sym._sqlite3VdbeCreate
mov ebx, eax
mov eax, dword [esp + 0x24]
test ebx, ebx
mov dword [eax + 0x14], ebx
je 0x665ef9d6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x665efad1
mov esi, dword [esp + 0x70]
mov esi, dword [esi + 0x14]
test esi, esi
jle 0x665efadd
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x10]
cmp eax, dword [edx + 0xc]
je 0x665efadd
add edx, 0x1c
xor ecx, ecx
jmp 0x665ef8ac
add edx, 0x10
cmp eax, dword [edx - 0x10]
je 0x665efa8a
add ecx, 1
cmp ecx, esi
jne 0x665ef8a0
mov edx, 1
mov ecx, esi
shl edx, cl
mov ebp, edx
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [esp + 8], edx
mov eax, dword [eax]
mov edx, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, ebx
call sym._sqlite3VdbeAddOp4Int
mov eax, dword [ebx + 4]
test eax, eax
je 0x665ef8f2
mov edx, dword [ebx + 0x20]
lea edx, [edx + edx*4]
mov byte [eax + edx*4 - 0x11], 1
mov ecx, 0x66621c00
mov edx, 0xa
mov eax, ebx
call sym._sqlite3VdbeAddOpList.isra.445
or dword [ebx + 0x60], ebp
cmp esi, 1
je 0x665ef921
mov edx, dword [ebx]
mov eax, esi
shl eax, 4
add eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
cmp byte [eax + 9], 0
je 0x665ef921
or dword [ebx + 0x64], ebp
cmp dword [ebx + 0x20], 1
mov eax, dword [ebx + 4]
jbe 0x665ef94a
mov dword [eax + 0x18], esi
cmp dword [ebx + 0x20], 1
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x1c]
jbe 0x665ef94a
mov dword [eax + 0x1c], edx
cmp dword [ebx + 0x20], 1
jbe 0x665ef94a
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x14]
mov dword [esp], 0
mov edx, 1
mov ecx, dword [eax]
mov eax, ebx
call sym._sqlite3VdbeChangeP4
mov edx, 3
sub edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x20]
cmp edx, eax
jl 0x665efa9a
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jbe 0x665ef998
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
add eax, dword [ebx + 4]
mov edx, dword [edx + 0x1c]
mov dword [eax + 8], edx
cmp dword [ebx + 0x20], ecx
jbe 0x665ef998
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov eax, ebx
movsx ecx, word [esi + 0x22]
mov dword [esp], 0xfffffff2
add ecx, 1
call sym._sqlite3VdbeChangeP4
cmp dword [ebx + 0x20], 6
jbe 0x665ef9c8
movsx edx, word [esi + 0x22]
mov eax, dword [ebx + 4]
mov dword [eax + 0x80], edx
mov eax, dword [esp + 0x70]
cmp byte [eax + 0x41], 0
je 0x665efaa9
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], eax
call sym._sqlite3BtreeLeaveAll
mov eax, dword [esp + 0x70]
cmp byte [eax + 0x41], 0
jne 0x665ef64c
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], 1
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
lea eax, [esp + 0x4c]
mov edx, edi
mov ecx, ebp
mov dword [esp], eax
mov eax, esi
call sym._blobSeekToRow
add dword [esp + 0x20], 1
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x20]
cmp esi, 0x32
je 0x665efa4d
cmp eax, 0x11
je 0x665ef570
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x665ef64c
mov eax, dword [esp + 0x70]
cmp byte [eax + 0x41], 0
jne 0x665ef64c
jmp 0x665efafb
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x665ef804
jmp 0x665ef848
mov edx, 1
mov esi, ecx
shl edx, cl
mov ebp, edx
jmp 0x665ef8be
mov eax, ebx
call sym._sqlite3VdbeChangeToNoop.part.291
mov eax, dword [ebx + 0x20]
jmp 0x665ef977
mov edx, dword [esp + 0x18]
mov eax, ebx
mov dword [edx + 0x1b8], 1
mov dword [edx + 0x48], 1
mov dword [edx + 0x44], 1
call sym._sqlite3VdbeMakeReady
jmp 0x665ef9d6
xor ebp, ebp
mov esi, 0xfff0bdc0
jmp 0x665ef8be
mov ebp, 1
xor esi, esi
jmp 0x665ef8be
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], 0
cmp byte [eax + 0x41], 0
jne 0x665efb15
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [eax], esi
jmp 0x665ef669
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
jmp 0x665ef65c
mov eax, dword [esp + 0x70]
cmp byte [eax + 0x41], 0
je 0x665efafb
mov dword [esp + 0x2c], 0
jmp 0x665ef64c
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
call sym._sqlite3DbFree
mov dword [esp + 8], ebp
mov dword [esp + 4], str.cannot_open__s_column_for_writing
jmp 0x665ef779