Function at 0x49be80
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54970c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34c], ebx
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x360]
mov byte [esp + 0x34c], 2
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.0051286f
mov esi, dword [esp + 0x35c]
push str..LNK.PIF.
lea ecx, [esp + 0x34]
mov dword [esi], ebx
call fcn.00512952
mov ecx, dword [esp + 0x354]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x350], 3
call fcn.00442390
test eax, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x34c], 2
sete bl
call fcn.005128e4
test bl, bl
je 0x49bf60
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 1
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0
call fcn.005128e4
lea ecx, [esp + 0x24]
mov dword [esp + 0x34c], 0xffffffff
call fcn.005128e4
xor eax, eax
jmp 0x49c2f3
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x49bf7d
and eax, 0xffff
mov dword [esi], eax
mov esi, 0xfffffffe
jmp 0x49c2bb
lea ecx, [esp + 0x10]
push ecx
push 0x56a4b8
push 1
push 0
push 0x56a4a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x49bfae
and eax, 0xffff
mov dword [esp + 0x20], 0xfffffffd
mov dword [esi], eax
jmp 0x49c2b1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0x56a4c8
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x49bfd9
and eax, 0xffff
mov dword [esp + 0x20], 0xfffffffc
mov dword [esi], eax
jmp 0x49c2a7
mov ebx, dword [esp + 0x358]
lea edx, [esp + 0x13c]
push 0x104
push edx
push ebx
call fcn.00421050
add esp, 0xc
test eax, eax
jge 0x49c007
mov dword [esp + 0x20], 0xfffffffb
jmp 0x49c29d
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x13c]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x49c031
mov dword [esp + 0x20], 0xfffffffb
and eax, 0xffff
jmp 0x49c29b
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push 0x104
push edx
mov ecx, dword [eax]
push eax
mov dword [esp + 0x2c], 0xfffffff6
call dword [ecx + 0x20]
test eax, eax
jge 0x49c05d
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
lea eax, [esp + 0x38]
lea ecx, [esp + 0x24]
push eax
call fcn.00512a6d
mov eax, dword [esp + 0x10]
push 4
push 0
lea edx, [esp + 0x40]
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x49c093
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
lea eax, [esp + 0x38]
lea ecx, [esp + 0x1c]
push eax
call fcn.00512a6d
lea ecx, [esp + 0x1c]
push 0
push ecx
mov ecx, edi
call fcn.0049c5b0
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
mov edi, eax
call fcn.00512a1d
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x24]
push 0
push eax
mov ecx, ebp
call fcn.0049c5b0
test eax, eax
jle 0x49c0fa
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jge 0x49c0f2
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
mov dword [esp + 0x14], 1
test edi, edi
jle 0x49c12f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x49c12b
and eax, 0xffff
cmp eax, 2
mov dword [esi], eax
je 0x49c12b
cmp eax, 3
je 0x49c12b
cmp eax, 0x15
jne 0x49c290
inc dword [esp + 0x14]
mov al, byte [esp + 0x39]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp al, 0x3a
jne 0x49c154
mov eax, dword [esp + 0x1c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x49c154
mov dword [esi], 2
jmp 0x49c290
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push 0x104
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
jge 0x49c178
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push eax
call fcn.00512a6d
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, ebp
call fcn.0049c5b0
test eax, eax
jle 0x49c1bb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jge 0x49c1b7
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
inc dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0
mov edx, dword [eax]
push 0x104
push ecx
push eax
call dword [edx + 0x40]
test eax, eax
jge 0x49c1ec
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
push edx
call fcn.00512a6d
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, ebp
call fcn.0049c5b0
test eax, eax
jle 0x49c231
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jge 0x49c22d
and eax, 0xffff
mov dword [esi], eax
jmp 0x49c290
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x49c284
mov eax, dword [ebx]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
mov eax, dword [ebx]
push 0x80
push eax
call ebp
mov eax, dword [esp + 0x28]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebx]
push edi
push eax
call ebp
test esi, esi
jge 0x49c27d
mov edx, dword [esp + 0x35c]
and esi, 0xffff
mov dword [edx], esi
mov esi, edx
jmp 0x49c290
mov esi, dword [esp + 0x35c]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
jge 0x49c29d
cmp dword [esi], 0
jne 0x49c29d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 1
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0
call fcn.005128e4
lea ecx, [esp + 0x24]
mov dword [esp + 0x34c], 0xffffffff
call fcn.005128e4
mov eax, esi
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret 0x10