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

Disassembly:
push 0xffffffffffffffff
push 0x402d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
mov ebx, 1
push 0
mov dword [esp + 0x334], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4019f0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x401882
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4019f0
lea ecx, [esp + 0x10]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4018a0
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4019f0
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x338], 2
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jne 0x4018d9
mov edx, dword [esp + 0x10]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x4019da
push eax
call dword [ecx + 8]
lea edx, [esp + 0x18]
lea eax, [esp + 4]
push edx
push 0x405064
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 4]
push 0x405058
call fcn.00402a06
lea ecx, [esp + 0x338]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_2
push str..lnk
lea ecx, [esp + 8]
call fcn.00402a06
lea edx, [esp + 8]
push edx
push 0x4034c0
push ebx
push 0
push 0x4034b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4019da
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x33c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x33c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x4034d0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x401992
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x4019da
mov ecx, dword [esp + 4]
lea eax, [esp + 0x120]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x120]
push ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
jge 0x401a33
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 4]
mov byte [esp + 0x330], bl
call fcn.00402a0c
lea ecx, [esp + 0x338]
mov byte [esp + 0x330], 0
call fcn.00402a0c
lea ecx, [esp + 0x33c]
mov dword [esp + 0x330], 0xffffffff
call fcn.00402a0c
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x324]
mov dword fs:[0], ecx
add esp, 0x330
ret
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 4]
mov byte [esp + 0x330], bl
call fcn.00402a0c
lea ecx, [esp + 0x338]
mov byte [esp + 0x330], 0
call fcn.00402a0c
lea ecx, [esp + 0x33c]
mov dword [esp + 0x330], 0xffffffff
call fcn.00402a0c
mov ecx, dword [esp + 0x328]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret