Function at 0x10093d60
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ecx, ecx
push esi
push edi
mov edi, eax
mov dword [esp + 0x18], ecx
cmp byte [ebp + 0x3e], cl
jne 0x10093d94
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
call fcn.1003fff0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [ebp + 0x8c], 1
jle 0x10093db9
push str.cannot_VACUUM___SQL_statements_in_progress
mov eax, ebp
call fcn.1003fff0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x50]
mov dword [esp + 0x20], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [ebp + 0x3f], 2
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x54]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0xa4]
mov dword [ebp + 0xa4], ecx
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
movzx eax, byte [edx + 0xe]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x10093e19
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, edi
mov edx, ebp
call fcn.10093ab0
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esp + 0x14]
jle 0x10093e3d
mov ecx, dword [ebp + 0x10]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x18], edx
test esi, esi
jne 0x1009406a
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
mov dword [esp + 0x10], eax
call fcn.10053030
mov eax, ebx
call fcn.10051ad0
mov dword [esp + 0x14], eax
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, edi
mov edx, ebp
call fcn.10093ab0
mov esi, eax
test esi, esi
jne 0x1009406a
mov eax, str.BEGIN_
mov ecx, edi
mov edx, ebp
call fcn.10093ab0
mov esi, eax
test esi, esi
jne 0x1009406a
push 2
push ebx
call fcn.100520a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10093eb6
mov dword [ebp + 0x48], esi
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x10]
mov ecx, dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
push 0
mov edx, esi
call fcn.100519e0
add esp, 4
test eax, eax
jne 0x1009405f
cmp dword [esp + 0x1c], eax
jne 0x10093ef8
mov ecx, dword [ebp + 0x48]
push eax
mov eax, dword [esp + 0x18]
mov edx, esi
call fcn.100519e0
add esp, 4
test eax, eax
jne 0x1009405f
cmp byte [ebp + 0x40], 0
jne 0x1009405f
mov al, byte [ebp + 0x42]
test al, al
jl 0x10093f0e
movsx eax, al
jmp 0x10093f15
mov eax, ebx
call fcn.10051c40
push eax
mov eax, esi
call fcn.10051bd0
add esp, 4
push edi
push ebp
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.10093b20
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
push edi
push ebp
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.10093b20
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
push edi
push ebp
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.10093b20
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
push edi
push ebp
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_rootpage_0
call fcn.10093b20
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
push edi
push ebp
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.10093b20
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
push edi
push ebp
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.10093b20
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009406a
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, edi
mov edx, ebp
call fcn.10093ab0
mov esi, eax
test esi, esi
jne 0x1009406a
xor edi, edi
movzx eax, byte [edi + 0x100f9738]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, ebx
call fcn.10057800
movzx ecx, byte [edi + 0x100f9739]
add ecx, dword [esp + 0x24]
movzx ebx, byte [edi + 0x100f9738]
mov eax, dword [esp + 0x18]
push ecx
call fcn.10057870
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10094066
mov ebx, dword [esp + 0x34]
add edi, 2
cmp edi, 0xa
jl 0x10093fd0
mov edi, dword [esp + 0x10]
mov esi, edi
call fcn.10059e40
mov esi, eax
test esi, esi
jne 0x10094066
mov eax, edi
call fcn.10053030
mov esi, eax
test esi, esi
jne 0x10094066
mov eax, edi
call fcn.10051c40
push eax
mov eax, ebx
call fcn.10051bd0
mov edx, dword [edi + 4]
mov ecx, dword [edx + 0x20]
mov eax, dword [esp + 0x18]
add esp, 4
push 1
mov edx, ebx
call fcn.100519e0
add esp, 4
mov esi, eax
jmp 0x1009406a
mov esi, 7
jmp 0x1009406a
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xa4], eax
or eax, 0xffffffff
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x54], edx
push 1
or ecx, eax
mov edx, ebx
call fcn.100519e0
mov edi, dword [esp + 0x1c]
xor ebx, ebx
add esp, 4
mov byte [ebp + 0x3e], 1
cmp edi, ebx
je 0x100940b6
mov eax, dword [edi + 4]
call fcn.100517c0
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, ebp
call fcn.100736c0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret