Function at 0x40f020
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x34]
push esi
lea eax, [esp + 0xc]
push eax
push 0x426550
push 1
xor esi, esi
push esi
push 0x426560
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40f1dd
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x426570
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40f1dd
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
test edi, edi
je 0x40f0a2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
test ebp, ebp
je 0x40f0b3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebp
push eax
call edx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x40f0ce
movzx esi, word [esp + 0x40]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push esi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov ecx, dword [esp + 0x44]
cmp ecx, 0xffffffff
je 0x40f0e4
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x34]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x428118
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40f1c5
cmp dword [esp + 0x48], 0
mov esi, dword [sym.imp.ole32.dll_PropVariantClear]
je 0x40f15f
mov eax, dword [esp + 0x10]
or edx, 0xffffffff
mov word [esp + 0x20], dx
lea edx, [esp + 0x18]
push edx
mov ecx, 0xb
mov word [esp + 0x1c], cx
mov ecx, dword [eax]
push 0x42b05c
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x42b070
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
lea eax, [esp + 0x18]
push eax
call esi
cmp dword [esp + 0x4c], 0
je 0x40f1c5
lea edx, [esp + 0x20]
push edx
mov ecx, 0x1f
push 0x42b224
mov word [esp + 0x20], cx
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
test eax, eax
jge 0x40f198
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jmp 0x40f1c5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x42b048
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x40f1be
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
lea eax, [esp + 0x18]
push eax
call esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40f1ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f1fd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40f20d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
pop ebp
add esp, 0x24
ret