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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x1400252d8]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rbx
xor r15d, r15d
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14001f2a0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rbx + 0x10]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rcx
cmp rax, 1
jb 0x14000462a
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140004127
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x14001acb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov dl, byte [rsp + 0x40]
lea rcx, [rbp + 0x18]
call fcn.140002e50
nop
mov r8, rsi
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 8]
call fcn.140001280
nop
mov r13d, 0x1000
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x1400041a3
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, r13
jb 0x14000419e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000419e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018628
movdqa xmm0, xmmword [0x14001adf0]
movdqu xmmword [rbp + 0x28], xmm0
mov byte [rbp + 0x18], r15b
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.140003f20
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
lea rcx, [rsp + 0x78]
call fcn.1400016e0
nop
mov rax, qword [rbp - 0x78]
sub r14, rax
cmp r14, 0x1d
jb 0x140004624
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae r9, qword [rsp + 0x78]
mov qword [rsp + 0x30], 0x1d
lea rcx, str.MicrosoftWindowsStart_Menu
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov dl, byte [rsp + 0x40]
lea rcx, [rbp - 0x48]
call fcn.140002e50
nop
lea rdx, [rbp - 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001090
lea rdx, [0x140002d48]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000427a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x68]
call fcn.1400016e0
nop
lea rcx, [rbp + 0x80]
call fcn.140002f44
nop
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae r8, qword [rbp - 0x48]
mov r9, qword [rbp - 0x38]
add r9, r8
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x80]
call fcn.14000615c
nop
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x58]
add r9, r8
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x80]
call fcn.14000615c
nop
lea r8, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae r8, qword [rbp + 0x38]
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x100]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x14001f290]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14001f2e0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x14001f2c0]
call qword [rax]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp + 0x100]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rbp + 0x38]
call fcn.1400059b8
nop
lea rcx, [rbp + 0x58]
call fcn.1400059b8
nop
lea rcx, [rbp + 0x80]
call fcn.140003904
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1400043f8
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x1400043f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018628
movdqa xmm0, xmmword [0x14001adf0]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], r15b
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140004443
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x14000443e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000443e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018628
movdqa xmm0, xmmword [0x14001adf0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], r15b
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14000448f
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, r13
jb 0x14000448a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000448a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018628
mov qword [rbp - 0x78], r15
mov r14d, 0xf
mov qword [rbp - 0x70], r14
mov byte [rsp + 0x78], r15b
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400044dc
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, r13
jb 0x1400044d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400044d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018628
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r14
mov byte [rbp - 0x28], r15b
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140004522
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, r13
jb 0x14000451d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000451d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018628
movdqa xmm0, xmmword [0x14001adf0]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], r15b
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140004569
mov rcx, qword [rsi]
inc rdx
cmp rdx, r13
jb 0x140004564
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000460f
mov rcx, r8
call fcn.140018628
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r14
mov byte [rsi], r15b
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400045a6
mov rcx, qword [rdi]
inc rdx
cmp rdx, r13
jb 0x1400045a1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004616
mov rcx, r8
call fcn.140018628
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r14
mov byte [rdi], r15b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400045e3
inc rdx
mov rcx, qword [rbx]
cmp rdx, r13
jb 0x1400045de
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000461d
mov rcx, r8
call fcn.140018628
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r14
mov byte [rbx], r15b
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140018740
add rsp, 0x420
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140005a1c
nop
call fcn.140005a1c
int3