Function at 0x140040890
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140098080]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x10]
mov r8d, 0x104
lea rdx, [rbp + 0x170]
call fcn.140040c20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140047b70]
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [0x140048000]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140040ae4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0xa0]
mov ebx, eax
test eax, eax
js 0x140040ae4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [0x14008c784]
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x140040ae4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140040ae4
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x140047d20]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x140040ace
add rdi, 0x30
cmp qword [rdi + 0x18], 7
jbe 0x1400409d4
mov rdi, qword [rdi]
mov ebx, 0x80070057
test rdi, rdi
cmovne ebx, r14d
je 0x140040a3c
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x1400409f0
lea rsi, [rax*2 + 2]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x50], rax
mov ebx, 0x8007000e
test rax, rax
cmovne ebx, r14d
je 0x140040a3c
test rsi, rsi
je 0x140040a32
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x1f
mov word [rsp + 0x48], ax
test ebx, ebx
js 0x140040ace
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x140048010]
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
js 0x140040ac2
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x140040ac2
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140047d10]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x140040aad
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp + 0x170]
call qword [rax + 0x30]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140040ac2
mov qword [rsp + 0x40], r14
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140040ae4
mov qword [rsp + 0x38], r14
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140040af9
mov qword [rsp + 0x30], r14
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400443a0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret