Function at 0x406c00
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x4a96b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c8630]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406f9c
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
mov eax, dword [0x4ca8cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ca8cc
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
xor eax, eax
test esi, esi
setne al
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0
push eax
call fcn.00406ab0
mov eax, dword [0x4ca8cc]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x4ca8cc
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x30], 1
test esi, esi
jne 0x406d22
mov esi, dword [ebp]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
cmp eax, esi
je 0x406cbd
cmp word [eax], 0x5c
je 0x406cc7
sub eax, 2
cmp eax, esi
jne 0x406cb0
cmp word [eax], 0x5c
jne 0x406f53
test eax, eax
je 0x406f53
sub eax, dword [ebp]
sar eax, 1
cmp eax, 2
jl 0x406f53
jne 0x406ce0
inc eax
lea ecx, [esp + 0x24]
mov edx, ebp
call fcn.00407070
lea edi, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.00407250
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
call fcn.00406a30
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00404270
mov eax, dword [esp + 0x3c]
mov bl, 3
mov byte [esp + 0x30], bl
mov edx, dword [eax]
xor esi, esi
cmp dword [edx - 0xc], esi
jne 0x406d4d
mov eax, dword [esp + 0x1c]
push eax
jmp 0x406d50
mov ecx, edx
push ecx
push str._s.lnk
lea ecx, [esp + 0x20]
call fcn.00407380
add esp, 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], esi
lea edx, [esp + 0x38]
push edx
push 0x4ac5dc
push 1
push esi
push 0x4acb6c
mov byte [esp + 0x44], 5
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [esp + 0x38]
jl 0x406f09
cmp eax, esi
je 0x406f09
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4acb7c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [esp + 0x14]
jl 0x406ede
cmp eax, esi
je 0x406ede
mov eax, dword [esp + 0x38]
mov ebp, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebp
push eax
call edx
test eax, eax
jge 0x406e1c
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x406de8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x406dfc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x18]
call fcn.00404320
lea eax, [esp + 0x20]
call fcn.00404320
lea eax, [esp + 0x1c]
call fcn.00404320
jmp 0x406f9c
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
test eax, eax
jl 0x406dd3
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
test eax, eax
jl 0x406dd3
cmp dword [edi - 0xc], esi
je 0x406e66
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edi
push eax
call edx
test eax, eax
jl 0x406dd3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov byte [esp + 0x30], 4
test eax, eax
mov eax, dword [esp + 0x38]
jl 0x406ddc
cmp eax, esi
je 0x406e96
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x406eaa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x18]
call fcn.00404320
lea eax, [esp + 0x20]
call fcn.00404320
lea eax, [esp + 0x1c]
call fcn.00404320
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov byte [esp + 0x30], 4
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x406ef7
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x30], bl
cmp eax, esi
je 0x406f2e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x406f2e
mov byte [esp + 0x30], 4
cmp eax, esi
je 0x406f1a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x406f2e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret