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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ca1c
push eax
mov dword fs:[0], esp
sub esp, 0xc1c
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x4025a0
xor eax, eax
jmp 0x4027eb
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 0x40d658
push 1
push ebx
push 0x40d648
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x4025c7
xor eax, eax
jmp 0x4027eb
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
mov ecx, dword [eax]
push 0x40d668
push eax
call dword [ecx]
cmp eax, ebx
je 0x4025fb
xor eax, eax
jmp 0x4027eb
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc40]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x2b]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, dword [esp + 0xc48]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc34], ebx
mov edi, 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 + 0x18]
sub edx, ecx
cmp edx, edi
ja 0x40268d
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp edi, ebx
jbe 0x4026ce
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
lea ebp, [eax + edi]
push ebp
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 0x4026ce
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, edi
lea edi, [eax + edx]
mov edx, ecx
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], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4026db
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]
push eax
call dword [sym.imp.IMAGEHLP.dll_MakeSureDirectoryPathExists]
mov esi, dword [esp + 0xc40]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 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 + 0x18]
sub edx, ecx
cmp edx, edi
ja 0x40270f
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp edi, ebx
jbe 0x402750
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
lea ebp, [eax + edi]
push ebp
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 0x402750
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, edi
lea edi, [eax + edx]
mov edx, ecx
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], ebp
mov byte [eax + ebp], bl
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x42e]
mov word [esp + 0x42c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
cmp eax, ebx
pop ebp
jne 0x40277a
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 ecx, [esp + 0x420]
push 0x3ff
push ecx
push 0xffffffffffffffff
push eax
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x420]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x4027e6
mov al, byte [ecx - 1]
cmp al, bl
je 0x4027dc
cmp al, 0xff
je 0x4027dc
dec al
mov byte [ecx - 1], al
jmp 0x4027e6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xc20]
pop ebx
mov dword fs:[0], ecx
add esp, 0xc28
ret 0x10