Function at 0x140087cb0
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 [0x140115db8]
mov r13d, r14d
cmp al, 2
mov qword [rbp + 0x1c0], rcx
mov edi, r14d
mov ebx, r14d
cmova r15, qword [0x140115dc0]
mov esi, r14d
cmp al, 3
cmova r12, qword [0x140115dc8]
cmp al, 4
cmova r13, qword [0x140115dd0]
cmp al, 5
cmova rdi, qword [0x140115dd8]
cmp al, 6
cmova rbx, qword [0x140115de0]
cmp al, 7
cmova rsi, qword [0x140115de8]
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x140087d5b
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
lea r8, [r14 - 1]
call fcn.1400befb0
test r15, r15
je 0x140087d76
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, r15
lea r8, [r9 - 1]
call fcn.1400befb0
test r12, r12
je 0x140087d91
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, r12
lea r8, [r9 - 1]
call fcn.1400befb0
test r13, r13
je 0x140087dac
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, r13
lea r8, [r9 - 1]
call fcn.1400befb0
test rdi, rdi
je 0x140087dc7
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, rdi
lea r8, [r9 - 1]
call fcn.1400befb0
test rbx, rbx
je 0x140087de2
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, rbx
lea r8, [r9 - 1]
call fcn.1400befb0
test rsi, rsi
je 0x140087dfd
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
mov rcx, rsi
lea r8, [r9 - 1]
call fcn.1400befb0
mov rcx, qword [rbp + 0x1b8]
xor sil, sil
call fcn.140089060
test al, al
je 0x140088064
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400da5c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400da5d0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140088052
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1400da5e0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140088047
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 0x14008803c
mov rsi, qword [rbp + 0x1c0]
test rsi, rsi
je 0x140087ec9
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.1400befb0
test r15, r15
je 0x140087efd
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.1400befb0
test r12, r12
je 0x140087f31
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.1400befb0
test r13, r13
je 0x140087f65
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.1400befb0
test rdi, rdi
jne 0x140087f6f
test rbx, rbx
je 0x140087fec
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 0x140087fad
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, rdi
lea r8, [r9 - 1]
call fcn.1400befb0
test rbx, rbx
je 0x140087fec
mov rcx, rbx
cmp word [rsp + 0x50], r14w
je 0x140087fd9
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 0x140087fec
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400befb0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14008801a
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 [0x140113a28]
lea rdx, [0x1400da884]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
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 0x140088064
mov eax, 1
jmp 0x1400880ab
mov rax, qword [0x1401101f0]
lea rdx, [0x1400f11dc]
test byte [rax + 0x140], 1
jne 0x140088095
mov rcx, qword [0x140113a28]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
jmp 0x1400880ab
mov rcx, qword [rbp + 0x1b0]
lea r9, [0x1400da7a4]
xor r8d, r8d
call fcn.140056cc0
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret