Function at 0x10066930
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1820
call fcn.1008ba80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, esi
mov dword [ebp - 0x180c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1820], edx
mov dword [ebp - 0x181c], eax
mov dword [ebp - 0x1814], 0
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10066974
sub edi, edx
mov word [ebp - 0x1004], cx
lea ecx, [ebp - 0xffe]
sar edi, 1
mov dword [ebp - 0x1002], 0x5c003a
sub ecx, esi
lea esp, [esp]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x100669a0
lea edi, [edi*2 + 6]
mov ecx, str..lnk
lea esi, [ebp - 0x1004]
add esi, edi
mov ebx, esi
sub ebx, ecx
jmp 0x100669d0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x100669d0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10066dcc
lea eax, [ebp - 0x1808]
push eax
push 0x1009a3d0
push 1
push 0
push 0x1009a410
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x10066dcc
mov eax, dword [ebp - 0x1808]
lea edx, [ebp - 0x1810]
push edx
push 0x1009a420
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x10066d8c
cmp edi, 0x800
jae 0x10066de1
and dword [ebp + 0x10], 0x10
mov word [esi], ax
je 0x10066b6d
lea ecx, [ebp - 0x804]
call fcn.10066760
test eax, eax
je 0x10066d80
xor ecx, ecx
jmp 0x10066a70
movzx eax, word [ebp + ecx - 0x804]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1806], ax
test ax, ax
jne 0x10066a70
lea eax, [ebp - 0x804]
push eax
call fcn.1007c6b3
lea eax, [ebp - 0x804]
push str._SYSTEMROOT_
push eax
call fcn.1007c198
add esp, 0xc
test eax, eax
je 0x10066d80
lea eax, [ebp - 0x804]
push 0x2c
push eax
call fcn.1007b43d
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10066af9
lea edx, [ebp - 0x804]
sub eax, edx
xor edx, edx
sar eax, 1
mov word [ebp + eax*2 - 0x1804], dx
xor eax, eax
mov word [ecx], ax
add ecx, 2
cmp word [ecx], 0x2d
jne 0x10066aec
add ecx, 2
push ecx
call fcn.1007bf08
add esp, 4
mov edi, eax
jmp 0x10066aff
mov edi, dword [ebp - 0x180c]
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.1007b43d
mov esi, eax
add esp, 8
test esi, esi
je 0x10066cc5
lea eax, [ebp - 0x804]
push str.SHELL32.DLL
push eax
call fcn.1007c198
add esp, 8
test eax, eax
jne 0x10066cc5
lea eax, [ebp - 0x804]
mov ecx, str.shell32.dll
sub esi, eax
lea edx, [ebp - 0x1804]
add esi, 2
and esi, 0xfffffffe
sub esi, ecx
add edx, esi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10066b53
mov edi, 3
jmp 0x10066cc5
lea eax, [ebp - 0x1004]
push 0x2e
push eax
call fcn.1007b43d
add esp, 8
mov dword [ebp - 0x1818], eax
test eax, eax
je 0x10066d80
push eax
lea ecx, [ebp - 0x804]
call fcn.100667d0
add esp, 4
test eax, eax
je 0x10066d80
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x804]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1806], ax
test ax, ax
jne 0x10066ba5
lea eax, [ebp - 0x804]
push eax
call fcn.1007c6b3
lea eax, [ebp - 0x804]
push str._SYSTEMROOT_
push eax
call fcn.1007c198
add esp, 0xc
test eax, eax
je 0x10066d80
lea eax, [ebp - 0x804]
push 0x2c
push eax
call fcn.1007b43d
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10066c3d
lea edx, [ebp - 0x804]
sub eax, edx
xor edx, edx
sar eax, 1
mov word [ebp + eax*2 - 0x1804], dx
xor eax, eax
mov word [ecx], ax
add ecx, 2
cmp word [ecx], 0x2d
jne 0x10066c30
lea eax, [ecx + 2]
push eax
call fcn.1007bf08
mov edi, eax
add esp, 4
neg edi
jmp 0x10066c43
push ecx
call fcn.1007bf08
add esp, 4
mov edi, eax
jmp 0x10066c43
mov edi, dword [ebp - 0x180c]
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.1007b43d
mov esi, eax
add esp, 8
test esi, esi
je 0x10066d80
lea eax, [ebp - 0x804]
push str.SHELL32.DLL
push eax
call fcn.1007c198
add esp, 8
test eax, eax
jne 0x10066cc5
lea eax, [ebp - 0x804]
mov ecx, str.shell32.dll
sub esi, eax
lea edx, [ebp - 0x1804]
add esi, 2
and esi, 0xfffffffe
sub esi, ecx
add edx, esi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10066c93
mov eax, dword [ebp - 0x1818]
push 0x100c6848
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10066d80
mov edi, 0xffffff68
mov eax, dword [ebp - 0x1808]
push dword [ebp - 0x1820]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x1808]
push 0
push dword [ebp - 0x180c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x1808]
lea edx, [ebp - 0x1804]
push edi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp dword [ebp + 0x10], 0
mov eax, 0x31
jne 0x10066d0f
mov eax, 0x30
mov word [ebp - 0x1000], ax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp - 0x1808]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push dword [ebp - 0x181c]
mov eax, 0x5c
mov word [ebp - 0x1000], ax
mov eax, dword [ebp - 0x1808]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, str..lnk
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x10066d50
mov eax, dword [ebp - 0x1810]
lea edx, [ebp - 0x1004]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1814], eax
mov eax, dword [ebp - 0x1810]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1808]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x1814]
test esi, esi
je 0x10066dce
mov edx, dword [ebp - 0x180c]
lea ecx, [ebp - 0x1004]
sub esp, 0xc
call fcn.100654c0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret
call fcn.1007b843
int3