Function at 0x571f90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
cmp byte [esi + 0x47], 0
jne 0x571fc2
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [ebp + 8]
call fcn.00575130
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xa0], 1
jle 0x571fd2
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x571fac
mov eax, dword [esi + 0x1c]
movzx ecx, word [esi + 0x18]
mov edx, dword [ebp + 0x10]
or dword [esi + 0x18], 6
mov dword [ebp - 0x24], eax
and eax, 0xffffaf7f
or eax, 0x201
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x60]
shl edx, 4
push ebx
mov dword [ebp - 0x2c], ecx
mov cl, byte [esi + 0x50]
mov byte [esi + 0x50], 0
mov ebx, dword [edx + eax + 4]
mov byte [ebp + 0xf], cl
mov ecx, dword [edx + eax]
push edi
mov eax, dword [ebx + 4]
push str.ATTACHAS_vacuum_db
push dword [ebp + 8]
mov dword [ebp + 0x10], edx
mov eax, dword [eax]
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
movzx eax, byte [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
call fcn.0053d0c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x572268
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov edi, dword [eax + 4]
push edi
mov dword [ebp - 4], edi
call fcn.00556780
push ebx
call fcn.00557130
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [edx + ecx + 0xc]
push dword [ecx + 0x50]
push edi
call fcn.00558d00
push 0
push ebx
call fcn.00558f10
push eax
push edi
call fcn.00558f10
push 0x21
push edi
call fcn.00558ec0
push str.BEGIN
push dword [ebp + 8]
push esi
call fcn.0053d0c0
mov edi, eax
add esp, 0x34
test edi, edi
jne 0x572268
push 2
push ebx
call fcn.00556260
mov edi, eax
add esp, 8
test edi, edi
jne 0x572268
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x5720d7
mov dword [esi + 0x54], edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 4]
push 0
push dword [ebp - 0xc]
push dword [eax + 0x20]
push edi
call fcn.00558df0
add esp, 0x10
test eax, eax
jne 0x57225e
cmp dword [ebp - 0x1c], eax
jne 0x572113
push eax
push dword [ebp - 0xc]
push dword [esi + 0x54]
push edi
call fcn.00558df0
add esp, 0x10
test eax, eax
jne 0x57225e
cmp byte [esi + 0x49], 0
jne 0x57225e
mov al, byte [esi + 0x4c]
test al, al
js 0x572129
movsx eax, al
jmp 0x572132
push ebx
call fcn.00557060
add esp, 4
push eax
push edi
call fcn.00558c80
push dword [ebp - 8]
mov eax, dword [ebp - 0x14]
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 + 0x9c], al
push esi
call fcn.0053d180
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x572268
push dword [ebp - 8]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp + 8]
push esi
call fcn.0053d180
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x572268
push dword [ebp - 8]
mov byte [esi + 0x9c], 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.0053d180
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x572268
push dword [ebp - 8]
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.0053d180
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x572268
xor ebx, ebx
jmp 0x5721d0
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebx + 0x7b89f0]
push eax
push dword [ebp - 0x10]
call fcn.005570d0
movzx eax, byte [ebx + 0x7b89f1]
add eax, dword [ebp - 0x1c]
push eax
movzx eax, byte [ebx + 0x7b89f0]
push eax
push dword [ebp - 4]
call fcn.00559130
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x572265
add ebx, 2
cmp ebx, 0xa
jl 0x5721d0
push dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00556930
mov edi, eax
add esp, 8
test edi, edi
jne 0x572268
push dword [ebp - 4]
call fcn.00556780
mov edi, eax
add esp, 4
test edi, edi
jne 0x572268
mov edi, dword [ebp - 4]
push edi
call fcn.00557060
push eax
push ebx
call fcn.00558c80
mov eax, dword [edi + 4]
push 1
push dword [ebp - 0xc]
push dword [eax + 0x20]
push ebx
call fcn.00558df0
add esp, 0x1c
mov edi, eax
jmp 0x572268
mov edi, 7
jmp 0x572268
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
movzx eax, ax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
push 1
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
mov dword [esi + 0x60], eax
mov al, byte [ebp + 0xf]
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x9c], 0
mov byte [esi + 0x50], al
call fcn.00558df0
mov ebx, dword [ebp - 0x18]
add esp, 0x10
mov byte [esi + 0x47], 1
test ebx, ebx
je 0x5722c3
push dword [ebx + 4]
call fcn.005565b0
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push esi
call fcn.00570f30
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret