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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40728c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x598
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x401283
mov eax, 1
jmp 0x401773
xorps xmm0, xmm0
mov dword [ebp - 0x448], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x444], 0
movups xmmword [ebp - 0x458], xmm0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4012b0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.00405660
mov dword [ebp - 4], 0
lea edi, [ebp - 0x458]
cmp dword [ebp - 0x444], 7
mov esi, dword [ebp - 0x448]
cmova edi, dword [ebp - 0x458]
test esi, esi
je 0x4013bd
push 0x100
lea eax, [ebp - 0x588]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x408354
mov edx, 0x100
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x401371
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x588], 1
cmp ecx, 0x408358
jne 0x401320
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x401362
cmp byte [ebp + eax - 0x588], 0
jne 0x40136b
cmp ecx, edi
je 0x4013bd
sub ecx, 2
jmp 0x401350
sub ecx, edi
sar ecx, 1
jmp 0x4013c0
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop
movzx esi, word [ecx]
mov edx, 2
mov eax, 0x408354
nop dword [eax]
cmp word [eax], si
je 0x4013b1
add eax, 2
sub edx, 1
jne 0x401390
cmp ecx, edi
je 0x4013a6
sub ecx, 2
jmp 0x401380
mov esi, dword [ebp - 0x448]
or ecx, 0xffffffff
jmp 0x4013c0
mov esi, dword [ebp - 0x448]
sub ecx, edi
sar ecx, 1
jmp 0x4013c0
or ecx, 0xffffffff
cmp esi, ecx
mov dword [ebp - 0x430], 0
lea eax, [ebp - 0x458]
mov dword [ebp - 0x42c], 0
cmovb ecx, esi
xorps xmm0, xmm0
cmp dword [ebp - 0x444], 7
push ecx
cmova eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x440]
push eax
movups xmmword [ebp - 0x440], xmm0
call fcn.00405660
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 1
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40142b
mov esi, 1
jmp 0x4016d6
xorps xmm0, xmm0
mov dword [ebp - 0x598], 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x594], 0
movups xmmword [ebp - 0x5a8], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401452
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5a8]
call fcn.00405660
push str.Main.lnk
lea edx, [ebp - 0x5a8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x488]
call fcn.00405490
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x594]
cmp ecx, 7
jbe 0x4014d7
mov edx, dword [ebp - 0x5a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4014cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040638a
add esp, 8
mov ecx, dword [ebp - 0x430]
xor eax, eax
mov word [ebp - 0x5a8], ax
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x598], 0
mov dword [ebp - 0x594], 7
cmp eax, 9
jb 0x401791
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
push 9
cmova eax, dword [ebp - 0x440]
push str.Main.exe
push ecx
push eax
push ecx
push dword [ebp - 0x590]
lea ecx, [ebp - 0x470]
call fcn.00405e10
push 0
mov byte [ebp - 4], 5
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x401622
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x58c], 0
push eax
push 0x408298
push 1
push 0
push 0x4082b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40161c
mov eax, dword [ebp - 0x58c]
lea edx, [ebp - 0x590]
push edx
mov dword [ebp - 0x590], 0
push 0x4082a8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x401610
mov eax, dword [ebp - 0x58c]
lea edx, [ebp - 0x470]
cmp dword [ebp - 0x45c], 7
cmova edx, dword [ebp - 0x470]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x58c]
lea edx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 7
cmova edx, dword [ebp - 0x440]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x590]
lea edx, [ebp - 0x488]
cmp dword [ebp - 0x474], 7
push 1
cmova edx, dword [ebp - 0x488]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x590]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x45c]
xor esi, esi
cmp ecx, 7
jbe 0x401664
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40165a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401761
push ecx
push edx
call fcn.0040638a
add esp, 8
mov ecx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
cmp ecx, 7
jbe 0x4016bd
mov edx, dword [ebp - 0x488]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401761
push ecx
push edx
call fcn.0040638a
add esp, 8
xor eax, eax
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x474], 7
mov word [ebp - 0x488], ax
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x401712
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401708
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401761
push ecx
push edx
call fcn.0040638a
add esp, 8
mov ecx, dword [ebp - 0x444]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp ecx, 7
jbe 0x401771
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401767
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401767
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040638a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406237
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401170
int3