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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407bd6
push eax
mov dword fs:[0], esp
sub esp, 0x364
lea eax, [esp + 4]
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4054a8
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4054a8
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 8]
jne 0x4051ed
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
mov ecx, dword [esp + 0x364]
mov dword fs:[0], ecx
add esp, 0x370
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4054a8
lea eax, [esp + 4]
push eax
push 0x408f88
push 1
push ebx
push 0x408f78
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4054a2
push ebp
mov ebp, dword [esp + 0x37c]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x40], bl
je 0x40526f
mov al, byte [esp + edx + 0x41]
inc edx
cmp al, bl
jne 0x405266
mov cl, byte [esp + edx + 0x40]
mov al, 0x5c
cmp cl, al
je 0x405282
mov cl, byte [esp + edx + 0x3f]
dec edx
cmp cl, al
jne 0x405279
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + edx + 0x41], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x40529d
mov byte [esp + edx + 0x40], bl
mov ecx, dword [esp + 0x394]
cmp ecx, ebx
je 0x4052b3
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x388]
push ebp
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x408f98
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x405495
lea edx, [esp + 0x30]
push edx
call sub.MFC42.DLL_AfxVariantInit
mov al, byte [esp + 0x390]
mov dword [esp + 0x37c], ebx
cmp al, bl
je 0x40537b
lea edi, [esp + 0x270]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x16c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40539f
mov edi, 0x40ca94
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x16c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x16c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..lnk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40b6f4]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_fputs]
lea ecx, [esp + 0x170]
push ecx
call esi
mov edx, dword [0x40b6f4]
push edx
push 0x40b468
call esi
add esp, 0x10
lea eax, [esp + 0x16c]
lea ecx, [esp + 0x20]
mov word [esp + 0x20], bx
push eax
call sub.MFC42.DLL_COleVariant::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x37c], 1
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_COleVariant::operator
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x380], bl
call esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [esp + 0x30]
mov dword [esp + 0x37c], 0xffffffff
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x368]
pop ebx
mov dword fs:[0], ecx
add esp, 0x370
ret