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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
sub rsp, 0x2d0
cmp word [rcx], 0x30
mov edi, 3
mov rbx, rcx
lea r13d, [rdi - 1]
jb 0x140004921
cmp word [rcx], 0x39
ja 0x140004921
call qword [sym.imp.msvcrt.dll__wtol]
mov r8d, eax
jmp 0x140004985
movzx ecx, word [rcx]
or ecx, 0x20
sub ecx, 0x64
je 0x14000496c
sub ecx, 0xc
je 0x140004954
sub ecx, edi
je 0x140004949
cmp ecx, 1
jne 0x140004e1d
mov ecx, 7
lea r8d, [rcx + 0x11]
jmp 0x140004975
mov ecx, 0xb
lea r8d, [rcx + 0xb]
jmp 0x140004975
movzx eax, word [rbx + 2]
mov r8d, 0x17
or ax, 0x20
cmp ax, 0x75
cmove r8d, r13d
jmp 0x140004985
mov ecx, InitCommonControls
lea r8d, [rcx + 9]
movzx eax, word [rbx + 2]
or ax, 0x20
cmp ax, 0x75
cmove r8d, ecx
xor r12d, r12d
jmp 0x140004997
cmp ax, r12w
je 0x140004e1d
add rbx, r13
movzx eax, word [rbx]
cmp ax, 0x2c
jne 0x14000498a
lea rdx, [rsp + 0xc0]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, r12d
je 0x140004e1d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.140002d28
lea rcx, [rsp + 0xa0]
mov edx, edi
mov qword [rsp + 0xa0], r12
mov dword [rsp + 0xa8], r12d
mov dword [rsp + 0xac], r12d
call fcn.140001190
lea rcx, [rsp + 0x60]
mov edx, edi
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], r12d
call fcn.140001190
lea rcx, [rsp + 0x80]
mov edx, edi
mov qword [rsp + 0x80], r12
mov dword [rsp + 0x88], r12d
mov dword [rsp + 0x8c], r12d
call fcn.140001190
lea rcx, [rsp + 0x50]
mov edx, edi
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], r12d
call fcn.140001190
lea rcx, [rsp + 0x30]
mov edx, edi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x3c], r12d
call fcn.140001190
lea rcx, [rsp + 0x70]
mov edx, edi
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x7c], r12d
call fcn.140001190
lea rcx, [rsp + 0x90]
mov edx, edi
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x98], r12d
mov dword [rsp + 0x9c], r12d
call fcn.140001190
lea rcx, [rsp + 0xb0]
mov edx, edi
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xbc], r12d
call fcn.140001190
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.140003c0c
cmp dword [rsp + 0xa8], r12d
jne 0x140004b4c
mov rcx, qword [rsp + 0xb0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0xa0]
jmp 0x140004e0e
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140003c0c
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140003c0c
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140003c0c
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140003c0c
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140003c0c
lea rdx, [rsp + 0x90]
mov rcx, rax
call fcn.140003c0c
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.140003c0c
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.msvcrt.dll__wtol]
cmp dword [rsp + 0x38], r12d
mov rdi, qword [rsp + 0xa0]
mov ebp, eax
jne 0x140004c30
lea rcx, [rsp + 0xa0]
call fcn.140003cb4
movsxd rcx, eax
lea rdx, [rdi + rcx*2 + 2]
lea rcx, [rsp + 0x30]
call fcn.1400013d4
movsxd r11, dword [rsp + 0x38]
cmp r11d, r12d
je 0x140004c30
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx + r11*2 - 2]
jmp 0x140004c0c
cmp rcx, rbx
je 0x140004c2b
sub rcx, r13
cmp word [rcx], 0x2e
jne 0x140004c04
sub rcx, rbx
sar rcx, 1
cmp ecx, r12d
jl 0x140004c35
movsxd rax, ecx
mov dword [rsp + 0x38], ecx
mov word [rbx + rax*2], r12w
jmp 0x140004c35
or ecx, 0xffffffff
jmp 0x140004c18
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov dx, 0x5c
call fcn.140001548
cmp dword [rsp + 0x88], r12d
je 0x140004c6d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140001440
lea rcx, [rsp + 0x40]
mov dx, 0x5c
call fcn.140001548
mov rcx, qword [rsp + 0x40]
call fcn.140004738
cmp eax, r12d
je 0x140004dbe
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140001440
lea rdx, str..lnk
lea rcx, [rsp + 0x40]
call fcn.140002d94
xor edx, edx
lea rax, [rsp + 0x2f0]
lea r9, [0x14001e8f0]
lea rcx, [0x14001e930]
lea r8d, [rdx + 1]
mov qword [rsp + 0x2f0], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r12d
jl 0x140004dbe
mov rcx, qword [rsp + 0x2f0]
mov qword [rsp + 0x2f8], r12
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
cmp dword [rsp + 0x58], r12d
je 0x140004d0e
mov rcx, qword [rsp + 0x2f0]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x38]
cmp dword [rsp + 0x68], r12d
je 0x140004d28
mov rcx, qword [rsp + 0x2f0]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x58]
cmp dword [rsp + 0x78], r12d
je 0x140004d42
mov rcx, qword [rsp + 0x2f0]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x48]
cmp dword [rsp + 0x98], r12d
je 0x140004d68
mov rcx, qword [rsp + 0x2f0]
mov rdx, qword [rsp + 0x90]
mov r8d, ebp
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x2f0]
lea r8, [rsp + 0x2f8]
lea rdx, [0x14001e920]
mov rax, qword [rcx]
call qword [rax]
cmp eax, r12d
jl 0x140004db0
mov rcx, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x40]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [rsp + 0x2f0]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [rsp + 0xb0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x2d0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret