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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ed7c
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 0x4022d0
xor eax, eax
jmp 0x402501
lea eax, [esp + 4]
mov dword [esp + 4], ebx
push eax
push 0x410e18
push 1
push ebx
push 0x410e08
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x4022f7
xor eax, eax
jmp 0x402501
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
mov ecx, dword [eax]
push 0x410e28
push eax
call dword [ecx]
cmp eax, ebx
je 0x40232b
xor eax, eax
jmp 0x402501
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc40]
push ebp
push esi
mov ecx, dword [eax]
push edi
push ebx
push edx
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0xc3c]
push ebx
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 + 0x1c]
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 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 + 0x1c]
sub edx, ecx
cmp edx, edi
ja 0x4023bc
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp edi, ebx
jbe 0x4023fd
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
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 0x4023fd
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
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 + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x40240a
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 + 0x1c]
sub edx, ecx
cmp edx, edi
ja 0x40243e
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp edi, ebx
jbe 0x40247f
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
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 0x40247f
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
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 + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x18]
pop edi
pop esi
cmp eax, ebx
pop ebp
jne 0x40248f
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 + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4024fc
mov cl, byte [eax - 1]
cmp cl, bl
je 0x4024f2
cmp cl, 0xff
je 0x4024f2
dec cl
mov byte [eax - 1], cl
jmp 0x4024fc
dec eax
push eax
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 0x14