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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc12b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x688
mov eax, dword [0x4f6440]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x40815f
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x408184
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x408180
cmp ecx, edx
je 0x408184
dec ecx
cmp byte [ecx], 0x2e
jne 0x408176
sub ecx, edx
jmp 0x408187
or ecx, 0xffffffff
cmp dword [edi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x658], xmm0
cmovb ecx, dword [edi + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
jbe 0x4081b6
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x658]
call fcn.0041f3b0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x408586
cmp dword [edi + 0x14], 0xf
jbe 0x4081ef
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x228]
push eax
push str._s_s
lea eax, [ebp - 0x438]
push 0x104
push eax
call fcn.0042c880
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x438]
add esp, 0x14
push eax
call edi
cmp eax, 0xffffffff
jne 0x408586
cmp dword [ebp - 0x644], 0xf
lea eax, [ebp - 0x658]
cmova eax, dword [ebp - 0x658]
push eax
lea eax, [ebp - 0x228]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.0042c880
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
call edi
cmp eax, 0xffffffff
je 0x408386
xorps xmm0, xmm0
mov dword [ebp - 0x678], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x674], 0
movups xmmword [ebp - 0x688], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408296
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x688]
call fcn.0041f3b0
lea edx, [ebp - 0x688]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x670]
call fcn.00407f70
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x674]
cmp ecx, 0xf
jbe 0x408305
mov edx, dword [ebp - 0x688]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4082fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085da
push ecx
push edx
call fcn.0049f19c
add esp, 8
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x40830f
mov eax, dword [esi]
cmp dword [ebp - 0x65c], 0xf
lea ecx, [ebp - 0x670]
push dword [esi + 0x10]
mov edi, dword [ebp - 0x670]
cmova ecx, edi
mov edx, dword [ebp - 0x660]
push eax
call fcn.004266b0
add esp, 8
test al, al
jne 0x40849b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x65c]
cmp ecx, 0xf
jbe 0x408386
mov edx, dword [ebp - 0x670]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40837c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085df
push ecx
push edx
call fcn.0049f19c
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x68c]
push eax
push 0x4e1498
push 1
push 0
push 0x4e14a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408580
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x4083bb
mov edx, dword [esi]
mov eax, dword [ebp - 0x68c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [esi + 0x14], 0xf
jbe 0x4083d0
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x330]
push 0x104
push eax
call fcn.004b0907
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [ebp - 0x68c]
lea edx, [ebp - 0x330]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x68c]
lea edx, [ebp - 0x694]
push edx
push 0x4e14b8
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x408574
mov eax, dword [ebx + 8]
mov edx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x408431
mov edx, dword [eax]
push dword [eax + 0x10]
mov esi, dword [ebp - 0x644]
lea ecx, [ebp - 0x658]
mov edi, dword [ebp - 0x658]
cmp esi, 0xf
push edx
mov edx, dword [ebp - 0x648]
cmova ecx, edi
mov dword [ebp - 0x690], edx
call fcn.004266b0
add esp, 8
test al, al
je 0x408507
mov ecx, dword [ebp - 0x690]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x4084da
lea eax, [ecx + 4]
cmp esi, 0xf
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x658]
cmova eax, edi
mov dword [eax + ecx], 0x5ddcb65b
mov byte [eax + ecx + 4], 0
jmp 0x4084fb
mov eax, dword [ebp - 0x65c]
cmp eax, 0xf
jbe 0x408586
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4084cb
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085df
push ecx
push edi
call fcn.0049f19c
add esp, 8
jmp 0x408586
push 4
push 0x4ea980
mov byte [ebp - 0x690], 0
lea ecx, [ebp - 0x658]
push dword [ebp - 0x690]
push 4
call fcn.0041f170
mov edi, dword [ebp - 0x658]
mov esi, dword [ebp - 0x644]
cmp esi, 0xf
lea eax, [ebp - 0x658]
cmova eax, edi
push eax
lea eax, [ebp - 0x228]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.0042c880
add esp, 0x14
lea eax, [ebp - 0x640]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x120]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x694]
lea edx, [ebp - 0x640]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x694]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x68c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x644]
cmp ecx, 0xf
jbe 0x4085bc
mov edx, dword [ebp - 0x658]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4085b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085e4
push ecx
push edx
call fcn.0049f19c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049f18e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a47f6
call fcn.004a47f6
call fcn.004a47f6
int3