Function at 0x408950
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1714
call fcn.00457ef0
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a7b14], 0
je 0x408bd1
push 0x257
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4b4], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x4b4]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x408bd1
push edi
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x25c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4089e5
mov ax, word [0x481cd0]
mov edx, 0x72770c
push esi
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x408a00
lea edi, [ebp - 0x25c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408a10
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x25c]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x408a30
mov eax, dword [str..lnk]
xor edi, edi
mov dword [ecx], eax
mov al, byte [0x481d58]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ecx + 4], al
push 0x257
lea eax, [ebp - 0x70b]
mov dword [ebp - 0x1710], 0
push 0
push eax
mov dword [ebp - 0x1714], 0
mov byte [ebp - 0x70c], 0
call fcn.00453200
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1710]
push eax
push 0x4812d8
push 1
push 0
push 0x481528
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x408ba4
mov eax, dword [ebp - 0x1710]
lea edx, [ebp - 0x4b4]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
xor eax, eax
jmp 0x408ad0
mov cl, byte [ebp + eax - 0x4b4]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x70d], cl
test cl, cl
jne 0x408ad0
lea eax, [ebp - 0x70c]
push 0x5c
push eax
call fcn.00458540
add esp, 8
test eax, eax
je 0x408afe
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x1710]
lea edx, [ebp - 0x70c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x1710]
lea edx, [ebp - 0x1714]
push edx
push 0x481318
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
js 0x408b96
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x170c], ax
lea eax, [ebp - 0x170a]
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x170c]
push 0x800
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1714]
lea edx, [ebp - 0x170c]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x1714]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x1710]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
js 0x408bc0
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x408bce
push 0x1e
call ebx
inc edi
cmp edi, 0xa
jl 0x408a52
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret