Function at 0x507250
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bea15
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
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.0053fe10
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x685d00
push 1
push 0
push 0x685d60
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x50745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00502320
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.004de580
add esp, 8
mov ecx, dword [ebp - 0x3c]
or edi, 0xffffffff
mov byte [ebp - 4], 3
test ecx, ecx
je 0x5072fe
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5072fe
push 4
push 2
push dword [ebp - 0x3c]
call fcn.004597e0
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.005027f0
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.004de580
add esp, 8
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x507344
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x507344
push 4
push 2
push dword [ebp - 0x48]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
mov esi, dword [eax + 0x50]
call fcn.004906d0
push eax
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x5c53f0]
call esi
test eax, eax
js 0x507405
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
call fcn.004906d0
push eax
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x5c53f0]
call esi
test eax, eax
js 0x507405
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 0x685d50
push ecx
mov ecx, esi
call dword [0x5c53f0]
call esi
test eax, eax
js 0x507405
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.00502320
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004906d0
push 1
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x5c53f0]
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 [0x5c53f0]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5c53f0]
call esi
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x507439
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x507439
push 4
push 2
push dword [ebp - 0x24]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x507458
lock xadd dword [eax], edi
cmp edi, 1
jne 0x507458
push 4
push 2
push dword [ebp - 0x30]
call fcn.004597e0
add esp, 0xc
test bl, bl
jne 0x50746e
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.0053fe50
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