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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d0e1
push eax
mov dword fs:[0], esp
sub esp, 0x13c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x402b51
mov eax, dword [esp + 0x150]
cmp eax, 1
jne 0x402843
lea ecx, [esp + 8]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x402b51
jmp 0x40285e
cmp eax, 2
jne 0x40285e
lea edx, [esp + 8]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x402b51
mov ecx, dword [esp + 8]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4028a0
mov ecx, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
add esp, 0x148
ret
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402b51
lea edx, [esp + 4]
push edx
push 0x40e270
push 1
push 0
push 0x40e260
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402b4b
mov eax, dword [esp + 0x14c]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4028f9
mov ecx, 0x40e258
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00403570
mov edi, 0x413310
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.00403740
test al, al
je 0x40295e
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x413310
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.00403720
mov edi, 0x410210
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x150], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x410210
lea ecx, [esp + 0x38]
call fcn.004035c0
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x402994
mov ecx, 0x40e258
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x40e300
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x402b1a
mov dl, byte [esp + 0xf]
push ebx
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.00403570
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call fcn.00403740
test al, al
je 0x402a1c
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00403720
mov edi, 0x41020c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x154], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41020c
lea ecx, [esp + 0x2c]
call fcn.004035c0
mov edi, 0x413310
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x413310
lea ecx, [esp + 0x2c]
call fcn.004035c0
mov edi, 0x410204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x410204
lea ecx, [esp + 0x2c]
call fcn.004035c0
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x402a8b
mov ebp, 0x40e258
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0
call ebx
mov edi, eax
dec edi
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x402abb
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0
call ebx
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x20]
push 1
push esi
push eax
mov ecx, dword [eax]
mov byte [esp + 0x160], 2
call dword [ecx + 0x18]
push esi
mov byte [esp + 0x158], 1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x154], 0
test ecx, ecx
pop ebx
je 0x402b1a
mov al, byte [ecx - 1]
test al, al
je 0x402b10
cmp al, 0xff
je 0x402b10
dec al
mov byte [ecx - 1], al
jmp 0x402b1a
dec ecx
push ecx
call fcn.00403aa0
add esp, 4
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
test ecx, ecx
je 0x402b4b
mov al, byte [ecx - 1]
test al, al
je 0x402b41
cmp al, 0xff
je 0x402b41
dec al
mov byte [ecx - 1], al
jmp 0x402b4b
dec ecx
push ecx
call fcn.00403aa0
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
add esp, 0x148
ret