Function at 0x6015f0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
xor ecx, ecx
push edi
mov ebx, eax
mov dword [esp + 0x10], ecx
cmp byte [ebp + 0x36], cl
jne 0x601624
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
mov edi, ebx
call fcn.005e3070
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
cmp dword [ebp + 0x84], 1
jle 0x601634
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x60160c
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x18], eax
and eax, 0xfffaffff
or eax, 0x100500
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x98]
mov dword [ebp + 0x98], ecx
mov edi, dword [eax + 4]
mov eax, edi
mov dword [esp + 0x24], edx
call fcn.005cf840
call fcn.005ce0f0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.005d4860
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x601698
mov eax, str.ATTACH__AS_vacuum_db_
push esi
mov ecx, ebx
mov edx, ebp
call fcn.00601500
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esp + 0x30]
jle 0x6016bd
mov ecx, dword [ebp + 0x10]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x14], edx
test esi, esi
jne 0x6018f6
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
mov dword [esp + 0x30], eax
call fcn.005faa40
mov eax, edi
call fcn.005cf3f0
mov dword [esp + 0x10], eax
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, ebx
mov edx, ebp
call fcn.00601500
mov esi, eax
test esi, esi
jne 0x6018f6
mov eax, str.BEGIN_
mov ecx, ebx
mov edx, ebp
call fcn.00601500
mov esi, eax
test esi, esi
jne 0x6018f6
push 2
push edi
call fcn.005fa3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6018f6
mov eax, edi
call fcn.005cf840
call fcn.005ce180
cmp eax, 5
jne 0x60173c
mov dword [ebp + 0x40], esi
mov edx, dword [esp + 0x10]
push 0
push edx
mov eax, edi
call fcn.005cf3e0
mov esi, dword [esp + 0x38]
push esi
call fcn.005d79a0
add esp, 0xc
test eax, eax
jne 0x6018f1
cmp dword [esp + 0x18], eax
jne 0x60177f
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 0x40]
push esi
call fcn.005d79a0
add esp, 0xc
test eax, eax
jne 0x6018f1
cmp byte [ebp + 0x38], 0
jne 0x6018f1
mov al, byte [ebp + 0x3a]
test al, al
jl 0x601795
movsx eax, al
jmp 0x60179c
mov eax, edi
call fcn.005cf4f0
push eax
mov eax, esi
call fcn.005cf490
push ebx
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov eax, ebp
call fcn.00601570
mov esi, eax
add esp, 8
test esi, esi
jne 0x6018f6
push ebx
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov eax, ebp
call fcn.00601570
mov esi, eax
add esp, 4
test esi, esi
jne 0x6018f6
push ebx
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov eax, ebp
call fcn.00601570
mov esi, eax
add esp, 4
test esi, esi
jne 0x6018f6
push ebx
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 eax, ebp
call fcn.00601570
mov esi, eax
add esp, 4
test esi, esi
jne 0x6018f6
push ebx
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov eax, ebp
call fcn.00601570
mov esi, eax
add esp, 4
test esi, esi
jne 0x6018f6
push ebx
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov eax, ebp
call fcn.00601570
mov esi, eax
add esp, 4
test esi, esi
jne 0x6018f6
mov eax, 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 ecx, ebx
mov edx, ebp
call fcn.00601500
mov esi, eax
test esi, esi
jne 0x6018f6
xor ebx, ebx
lea ebx, [ebx]
movzx edx, byte [ebx + 0x7ce26c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov eax, edi
call fcn.005cf810
movzx eax, byte [ebx + 0x7ce26d]
add eax, dword [esp + 0x20]
movzx ecx, byte [ebx + 0x7ce26c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
call fcn.005e9eb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6018f6
add ebx, 2
cmp ebx, 8
jl 0x601860
mov esi, dword [esp + 0x30]
mov ebx, edi
call fcn.005ff4b0
mov esi, eax
test esi, esi
jne 0x6018f6
mov ebx, dword [esp + 0x30]
mov eax, ebx
call fcn.005faa40
mov esi, eax
test esi, esi
jne 0x6018f6
mov eax, ebx
call fcn.005cf4f0
push eax
mov eax, edi
call fcn.005cf490
mov edx, dword [esp + 0x14]
add esp, 4
push 1
push edx
mov eax, ebx
call fcn.005cf3e0
push edi
call fcn.005d79a0
add esp, 0xc
mov esi, eax
jmp 0x6018f6
mov esi, 7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x28]
push 1
mov dword [ebp + 0x98], eax
push 0xffffffffffffffff
push edi
or eax, 0xffffffff
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], edx
call fcn.005d79a0
mov edi, dword [esp + 0x20]
xor ebx, ebx
add esp, 0xc
mov byte [ebp + 0x36], 1
cmp edi, ebx
je 0x601945
mov ecx, dword [edi + 4]
push ecx
call fcn.005fd640
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, ebp
call fcn.005e5e30
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret