Function at 0x14001f850
Capabilities:
Check if file exists
Create process on windows
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400f5608]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov edx, 0x4e20
lea rcx, [0x1400fa730]
call fcn.14002abe0
test al, al
je 0x14001f9e4
call fcn.14002b900
mov rdi, rax
lea rdx, str.Entering_runExecutable_exePath:
mov rcx, rax
call fcn.14000e1c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001f8c9
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e6f0
nop
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], shutdown
mov byte [rbp - 0x50], 0
mov dword [rsp + 0x30], 2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
mov ecx, dword [rdi + 0x78]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14001f93a
mov rax, qword [rdi + 0x48]
mov r8, qword [rax]
test r8, r8
je 0x14001f93a
mov rax, qword [rdi + 0x28]
mov rdx, qword [rax]
mov qword [rsp + 0x38], r8
lea rax, [rdi + 0x70]
lea rcx, [rsp + 0x38]
cmp r8, qword [rax]
cmovb rcx, rax
mov r8, qword [rcx]
sub r8, rdx
jmp 0x14001f969
test cl, 4
jne 0x14001f961
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001f961
mov rax, qword [rdi + 0x20]
mov rdx, qword [rax]
mov rax, qword [rdi + 0x58]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x14001f969
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x14001f978
lea rcx, [rbp - 0x50]
call fcn.14000b430
nop
lea rax, str.bool___cdecl_System::ProcessImpl::runExecutable_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], gethostname
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemprocess_impl.cpp
lea r8, [rbp - 0x50]
mov edx, 0x4e20
lea rcx, [0x1400fa730]
call fcn.14002ba00
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14001f9e4
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f9df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fb98
call fcn.14008b4c8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x40], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x44], 0x40
mov qword [rsp + 0x48], r14
lea rax, str.runas
mov qword [rsp + 0x50], rax
mov rax, rbx
mov rdi, qword [rbx + 0x18]
cmp rdi, 0x10
jb 0x14001fa38
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x70], 5
mov qword [rsp + 0x78], r14
mov rax, qword [0x1400fa708]
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0x168
lea rcx, [rbp + 0x50]
call fcn.14008dc60
mov rcx, rbx
cmp rdi, 0x10
jb 0x14001fa78
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14001fb9e
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001fa93
mov rcx, qword [rbx]
mov dword [rsp + 0x20], 0x2000
mov r9d, 0x168
lea r8, [rbp + 0x50]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test rax, rax
je 0x14001fbd5
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x14001fc0c
mov edi, dword [rsp + 0x78]
cmp edi, 0x20
jg 0x14001fb02
mov ecx, edi
sub ecx, 2
je 0x14001fb33
sub ecx, 1
je 0x14001fcfd
sub ecx, 2
je 0x14001fcc6
sub ecx, 3
je 0x14001fc91
cmp ecx, 0x12
lea rcx, [rbp - 0x50]
jne 0x14001fb6a
jmp 0x14001fc5e
mov rax, qword [rbp - 0x58]
mov qword [rsi + 8], rax
mov al, 1
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14008bad0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov r8, rbx
lea rdx, str.File_not_found_at_path:
lea rcx, [rbp - 0x50]
call fcn.14001f4e0
nop
mov r8d, 2
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
nop
lea rdx, str.Error_while_launch_file
call fcn.140005080
nop
mov r8d, edi
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
nop
call fcn.140091b3c
int3
mov r8, rbx
lea rdx, str.File_not_found_at_path:
lea rcx, [rbp - 0x50]
call fcn.14001f4e0
nop
mov r8d, 1
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp + 0x10]
call fcn.14008c6e0
nop
mov r8, rbx
lea rdx, str.Not_executable_file_at:
lea rcx, [rbp - 0x50]
call fcn.14001f4e0
nop
mov r8d, 1
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp + 0x10]
call fcn.14008c6e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.14001f550
nop
mov r8, rax
lea rdx, str.Error_while_launch_file:
lea rcx, [rbp + 0x10]
call fcn.14000e550
nop
lea rcx, [rbp - 0x50]
call fcn.140005640
mov r8d, ebx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
nop
mov r8, rbx
lea rdx, str.Cannot_share_an_open_file_:
call fcn.14001f4e0
nop
mov r8d, 0x1a
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
nop
lea rdx, str.Not_enough_memory_or_resources_to_run_at
lea rcx, [rbp - 0x50]
call fcn.140005080
nop
mov r8d, 8
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
nop
mov r8, rbx
lea rdx, str.Access_denied:
lea rcx, [rbp - 0x50]
call fcn.14001f4e0
nop
mov r8d, 5
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
nop
mov r8, rbx
lea rdx, str.Path_not_found_at_path:
lea rcx, [rbp - 0x50]
call fcn.14001f4e0
nop
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14001d450
lea rdx, [0x1400f28c0]
lea rcx, [rbp - 0x30]
call fcn.14008c6e0
int3