Function at 0x4eed36
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x14], 0
push esi
mov esi, eax
cmp byte [esi + 0x1c], 0
push edi
jne 0x4eed62
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.004d5746
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ef054
cmp dword [esi + 0x8c], 1
jle 0x4eed72
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x4eed4f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x1c], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x98]
and dword [esi + 0x98], 0
cmp byte [esi + 0x1d], 2
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xe]
push ebx
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x4eedca
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
call fcn.004eec71
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
pop ecx
jle 0x4eedec
mov edx, dword [esi + 8]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 0x14], ecx
xor ebx, ebx
cmp edi, ebx
jne 0x4ef000
mov ecx, dword [esi + 8]
shl eax, 4
mov edi, dword [eax + ecx - 0xc]
mov eax, edi
mov dword [ebp - 0xc], edi
call fcn.004eb337
mov eax, dword [ebp - 4]
call fcn.004c02bf
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
je 0x4eee1d
mov dword [esi + 0x24], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
cmp byte [ecx + 5], 5
jne 0x4eee2e
mov dword [esi + 0x24], ebx
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x24]
push ebx
push dword [ebp - 0x10]
push edi
call fcn.004caafb
add esp, 0xc
test eax, eax
jne 0x4eeffd
cmp dword [ebp - 8], ebx
jne 0x4eee66
mov eax, dword [esi + 0x24]
push ebx
push dword [ebp - 0x10]
push edi
call fcn.004caafb
add esp, 0xc
test eax, eax
jne 0x4eeffd
cmp byte [esi + 0x1e], bl
jne 0x4eeffd
mov ebx, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebx
call fcn.004eec71
mov edi, eax
pop ecx
test edi, edi
jne 0x4ef000
mov al, byte [esi + 0x20]
test al, al
jl 0x4eee95
movsx eax, al
jmp 0x4eee9d
mov eax, dword [ebp - 4]
call fcn.004c0357
push eax
mov eax, dword [ebp - 0xc]
call fcn.004c030b
mov eax, ebx
mov dword [esp], str.BEGIN_EXCLUSIVE_
call fcn.004eec71
mov edi, eax
pop ecx
test edi, edi
jne 0x4ef000
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push ebx
mov eax, esi
call fcn.004eecc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4ef000
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebx
mov eax, esi
call fcn.004eecc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4ef000
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push ebx
mov eax, esi
call fcn.004eecc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4ef000
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
push ebx
mov eax, esi
call fcn.004eecc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4ef000
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebx
mov eax, esi
call fcn.004eecc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4ef000
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push ebx
mov eax, esi
call fcn.004eecc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4ef000
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov eax, ebx
call fcn.004eec71
mov edi, eax
pop ecx
test edi, edi
jne 0x4ef000
mov dword [ebp - 8], edi
jmp 0x4eef74
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [edi + 0x52e278]
push eax
mov eax, dword [ebp - 4]
call fcn.004c06ee
movzx eax, byte [edi + 0x52e279]
add eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
push eax
movzx eax, byte [edi + 0x52e278]
push eax
call fcn.004e4b2b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ef000
add dword [ebp - 8], 2
cmp dword [ebp - 8], 8
jl 0x4eef71
mov edi, dword [ebp - 4]
mov eax, ebx
call fcn.004eb798
mov edi, eax
test edi, edi
jne 0x4ef000
mov eax, ebx
call fcn.004eb337
mov edi, eax
test edi, edi
jne 0x4ef000
mov eax, ebx
call fcn.004c0357
push eax
mov eax, dword [ebp - 4]
call fcn.004c030b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004caafb
add esp, 0x10
mov edi, eax
jmp 0x4ef000
push 7
pop edi
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x98], eax
push 1
or eax, 0xffffffff
push eax
push dword [ebp - 4]
call fcn.004caafb
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + 0x1c], 1
test ebx, ebx
je 0x4ef047
mov eax, dword [ebx + 4]
call fcn.004ec53c
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
push 0xffffffffffffffff
mov ebx, esi
call fcn.004d7cfd
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret