Function at 0x1400499bc
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x1a8], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140049a1c
mov edi, 0x80030002
jmp 0x140049bce
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x140072a78]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140072a88]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x140049bce
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x140072a68]
call qword [rax]
mov edi, eax
test eax, eax
js 0x140049bce
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140049bcb
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov edi, eax
test eax, eax
js 0x140049bce
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x98]
mov edi, eax
test eax, eax
js 0x140049bce
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x140049c20
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov rdi, qword [rsp + 0x40]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, edx
jge 0x140049af8
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140002d40
mov rbx, qword [rsp + 0x30]
mov rax, qword [rdi]
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x50]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x18]
mov edi, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140049c2f
cmp eax, dword [rbx - 0xc]
jg 0x140049c2f
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
test edi, edi
jns 0x140049b67
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140049bce
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140049bce
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140002f00
nop
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1400068a0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140049ba9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140049bcb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, r14d
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140049be7
nop
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140049bf7
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
nop
jmp 0x140049c2e
nop
mov ecx, 0x80070057
call fcn.1400327c0
int3