Function at 0x492cf5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4e2040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x40], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0x20], ebx
xor edx, edx
mov dword [ebp - 0x24], ecx
inc edx
mov dword [ebp - 0x34], edx
cmp byte [edi + 0x55], 0
jne 0x492d3f
push str.cannot_VACUUM_from_within_a_transaction
mov edx, edi
mov ecx, ebx
call fcn.0043f451
xor eax, eax
pop ecx
inc eax
jmp 0x493158
cmp dword [edi + 0xbc], edx
jle 0x492d4e
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x492d2d
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x492d84
movzx eax, word [ecx + 0x10]
and eax, 0x3f
cmp byte [eax + 0x4d0260], 3
je 0x492d6f
push str.non_text_filename
jmp 0x492d2d
call fcn.00458b63
mov ecx, dword [edi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x492d89
mov edx, 0x4c8c24
mov eax, dword [edi + 0x24]
mov ebx, dword [edi + 0x68]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x44], eax
or eax, 6
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ebx
and eax, 0xfffffffe
mov ebx, dword [edi + 0x6c]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x48], ecx
and ecx, 0xefffafff
mov dword [ebp - 0x50], ebx
or ecx, 0x201
mov ebx, dword [edi + 0x70]
shl esi, 4
mov dword [ebp - 0x54], ebx
mov ebx, dword [edi + 0x74]
mov dword [edi + 0x20], ecx
mov dword [ebp - 0x58], ebx
mov bl, byte [edi + 0x5e]
mov byte [edi + 0x5e], 0
mov ecx, dword [esi + eax]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
call fcn.0044b5b6
mov ebx, dword [ebp - 0x20]
push edx
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x14]
push ebx
push edi
mov dword [ebp - 0x38], eax
call fcn.00492bf7
mov ecx, dword [ebp - 0xc]
mov esi, eax
add esp, 0x10
mov dword [edi + 0x3c], ecx
test esi, esi
jne 0x4930ec
mov eax, dword [ebp - 0x38]
shl eax, 4
add eax, dword [edi + 0x10]
mov dword [ebp - 0x40], eax
mov ebx, dword [eax + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x24], esi
je 0x492ea4
mov eax, dword [eax]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x10], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x492e88
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x492e70
cmp dword [ebp - 0xc], eax
jl 0x492e88
jg 0x492e70
cmp dword [ebp - 0x10], eax
jbe 0x492e88
mov ecx, dword [ebp - 0x20]
xor esi, esi
push str.output_file_already_exists
mov edx, edi
inc esi
call fcn.0043f451
pop ecx
jmp 0x4930ec
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x2c]
or dword [edi + 0x18], 8
movzx ecx, byte [ecx + eax + 8]
mov eax, dword [edi + 0x20]
and eax, 0x38
or ecx, eax
mov dword [ebp - 0x34], ecx
jmp 0x492ea7
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
movzx ecx, byte [eax + 0x16]
mov edx, dword [eax + 0x24]
sub edx, dword [eax + 0x28]
mov eax, dword [edi + 0x10]
cmp ecx, edx
cmovg edx, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + ecx + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.0044fee0
xor edx, edx
mov ecx, esi
call fcn.0044ff0b
mov edx, eax
mov ecx, ebx
call fcn.0044ff0b
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
or edx, 0x20
mov ecx, dword [eax]
mov eax, dword [ebx]
mov dword [ecx + 4], eax
mov ecx, dword [ecx]
call fcn.004497b2
mov edx, dword [ebp - 0x20]
mov ecx, edi
push str.BEGIN
call fcn.00492b3b
mov esi, eax
pop ecx
test esi, esi
jne 0x4930ec
mov ecx, dword [ebp - 0x14]
xor edx, edx
cmp dword [ebp - 0x24], edx
push eax
push 2
pop eax
cmove edx, eax
call fcn.00450398
mov esi, eax
pop ecx
test esi, esi
jne 0x4930ec
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x492f55
cmp dword [ebp - 0x24], 0
jne 0x492f55
and dword [edi + 0x64], 0
mov eax, dword [esi + 4]
mov ecx, ebx
push 0
push dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
call fcn.0044ff5b
pop ecx
pop ecx
test eax, eax
jne 0x4930e9
cmp dword [ebp - 0x28], eax
jne 0x492f8e
mov edx, dword [edi + 0x64]
mov ecx, ebx
push eax
push dword [ebp - 0xc]
call fcn.0044ff5b
pop ecx
pop ecx
test eax, eax
jne 0x4930e9
cmp byte [edi + 0x57], 0
jne 0x4930e9
mov al, byte [edi + 0x5a]
test al, al
js 0x492fa4
movsx eax, al
jmp 0x492fab
mov ecx, esi
call fcn.00450058
mov edx, eax
mov ecx, ebx
call fcn.0045001a
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x20]
mov byte [edi + 0xb0], al
push edi
call fcn.00492bf7
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4930ec
push dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x20]
push edi
call fcn.00492bf7
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4930ec
push dword [ebp - 0x18]
mov byte [edi + 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 - 0x20]
push edi
call fcn.00492bf7
and dword [edi + 0x18], 0xfffffffb
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4930ec
push dword [ebp - 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x20]
push edi
call fcn.00492bf7
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4930ec
mov dword [ebp - 0x18], eax
movzx esi, byte [eax + 0x4cb640]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, esi
push eax
call fcn.00456455
mov eax, dword [ebp - 0x18]
mov edx, esi
pop ecx
mov ecx, ebx
movzx eax, byte [eax + 0x4cb641]
add eax, dword [ebp - 0x28]
push eax
call fcn.00456489
mov esi, eax
pop ecx
test esi, esi
jne 0x4930ec
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, 0xa
jl 0x493042
cmp dword [ebp - 0x24], esi
jne 0x493099
mov ecx, dword [ebp - 0x14]
mov edx, ebx
call fcn.00457c84
mov esi, eax
test esi, esi
jne 0x4930ec
mov ecx, ebx
call fcn.00450eee
mov esi, eax
test esi, esi
jne 0x4930ec
cmp dword [ebp - 0x24], eax
jne 0x4930ec
mov ecx, ebx
call fcn.00450058
mov ecx, dword [ebp - 0x14]
mov edx, eax
call fcn.0045001a
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
push 1
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x24]
mov ecx, edx
sub ecx, dword [eax + 0x28]
movzx esi, byte [eax + 0x16]
cmp esi, ecx
cmovg ecx, esi
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0044ff5b
pop ecx
pop ecx
mov esi, eax
jmp 0x4930ec
push 7
pop esi
mov eax, dword [ebp - 0x44]
or edx, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x74], eax
mov al, byte [ebp - 0x19]
push 1
push 0
mov byte [edi + 0xb0], 0
mov byte [edi + 0x5e], al
call fcn.0044ff5b
mov ebx, dword [ebp - 0x40]
mov byte [edi + 0x55], 1
pop ecx
pop ecx
test ebx, ebx
je 0x49314f
mov ecx, dword [ebx + 4]
call fcn.0044fe33
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, edi
call fcn.004745f2
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0ce6
leave
ret