Function at 0x50d8e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5095
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
lea ecx, [ebp - 0x18]
xor bl, bl
call fcn.005464a0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x697c40
push 1
push 0
push 0x697ca0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x50daec
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.005089b0
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.004e4c20
add esp, 8
mov ecx, dword [ebp - 0x3c]
or edi, 0xffffffff
mov byte [ebp - 4], 3
test ecx, ecx
je 0x50d98e
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50d98e
push 4
push 2
push dword [ebp - 0x3c]
call fcn.0045fe90
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00508e80
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.004e4c20
add esp, 8
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x50d9d4
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50d9d4
push 4
push 2
push dword [ebp - 0x48]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
mov esi, dword [eax + 0x50]
call fcn.00496d70
push eax
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x5cb3f0]
call esi
test eax, eax
js 0x50da95
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
call fcn.00496d70
push eax
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x5cb3f0]
call esi
test eax, eax
js 0x50da95
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push 0x697c90
push ecx
mov ecx, esi
call dword [0x5cb3f0]
call esi
test eax, eax
js 0x50da95
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x3c]
push eax
call fcn.005089b0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00496d70
push 1
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x5cb3f0]
call esi
test eax, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
setns bl
call fcn.004019e0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5cb3f0]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5cb3f0]
call esi
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x50dac9
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50dac9
push 4
push 2
push dword [ebp - 0x24]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x50dae8
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50dae8
push 4
push 2
push dword [ebp - 0x30]
call fcn.0045fe90
add esp, 0xc
test bl, bl
jne 0x50dafe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
lea ecx, [ebp - 0x18]
call fcn.005464e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret