Function at 0x4a5e90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 0x2c], 0
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor edx, edx
inc edx
push edi
cmp byte [esi + 0x55], 0
mov dword [ebp - 0x10], edx
jne 0x4a5ec2
push str.cannot_VACUUM_from_within_a_transaction
mov edx, esi
call fcn.004512d5
xor eax, eax
pop ecx
inc eax
jmp 0x4a62a8
cmp dword [esi + 0xbc], edx
jle 0x4a5ed1
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x4a5eb2
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x4a5f0c
movzx eax, word [ecx + 0x10]
and eax, 0x3f
cmp byte [eax + 0x85ddc0], 3
je 0x4a5ef7
push str.non_text_filename
mov ecx, ebx
jmp 0x4a5eb2
call fcn.0046b388
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x4a5f11
mov edx, 0x858903
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], edi
mov edi, dword [esi + 0x68]
mov dword [ebp - 0x38], edi
mov edi, dword [esi + 0x6c]
mov dword [ebp - 0x3c], edi
mov edi, dword [esi + 0x70]
mov dword [ebp - 0x40], edi
mov edi, dword [esi + 0x74]
mov dword [ebp - 0x24], ecx
mov cl, byte [esi + 0x5e]
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x28]
mov byte [ebp - 1], cl
and edi, 0xfffffffe
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x24], edi
and ecx, 0xefffafff
mov edi, dword [ebp + 8]
or ecx, 0x201
mov dword [ebp - 0x34], eax
or eax, 6
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
shl edi, 4
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5e], 0
mov dword [ebp + 8], edi
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.0045dac8
push edx
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x14]
push ebx
push esi
mov dword [ebp - 0x1c], eax
call fcn.004a5d9c
mov ecx, dword [ebp - 0x20]
mov edi, eax
add esp, 0x10
mov dword [esi + 0x3c], ecx
test edi, edi
jne 0x4a623c
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
je 0x4a6028
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
movlpd qword [ebp - 0x18], xmm0
cmp dword [ecx], 0
je 0x4a600e
lea edx, [ebp - 0x18]
call fcn.00450088
test eax, eax
jne 0x4a5ff7
cmp dword [ebp - 0x14], eax
jl 0x4a600e
jg 0x4a5ff7
cmp dword [ebp - 0x18], eax
jbe 0x4a600e
xor edi, edi
mov edx, esi
push str.output_file_already_exists
mov ecx, ebx
inc edi
call fcn.004512d5
pop ecx
jmp 0x4a623c
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
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 ecx, dword [ebp - 8]
call fcn.0046288e
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.00462728
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.0046276c
mov edx, eax
mov ecx, edi
call fcn.0046276c
mov edx, dword [ebp - 0x10]
mov ecx, edi
or edx, 0x20
call fcn.004627d0
push str.BEGIN
mov edx, ebx
mov ecx, esi
call fcn.004a5ce0
mov edi, eax
pop ecx
test edi, edi
jne 0x4a623c
mov ecx, dword [ebp - 8]
xor edx, edx
cmp dword [ebp + 0xc], edx
push eax
push 2
pop eax
cmove edx, eax
call fcn.00462cc8
mov edi, eax
pop ecx
test edi, edi
jne 0x4a623c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x4a60b8
cmp dword [ebp + 0xc], edi
jne 0x4a60b8
and dword [esi + 0x64], edi
mov edx, dword [ecx + 4]
mov edi, dword [ebp - 0x20]
mov ecx, edi
mov edx, dword [edx + 0x24]
push 0
push dword [ebp - 0x14]
call fcn.004627f5
pop ecx
pop ecx
test eax, eax
jne 0x4a6239
cmp dword [ebp - 0x30], eax
jne 0x4a60f1
mov edx, dword [esi + 0x64]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.004627f5
pop ecx
pop ecx
test eax, eax
jne 0x4a6239
cmp byte [esi + 0x57], 0
jne 0x4a6239
mov al, byte [esi + 0x5a]
test al, al
js 0x4a6107
movsx eax, al
jmp 0x4a610f
mov ecx, dword [ebp - 8]
call fcn.0046297f
mov edx, eax
mov ecx, edi
call fcn.0046292d
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 ebx
push esi
mov byte [esi + 0xb0], al
call fcn.004a5d9c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a623c
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push ebx
push esi
call fcn.004a5d9c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a623c
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 ebx
push esi
call fcn.004a5d9c
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a623c
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 ebx
push esi
call fcn.004a5d9c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a623c
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
movzx edx, byte [edi + 0x85916c]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 8]
push eax
call fcn.00468c7c
movzx eax, byte [edi + 0x85916d]
add eax, dword [ebp - 0x30]
movzx edx, byte [edi + 0x85916c]
pop ecx
push eax
mov ecx, ebx
call fcn.00468cbe
mov edi, eax
pop ecx
test edi, edi
jne 0x4a623c
mov edi, dword [ebp - 0x1c]
add edi, 2
mov dword [ebp - 0x1c], edi
cmp edi, 0xa
jl 0x4a61a1
cmp dword [ebp + 0xc], eax
jne 0x4a61f8
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0046a4b6
mov edi, eax
test edi, edi
jne 0x4a623c
mov ecx, ebx
call fcn.00463838
mov edi, eax
test edi, edi
jne 0x4a623c
cmp dword [ebp + 0xc], eax
jne 0x4a623c
mov ecx, ebx
call fcn.0046297f
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.0046292d
mov ecx, ebx
call fcn.0046288e
mov ecx, dword [ebx + 4]
push 1
push eax
mov edx, dword [ecx + 0x24]
mov ecx, dword [ebp - 8]
call fcn.004627f5
pop ecx
pop ecx
mov edi, eax
jmp 0x4a623c
push 7
pop edi
mov eax, dword [ebp - 0x34]
or edx, 0xffffffff
mov ecx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x74], eax
mov al, byte [ebp - 1]
push 1
push 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.004627f5
mov ebx, dword [ebp - 0x2c]
mov byte [esi + 0x55], 1
pop ecx
pop ecx
test ebx, ebx
je 0x4a629f
mov ecx, dword [ebx + 4]
call fcn.0046268f
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, esi
call fcn.004871e7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret