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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
lea eax, [ebp - 0x114]
push esi
push edi
xor esi, esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0040d3ba
add esp, 4
test eax, eax
jne 0x40d058
xor eax, eax
jmp 0x40d2c9
mov edi, dword [ebp + 8]
test edi, edi
je 0x40d0ab
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
inc ebx
cmp ebx, 0x104
jle 0x40d087
xor eax, eax
jmp 0x40d2c9
test edi, edi
je 0x40d0d3
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x410658
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test edi, edi
je 0x40d0d3
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d0c8
xor eax, eax
jmp 0x40d2c9
test al, 0x10
jne 0x40d0d3
xor eax, eax
jmp 0x40d2c9
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
cmp ebx, 0x104
jle 0x40d0fd
xor eax, eax
jmp 0x40d2c9
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 4
cmp eax, 0x104
jle 0x40d129
xor eax, eax
jmp 0x40d2c9
push str..LNK
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d15a
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xc]
push eax
push 0x40e4d0
push 1
push 0
push 0x40e410
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40d17d
xor eax, eax
jmp 0x40d2c9
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0xc]
push eax
push 0x40e480
mov eax, dword [ecx]
push dword [ebp - 0xc]
call dword [eax]
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
push dword [ebp - 0xc]
call dword [eax + 8]
test ebx, ebx
jge 0x40d1a8
xor eax, eax
jmp 0x40d2c9
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
push eax
push 0x40e3f0
mov eax, dword [ecx]
push dword [ebp - 4]
call dword [eax]
test eax, eax
jge 0x40d1cb
mov dword [ebp - 8], 0
jmp 0x40d24e
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x50]
test eax, eax
jl 0x40d24e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
jl 0x40d24e
push edi
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
push dword [ebp - 4]
call dword [ebx + 0x1c]
test eax, eax
jl 0x40d24e
push dword [ebp + 0x10]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
je 0x40d231
cmp byte [eax], 0x5c
jne 0x40d225
mov esi, eax
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
jne 0x40d21e
test esi, esi
je 0x40d238
mov byte [esi], 0
lea eax, [ebp - 0x21c]
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [ecx]
push dword [ebp - 4]
call dword [eax + 0x24]
test eax, eax
jge 0x40d274
cmp dword [ebp - 8], 0
je 0x40d25f
mov eax, dword [ebp - 8]
push dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [ebp - 4], 0
je 0x40d270
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
jmp 0x40d2c9
push 0x105
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x114]
push 0xffffffffffffffff
xor esi, esi
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0x428]
push ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
push dword [ebp - 8]
call dword [ebx + 0x18]
mov edi, eax
mov eax, dword [ebp - 8]
push dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, 1
test edi, edi
jge 0x40d2c9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret