Function at 0x40aa47
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x46fbb0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x46fcc0
call sub.OLE32.dll_CoCreateInstance
sub esp, 0x14
mov ebx, eax
test eax, eax
js 0x40ac33
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 8
test esi, esi
je 0x40aac5
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x2c]
sub esp, 8
cmp dword [ebp + 0x10], 0
je 0x40aae3
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
test edi, edi
je 0x40aafc
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
cmp dword [ebp + 0x1c], 0
je 0x40ab22
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x468be0
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x40abee
mov dword [esp + 0x14], 0x104
lea ebx, [ebp - 0x228]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov eax, dword [ebp - 0x230]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
test eax, eax
jns 0x40abdb
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str.Save_failed:__d__d___s___s___s___s_
call fcn.00401520
mov eax, dword [ebp - 0x230]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40ac20
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str.QueryInterface_failed:__d__d___s___s___s___s_
call fcn.00401520
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40ac65
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str.CoCreateInstance_failed:__d__d___s___s___s___s_
call fcn.00401520
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret