Function at 0x42c87f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ecx, ecx
mov ebx, eax
cmp byte [ebx + 0x1c], cl
push esi
push edi
mov dword [ebp - 0xc], ecx
jne 0x42c8ac
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push ebx
call fcn.00416d22
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x42cb3e
cmp dword [ebx + 0x8c], 1
jle 0x42c8bc
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x42c899
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x3c]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
cmp byte [ebx + 0x1d], 2
mov dword [ebp - 0x1c], edx
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 0x98]
mov dword [ebx + 0x98], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], edx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x42c906
mov eax, str.ATTACH__AS_vacuum_db_
push eax
push dword [ebp + 8]
call fcn.0042bec0
mov edi, eax
mov eax, dword [ebx + 4]
cmp eax, esi
pop ecx
pop ecx
jle 0x42c929
mov edx, dword [ebx + 8]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 0xc], ecx
test edi, edi
jne 0x42caef
mov ecx, dword [ebx + 8]
shl eax, 4
mov esi, dword [eax + ecx - 0xc]
push esi
mov dword [ebp - 8], esi
call fcn.00427c21
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
mov edi, dword [eax + 0x20]
sub edi, dword [eax + 0x24]
mov eax, dword [eax]
cmp byte [eax + 5], 5
mov dword [ebp - 0x14], edi
jne 0x42c960
and dword [ebx + 0x24], 0
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x20]
push 0
push edi
mov eax, esi
call fcn.0041497b
test eax, eax
pop ecx
pop ecx
jne 0x42caec
mov ecx, dword [ebx + 0x24]
push eax
push edi
mov eax, esi
call fcn.0041497b
test eax, eax
pop ecx
pop ecx
jne 0x42caec
cmp byte [ebx + 0x1e], al
jne 0x42caec
mov esi, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
push esi
call fcn.0042bec0
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
push str.BEGIN_EXCLUSIVE_
push esi
call fcn.0042bec0
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push esi
mov eax, ebx
call fcn.0042c602
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
mov eax, ebx
call fcn.0042c602
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
mov eax, ebx
call fcn.0042c602
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
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 esi
mov eax, ebx
call fcn.0042c602
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
mov eax, ebx
call fcn.0042c602
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
mov eax, ebx
call fcn.0042c602
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
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_
push esi
call fcn.0042bec0
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
xor esi, esi
movzx edi, byte [esi + 0x455f6c]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040d05b
movzx eax, byte [esi + 0x455f6d]
add eax, dword [ebp - 0x10]
pop ecx
push eax
movzx eax, byte [esi + 0x455f6c]
push eax
mov eax, dword [ebp - 8]
call fcn.00420fea
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x42caef
inc esi
inc esi
cmp esi, 8
jl 0x42ca75
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, esi
call fcn.004292a8
mov edi, eax
test edi, edi
jne 0x42caef
push esi
call fcn.00427c21
mov edi, eax
test edi, edi
pop ecx
jne 0x42caef
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call fcn.0041497b
pop ecx
pop ecx
mov edi, eax
jmp 0x42caef
push 7
pop edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
mov dword [ebx + 0x98], eax
mov eax, dword [ebp - 4]
push 1
push ecx
call fcn.0041497b
mov esi, dword [ebp - 0xc]
test esi, esi
pop ecx
pop ecx
mov byte [ebx + 0x1c], 1
je 0x42cb35
mov eax, dword [esi + 4]
call fcn.00426a71
and dword [esi + 4], 0
and dword [esi + 0xc], 0
xor eax, eax
call fcn.004151bc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret