Function at 0x10090720
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x24]
xor ecx, ecx
mov al, byte [esi + 0x34]
mov dword [esp + 4], ecx
test al, al
jne 0x10090752
mov eax, dword [esp + 0x20]
push str.cannot_VACUUM_from_within_a_transaction
push esi
push eax
call fcn.1007a0e0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x18
ret
cmp dword [esi + 0x80], 1
jle 0x10090778
mov ecx, dword [esp + 0x20]
push str.cannot_VACUUM___SQL_statements_in_progress
push esi
push ecx
call fcn.1007a0e0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x44]
mov dword [esp + 0xc], eax
and eax, 0xfaffffff
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x48]
or eax, 0x10050000
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x94]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
push ebx
mov dword [esi + 0x94], ecx
push ebp
mov ebx, dword [eax + 4]
push edi
push ebx
mov dword [esp + 0x28], edx
call fcn.1006e750
push eax
call fcn.10077000
mov ecx, dword [esi + 0x14]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ecx
call fcn.100b4590
add esp, 0xc
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x100907e1
mov eax, str.ATTACH__AS_vacuum_db_
mov ebp, dword [esp + 0x2c]
push eax
push ebp
push esi
call fcn.10090cc0
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, ecx
jle 0x1009080d
mov ecx, dword [esi + 0x10]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x10], edx
test edi, edi
jne 0x10090a50
mov ecx, dword [esi + 0x10]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
push eax
mov dword [esp + 0x30], eax
call fcn.1008f690
push ebx
call fcn.10090ac0
push str.PRAGMA_vacuum_db.synchronousOFF
push ebp
push esi
mov dword [esp + 0x44], eax
call fcn.10090cc0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10090a50
push str.BEGIN_
push ebp
push esi
call fcn.10090cc0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
push 2
push ebx
call fcn.10073e80
mov edi, eax
add esp, 8
test edi, edi
jne 0x10090a50
push ebx
call fcn.1006e750
push eax
call fcn.100725f0
add esp, 8
cmp eax, 5
jne 0x10090891
mov dword [esi + 0x3c], edi
mov edx, dword [esp + 0x30]
push 0
push edx
push ebx
call fcn.1006ee40
mov edi, dword [esp + 0x38]
add esp, 4
push eax
push edi
call fcn.1006ea70
add esp, 0x10
test eax, eax
jne 0x10090a4b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100908db
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x3c]
push 0
push eax
push ecx
push edi
call fcn.1006ea70
add esp, 0x10
test eax, eax
jne 0x10090a4b
mov al, byte [esi + 0x36]
test al, al
jne 0x10090a4b
mov al, byte [esi + 0x38]
test al, al
jl 0x100908f2
movsx eax, al
jmp 0x100908fb
push ebx
call fcn.10090b60
add esp, 4
push eax
push edi
call fcn.10090af0
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.10090d70
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10090a50
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebp
push esi
call fcn.10090d70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
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.10090d70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
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.10090d70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebp
push esi
call fcn.10090d70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
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.10090d70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
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.10090cc0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10090a50
xor ebp, ebp
xor eax, eax
lea edx, [esp + 0x14]
mov al, byte [ebp + 0x100f95fc]
push edx
push eax
push ebx
call fcn.10076cf0
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov cl, byte [ebp + 0x100f95fd]
mov eax, dword [esp + 0x38]
add ecx, edx
xor edx, edx
mov dl, byte [ebp + 0x100f95fc]
push ecx
push edx
push eax
call fcn.10076d30
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x10090a50
add ebp, 2
cmp ebp, 8
jl 0x100909b3
mov ebp, dword [esp + 0x2c]
push ebp
push ebx
call fcn.10090bb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10090a50
push ebp
call fcn.1008f690
mov edi, eax
add esp, 4
test edi, edi
jne 0x10090a50
push ebp
call fcn.10090b60
push eax
push ebx
call fcn.10090af0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push 1
push ecx
push ebp
call fcn.1006ee40
add esp, 4
push eax
push ebx
call fcn.1006ea70
add esp, 0x10
mov edi, eax
jmp 0x10090a50
mov edi, 7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 1
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x94], edx
call fcn.1006ea70
mov ebx, dword [esp + 0x20]
xor ebp, ebp
add esp, 0x10
cmp ebx, ebp
mov byte [esi + 0x34], 1
je 0x10090a9e
mov eax, dword [ebx + 4]
push eax
call fcn.10078a60
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
push 0xffffffffffffffff
push esi
call fcn.1008c520
add esp, 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret