Function at 0x48f19f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push edi
cmp byte [esi + 0x43], 0
jne 0x48f1ca
push str.cannot_VACUUM_from_within_a_transaction
call fcn.0044a50d
xor eax, eax
pop ecx
inc eax
jmp 0x48f4b5
cmp dword [esi + 0x9c], 1
jle 0x48f1da
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x48f1bc
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x58]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
and eax, 0xfff5ff7f
or eax, 0x10202800
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], edx
mov dl, byte [esi + 0x4c]
shl ebx, 4
mov byte [esi + 0x4c], 0
mov byte [ebp - 2], dl
mov dword [ebp + 8], ebx
mov edx, dword [eax + ebx]
mov ebx, dword [eax + ebx + 4]
mov dword [ebp - 0x10], edx
mov edx, ecx
push str.ATTACHAS_vacuum_db
mov ecx, esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xd]
mov byte [ebp - 1], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
call fcn.0048f048
mov edi, eax
pop ecx
test edi, edi
jne 0x48f463
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0xc], edi
call fcn.00459dc4
mov ecx, ebx
call fcn.0045712c
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
mov ecx, ebx
call fcn.004571a5
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.00458ecc
xor edx, edx
mov ecx, ebx
call fcn.00458ef1
mov edx, eax
mov ecx, edi
call fcn.00458ef1
push 0x21
pop edx
mov ecx, edi
call fcn.00458f53
mov edx, dword [ebp - 8]
mov ecx, esi
push str.BEGIN
call fcn.0048f048
mov edi, eax
pop ecx
test edi, edi
jne 0x48f463
push 2
pop edx
mov ecx, ebx
call fcn.004593c9
mov edi, eax
test edi, edi
jne 0x48f463
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x48f2e2
and dword [esi + 0x50], edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 0xc]
mov ecx, edi
push 0
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.00458f78
pop ecx
pop ecx
test eax, eax
jne 0x48f460
cmp byte [ebp - 1], al
jne 0x48f31e
mov edx, dword [esi + 0x50]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.00458f78
pop ecx
pop ecx
test eax, eax
jne 0x48f460
cmp byte [esi + 0x45], 0
jne 0x48f460
mov al, byte [esi + 0x48]
test al, al
js 0x48f334
movsx eax, al
jmp 0x48f33b
mov ecx, ebx
call fcn.004590ce
mov edx, eax
mov ecx, edi
call fcn.00459073
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 8]
mov byte [esi + 0x98], al
push esi
call fcn.0048f0eb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48f463
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp - 8]
push esi
call fcn.0048f0eb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48f463
push dword [ebp - 0x10]
mov byte [esi + 0x98], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp - 8]
push esi
call fcn.0048f0eb
and dword [esi + 0x18], 0xefffffff
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48f463
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 8]
push esi
call fcn.0048f0eb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48f463
mov dword [ebp - 0x18], edi
movzx edx, byte [edi + 0x6217ac]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0045e421
movzx eax, byte [edi + 0x6217ad]
add eax, dword [ebp - 0x10]
movzx edx, byte [edi + 0x6217ac]
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.0045e463
mov edi, eax
pop ecx
test edi, edi
jne 0x48f463
mov edi, dword [ebp - 0x18]
add edi, 2
mov dword [ebp - 0x18], edi
cmp edi, 0xa
jl 0x48f3d5
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0045fc23
mov edi, eax
test edi, edi
jne 0x48f463
mov ecx, dword [ebp - 0xc]
call fcn.00459dc4
mov edi, eax
test edi, edi
jne 0x48f463
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.004590ce
mov edx, eax
mov ecx, ebx
call fcn.00459073
mov eax, dword [edi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.00458f78
pop ecx
pop ecx
mov edi, eax
jmp 0x48f463
push 7
pop edi
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x5c], eax
mov al, byte [ebp - 2]
push 1
push edx
mov byte [esi + 0x98], 0
mov byte [esi + 0x4c], al
call fcn.00458f78
mov ebx, dword [ebp - 0x1c]
mov byte [esi + 0x43], 1
pop ecx
pop ecx
test ebx, ebx
je 0x48f4ac
mov ecx, dword [ebx + 4]
call fcn.00458e26
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, esi
call fcn.0047735b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret