Function at 0x404180
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f83c
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.gta_sa.lnk
lea ecx, [ebp - 0x450]
call fcn.004050c0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [eax + eax]
test eax, eax
js 0x4044fc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x48c]
call fcn.004050c0
push 0x439ce4
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
call fcn.004072c0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x478]
cmp ecx, 8
jb 0x40425a
mov edx, dword [ebp - 0x48c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404250
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404582
push ecx
push edx
call fcn.004149b5
add esp, 8
mov edx, dword [ebp - 0x458]
xor eax, eax
mov word [ebp - 0x48c], ax
mov eax, 0x7ffffffe
sub eax, edx
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 7
cmp eax, dword [ebp - 0x440]
jb 0x404587
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push dword [ebp - 0x440]
cmovae ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x450]
cmp dword [ebp - 0x43c], 8
cmovae eax, dword [ebp - 0x450]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x474]
lea ecx, [ebp - 0x438]
call fcn.004094c0
push 0x104
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x48c]
call fcn.004050c0
mov byte [ebp - 4], 5
push 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 0
call dword [sym.imp.ole32.dll_CoInitialize]
nop dword [eax]
test eax, eax
jns 0x40434f
push eax
push ecx
mov edx, str.CoInitialize_failed:
call fcn.00406f40
add esp, 4
mov ecx, eax
call fcn.00404da0
push eax
call fcn.00407220
add esp, 4
mov bl, 1
jmp 0x4043f8
lea eax, [ebp - 0x46c]
push eax
push 0x431240
push 1
push 0
push 0x431260
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4043ef
mov eax, dword [ebp - 0x46c]
lea edx, [ebp - 0x48c]
cmp dword [ebp - 0x478], 8
cmovae edx, dword [ebp - 0x48c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x46c]
lea edx, [ebp - 0x470]
push edx
push 0x431250
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
js 0x4043e3
mov eax, dword [ebp - 0x470]
lea edx, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
push 1
cmovae edx, dword [ebp - 0x438]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x470]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
shr ebx, 0x1f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x478]
cmp ecx, 8
jb 0x40443c
mov edx, dword [ebp - 0x48c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404432
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40458c
push ecx
push edx
call fcn.004149b5
add esp, 8
nop dword [eax]
test bl, bl
je 0x404457
mov edx, 0x439ce8
call fcn.00406f40
push eax
call fcn.00407220
add esp, 4
mov ecx, dword ds:[ebp - 0x424]
cmp ecx, 8
jb 0x40449a
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404490
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404591
push ecx
push edx
call fcn.004149b5
add esp, 8
mov ecx, dword ds:[ebp - 0x454]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp ecx, 8
jb 0x404528
mov edx, dword [ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4044f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404591
push ecx
push edx
call fcn.004149b5
add esp, 8
jmp 0x404528
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x439d38
call fcn.00406f40
add esp, 4
mov ecx, eax
call fcn.00404c00
push eax
call fcn.00407220
add esp, 4
mov ecx, dword [ebp - 0x43c]
cmp ecx, 8
jb 0x404568
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40455a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404596
push ecx
push edx
call fcn.004149b5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041460c
mov esp, ebp
pop ebp
ret
call fcn.0041a6f1
call fcn.00402400
call fcn.0041a6f1
call fcn.0041a6f1
call fcn.0041a6f1
int3