Function at 0x100f3710
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor ecx, ecx
mov esi, eax
cmp byte [esi + 0x43], cl
push edi
mov dword [esp + 0x18], ecx
jne 0x100f373f
mov edi, dword [esp + 0x34]
mov ebx, str.cannot_VACUUM_from_within_a_transaction
call fcn.10099ca0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x98], 1
jle 0x100f3763
mov edi, dword [esp + 0x34]
mov ebx, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.10099ca0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x54]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x20], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [esi + 0x44], 2
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x58]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0xb4]
mov dword [esi + 0xb4], ecx
mov edi, dword [eax + 4]
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
movzx eax, byte [edx + 0xd]
mov dword [esp + 0x1c], eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x100f37bb
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, dword [esp + 0x34]
push esi
call fcn.100f35b0
mov ebp, eax
mov eax, dword [esi + 0x14]
add esp, 4
cmp eax, ebx
jle 0x100f37e1
mov edx, dword [esi + 0x10]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x100f3a34
mov edx, dword [esi + 0x10]
shl eax, 4
mov ebx, dword [eax + edx - 0xc]
mov eax, ebx
mov dword [esp + 0x10], ebx
call fcn.100adf70
mov eax, edi
call fcn.100acbe0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
push esi
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
call fcn.100f35b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov ecx, dword [esp + 0x34]
push esi
mov eax, str.BEGIN_
call fcn.100f35b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
push 2
push edi
call fcn.100ad240
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100f3a34
mov eax, dword [edi + 4]
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x100f3864
mov dword [esi + 0x4c], ebp
mov edx, dword [edi + 4]
mov ebp, dword [esp + 0x14]
mov eax, dword [edx + 0x20]
push 0
push ebp
mov ecx, ebx
call fcn.100acb20
add esp, 8
test eax, eax
jne 0x100f3a2f
cmp dword [esp + 0x1c], eax
jne 0x100f38a0
push eax
mov eax, dword [esi + 0x4c]
push ebp
mov ecx, ebx
call fcn.100acb20
add esp, 8
test eax, eax
jne 0x100f3a2f
cmp byte [esi + 0x45], 0
jne 0x100f3a2f
mov al, byte [esi + 0x48]
test al, al
jl 0x100f38b6
movsx eax, al
jmp 0x100f38bd
mov eax, edi
call fcn.100acd50
push eax
mov eax, ebx
call fcn.100accd0
mov eax, dword [esp + 0x38]
add esp, 4
push eax
mov eax, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov ebx, esi
call fcn.100f3630
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov ecx, dword [esp + 0x34]
push ecx
mov eax, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.100f3630
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov edx, dword [esp + 0x34]
push edx
mov eax, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.100f3630
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov eax, dword [esp + 0x34]
or dword [esi + 0x18], 0x10000000
push eax
mov eax, 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_coalesce_rootpage_1__0
call fcn.100f3630
and dword [esi + 0x18], 0xefffffff
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov ecx, dword [esp + 0x34]
push ecx
mov eax, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.100f3630
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov edx, dword [esp + 0x34]
push edx
mov eax, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.100f3630
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
mov ecx, dword [esp + 0x34]
push esi
mov eax, 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_
call fcn.100f35b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100f3a34
xor ebx, ebx
movzx ecx, byte [ebx + 0x1011aecc]
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, edi
call fcn.100b3460
movzx edx, byte [ebx + 0x1011aecd]
add edx, dword [esp + 0x24]
movzx eax, byte [ebx + 0x1011aecc]
push edx
push eax
mov eax, dword [esp + 0x20]
call fcn.100b34c0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100f3a34
add ebx, 2
cmp ebx, 0xa
jl 0x100f399e
mov eax, dword [esp + 0x10]
mov ebx, edi
call fcn.100b5a30
mov ebp, eax
test ebp, ebp
jne 0x100f3a34
mov ebx, dword [esp + 0x10]
mov eax, ebx
call fcn.100adf70
mov ebp, eax
test ebp, ebp
jne 0x100f3a34
mov eax, ebx
call fcn.100acd50
push eax
mov eax, edi
call fcn.100accd0
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
add esp, 4
push 1
push edx
mov ecx, edi
call fcn.100acb20
add esp, 8
mov ebp, eax
jmp 0x100f3a34
mov ebp, 7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x54], ecx
mov dword [esi + 0xb4], eax
push 1
push 0xffffffffffffffff
or eax, 0xffffffff
mov ecx, edi
mov dword [esi + 0x58], edx
call fcn.100acb20
mov edi, dword [esp + 0x20]
xor ebx, ebx
add esp, 8
cmp edi, ebx
mov byte [esi + 0x43], 1
je 0x100f3a80
mov eax, dword [edi + 4]
call fcn.100ac8e0
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, esi
call fcn.100d2850
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret