Function at 0x5fe443
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x10], eax
cmp byte [esi + 0x55], bl
jne 0x5fe474
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [ebp + 8]
call fcn.00600875
xor eax, eax
add esp, 0xc
inc eax
jmp 0x5fe85d
cmp dword [esi + 0xbc], eax
jle 0x5fe483
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x5fe460
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x5fe4be
movzx eax, word [ecx + 0x10]
and eax, 0x3f
cmp byte [eax + 0x7198b8], 3
je 0x5fe4a7
push str.non_text_filename
jmp 0x5fe460
push ecx
call fcn.005b7131
pop ecx
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x5fe4c3
mov edx, 0x732230
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x6c]
push edi
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x70]
mov dword [ebp - 0x2c], eax
or eax, 0x201
mov dword [ebp - 0x28], edi
or edi, 6
mov dword [esi + 0x18], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
and dword [esi + 0x20], 0xefffafff
mov dword [ebp - 0x3c], ecx
mov cl, byte [esi + 0x5e]
shl edi, 4
mov byte [ebp + 0xf], cl
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x24], ecx
and dword [esi + 0x24], 0xfffffffe
mov byte [esi + 0x5e], bl
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], edi
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
push dword [eax]
call fcn.005f7ea7
push edx
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
push esi
mov dword [ebp - 0x1c], eax
call fcn.005ccbcb
mov edi, eax
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x5fe7f2
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 4]
cmp dword [ebp + 0x14], edi
je 0x5fe5db
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x18], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x5fe5c1
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x5fe5a8
cmp dword [ebp - 0x14], eax
jl 0x5fe5c1
jg 0x5fe5a8
cmp dword [ebp - 0x18], eax
jbe 0x5fe5c1
push str.output_file_already_exists
push esi
push dword [ebp + 8]
xor edi, edi
inc edi
call fcn.00600875
add esp, 0xc
jmp 0x5fe7ef
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x10]
or dword [esi + 0x18], 8
movzx ecx, byte [ecx + eax + 8]
mov eax, dword [esi + 0x20]
and eax, 0x38
or ecx, eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 8]
push edi
call fcn.005e6392
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + ecx + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.005e7a69
push 0
push edi
call fcn.005e7b69
push eax
push ebx
call fcn.005e7b69
mov eax, dword [ebp - 0x10]
or eax, 0x20
push eax
push ebx
call fcn.005e7b3f
push str.BEGIN
push dword [ebp + 8]
push esi
call fcn.005ccb18
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x5fe7ef
cmp dword [ebp + 0x14], eax
push eax
push 2
pop ecx
cmove eax, ecx
push eax
push dword [ebp - 8]
call fcn.005e59e6
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5fe7ef
mov edi, dword [ebp - 8]
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x5fe669
cmp dword [ebp + 0x14], 0
jne 0x5fe669
and dword [esi + 0x64], 0
mov eax, dword [edi + 4]
push 0
push dword [ebp - 0x14]
push dword [eax + 0x24]
push ebx
call fcn.005e7aa7
add esp, 0x10
test eax, eax
jne 0x5fe7ec
cmp dword [ebp - 0x24], eax
jne 0x5fe6a2
push eax
push dword [ebp - 0x14]
push dword [esi + 0x64]
push ebx
call fcn.005e7aa7
add esp, 0x10
test eax, eax
jne 0x5fe7ec
cmp byte [esi + 0x57], 0
jne 0x5fe7ec
mov al, byte [esi + 0x5a]
test al, al
js 0x5fe6b8
movsx eax, al
jmp 0x5fe6bf
push edi
call fcn.005e6319
pop ecx
push eax
push ebx
call fcn.005e7a18
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
mov byte [esi + 0xb0], al
push esi
call fcn.005ccbcb
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x5fe7ef
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp + 8]
push esi
call fcn.005ccbcb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5fe7ef
push dword [ebp - 0xc]
mov byte [esi + 0xb0], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp + 8]
push esi
call fcn.005ccbcb
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5fe7ef
push dword [ebp - 0xc]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp + 8]
push esi
call fcn.005ccbcb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5fe7ef
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x24]
push eax
movzx eax, byte [edi + 0x7199f8]
push eax
push dword [ebp - 8]
call fcn.005e6346
movzx eax, byte [edi + 0x7199f9]
add eax, dword [ebp - 0x24]
push eax
movzx eax, byte [edi + 0x7199f8]
push eax
push ebx
call fcn.005e81cb
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x5fe7ef
mov edi, dword [ebp - 0x1c]
add edi, 2
mov dword [ebp - 0x1c], edi
cmp edi, 0xa
jl 0x5fe754
cmp dword [ebp + 0x14], eax
jne 0x5fe7ae
push ebx
push dword [ebp - 8]
call fcn.005e5ce6
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x5fe7ef
push ebx
call fcn.005e5be6
mov edi, eax
pop ecx
test edi, edi
jne 0x5fe7ef
cmp dword [ebp + 0x14], eax
jne 0x5fe7ef
push ebx
call fcn.005e6319
mov edi, dword [ebp - 8]
push eax
push edi
call fcn.005e7a18
push ebx
call fcn.005e6392
mov ecx, dword [ebx + 4]
push 1
push eax
push dword [ecx + 0x24]
push edi
call fcn.005e7aa7
add esp, 0x20
mov edi, eax
jmp 0x5fe7ef
push 7
pop edi
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x38]
push 1
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x3c]
push 0
mov dword [esi + 0x74], eax
mov al, byte [ebp + 0xf]
push 0xffffffffffffffff
push dword [ebp - 8]
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.005e7aa7
add esp, 0x10
mov byte [esi + 0x55], 1
test ebx, ebx
je 0x5fe853
push dword [ebx + 4]
call fcn.005e5acc
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
pop ecx
push esi
call fcn.005fd83e
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret