Function at 0x406e66
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x40f1b8
push 1
push 0
push 0x40f1a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x406ebb
push str._createinstance_failed
call fcn.0040665b
add esp, 4
jmp 0x407113
lea ecx, [ebp - 0x214]
push ecx
push 0x40f1c8
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [eax]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x406ef9
push str._QI_on_IID_IPersistFile_failed
call fcn.0040665b
add esp, 4
jmp 0x407111
mov dword [ebp - 0x21c], 0
push 0x412114
call fcn.0040a9f0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040a9f0
add esp, 4
lea eax, [esi + eax + 1]
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp + 8]
push edx
push str._SetPath___s_
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.0040665b
add esp, 4
cmp dword [ebp - 0x21c], 0
je 0x406f93
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
push eax
call fcn.0040aa6b
add esp, 4
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [eax + 0x50]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], 0
push 0x412134
call fcn.0040a9f0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040a9f0
add esp, 4
lea eax, [esi + eax + 1]
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp + 0xc]
push edx
push str._SetDescription___s_
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0040665b
add esp, 4
cmp dword [ebp - 0x220], 0
je 0x407049
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
call fcn.0040aa6b
add esp, 4
mov dword [ebp - 0x220], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [eax + 0x1c]
mov dword [ebp - 0x218], eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jge 0x4070ba
push str._Save_link_failed
call fcn.0040665b
add esp, 4
jmp 0x40710f
push str._ok
call fcn.0040665b
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x214], 0
je 0x4070e9
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x210], 0
je 0x407104
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x407115
jmp 0x4070ce
jmp 0x4070ce
jmp 0x4070ce
pop esi
mov esp, ebp
pop ebp
ret