Function at 0x1400dfea0
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 - 0x4040]
mov eax, 0x4140
call fcn.14029e430
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4168], rbx
mov qword [rsp + 0x4170], rsi
mov qword [rsp + 0x4178], rdi
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x4030], rax
mov rsi, rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400e02c1
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.140015a40
or rdi, 0xffffffffffffffff
test al, al
jne 0x1400dff5c
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400dff40
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400105e0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140015740
lea rcx, [rax + 0x18]
mov qword [rsp + 0x70], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rbx, qword [rsi + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.140015740
add rax, 0x18
mov qword [rbp - 0x80], rax
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x80]
mov rdx, rbx
call fcn.1400c0900
mov ebx, eax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400dffd5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400dfff3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x1400e0001
mov eax, 1
jmp 0x1400e0295
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x30]
call fcn.14029ff20
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x2030]
call fcn.14029ff20
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400e011f
lea rcx, [rbp + 0x30]
mov rax, rdi
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400e0044
cmp word [rbp + rax*2 + 0x2e], 0x5c
jne 0x1400e0071
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x1400e02cc
mov word [rbp + rax + 0x30], r15w
lea r8, [0x1403466e8]
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call fcn.1402a76a4
lea r8, str.SRSLabs
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call fcn.1402a76a4
lea r8, [0x1403466e8]
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call fcn.1402a76a4
lea r8, str.176F4E15_8F7C_4833_ADED_81FAE8CCD186
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call fcn.1402a76a4
lea r8, str._slInit64.dll
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call fcn.1402a76a4
lea r8, str.rundll32.exe
mov edx, 0x1000
lea rcx, [rbp + 0x2030]
call fcn.1402a76a4
lea r8, [rbp + 0x30]
mov edx, 0x1000
lea rcx, [rbp + 0x2030]
call fcn.1402a76a4
lea r8, str._SRS_InitializeEndpoints_Rundll32
mov edx, 0x1000
lea rcx, [rbp + 0x2030]
call fcn.1402a76a4
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e0293
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x40]
call fcn.14029ff20
mov dword [rbp - 0x40], 0x68
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
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 + 0x2030]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400e0295
or edx, 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400e02d2
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.140015a40
test al, al
jne 0x1400e01ff
mov rax, rdi
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400e01e3
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400105e0
nop
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
mov rcx, qword [rsp + 0x58]
add rcx, 0xffffffffffffffe8
call fcn.140015740
lea rcx, [rax + 0x18]
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x78]
mov qword [rbp - 0x70], rax
mov rbx, qword [rsi + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.140015740
add rax, 0x18
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
mov rdx, rbx
call fcn.1400c0900
mov ebx, eax
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400e0276
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400e0293
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rbp + 0x4030]
xor rcx, rsp
call fcn.14029d880
lea r11, [rsp + 0x4140]
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.14000de90
int3
call fcn.14029dc94
int3
mov ecx, 0x80004005
call fcn.14000de90
int3