Function at 0x50f230
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6a35
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
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.00547e00
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x69bed0
push 1
push 0
push 0x69bf30
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x50f43c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.0050a2e0
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.004e6550
add esp, 8
mov ecx, dword [ebp - 0x3c]
or edi, 0xffffffff
mov byte [ebp - 4], 3
test ecx, ecx
je 0x50f2de
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50f2de
push 4
push 2
push dword [ebp - 0x3c]
call fcn.00461780
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0050a7b0
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.004e6550
add esp, 8
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x50f324
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50f324
push 4
push 2
push dword [ebp - 0x48]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
mov esi, dword [eax + 0x50]
call fcn.00498670
push eax
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x5cd3f0]
call esi
test eax, eax
js 0x50f3e5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
call fcn.00498670
push eax
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x5cd3f0]
call esi
test eax, eax
js 0x50f3e5
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 0x69bf20
push ecx
mov ecx, esi
call dword [0x5cd3f0]
call esi
test eax, eax
js 0x50f3e5
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.0050a2e0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00498670
push 1
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x5cd3f0]
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 [0x5cd3f0]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5cd3f0]
call esi
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x50f419
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50f419
push 4
push 2
push dword [ebp - 0x24]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x50f438
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50f438
push 4
push 2
push dword [ebp - 0x30]
call fcn.00461780
add esp, 0xc
test bl, bl
jne 0x50f44e
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.00547e40
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