Function at 0x40afe0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
mov dword [ebp - 4], 0
je 0x40b331
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40b331
mov eax, dword [edi + 4]
mov ecx, str.true
mov eax, dword [eax + 0x74]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b034
test dl, dl
je 0x40b030
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b034
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b014
xor eax, eax
jmp 0x40b039
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b331
push 0
push 0
push 0
push str.create_shortcut
mov ecx, 0x434b58
call fcn.00401900
test eax, eax
je 0x40b06c
push eax
push 0x403
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0xc]
push eax
push 0x42b780
push 1
push 0
push 0x42b7a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40b326
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40b0cc
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x18
jmp 0x40b0d3
mov byte [ebp - 0x218], 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00415b43
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
je 0x40b11b
push eax
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00415b9d
jmp 0x40b188
push ebx
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00415b9d
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b43
push str..ico
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b9d
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00416b06
add esp, 0x2c
test eax, eax
jne 0x40b18b
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00415b43
add esp, 0xc
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x40b1ac
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x40b1bd
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
je 0x40b1cb
mov eax, dword [ebp + 0xc]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x31c]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x18]
push edx
push 0x42b790
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40b31c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x20]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x42a618
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b9d
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test ebx, ebx
je 0x40b27f
push ebx
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b9d
push 0x42a618
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b9d
push str..lnk
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov ecx, 0x434b58
mov esi, dword [eax]
lea eax, [ebp - 0x114]
push 1
push eax
call fcn.0040c080
push eax
push dword [ebp + 0x18]
call dword [esi + 0x18]
test eax, eax
jne 0x40b313
test ebx, ebx
jne 0x40b30c
push 0xa
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x240]
call fcn.0041bde7
add esp, 0x10
lea eax, [edi + 0x13c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x42aefc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [edi + 0x240]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x20