Function at 0x40f520
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489e0d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x40f7ac
test ebx, ebx
je 0x40f7ac
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x48d620
push 1
push 0
push 0x48d630
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40f594
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x40f77e
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x48d650
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x40f5b7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x40f77e
mov eax, dword [ebp - 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x40f5d3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x40f77e
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40f5fc
cmp word [edx], 0
je 0x40f5fc
mov eax, dword [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40f5fc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x40f77e
mov eax, dword [ebp - 0x18]
push 2
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jns 0x40f61a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x40f77e
call fcn.00401cf0
mov ecx, eax
test ecx, ecx
je 0x40f7c8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00401f70
test al, al
jne 0x40f669
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f650
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402220
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.004692c6
mov edi, eax
add esp, 8
test edi, edi
jne 0x40f689
or edi, 0xffffffff
jmp 0x40f68d
sub edi, esi
sar edi, 1
push 0x2f
push esi
call fcn.004692c6
add esp, 8
test eax, eax
jne 0x40f6a1
or eax, 0xffffffff
jmp 0x40f6a5
sub eax, esi
sar eax, 1
cmp edi, eax
lea ecx, [ebp - 0x10]
cmovg eax, edi
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402b40
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
mov dword [ebp - 0x20], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x40f71b
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40f70c
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40f70c
mov ecx, dword [ebp - 0x1c]
call fcn.00403340
mov dword [ebp - 0x1c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40f704
mov esi, dword [ebp - 0x20]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x40f71b
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00402220
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f739
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push esi
push 0x3005
push 0x1008
call edi
push 0
push ebx
push 0x3005
push 2
call edi
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f77e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40f78b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40f798
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402200
int3