Function at 0x4cffe4
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffcc
mov ebx, edx
mov ebp, eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp byte [ebx + 0x1c], 0
jne 0x4d0014
push str.cannot_VACUUM_from_within_a_transaction
push ebx
push ebp
call fcn.004de418
add esp, 0xc
mov eax, 1
jmp 0x4d0357
cmp dword [ebx + 0x8c], 1
jle 0x4d0036
push str.cannot_VACUUM___SQL_statements_in_progress
push ebx
push ebp
call fcn.004de418
add esp, 0xc
mov eax, 1
jmp 0x4d0357
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], edx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + 0x98]
mov dword [esp + 0x10], eax
or dword [ebx + 0xc], 0x10050000
and dword [ebx + 0xc], 0xfaffffff
xor edx, edx
mov dword [ebx + 0x98], edx
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + 4]
mov eax, edi
call fcn.004c5340
call fcn.004d6218
mov dword [esp + 0x18], eax
mov eax, ebx
mov edx, dword [ebx + 4]
mov dword [esp + 0x20], edx
call fcn.004aef20
test eax, eax
je 0x4d009a
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jmp 0x4d009f
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, eax
mov edx, ebp
mov eax, ebx
call fcn.004cff04
mov esi, eax
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x20]
jle 0x4d00c4
mov edx, eax
shl edx, 4
add edx, dword [ebx + 8]
add edx, 0xfffffff0
mov dword [esp + 0x14], edx
test esi, esi
jne 0x4d02f4
shl eax, 4
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx + eax - 0xc]
mov dword [esp], ecx
mov eax, dword [esp]
call fcn.004c1320
mov eax, edi
call fcn.004c049c
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x24], 0
je 0x4d0110
lea edx, [esp + 0x24]
mov eax, ebx
push edx
xor edx, edx
lea ecx, [esp + 0x2c]
call fcn.004b151c
cmp dword [esp + 0x24], 0
je 0x4d0110
xor ecx, ecx
mov dword [ebx + 0x24], ecx
mov eax, edi
call fcn.004c5340
call fcn.004d66cc
cmp eax, 5
jne 0x4d0126
xor edx, edx
mov dword [ebx + 0x24], edx
push 0
mov eax, edi
call fcn.004c0494
mov edx, eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 4]
call fcn.004c0400
test eax, eax
jne 0x4d0165
cmp dword [esp + 0x18], 0
jne 0x4d015f
push 0
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 4]
call fcn.004c0400
test eax, eax
jne 0x4d0165
cmp byte [ebx + 0x1e], 0
je 0x4d016f
mov esi, 7
jmp 0x4d02f4
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
mov edx, ebp
mov eax, ebx
call fcn.004cff04
mov esi, eax
test esi, esi
je 0x4d0188
jmp 0x4d02f4
cmp byte [ebx + 0x20], 0
jl 0x4d0194
movsx edx, byte [ebx + 0x20]
jmp 0x4d019d
mov eax, edi
call fcn.004c0588
mov edx, eax
mov eax, dword [esp]
call fcn.004c0524
mov ecx, str.BEGIN_EXCLUSIVE_
mov edx, ebp
mov eax, ebx
call fcn.004cff04
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov edx, ebp
mov eax, ebx
call fcn.004cff60
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov edx, ebp
mov eax, ebx
call fcn.004cff60
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov edx, ebp
mov eax, ebx
call fcn.004cff60
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, 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
mov edx, ebp
mov eax, ebx
call fcn.004cff60
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov edx, ebp
mov eax, ebx
call fcn.004cff60
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov edx, ebp
mov eax, ebx
call fcn.004cff60
mov esi, eax
test esi, esi
jne 0x4d02f4
mov ecx, 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 edx, ebp
mov eax, ebx
call fcn.004cff04
mov esi, eax
test esi, esi
jne 0x4d02f4
xor eax, eax
mov ebp, 0x5d94a4
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x2c]
xor edx, edx
mov dl, byte [ebp]
mov eax, edi
call fcn.004c5190
xor ecx, ecx
mov eax, dword [esp]
mov cl, byte [ebp + 1]
add ecx, dword [esp + 0x2c]
xor edx, edx
mov dl, byte [ebp]
call fcn.004c51c8
mov esi, eax
test esi, esi
jne 0x4d02f4
add dword [esp + 0x30], 2
add ebp, 2
cmp dword [esp + 0x30], 8
jl 0x4d0270
mov edx, dword [esp]
mov eax, edi
call fcn.004d0ca8
mov esi, eax
test esi, esi
jne 0x4d02f4
mov eax, dword [esp]
call fcn.004c1320
mov esi, eax
test esi, esi
jne 0x4d02f4
mov eax, dword [esp]
call fcn.004c0588
mov edx, eax
mov eax, edi
call fcn.004c0524
push 1
mov eax, dword [esp + 4]
call fcn.004c0494
mov edx, eax
mov ecx, dword [esp + 0x20]
mov eax, edi
call fcn.004c0400
mov esi, eax
mov eax, dword [esp + 4]
mov dword [ebx + 0xc], eax
mov edx, dword [esp + 8]
mov dword [ebx + 0x3c], edx
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x98], ecx
push 1
or ecx, 0xffffffff
or edx, 0xffffffff
mov eax, edi
call fcn.004c0400
mov byte [ebx + 0x1c], 1
cmp dword [esp + 0x14], 0
je 0x4d034b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
call fcn.004c02d8
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [edx + 4], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [edx + 0xc], ecx
or edx, 0xffffffff
mov eax, ebx
call fcn.00499d6c
mov eax, esi
add esp, 0x34
pop ebp
pop edi
pop esi
pop ebx
ret