Function at 0x14008ad10
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, r9
mov r14d, r8d
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x70], r15
mov rcx, r9
cmp qword [r9 + 0x18], 7
jbe 0x14008ad5f
mov rcx, qword [r9]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14008afaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.1400f4110
nop
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.1403ec370
lea rcx, [rbp - 0x40]
call fcn.1400252f0
nop
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.14001df00
lea rdx, str.__0x
mov rcx, rax
call fcn.140023f90
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.14008ee00
mov rcx, rax
lea rdx, [0x1404e22dc]
call fcn.140023f90
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
mov dword [rsp + 0x50], 0x12
mov rcx, qword [rbp + 0x48]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14008ae4a
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
test rdx, rdx
je 0x14008ae4a
mov rax, qword [rbp - 8]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x40]
cmovb rdx, qword [rbp + 0x40]
jmp 0x14008ae6d
test cl, 4
jne 0x14008aea7
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
test rdx, rdx
je 0x14008aea7
mov rax, qword [rbp - 0x10]
mov r9, qword [rax]
mov rax, qword [rbp + 0x28]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r9
mov rax, r9
sar rdx, 1
test rax, rax
je 0x14008aea7
lea rcx, [rsp + 0x78]
cmp rdx, 7
ja 0x14008aea1
mov qword [rbp - 0x78], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1403ebbf0
mov word [rsp + rbx + 0x78], r15w
jmp 0x14008aea7
call fcn.140023ce0
nop
lea rcx, [rbp - 0x40]
call fcn.140024270
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x14008aef1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008aeec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008affe
call fcn.14014f510
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14008af6e
mov rax, qword [rcx]
mov r10, qword [rax + 0x20]
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rax, qword [rsp + 0x78]
cmp qword [rdi + 0x18], 7
jbe 0x14008af2c
mov rdi, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
lea rax, str.Error_converting_sid__s_to_PSID__Error___s
mov qword [rsp + 0x30], rax
lea rax, str.Permissions
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x89
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonPermissions.cpp
lea rdx, str.mb::common::system::Permissions::SetOwner
call r10
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x14008afab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008afa6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008aff8
call fcn.14014f510
xor al, al
jmp 0x14008afd9
mov rax, qword [rsi]
mov r9, qword [rsp + 0x70]
mov r8d, r14d
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x68]
movzx ebx, al
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14008afd6
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, bl
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14014f4f0
add rsp, 0x1d8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14015fa1c
int3
call fcn.14015fa1c
int3