Function at 0x140135310
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x20020]
mov eax, 0x20120
call fcn.1402ed7b0
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x20148], rbx
mov qword [rsp + 0x20150], rsi
mov qword [rsp + 0x20158], rdi
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rbp + 0x20010], rax
mov rsi, rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x1401356c7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r14, str.SRSEndpointIsInitialized
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400168b0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1401353cc
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1401353b0
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140016ad0
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140012250
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x48]
call fcn.140040170
mov edi, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140135420
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x14013542e
mov eax, 1
jmp 0x140135690
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x10]
call fcn.1402ef020
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x10010]
call fcn.1402ef020
mov edx, 0x7fff
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor r15d, r15d
test eax, eax
je 0x14013554f
lea rcx, [rbp + 0x10]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], r15w
jne 0x140135474
cmp word [rbp + rax*2 + 0xe], 0x5c
jne 0x1401354a1
lea rax, [rax*2 - 2]
cmp rax, 0xfffe
jae 0x1401356d2
mov word [rbp + rax + 0x10], r15w
lea r8, [0x140393ef0]
mov edx, 0x7fff
lea rcx, [rbp + 0x10]
call fcn.1402f38d4
lea r8, str.SRSLabs
mov edx, 0x7fff
lea rcx, [rbp + 0x10]
call fcn.1402f38d4
lea r8, [0x140393ef0]
mov edx, 0x7fff
lea rcx, [rbp + 0x10]
call fcn.1402f38d4
lea r8, str.176F4E15_8F7C_4833_ADED_81FAE8CCD186
mov edx, 0x7fff
lea rcx, [rbp + 0x10]
call fcn.1402f38d4
lea r8, str._slInit64.dll
mov edx, 0x7fff
lea rcx, [rbp + 0x10]
call fcn.1402f38d4
lea r8, str._rundll32.exe_
mov edx, 0x7fff
lea rcx, [rbp + 0x10010]
call fcn.1402f38d4
lea r8, [rbp + 0x10]
mov edx, 0x7fff
lea rcx, [rbp + 0x10010]
call fcn.1402f38d4
lea r8, str._SRS_InitializeEndpoints_Rundll32
mov edx, 0x7fff
lea rcx, [rbp + 0x10010]
call fcn.1402f38d4
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14013568e
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x5c]
call fcn.1402ef020
mov dword [rbp - 0x60], 0x68
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10010]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140135690
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rax
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x1401356bc
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400168b0
test al, al
jne 0x14013563c
mov rax, rbx
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140135620
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140016ad0
nop
lea rax, [rsp + 0x58]
mov qword [rbp - 0x68], rax
mov rcx, qword [rsp + 0x58]
add rcx, 0xffffffffffffffe8
call fcn.140012250
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi + 0x48]
call fcn.140040170
mov edi, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14013568e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x20010]
xor rcx, rsp
call fcn.1402ecc20
lea r11, [rsp + 0x20120]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012800
int3
mov ecx, 0x80004005
call fcn.140012800
int3
call fcn.1402ed414
int3