Function at 0x45a195
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x49b008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x40], 0
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
inc edx
mov dword [ebp - 0x1c], ecx
push edi
cmp byte [esi + 0x55], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], edx
jne 0x45a1dc
push str.cannot_VACUUM_from_within_a_transaction
mov edx, esi
mov ecx, ebx
call fcn.00405878
xor eax, eax
pop ecx
inc eax
jmp 0x45a5bd
cmp dword [esi + 0xbc], edx
jle 0x45a1eb
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x45a1ca
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x45a221
movzx eax, word [ecx + 0x10]
and eax, 0x3f
cmp byte [eax + 0x48e250], 3
je 0x45a20c
push str.non_text_filename
jmp 0x45a1ca
call fcn.0041fbce
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x45a226
mov edx, 0x48f169
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x48], ecx
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi + 0x70]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x50], ecx
mov ecx, dword [esi + 0x74]
mov dword [ebp - 0x44], eax
or eax, 6
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], ecx
and eax, 0xfffffffe
mov cl, byte [esi + 0x5e]
mov byte [ebp - 0x15], cl
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x24], eax
and ecx, 0xefffafff
mov eax, dword [esi + 0x10]
or ecx, 0x201
shl edi, 4
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5e], 0
mov dword [ebp - 0x30], edi
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.004122d2
push edx
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x14]
push ebx
push esi
mov dword [ebp - 0x20], eax
call fcn.0045a09a
mov ecx, dword [ebp - 0x28]
mov edi, eax
add esp, 0x10
mov dword [esi + 0x3c], ecx
test edi, edi
jne 0x45a551
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x28], edi
je 0x45a33d
mov eax, dword [edi + 4]
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 0x45a323
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x45a30c
cmp dword [ebp - 0xc], eax
jl 0x45a323
jg 0x45a30c
cmp dword [ebp - 0x10], eax
jbe 0x45a323
xor edi, edi
mov edx, esi
push str.output_file_already_exists
mov ecx, ebx
inc edi
call fcn.00405878
pop ecx
jmp 0x45a551
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x30]
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 - 0x34], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00416f33
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + ecx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.00416dd7
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00416e11
mov edx, eax
mov ecx, edi
call fcn.00416e11
mov edx, dword [ebp - 0x34]
mov ecx, edi
or edx, 0x20
call fcn.00416e75
push str.BEGIN
mov edx, ebx
mov ecx, esi
call fcn.00459fde
mov edi, eax
pop ecx
test edi, edi
jne 0x45a551
mov ecx, dword [ebp - 0x14]
xor edx, edx
cmp dword [ebp - 0x1c], edx
push eax
push 2
pop eax
cmove edx, eax
call fcn.0041736d
mov edi, eax
pop ecx
test edi, edi
jne 0x45a551
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x45a3cd
cmp dword [ebp - 0x1c], edi
jne 0x45a3cd
and dword [esi + 0x64], edi
mov edx, dword [ecx + 4]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov edx, dword [edx + 0x24]
push 0
push dword [ebp - 0xc]
call fcn.00416e9a
pop ecx
pop ecx
test eax, eax
jne 0x45a54e
cmp dword [ebp - 0x2c], eax
jne 0x45a406
mov edx, dword [esi + 0x64]
mov ecx, edi
push eax
push dword [ebp - 0xc]
call fcn.00416e9a
pop ecx
pop ecx
test eax, eax
jne 0x45a54e
cmp byte [esi + 0x57], 0
jne 0x45a54e
mov al, byte [esi + 0x5a]
test al, al
js 0x45a41c
movsx eax, al
jmp 0x45a424
mov ecx, dword [ebp - 0x14]
call fcn.00417024
mov edx, eax
mov ecx, edi
call fcn.00416fd2
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
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.0045a09a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45a551
push dword [ebp - 0x24]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push ebx
push esi
call fcn.0045a09a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45a551
push dword [ebp - 0x24]
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.0045a09a
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45a551
push dword [ebp - 0x24]
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.0045a09a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45a551
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
movzx edx, byte [edi + 0x48967c]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041d3ca
movzx eax, byte [edi + 0x48967d]
add eax, dword [ebp - 0x2c]
movzx edx, byte [edi + 0x48967c]
pop ecx
push eax
mov ecx, ebx
call fcn.0041d40c
mov edi, eax
pop ecx
test edi, edi
jne 0x45a551
mov edi, dword [ebp - 0x20]
add edi, 2
mov dword [ebp - 0x20], edi
cmp edi, 0xa
jl 0x45a4b6
cmp dword [ebp - 0x1c], eax
jne 0x45a50d
mov ecx, dword [ebp - 0x14]
mov edx, ebx
call fcn.0041ecf4
mov edi, eax
test edi, edi
jne 0x45a551
mov ecx, ebx
call fcn.00417e8a
mov edi, eax
test edi, edi
jne 0x45a551
cmp dword [ebp - 0x1c], eax
jne 0x45a551
mov ecx, ebx
call fcn.00417024
mov ecx, dword [ebp - 0x14]
mov edx, eax
call fcn.00416fd2
mov ecx, ebx
call fcn.00416f33
mov ecx, dword [ebx + 4]
push 1
push eax
mov edx, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x14]
call fcn.00416e9a
pop ecx
pop ecx
mov edi, eax
jmp 0x45a551
push 7
pop edi
mov eax, dword [ebp - 0x44]
or edx, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x74], eax
mov al, byte [ebp - 0x15]
push 1
push 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.00416e9a
mov ebx, dword [ebp - 0x40]
mov byte [esi + 0x55], 1
pop ecx
pop ecx
test ebx, ebx
je 0x45a5b4
mov ecx, dword [ebx + 4]
call fcn.00416ceb
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, esi
call fcn.0043bd97
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c7a
leave
ret