Function at 0x42d8a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x24]
xor ecx, ecx
mov al, byte [esi + 0x1c]
mov dword [esp + 4], ecx
test al, al
jne 0x42d8d2
mov eax, dword [esp + 0x20]
push str.cannot_VACUUM_from_within_a_transaction
push esi
push eax
call fcn.004185f0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x18
ret
cmp dword [esi + 0x8c], 1
jle 0x42d8f8
mov ecx, dword [esp + 0x20]
push str.cannot_VACUUM___SQL_statements_in_progress
push esi
push ecx
call fcn.004185f0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
and eax, 0xfaffffff
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x40]
or eax, 0x10050000
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x98]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push ebx
mov dword [esi + 0x98], ecx
push ebp
mov ebx, dword [eax + 4]
push edi
push ebx
mov dword [esp + 0x28], edx
call fcn.0040d160
push eax
call fcn.00415560
mov ecx, dword [esi + 4]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ecx
call fcn.00450580
add esp, 0xc
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x42d961
mov eax, str.ATTACH__AS_vacuum_db_
mov ebp, dword [esp + 0x2c]
push eax
push ebp
push esi
call fcn.0042dda0
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, ecx
jle 0x42d98d
mov ecx, dword [esi + 8]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x10], edx
test edi, edi
jne 0x42dbbf
mov ecx, dword [esi + 8]
shl eax, 4
mov edi, dword [eax + ecx - 0xc]
push edi
mov dword [esp + 0x30], edi
call fcn.0042c810
push ebx
call fcn.0042dc30
push ebx
mov dword [esp + 0x3c], eax
call fcn.0040d160
push eax
call fcn.00410f20
add esp, 0x10
cmp eax, 5
jne 0x42d9ce
mov dword [esi + 0x24], 0
mov edx, dword [esp + 0x30]
push 0
push edx
push ebx
call fcn.0040d840
add esp, 4
push eax
push edi
call fcn.0040d490
add esp, 0x10
test eax, eax
jne 0x42dbba
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42da14
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x24]
push 0
push eax
push ecx
push edi
call fcn.0040d490
add esp, 0x10
test eax, eax
jne 0x42dbba
mov al, byte [esi + 0x1e]
test al, al
jne 0x42dbba
push str.PRAGMA_vacuum_db.synchronousOFF
push ebp
push esi
call fcn.0042dda0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
mov al, byte [esi + 0x20]
test al, al
jl 0x42da44
movsx eax, al
jmp 0x42da4d
push ebx
call fcn.0042dcd0
add esp, 4
mov edx, dword [esp + 0x2c]
push eax
push edx
call fcn.0042dc60
push str.BEGIN_EXCLUSIVE_
push ebp
push esi
call fcn.0042dda0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x42dbbf
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push ebp
push esi
call fcn.0042de50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebp
push esi
call fcn.0042de50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push ebp
push esi
call fcn.0042de50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
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 ebp
push esi
call fcn.0042de50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebp
push esi
call fcn.0042de50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push ebp
push esi
call fcn.0042de50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
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 ebp
push esi
call fcn.0042dda0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dbbf
xor ebp, ebp
xor ecx, ecx
lea eax, [esp + 0x14]
mov cl, byte [ebp + 0x4672ec]
push eax
push ecx
push ebx
call fcn.004152d0
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dl, byte [ebp + 0x4672ed]
xor eax, eax
mov al, byte [ebp + 0x4672ec]
add edx, ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
call fcn.00415310
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x42dbbf
add ebp, 2
cmp ebp, 8
jl 0x42db22
mov ebp, dword [esp + 0x2c]
push ebp
push ebx
call fcn.0042dd20
mov edi, eax
add esp, 8
test edi, edi
jne 0x42dbbf
push ebp
call fcn.0042c810
mov edi, eax
add esp, 4
test edi, edi
jne 0x42dbbf
push ebp
call fcn.0042dcd0
push eax
push ebx
call fcn.0042dc60
mov edx, dword [esp + 0x3c]
add esp, 0xc
push 1
push edx
push ebp
call fcn.0040d840
add esp, 4
push eax
push ebx
call fcn.0040d490
add esp, 0x10
mov edi, eax
jmp 0x42dbbf
mov edi, 7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 1
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x98], eax
call fcn.0040d490
mov ebx, dword [esp + 0x20]
xor ebp, ebp
add esp, 0x10
cmp ebx, ebp
mov byte [esi + 0x1c], 1
je 0x42dc0d
mov ecx, dword [ebx + 4]
push ecx
call fcn.00416fd0
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
push 0xffffffffffffffff
push esi
call fcn.004296f0
add esp, 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret