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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526dae
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x50f9b7
lea eax, [ebp - 0x23c]
push eax
push 0x19
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x50f9b7
push 0x20a
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x50f9f0
mov eax, dword [ebp - 0x240]
push dword [ebp - 0x23c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x50f9d0
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x238]
push eax
push 0x536404
push 1
push 0
push 0x54ece0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x50fa36
mov eax, dword [ebp - 0x240]
push dword [ebp - 0x23c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
xor esi, esi
jmp 0x50fb97
cmp dword [edi + 0x10], 0
je 0x50fa53
cmp dword [edi + 0x14], 8
jb 0x50fa44
mov edi, dword [edi]
mov eax, dword [ebp - 0x238]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp dword [ebx + 0x14], 8
jb 0x50fa5b
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x238]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x248]
cmp dword [edx + 0x14], 8
jb 0x50fa76
mov edx, dword [edx]
mov eax, dword [ebp - 0x238]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x24c]
cmp dword [edx + 0x14], 8
jb 0x50fa91
mov edx, dword [edx]
mov eax, dword [ebp - 0x238]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 0x238]
push edx
push 0x54c320
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x50fae0
mov eax, dword [ebp - 0x240]
push dword [ebp - 0x23c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
xor esi, esi
jmp 0x50fb83
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00410030
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x234]
push 0x532d98
call fcn.0050ef50
mov eax, dword [ebp - 0x250]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x50fb16
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x234]
call fcn.0042e5e0
push str..lnk
lea ecx, [ebp - 0x234]
call fcn.0050ef50
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
push 1
cmovae edx, dword [ebp - 0x234]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
push dword [ebp - 0x23c]
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x240]
cmovns esi, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x234]
call fcn.00410350
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x50fb97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x50f9b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x50f9b9