Function at 0x49e1a1
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 0x49e1d2
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [ebp + 8]
call fcn.004a0608
xor eax, eax
add esp, 0xc
inc eax
jmp 0x49e5bd
cmp dword [esi + 0xbc], eax
jle 0x49e1e1
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x49e1be
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x49e21c
movzx eax, word [ecx + 0x10]
and eax, 0x3f
cmp byte [eax + 0x691138], 3
je 0x49e205
push str.non_text_filename
jmp 0x49e1be
push ecx
call fcn.0045d661
pop ecx
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x49e221
mov edx, 0x66ae5d
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x24], edi
mov edi, dword [esi + 0x68]
mov dword [ebp - 0x30], edi
mov edi, dword [esi + 0x6c]
mov dword [ebp - 0x34], edi
mov edi, dword [esi + 0x70]
mov dword [ebp - 0x38], edi
mov edi, dword [esi + 0x74]
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
and edi, 0xfffffffe
mov cl, byte [esi + 0x5e]
mov dword [esi + 0x24], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
or eax, 6
mov byte [ebp + 0xf], cl
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
and ecx, 0xefffafff
mov eax, dword [esi + 0x10]
or ecx, 0x201
shl edi, 4
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5e], bl
mov dword [ebp + 0x10], edi
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
push dword [eax]
call fcn.00497899
push edx
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x14]
push esi
mov dword [ebp - 0x1c], eax
call fcn.00469323
mov edi, eax
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x49e552
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 0x49e33b
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 0x49e321
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x49e308
cmp dword [ebp - 0x14], eax
jl 0x49e321
jg 0x49e308
cmp dword [ebp - 0x18], eax
jbe 0x49e321
push str.output_file_already_exists
push esi
push dword [ebp + 8]
xor edi, edi
inc edi
call fcn.004a0608
add esp, 0xc
jmp 0x49e54f
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x10]
or dword [esi + 0x18], 8
movzx ecx, byte [eax + ecx + 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.00485523
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx + eax + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.00486c43
push 0
push edi
call fcn.00486d43
push eax
push ebx
call fcn.00486d43
mov eax, dword [ebp - 0x10]
or eax, 0x20
push eax
push ebx
call fcn.00486d19
push str.BEGIN
push dword [ebp + 8]
push esi
call fcn.00469272
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x49e54f
cmp dword [ebp + 0x14], eax
push eax
push 2
pop ecx
cmove eax, ecx
push eax
push dword [ebp - 8]
call fcn.00484b6c
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49e54f
mov edi, dword [ebp - 8]
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x49e3c9
cmp dword [ebp + 0x14], 0
jne 0x49e3c9
and dword [esi + 0x64], 0
mov eax, dword [edi + 4]
push 0
push dword [ebp - 0x14]
push dword [eax + 0x24]
push ebx
call fcn.00486c81
add esp, 0x10
test eax, eax
jne 0x49e54c
cmp dword [ebp - 0x28], eax
jne 0x49e402
push eax
push dword [ebp - 0x14]
push dword [esi + 0x64]
push ebx
call fcn.00486c81
add esp, 0x10
test eax, eax
jne 0x49e54c
cmp byte [esi + 0x57], 0
jne 0x49e54c
mov al, byte [esi + 0x5a]
test al, al
js 0x49e418
movsx eax, al
jmp 0x49e41f
push edi
call fcn.004854ad
pop ecx
push eax
push ebx
call fcn.00486bf2
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.00469323
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x49e54f
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp + 8]
push esi
call fcn.00469323
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49e54f
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.00469323
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49e54f
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.00469323
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49e54f
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [edi + 0x691278]
push eax
push dword [ebp - 8]
call fcn.004854da
movzx eax, byte [edi + 0x691279]
add eax, dword [ebp - 0x28]
push eax
movzx eax, byte [edi + 0x691278]
push eax
push ebx
call fcn.00487366
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x49e54f
mov edi, dword [ebp - 0x1c]
add edi, 2
mov dword [ebp - 0x1c], edi
cmp edi, 0xa
jl 0x49e4b4
cmp dword [ebp + 0x14], eax
jne 0x49e50e
push ebx
push dword [ebp - 8]
call fcn.00484e6b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x49e54f
push ebx
call fcn.00484d6b
mov edi, eax
pop ecx
test edi, edi
jne 0x49e54f
cmp dword [ebp + 0x14], eax
jne 0x49e54f
push ebx
call fcn.004854ad
mov edi, dword [ebp - 8]
push eax
push edi
call fcn.00486bf2
push ebx
call fcn.00485523
mov ecx, dword [ebx + 4]
push 1
push eax
push dword [ecx + 0x24]
push edi
call fcn.00486c81
add esp, 0x20
mov edi, eax
jmp 0x49e54f
push 7
pop edi
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x24]
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.00486c81
add esp, 0x10
mov byte [esi + 0x55], 1
test ebx, ebx
je 0x49e5b3
push dword [ebx + 4]
call fcn.00484c52
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
pop ecx
push esi
call fcn.0049d52d
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret