Function at 0x40fe78
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479ace
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x40feb9
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x258], eax
jmp 0x40fec2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x258], eax
push dword [ebp - 0x258]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff6d
lea eax, [ebp - 0x251]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x25c], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00401ecc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call fcn.004056c3
pop ecx
pop ecx
cmp dword [ebp - 0x20], 0x10
jb 0x40ff21
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x260], eax
jmp 0x40ff2a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x260], eax
push dword [ebp - 0x260]
push str._Sys_wrapper_RedirectIconLnk__path_not_exist:_s
push 0x4825e5
push 4
call fcn.0040479d
add esp, 0x10
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x245]
jmp 0x410130
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x488c78
push 1
push 0
push 0x488cb8
call dword [sym.imp.ole32.dll_CoCreateInstance]
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0xd], cl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x410127
lea eax, [ebp - 0x38]
push eax
push 0x488ca8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax]
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0xd], cl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x41011c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40ffe8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x264], eax
jmp 0x40fff1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x264], eax
push 1
push dword [ebp - 0x264]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
push dword [ebp - 0x38]
call dword [eax + 0x14]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x410111
push 1
push 0
push 0x104
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x410049
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x268], eax
jmp 0x410052
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x268], eax
push dword [ebp - 0x268]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x50]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 8
jb 0x410079
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x26c], eax
jmp 0x410082
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x2c]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x4100a9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x270], eax
jmp 0x4100b2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
push dword [ebp - 0x270]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x24]
push 0
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x44]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4100ed
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x274], eax
jmp 0x4100f6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x274], eax
push 1
push dword [ebp - 0x274]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
push dword [ebp - 0x38]
call dword [eax + 0x18]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
push dword [ebp - 0x38]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044b3ec
leave
ret