Function at 0x457d50
Capabilities:
Check if file exists
Get file attributes
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [ebp - 0x18], eax
or eax, 0x2800
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebx + 8], eax
cmp byte [ebx + 0x10], cl
jne 0x457d93
mov eax, dword [ebp + 8]
push ecx
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.00425c30
add esp, 0xc
mov edi, 1
jmp 0x45800f
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x4c]
cmp byte [eax], 0
mov dword [ebp - 8], eax
jne 0x457db5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457db8
sub eax, edx
mov esi, eax
lea ecx, [esi + 0x64]
push 1
push ecx
mov dword [ebp - 0x14], esi
call fcn.00425a90
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x457de5
lea edi, [eax + 7]
jmp 0x45800f
mov eax, dword [ebp - 8]
mov edx, edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x457df0
jmp 0x457e03
mov esi, dword [ebp - 0x14]
lea eax, [esi + edi + 1]
mov byte [esi + edi], 0x2d
call fcn.00457b20
mov ecx, edi
call fcn.00434400
mov esi, eax
test esi, esi
je 0x457e3d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
push esi
mov dword [ebp - 8], edx
call fcn.0049b3dd
mov eax, dword [ebp - 8]
add esp, 4
jmp 0x457e4e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x457e00
push edi
push str.ATTACH__q_AS_vacuum_db_
call fcn.0043ebd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x457e6e
lea edi, [eax + 7]
jmp 0x45800f
mov ecx, esi
mov eax, ebx
call fcn.00457bb0
push esi
mov edi, eax
call fcn.0049b3dd
add esp, 4
test edi, edi
jne 0x45800f
mov eax, dword [ebx]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 4]
lea ecx, [eax - 0x18]
mov eax, dword [eax - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
movzx esi, word [ecx + 0x14]
movzx ecx, word [ecx + 0x16]
mov edx, esi
sub edx, ecx
mov dword [ebp - 8], eax
call fcn.00427fd0
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebx
call fcn.00457bb0
mov edi, eax
test edi, edi
jne 0x45800f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
movzx ecx, byte [eax + 0x12]
mov eax, dword [ebp - 8]
push ecx
call fcn.00428030
add esp, 4
mov ecx, str.BEGIN_EXCLUSIVE_
mov eax, ebx
call fcn.00457bb0
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_CREATE_VIEW_vacuum_db.__substr_sql_13_100000000____FROM_sqlite_master_WHERE_typeview
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence_
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
mov ecx, str.SELECT_CREATE_TRIGGER__vacuum_db.__substr_sql__16__1000000__FROM_sqlite_master_WHERE_typetrigger
call fcn.00457c70
mov edi, eax
test edi, edi
jne 0x45800f
xor esi, esi
movzx edi, byte [esi + 0x4d1fd0]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
call fcn.0042d500
mov edi, eax
add esp, 4
test edi, edi
jne 0x45800c
movzx ebx, byte [esi + 0x4d1fd1]
movzx edi, byte [esi + 0x4d1fd0]
add ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0042d5f0
mov edi, eax
test edi, edi
jne 0x45800c
add esi, 2
cmp esi, 8
jb 0x457f98
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push esi
mov ecx, ebx
call fcn.0042e450
mov edi, eax
add esp, 4
test edi, edi
jne 0x45800c
push ebx
call fcn.00428d20
mov edi, eax
add esp, 4
test edi, edi
jne 0x45800c
push esi
call fcn.00428d20
add esp, 4
mov edi, eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov byte [ebx + 0x10], 1
test esi, esi
je 0x458034
mov ecx, dword [esi + 4]
push ecx
call fcn.00427e60
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x45804b
mov eax, esi
call fcn.004345c0
push esi
call fcn.0049b3dd
add esp, 4
push 0
call fcn.00435e10
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret