Function at 0x40f7d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cda27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push esi
push edi
push str.GCreateFileLink
lea ecx, [ebp - 0xcc]
call fcn.00404f76
and dword [ebp - 4], 0
push 0
call fcn.0041b514
pop ecx
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
mov esi, 0x4f1590
lea edi, [ebp - 0xdc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0x4f1560
push 1
push 0
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x40f8c1
push str.Error
push 0x4dafb0
lea eax, [ebp - 0x79]
push eax
push dword [ebp + 0xc]
push str.Unable_to_create_IShellLink_interface__
lea eax, [ebp - 0xaf]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
call fcn.00405cc1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
call fcn.00405b2a
push eax
call fcn.00403bb4
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x79]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xaf]
call fcn.004055b0
and dword [ebp - 0x10], 0
jmp 0x40facd
mov ecx, dword [ebp + 8]
call fcn.00405b2a
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x50]
mov ecx, dword [ebp + 0x10]
call fcn.00405b2a
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x2c]
push 0
mov ecx, dword [ebp + 0x14]
call fcn.00405ab8
movsx eax, byte [eax]
test eax, eax
je 0x40f910
mov ecx, dword [ebp + 0x14]
call fcn.00405b2a
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x24]
jmp 0x40f96c
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.004052c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.004085af
dec eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00409b30
test eax, eax
je 0x40f960
push 0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
call fcn.00406fa2
lea ecx, [ebp - 0x30]
call fcn.00405b2a
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x24]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004055b0
lea eax, [ebp - 0x14]
push eax
push 0x4f1580
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x40fa0d
push str.Error
push 0x4dafb0
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0xc]
push str.Unable_to_query_IPersistFile_interface__
lea eax, [ebp - 0xb8]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
call fcn.00405cc1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
call fcn.00405b2a
push eax
call fcn.00403bb4
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.004055b0
and dword [ebp - 0x14], 0
jmp 0x40facd
push 0x104
lea eax, [ebp - 0x2e4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00405b2a
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea eax, [ebp - 0x2e4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x18]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x40fac5
push str.Error
push 0x4dafb0
lea eax, [ebp - 0xa6]
push eax
push dword [ebp + 0xc]
push str.Unable_to_save_link__
lea eax, [ebp - 0x82]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x64]
call fcn.00405cc1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4c]
call fcn.00405b2a
push eax
call fcn.00403bb4
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa6]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x82]
call fcn.004055b0
jmp 0x40facd
xor eax, eax
jne 0x40f814
cmp dword [ebp - 0x14], 0
je 0x40fae2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 8]
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x40faf7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 8]
and dword [ebp - 0x10], 0
call fcn.0041b59a
cmp dword [ebp - 0x18], 0
jl 0x40fba7
push dword [ebp + 0xc]
call fcn.0040a883
pop ecx
test eax, eax
jne 0x40fba7
push str.Error
push 0x4dafb0
lea eax, [ebp - 0x8b]
push eax
push dword [ebp + 0xc]
push str.Shortcut_creation_failed__
lea eax, [ebp - 0x9d]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x58]
call fcn.00405cc1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x3c]
call fcn.00405b2a
push eax
call fcn.00403bb4
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8b]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9d]
call fcn.004055b0
mov byte [ebp - 0x19], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004050e2
mov al, byte [ebp - 0x19]
jmp 0x40fbd2
cmp dword [ebp - 0x18], 0
jl 0x40fbb6
mov dword [ebp - 0x24], 1
jmp 0x40fbba
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x1a], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004050e2
mov al, byte [ebp - 0x1a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret