Function at 0x140087540
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
movzx eax, byte [rcx + 1]
xor r14d, r14d
cmp al, 1
mov ecx, r14d
mov r15d, r14d
mov r12d, r14d
cmova rcx, qword [0x140144a98]
mov r13d, r14d
cmp al, 2
mov qword [rbp + 0x1c0], rcx
mov edi, r14d
mov ebx, r14d
cmova r15, qword [0x140144aa0]
mov esi, r14d
cmp al, 3
cmova r12, qword [0x140144aa8]
cmp al, 4
cmova r13, qword [0x140144ab0]
cmp al, 5
cmova rdi, qword [0x140144ab8]
cmp al, 6
cmova rbx, qword [0x140144ac0]
cmp al, 7
cmova rsi, qword [0x140144ac8]
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x1400875eb
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
lea r8, [r14 - 1]
call fcn.1400be640
test r15, r15
je 0x140087606
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, r15
lea r8, [r9 - 1]
call fcn.1400be640
test r12, r12
je 0x140087621
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, r12
lea r8, [r9 - 1]
call fcn.1400be640
test r13, r13
je 0x14008763c
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, r13
lea r8, [r9 - 1]
call fcn.1400be640
test rdi, rdi
je 0x140087657
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, rdi
lea r8, [r9 - 1]
call fcn.1400be640
test rbx, rbx
je 0x140087672
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, rbx
lea r8, [r9 - 1]
call fcn.1400be640
test rsi, rsi
je 0x14008768d
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, rsi
lea r8, [r9 - 1]
call fcn.1400be640
mov rcx, qword [rbp + 0x1b8]
xor sil, sil
call fcn.1400888f0
test al, al
je 0x1400878f4
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400fb2a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400fb2b0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400878e2
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1400fb2c0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x1400878d7
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rbp + 0x1b8]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x1400878cc
mov rsi, qword [rbp + 0x1c0]
test rsi, rsi
je 0x140087759
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov r8d, 0x104
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, rsi
lea r8, [r9 - 1]
call fcn.1400be640
test r15, r15
je 0x14008778d
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov rax, qword [rcx]
call qword [rax + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, r15
lea r8, [r9 - 1]
call fcn.1400be640
test r12, r12
je 0x1400877c1
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov rax, qword [rcx]
call qword [rax + 0x50]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, r12
lea r8, [r9 - 1]
call fcn.1400be640
test r13, r13
je 0x1400877f5
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov rax, qword [rcx]
call qword [rax + 0x30]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, r13
lea r8, [r9 - 1]
call fcn.1400be640
test rdi, rdi
jne 0x1400877ff
test rbx, rbx
je 0x14008787c
mov rcx, qword [rsp + 0x30]
lea r9, [rbp + 0x1c0]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x80]
test rdi, rdi
je 0x14008783d
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, rdi
lea r8, [r9 - 1]
call fcn.1400be640
test rbx, rbx
je 0x14008787c
mov rcx, rbx
cmp word [rsp + 0x50], r14w
je 0x140087869
mov eax, dword [rbp + 0x1c0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
test eax, eax
setns r14b
add r14d, eax
movsxd rdx, r14d
call fcn.1400015d0
jmp 0x14008787c
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400be640
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400878aa
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x1c8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_WSASetLastError]
movsxd rdx, dword [rbp + 0x1c8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400015d0
mov rcx, qword [0x140142708]
lea rdx, [0x140103634]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400be640
mov sil, 1
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
test sil, sil
je 0x1400878f4
mov eax, 1
jmp 0x14008793b
mov rax, qword [0x14013dbe0]
lea rdx, [0x140119f8c]
test byte [rax + 0x140], 1
jne 0x140087925
mov rcx, qword [0x140142708]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400be640
jmp 0x14008793b
mov rcx, qword [rbp + 0x1b0]
lea r9, [0x140103554]
xor r8d, r8d
call fcn.140056750
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret