Function at 0x497f50
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be146
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x338], edx
call fcn.0046d4f0
test eax, eax
je 0x498040
push 0
push str.CShortCut::CreateShortcut_n
push 0x6c1a68
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x6c1968], eax
mov eax, 0x6c1a68
mov dword [0x6c196c], ecx
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x497ff0
mov edi, 0x6c1968
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x498001
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6c1968
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edi, dword [ebp - 0x320]
mov esi, dword [ebp - 0x32c]
call fcn.0046d4f0
test eax, eax
je 0x498073
mov edx, dword [ebp - 0x328]
push edx
push str.pszName___s_n
push 0x6c1868
call fcn.00599ee3
add esp, 0xc
push 0x6c1868
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x4980a6
mov eax, dword [ebp - 0x330]
push eax
push str.pszPath___s_n
push 0x6c1768
call fcn.00599ee3
add esp, 0xc
push 0x6c1768
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x4980d3
push edi
push str.pszIcon___s_n
push 0x6c1668
call fcn.00599ee3
add esp, 0xc
push 0x6c1668
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x498100
push esi
push str.pszFilePath___s_n
push 0x6c1568
call fcn.00599ee3
add esp, 0xc
push 0x6c1568
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x498133
mov ecx, dword [ebp - 0x338]
push ecx
push str.pszFileArgs___s_n
push 0x6c1468
call fcn.00599ee3
add esp, 0xc
push 0x6c1468
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x498155
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x320], eax
lea ecx, [ebp - 0x324]
push ecx
push 0x5e0678
push 1
push 0
push 0x606c4c
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x49832f
mov eax, dword [ebp - 0x324]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x50]
call eax
lea edx, [ebp - 0x334]
mov ebx, eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push edx
push 0x606bfc
push eax
mov eax, dword [ecx]
call eax
or ebx, eax
jl 0x498321
mov eax, dword [ebp - 0x324]
mov edx, dword [ebp - 0x328]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edx, dword [ebp - 0x338]
or ebx, eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
or ebx, eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
or ebx, eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
or ebx, eax
test esi, esi
jne 0x498220
xor eax, eax
jmp 0x49822e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x498225
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x320]
call fcn.004026b0
mov esi, dword [ebp - 0x320]
push 0x5c
push esi
call fcn.0059aa24
add esp, 8
test eax, eax
jne 0x498255
or eax, 0xffffffff
jmp 0x498257
sub eax, esi
push eax
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x320]
call fcn.004024f0
push eax
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 1
call fcn.00402af0
mov eax, dword [ebp - 0x32c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4982a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x324]
mov edx, dword [ebp - 0x320]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
or ebx, eax
jl 0x498313
mov ecx, dword [ebp - 0x328]
mov edx, dword [ebp - 0x330]
push ecx
push edx
lea eax, [ebp - 0x114]
push str._s_s.lnk
push eax
call fcn.00599ee3
add esp, 0x10
push 0x104
lea ecx, [ebp - 0x31c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x31c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call fcn.0046d4f0
test eax, eax
je 0x4983b3
xor eax, eax
test ebx, ebx
setns al
push eax
push str.CShortCut::CreateShortcut_:_bRetVal___d_n
push 0x6c1368
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x6c1268], eax
mov eax, 0x6c1368
add esp, 0xc
mov dword [0x6c126c], ecx
mov esi, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x498370
mov edi, 0x6c1268
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x498380
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6c1268
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 0x320]
xor edx, edx
test ebx, ebx
setns dl
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4983e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0x14