Function at 0x100fd700
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, eax
cmp byte [edi + 0x43], cl
mov dword [esp + 0x18], ecx
jne 0x100fd731
mov esi, edi
mov edi, dword [esp + 0x34]
mov ebx, str.cannot_VACUUM_from_within_a_transaction
call fcn.100a4430
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [edi + 0x98], 1
jle 0x100fd757
mov esi, edi
mov edi, dword [esp + 0x34]
mov ebx, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.100a4430
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x54]
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x20], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [edi + 0x44], 2
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x58]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0xb4]
mov dword [edi + 0xb4], ecx
mov ebp, dword [eax + 4]
mov ecx, dword [ebp + 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 0x100fd7af
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, dword [esp + 0x34]
mov edx, edi
call fcn.100fd5a0
mov esi, eax
mov eax, dword [edi + 0x14]
cmp eax, ebx
jle 0x100fd7d3
mov edx, dword [edi + 0x10]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [esp + 0x18], ecx
test esi, esi
jne 0x100fd9f0
mov edx, dword [edi + 0x10]
shl eax, 4
mov ebx, dword [eax + edx - 0xc]
mov eax, ebx
mov dword [esp + 0x10], ebx
call fcn.100b8720
mov eax, ebp
call fcn.100b7350
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov edx, edi
call fcn.100fd5a0
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov ecx, dword [esp + 0x34]
mov eax, str.BEGIN_
mov edx, edi
call fcn.100fd5a0
mov esi, eax
test esi, esi
jne 0x100fd9f0
push 2
push ebp
call fcn.100b79d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100fd9f0
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x100fd852
mov dword [edi + 0x4c], esi
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x14]
mov eax, dword [edx + 0x20]
push 0
push esi
mov ecx, ebx
call fcn.100b7290
add esp, 8
test eax, eax
jne 0x100fd9eb
cmp dword [esp + 0x1c], eax
jne 0x100fd88e
push eax
mov eax, dword [edi + 0x4c]
push esi
mov ecx, ebx
call fcn.100b7290
add esp, 8
test eax, eax
jne 0x100fd9eb
cmp byte [edi + 0x45], 0
jne 0x100fd9eb
mov al, byte [edi + 0x48]
test al, al
jl 0x100fd8a4
movsx eax, al
jmp 0x100fd8ab
mov eax, ebp
call fcn.100b74c0
push eax
mov eax, ebx
call fcn.100b7440
mov ebx, dword [esp + 0x38]
add esp, 4
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.100fd620
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.100fd620
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.100fd620
mov esi, eax
test esi, esi
jne 0x100fd9f0
or dword [edi + 0x18], 0x10000000
mov ecx, 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.100fd620
and dword [edi + 0x18], 0xefffffff
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.100fd620
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.100fd620
mov esi, eax
test esi, esi
jne 0x100fd9f0
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_
mov ecx, ebx
mov edx, edi
call fcn.100fd5a0
mov esi, eax
test esi, esi
jne 0x100fd9f0
xor ebx, ebx
movzx ecx, byte [ebx + 0x10149234]
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, ebp
call fcn.100bd880
movzx edx, byte [ebx + 0x10149235]
add edx, dword [esp + 0x24]
movzx eax, byte [ebx + 0x10149234]
push edx
push eax
mov eax, dword [esp + 0x20]
call fcn.100bd8e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100fd9f0
add ebx, 2
cmp ebx, 0xa
jl 0x100fd95a
mov eax, dword [esp + 0x10]
mov ebx, ebp
call fcn.100bfdc0
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov ebx, dword [esp + 0x10]
mov eax, ebx
call fcn.100b8720
mov esi, eax
test esi, esi
jne 0x100fd9f0
mov eax, ebx
call fcn.100b74c0
push eax
mov eax, ebp
call fcn.100b7440
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
add esp, 4
push 1
push edx
mov ecx, ebp
call fcn.100b7290
add esp, 8
mov esi, eax
jmp 0x100fd9f0
mov esi, 7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x54], ecx
mov dword [edi + 0xb4], eax
push 1
push 0xffffffffffffffff
or eax, 0xffffffff
mov ecx, ebp
mov dword [edi + 0x58], edx
call fcn.100b7290
mov ebx, dword [esp + 0x20]
xor ebp, ebp
add esp, 8
cmp ebx, ebp
mov byte [edi + 0x43], 1
je 0x100fda3c
mov eax, dword [ebx + 4]
call fcn.100b7050
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
mov eax, edi
call fcn.100dc7d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret