Function at 0x45df93
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 0x36], 0
jne 0x45dfc0
push str.cannot_VACUUM_from_within_a_transaction
push edi
mov edi, dword [ebp + 8]
call fcn.004261ea
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x45e2de
cmp dword [edi + 0x84], 1
jle 0x45dfd0
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x45dfad
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x1c], eax
and eax, 0xfffaffff
or eax, 0x100500
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x98]
and dword [edi + 0x98], 0
cmp byte [edi + 0x37], 2
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xe]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ebx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x45e02a
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
mov esi, edi
call fcn.0045dec4
mov esi, eax
mov eax, dword [edi + 0x14]
pop ecx
cmp eax, dword [ebp - 0x10]
jle 0x45e04e
mov edx, dword [edi + 0x10]
mov ecx, eax
add ecx, ecx
lea ecx, [edx + ecx*8 - 0x10]
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x45e28f
mov ecx, dword [edi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov dword [ebp - 8], eax
call fcn.004333fc
mov eax, ebx
call fcn.00430efc
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov esi, ebx
mov dword [ebp - 0x10], ecx
call fcn.00430f84
mov eax, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov esi, edi
call fcn.0045dec4
mov esi, eax
pop ecx
test esi, esi
jne 0x45e28f
mov eax, dword [ebp + 8]
push str.BEGIN_
mov esi, edi
call fcn.0045dec4
mov esi, eax
pop ecx
test esi, esi
jne 0x45e28f
push 2
push ebx
call fcn.00432af4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45e28f
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x45e0d7
and dword [edi + 0x40], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
xor esi, esi
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004326c9
add esp, 0xc
test eax, eax
jne 0x45e2e3
cmp dword [ebp - 0xc], esi
jne 0x45e115
mov eax, dword [edi + 0x40]
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004326c9
add esp, 0xc
test eax, eax
jne 0x45e2e3
cmp byte [edi + 0x38], 0
jne 0x45e2e3
mov al, byte [edi + 0x3a]
test al, al
js 0x45e12b
movsx eax, al
jmp 0x45e132
mov eax, ebx
call fcn.004327e4
push eax
mov eax, dword [ebp - 8]
call fcn.00432798
mov dword [esp], str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push dword [ebp + 8]
push edi
call fcn.0045df1e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e28f
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 8]
push edi
call fcn.0045df1e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e28f
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 8]
push edi
call fcn.0045df1e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e28f
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 dword [ebp + 8]
push edi
call fcn.0045df1e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e28f
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 8]
push edi
call fcn.0045df1e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e28f
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push dword [ebp + 8]
push edi
call fcn.0045df1e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e28f
mov eax, dword [ebp + 8]
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 esi, edi
call fcn.0045dec4
mov esi, eax
pop ecx
test esi, esi
jne 0x45e28f
mov dword [ebp - 0xc], esi
jmp 0x45e204
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [esi + 0x49974c]
push eax
mov eax, ebx
call fcn.00436724
movzx eax, byte [esi + 0x49974d]
add eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
push eax
movzx eax, byte [esi + 0x49974c]
push eax
call fcn.00436753
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x45e28c
add dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 8
jl 0x45e1fe
push dword [ebp - 4]
mov eax, ebx
call fcn.00438017
mov esi, eax
pop ecx
test esi, esi
jne 0x45e28c
mov eax, ebx
call fcn.004333fc
mov esi, eax
test esi, esi
jne 0x45e28c
mov eax, ebx
call fcn.004327e4
push eax
mov eax, dword [ebp - 4]
call fcn.00432798
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
pop ecx
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004326c9
add esp, 0xc
mov esi, eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x98], eax
push 1
or eax, 0xffffffff
push eax
push ebx
call fcn.004326c9
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov byte [edi + 0x36], 1
test ebx, ebx
je 0x45e2d5
push dword [ebx + 4]
call fcn.00432553
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
pop ecx
mov eax, edi
call fcn.0044ac7d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push 7
pop esi
jmp 0x45e28f