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

Disassembly:
push 0xffffffffffffffff
push 0x406a91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
push 0
mov dword [esp + 0x334], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402b76
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov byte [esp + 0x330], 2
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x402b5f
lea ecx, [esp + 0x10]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x402b5f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4029f4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [esp + 0x18]
lea eax, [esp + 4]
push edx
push 0x40a3e4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 4]
push 0x40a37c
call fcn.00406418
lea ecx, [esp + 0x338]
push ecx
lea ecx, [esp + 8]
call fcn.00406466
push str..lnk
lea ecx, [esp + 8]
call fcn.00406418
lea edx, [esp]
push edx
push 0x407d30
push 1
push 0
push 0x407d20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402b5f
lea eax, [esp + 0x33c]
push str.installPrinter.ico
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator
mov ecx, dword [esp]
mov eax, dword [eax]
push 0
push eax
mov edx, dword [ecx]
push ecx
mov byte [esp + 0x33c], 3
call dword [edx + 0x44]
lea ecx, [esp + 0xc]
mov byte [esp + 0x330], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
push str.POS_printer_driver_setup_config
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edx, [esp + 0x33c]
push str.PrinterTestDemo.exe
lea eax, [esp + 0x10]
push edx
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [esp]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x338], 4
call dword [edx + 0x50]
lea ecx, [esp + 0xc]
mov byte [esp + 0x330], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
mov edx, dword [esp + 0x33c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push 0x407d40
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x402b4b
mov ecx, dword [esp + 4]
lea eax, [esp + 0x120]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x120]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
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], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x338]
mov byte [esp + 0x330], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x33c]
mov dword [esp + 0x330], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
add esp, 0x334
ret