Function at 0x43ee00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0xc], 0
cmp byte [esi + 0x1c], 0
push ebx
push edi
jne 0x43ee2a
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.00417bb8
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x43f0c6
cmp dword [esi + 0x8c], 1
jle 0x43ee3a
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x43ee17
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], 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 dword [ebp - 0x24], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x43ee85
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0043ed38
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
pop ecx
jle 0x43eea9
mov edx, dword [esi + 8]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 0xc], ecx
test edi, edi
jne 0x43f075
mov ecx, dword [esi + 8]
shl eax, 4
mov ebx, dword [eax + ecx - 0xc]
push ebx
mov dword [ebp - 8], ebx
call fcn.00421590
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 0x43eee0
and dword [esi + 0x24], 0
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x20]
push 0
push edi
mov eax, ebx
call fcn.00421070
test eax, eax
pop ecx
pop ecx
jne 0x43f072
mov ecx, dword [esi + 0x24]
push eax
push edi
mov eax, ebx
call fcn.00421070
test eax, eax
pop ecx
pop ecx
jne 0x43f072
cmp byte [esi + 0x1e], al
jne 0x43f072
mov ebx, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebx
mov ecx, esi
call fcn.0043ed38
mov edi, eax
test edi, edi
pop ecx
jne 0x43f075
push str.BEGIN_EXCLUSIVE_
mov eax, ebx
mov ecx, esi
call fcn.0043ed38
mov edi, eax
test edi, edi
pop ecx
jne 0x43f075
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.0043ed93
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
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.0043ed93
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
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.0043ed93
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
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.0043ed93
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
mov eax, ebx
call fcn.0043ed93
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
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.0043ed93
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
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
mov ecx, esi
call fcn.0043ed38
mov edi, eax
test edi, edi
pop ecx
jne 0x43f075
xor ebx, ebx
movzx edi, byte [ebx + 0x4505c4]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00423d2d
movzx eax, byte [ebx + 0x4505c5]
add eax, dword [ebp - 0x10]
pop ecx
push eax
movzx eax, byte [ebx + 0x4505c4]
push eax
mov eax, dword [ebp - 8]
call fcn.00423d55
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43f075
inc ebx
inc ebx
cmp ebx, 8
jl 0x43effb
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
call fcn.00424499
mov edi, eax
test edi, edi
jne 0x43f075
push ebx
call fcn.00421590
mov edi, eax
test edi, edi
pop ecx
jne 0x43f075
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call fcn.00421070
pop ecx
pop ecx
mov edi, eax
jmp 0x43f075
push 7
pop edi
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
mov dword [esi + 0x98], eax
mov eax, dword [ebp - 4]
push 1
push ecx
call fcn.00421070
mov ebx, dword [ebp - 0xc]
test ebx, ebx
pop ecx
pop ecx
mov byte [esi + 0x1c], 1
je 0x43f0bb
mov eax, dword [ebx + 4]
call fcn.00421004
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
xor eax, eax
mov ebx, esi
call fcn.00431fe3
mov eax, edi
pop edi
pop ebx
leave
ret