Function at 0x4899d0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d545d
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x4fa7e0]
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 ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
lea esi, [ecx + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x32c], ecx
cmp dword [edx - 0xc], 0
mov dword [ebp - 0x344], esi
je 0x489e88
mov eax, dword [ecx + 0xc]
cmp dword [eax - 0xc], 0
je 0x489e88
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], 0
je 0x489e88
push str.desktop
push edx
or ebx, 0xffffffff
call fcn.004b514f
add esp, 8
test eax, eax
jne 0x489a5a
lea ebx, [eax + 0x10]
jmp 0x489a9d
push str.programs
push dword [esi]
call fcn.004b514f
add esp, 8
test eax, eax
jne 0x489a72
lea ebx, [eax + 2]
jmp 0x489a9d
push str.startup
mov ecx, esi
call fcn.004899a0
test eax, eax
jne 0x489a87
lea ebx, [eax + 7]
jmp 0x489a9d
push str.startmenu
mov ecx, esi
call fcn.004899a0
test eax, eax
mov ecx, 0xb
cmove ebx, ecx
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x489ab9
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x328], eax
mov dword [ebp - 4], 0
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x489aec
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 1
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x489b1c
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x340], edi
mov byte [ebp - 4], 2
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x489b4c
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x33c], esi
mov byte [ebp - 4], 3
test ebx, ebx
jns 0x489b77
push dword [ebp - 0x344]
lea ecx, [ebp - 0x328]
call fcn.00486ab0
jmp 0x489ba3
push 0
push ebx
lea eax, [ebp - 0x324]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x489e04
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x328]
call fcn.00486b20
push 0x4d9d94
lea ecx, [ebp - 0x328]
call fcn.00486bc0
mov ebx, dword [ebp - 0x32c]
lea ecx, [ebp - 0x328]
mov eax, dword [ebx + 8]
push dword [eax - 0xc]
push eax
call fcn.00486e20
push str..lnk
lea ecx, [ebp - 0x328]
call fcn.00486bc0
mov eax, dword [str.__s_]
mov dword [ebp - 0x18], eax
mov al, byte [0x4dae1c]
mov byte [ebp - 0x14], al
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.0048a4d0
push dword [eax]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.00487810
mov edx, dword [ebp - 0x32c]
add esp, 0x14
add edx, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x489c38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
cmp dword [eax - 0xc], 0
je 0x489c79
push ecx
lea eax, [ebp - 0x32c]
push eax
call fcn.0048a4d0
add esp, 8
push eax
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 5
call fcn.00486ab0
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 3
call fcn.004867a0
mov edi, dword [ebp - 0x340]
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
cmp dword [eax - 0xc], 0
je 0x489cc0
push ecx
lea eax, [ebp - 0x32c]
push eax
call fcn.0048a4d0
push dword [eax]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00487810
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x32c]
call fcn.004867a0
mov esi, dword [ebp - 0x33c]
push 0
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x338], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x489e04
lea eax, [ebp - 0x330]
push eax
push 0x4e3748
push 1
push 0
push 0x4e3a78
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x489d0e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x489e04
mov eax, dword [ebp - 0x330]
push dword [ebp - 0x334]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x330]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x330]
push dword [ebx + 0x18]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x330]
lea edx, [ebp - 0x338]
push edx
push 0x4e3a28
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x489d6f
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x489e04
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004b4310
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp - 0x328]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x338]
lea edx, [ebp - 0x220]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x348]
add ecx, 0x100
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x489e04
cmp dword [ebx + 0x1c], 0
je 0x489e04
lea eax, [ebp - 0x328]
push eax
call fcn.00486ab0
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x489e24
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x489e41
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x334]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x489e64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x328]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x489e88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004b3861
mov esp, ebp
pop ebp
ret