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

Disassembly:
push 0xffffffffffffffff
push 0x40ed5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
mov al, byte [esp + 0x17]
push esi
push 0
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0
mov dword [esp + 0x340], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40226f
mov eax, dword [esp + 0x344]
lea edx, [esp + 0x20]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40200e
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x1c]
push ebx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40205f
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov byte [eax + ebx], 0
mov edi, 0x4160a0
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x40208b
call ebp
test esi, esi
jbe 0x4020d2
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [eax + esi]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4020d2
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x4160a0
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x358]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x1c]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, edi
ja 0x4020fa
call ebp
test edi, edi
pop ebp
jbe 0x40213d
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [edx + edi]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40213d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, edi
push ebx
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0xc]
push ecx
push 0x410e18
push 1
push 0
push 0x410e08
call dword [sym.imp.ole32.dll_CoCreateInstance]
pop edi
pop ebx
test eax, eax
jge 0x40218c
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x402286
mov al, byte [ecx - 1]
test al, al
je 0x40217d
cmp al, 0xff
je 0x40217d
dec al
mov byte [ecx - 1], al
jmp 0x402286
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x402286
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x348]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push 0x410e28
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [esp + 4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x354]
push 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x44]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x350]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jl 0x40215c
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4021f7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x12c]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x12c]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x402268
mov al, byte [ecx - 1]
test al, al
je 0x40225e
cmp al, 0xff
je 0x40225e
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x402288
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x402288
push 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x340], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
mov ecx, dword [esp + 0x334]
pop esi
mov dword fs:[0], ecx
add esp, 0x33c
ret 0x14