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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1714
call fcn.00456fe0
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4ab490], 0
je 0x4063f1
push 0x257
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4b4], 0
push 0
push eax
call fcn.00452270
add esp, 0xc
lea eax, [ebp - 0x4b4]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4063f1
push edi
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00452270
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 0x406205
mov ax, word [0x482998]
mov edx, 0x6b054c
push esi
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x406220
lea edi, [ebp - 0x25c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406230
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 0x406250
mov eax, dword [str..lnk]
xor edi, edi
mov dword [ecx], eax
mov al, byte [0x482a20]
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.00452270
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1710]
push eax
push 0x4822f8
push 1
push 0
push 0x482548
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x4063c4
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 0x4062f0
mov cl, byte [ebp + eax - 0x4b4]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x70d], cl
test cl, cl
jne 0x4062f0
lea eax, [ebp - 0x70c]
push 0x5c
push eax
call fcn.00457750
add esp, 8
test eax, eax
je 0x40631e
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 0x482338
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
js 0x4063b6
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x170c], ax
lea eax, [ebp - 0x170a]
push eax
call fcn.00452270
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 0x4063e0
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x4063ee
push 0x1e
call ebx
inc edi
cmp edi, 0xa
jl 0x406272
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret