Function at 0x439b19
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0xc], 0
cmp byte [esi + 0x1c], 0
push ebx
push edi
jne 0x439b43
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.00412932
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x439ddf
cmp dword [esi + 0x8c], 1
jle 0x439b53
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x439b30
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x98]
and dword [esi + 0x98], 0
cmp byte [esi + 0x1d], 2
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x439b9e
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.00439a51
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
pop ecx
jle 0x439bc2
mov edx, dword [esi + 8]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 0xc], ecx
test edi, edi
jne 0x439d8e
mov ecx, dword [esi + 8]
shl eax, 4
mov ebx, dword [eax + ecx - 0xc]
push ebx
mov dword [ebp - 8], ebx
call fcn.0041c30a
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
mov edi, dword [eax + 0x20]
sub edi, dword [eax + 0x24]
mov eax, dword [eax]
cmp byte [eax + 5], 5
mov dword [ebp - 0x14], edi
jne 0x439bf9
and dword [esi + 0x24], 0
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x20]
push 0
push edi
mov eax, ebx
call fcn.0041bdea
test eax, eax
pop ecx
pop ecx
jne 0x439d8b
mov ecx, dword [esi + 0x24]
push eax
push edi
mov eax, ebx
call fcn.0041bdea
test eax, eax
pop ecx
pop ecx
jne 0x439d8b
cmp byte [esi + 0x1e], al
jne 0x439d8b
mov ebx, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebx
mov ecx, esi
call fcn.00439a51
mov edi, eax
test edi, edi
pop ecx
jne 0x439d8e
push str.BEGIN_EXCLUSIVE_
mov eax, ebx
mov ecx, esi
call fcn.00439a51
mov edi, eax
test edi, edi
pop ecx
jne 0x439d8e
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push esi
mov eax, ebx
call fcn.00439aac
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
mov eax, ebx
call fcn.00439aac
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
mov eax, ebx
call fcn.00439aac
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
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 esi
mov eax, ebx
call fcn.00439aac
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
mov eax, ebx
call fcn.00439aac
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
mov eax, ebx
call fcn.00439aac
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
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_
mov eax, ebx
mov ecx, esi
call fcn.00439a51
mov edi, eax
test edi, edi
pop ecx
jne 0x439d8e
xor ebx, ebx
movzx edi, byte [ebx + 0x447f4c]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0041eaa7
movzx eax, byte [ebx + 0x447f4d]
add eax, dword [ebp - 0x10]
pop ecx
push eax
movzx eax, byte [ebx + 0x447f4c]
push eax
mov eax, dword [ebp - 8]
call fcn.0041eacf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x439d8e
inc ebx
inc ebx
cmp ebx, 8
jl 0x439d14
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
call fcn.0041f213
mov edi, eax
test edi, edi
jne 0x439d8e
push ebx
call fcn.0041c30a
mov edi, eax
test edi, edi
pop ecx
jne 0x439d8e
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call fcn.0041bdea
pop ecx
pop ecx
mov edi, eax
jmp 0x439d8e
push 7
pop edi
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
mov dword [esi + 0x98], eax
mov eax, dword [ebp - 4]
push 1
push ecx
call fcn.0041bdea
mov ebx, dword [ebp - 0xc]
test ebx, ebx
pop ecx
pop ecx
mov byte [esi + 0x1c], 1
je 0x439dd4
mov eax, dword [ebx + 4]
call fcn.0041bd7e
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
xor eax, eax
mov ebx, esi
call fcn.0042ccf9
mov eax, edi
pop edi
pop ebx
leave
ret