Function at 0x101536aa
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp byte [esi + 0x4f], bl
jne 0x101536d4
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [esp + 0x40]
call fcn.1015587c
xor eax, eax
add esp, 0xc
inc eax
jmp 0x10153ac6
cmp dword [esi + 0xb0], 1
jle 0x101536e4
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x101536bf
mov ecx, dword [esp + 0x44]
push ebp
mov ebp, dword [esi + 0x3c]
test ecx, ecx
je 0x10153731
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x102804f0], 3
je 0x1015371a
push str.non_text_filename
push esi
push dword [esp + 0x44]
call fcn.1015587c
xor eax, eax
add esp, 0xc
inc eax
jmp 0x10153ac5
push ecx
call fcn.10119900
pop ecx
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x10153736
mov edx, 0x1025e560
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0x24]
mov dword [esp + 0x2c], edi
mov edi, dword [esi + 0x64]
mov dword [esp + 0x34], edi
mov edi, dword [esi + 0x68]
mov dword [esp + 0x28], ecx
mov cl, byte [esi + 0x58]
mov dword [esp + 0x30], eax
or eax, 6
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
and edi, 0xfffffffe
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], edi
mov edi, dword [esp + 0x48]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x28]
and ecx, 0xefffafff
shl edi, 4
mov byte [esi + 0x58], bl
or ecx, 0x201
mov dword [esi + 0x20], ecx
push edx
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [esp + 0x18], eax
push str.ATTACH__Q_AS_vacuum_db
push dword [esp + 0x48]
mov eax, dword [eax + 4]
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [esp + 0x54], al
mov eax, dword [esi + 0x14]
mov dword [esp + 0x34], eax
call fcn.100d3840
mov edi, eax
mov dword [esi + 0x3c], ebp
add esp, 0x10
test edi, edi
jne 0x10153a5f
mov ebx, dword [esp + 0x24]
shl ebx, 4
add ebx, dword [esi + 0x10]
mov ebp, dword [ebx + 4]
cmp dword [esp + 0x4c], eax
je 0x1015383c
mov eax, dword [ebp + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x1c], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x10153838
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x1015381e
cmp dword [esp + 0x20], eax
jl 0x10153838
jg 0x1015381e
cmp dword [esp + 0x1c], eax
jbe 0x10153838
push str.output_file_already_exists
push esi
push dword [esp + 0x48]
xor edi, edi
inc edi
call fcn.1015587c
add esp, 0xc
jmp 0x10153a5f
or dword [esi + 0x18], 8
mov edi, dword [esp + 0x14]
push edi
call fcn.1013dab2
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + ecx + 0xc]
push dword [ecx + 0x50]
push ebp
call fcn.1013f14c
push 0
push edi
call fcn.1013f23a
push eax
push ebp
call fcn.1013f23a
push 0x21
push ebp
call fcn.1013f212
push str.BEGIN
push dword [esp + 0x68]
push esi
call fcn.100d3840
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x10153a5f
cmp dword [esp + 0x4c], eax
push eax
push 2
pop ecx
cmove eax, ecx
push eax
push dword [esp + 0x1c]
call fcn.1013cfad
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10153a5f
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
cmp byte [eax + 5], 5
jne 0x101538c9
and dword [esi + 0x5c], 0
mov ecx, dword [edi + 4]
push 0
push dword [esp + 0x20]
push dword [ecx + 0x24]
push ebp
call fcn.1013f188
add esp, 0x10
test eax, eax
jne 0x10153a5c
cmp byte [esp + 0x44], al
jne 0x10153902
push eax
push dword [esp + 0x20]
push dword [esi + 0x5c]
push ebp
call fcn.1013f188
add esp, 0x10
test eax, eax
jne 0x10153a5c
cmp byte [esi + 0x51], 0
jne 0x10153a5c
mov al, byte [esi + 0x54]
test al, al
js 0x10153918
movsx eax, al
jmp 0x1015391f
push edi
call fcn.1013da24
pop ecx
push eax
push ebp
call fcn.1013f0fc
push dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x50]
mov byte [esi + 0xa4], al
push esi
call fcn.100d3840
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x10153a5f
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x48]
push esi
call fcn.100d3840
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10153a5f
push dword [esp + 0x18]
mov byte [esi + 0xa4], 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 [esp + 0x48]
push esi
call fcn.100d3840
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10153a5f
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x48]
push esi
call fcn.100d3840
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10153a5f
mov dword [esp + 0x44], edi
lea eax, [esp + 0x24]
push eax
movzx eax, byte [edi + 0x1027fe54]
push eax
push dword [esp + 0x1c]
call fcn.1013da6a
movzx eax, byte [edi + 0x1027fe55]
add eax, dword [esp + 0x30]
push eax
movzx eax, byte [edi + 0x1027fe54]
push eax
push ebp
call fcn.1013f3a3
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x10153a5f
mov edi, dword [esp + 0x44]
add edi, 2
mov dword [esp + 0x44], edi
cmp edi, 0xa
jl 0x101539be
cmp dword [esp + 0x4c], eax
jne 0x10153a1f
push ebp
push dword [esp + 0x18]
call fcn.100d3840
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10153a5f
push ebp
call fcn.1013d375
mov edi, eax
pop ecx
test edi, edi
jne 0x10153a5f
cmp dword [esp + 0x4c], eax
jne 0x10153a5f
push ebp
call fcn.1013da24
mov edi, dword [esp + 0x18]
push eax
push edi
call fcn.1013f0fc
mov eax, dword [ebp + 4]
push 1
push dword [esp + 0x2c]
push dword [eax + 0x24]
push edi
call fcn.1013f188
add esp, 0x1c
mov edi, eax
jmp 0x10153a5f
push 7
pop edi
mov eax, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x34]
push 1
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x3c]
push 0
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x1b]
push 0xffffffffffffffff
push dword [esp + 0x20]
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.1013f188
add esp, 0x10
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x10153abb
push dword [ebx + 4]
call fcn.1013d25e
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
pop ecx
push esi
call fcn.10152aff
pop ecx
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2c
ret