Function at 0x100757d0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
xor ecx, ecx
push esi
push edi
mov edi, eax
mov dword [esp + 0x18], ecx
cmp byte [ebp + 0x36], cl
jne 0x10075804
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
call fcn.10024270
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [ebp + 0x84], 1
jle 0x10075829
push str.cannot_VACUUM___SQL_statements_in_progress
mov eax, ebp
call fcn.10024270
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x24], eax
and eax, 0xfffaffff
or eax, 0x100500
cmp byte [ebp + 0x37], 2
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x98]
mov dword [ebp + 0x98], ecx
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], edx
mov edx, dword [ecx]
movzx eax, byte [edx + 0xe]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x10075889
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, edi
mov edx, ebp
call fcn.10075520
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esp + 0x14]
jle 0x100758ad
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 0x10075af9
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
mov dword [esp + 0x10], eax
call fcn.10036120
mov eax, ebx
call fcn.10034b20
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x40], esi
je 0x100758f0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
mov eax, ebp
call fcn.10086c70
cmp dword [esp + 0x1c], esi
je 0x100758f0
mov dword [ebp + 0x40], esi
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, edi
mov edx, ebp
call fcn.10075520
mov esi, eax
test esi, esi
jne 0x10075af9
mov eax, str.BEGIN_
mov ecx, edi
mov edx, ebp
call fcn.10075520
mov esi, eax
test esi, esi
jne 0x10075af9
push 2
push ebx
call fcn.100351b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af9
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10075943
mov dword [ebp + 0x40], esi
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
mov ebx, dword [esp + 0x10]
push 0
push edx
call fcn.10034a40
add esp, 8
test eax, eax
jne 0x10075af0
cmp dword [esp + 0x20], eax
jne 0x10075983
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x40]
call fcn.10034a40
add esp, 8
test eax, eax
jne 0x10075af0
cmp byte [ebp + 0x38], 0
jne 0x10075af0
mov al, byte [ebp + 0x3a]
test al, al
jl 0x10075999
movsx eax, al
jmp 0x100759a2
mov eax, dword [esp + 0x3c]
call fcn.10034c90
push eax
mov eax, ebx
call fcn.10034c20
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.100755a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af5
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.100755a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af5
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.100755a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af5
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.100755a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af5
push edi
push ebp
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.100755a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af5
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.100755a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075af5
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.10075520
mov esi, eax
test esi, esi
jne 0x10075af5
xor edi, edi
lea ecx, [ecx]
movzx edx, byte [edi + 0x1036a05c]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.1003a920
movzx eax, byte [edi + 0x1036a05d]
add eax, dword [esp + 0x28]
movzx ebx, byte [edi + 0x1036a05c]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003a990
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10075af5
add edi, 2
cmp edi, 8
jl 0x10075a60
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
mov esi, edi
call fcn.1003ce80
mov esi, eax
test esi, esi
jne 0x10075af5
mov eax, edi
call fcn.10036120
mov esi, eax
test esi, esi
jne 0x10075af5
mov eax, edi
call fcn.10034c90
push eax
mov eax, ebx
call fcn.10034c20
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
add esp, 4
push 1
push edx
call fcn.10034a40
add esp, 8
mov esi, eax
jmp 0x10075af9
mov esi, 7
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x98], eax
push 1
push 0xffffffffffffffff
or eax, 0xffffffff
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], edx
call fcn.10034a40
mov edi, dword [esp + 0x20]
xor ebx, ebx
add esp, 8
mov byte [ebp + 0x36], 1
cmp edi, ebx
je 0x10075b43
mov eax, dword [edi + 4]
call fcn.10034880
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, ebp
call fcn.10055b20
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret