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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d828
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x488250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040fc30
add esp, 4
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x410389
xor bl, bl
jmp 0x410528
lea eax, [ebp - 0x78]
push eax
call fcn.004113e0
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push 0x4635ac
push eax
call fcn.0040b050
push str..lnk
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call fcn.0040ef40
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040bd10
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x4103e1
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00405850
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
cmp eax, 8
jb 0x41040a
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00405850
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
cmp eax, 8
jb 0x410436
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00405850
cmp byte [ebp + 8], 0
lea eax, [ebp - 0x28]
je 0x410517
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x410526
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x46fcf8
push 1
push 0
push 0x46fd18
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41050f
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], 0
push eax
call fcn.00411350
add esp, 4
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 4
jb 0x4104ad
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.0040f7b0
mov eax, dword [ebp - 0x2c]
push 0x4635b0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x46fd08
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x410506
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 1
cmovae edx, dword [ebp - 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x410526
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41053d
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00405850
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004380af
mov esp, ebp
pop ebp
ret