Function at 0x407ce0
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 0x4c984b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x688
mov eax, dword [0x4f3480]
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 0x407d2f
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x407d54
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x407d50
cmp ecx, edx
je 0x407d54
dec ecx
cmp byte [ecx], 0x2e
jne 0x407d46
sub ecx, edx
jmp 0x407d57
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 0x407d86
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x658]
call fcn.0041d980
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 0x408156
cmp dword [edi + 0x14], 0xf
jbe 0x407dbf
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.0042aad0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x438]
add esp, 0x14
push eax
call edi
cmp eax, 0xffffffff
jne 0x408156
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.0042aad0
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
call edi
cmp eax, 0xffffffff
je 0x407f56
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 0x407e66
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x688]
call fcn.0041d980
lea edx, [ebp - 0x688]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x670]
call fcn.00407b40
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x674]
cmp ecx, 0xf
jbe 0x407ed5
mov edx, dword [ebp - 0x688]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407ecb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081aa
push ecx
push edx
call fcn.0049d2cb
add esp, 8
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x407edf
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.00424d20
add esp, 8
test al, al
jne 0x40806b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x65c]
cmp ecx, 0xf
jbe 0x407f56
mov edx, dword [ebp - 0x670]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081af
push ecx
push edx
call fcn.0049d2cb
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x68c]
push eax
push 0x4de498
push 1
push 0
push 0x4de4a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408150
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x407f8b
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 0x407fa0
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x330]
push 0x104
push eax
call fcn.004ad4c4
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 0x4de4b8
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x408144
mov eax, dword [ebx + 8]
mov edx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x408001
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.00424d20
add esp, 8
test al, al
je 0x4080d7
mov ecx, dword [ebp - 0x690]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x4080aa
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 0x4080cb
mov eax, dword [ebp - 0x65c]
cmp eax, 0xf
jbe 0x408156
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40809b
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081af
push ecx
push edi
call fcn.0049d2cb
add esp, 8
jmp 0x408156
push 4
push 0x4e7a34
mov byte [ebp - 0x690], 0
lea ecx, [ebp - 0x658]
push dword [ebp - 0x690]
push 4
call fcn.0041d820
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.0042aad0
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 0x40818c
mov edx, dword [ebp - 0x658]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408182
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081b4
push ecx
push edx
call fcn.0049d2cb
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.0049d2bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a2926
call fcn.004a2926
call fcn.004a2926
int3