Function at 0x1402386f4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r13d, r9d
mov rbx, r8
mov r12, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rdx
mov r15, qword [rbp + 0x98]
lea rsi, [0x1402cb810]
xor r14d, r14d
test r9d, r9d
jns 0x14023883f
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14023883f
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x140238773
mov rcx, qword [r15]
mov rdx, rsi
mov rax, r14
or r8, 0xffffffffffffffff
test rcx, rcx
je 0x140238792
mov rdx, rcx
mov rax, r8
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140238788
mov qword [rbp - 0x10], rdx
lea eax, [rax*2 + 2]
mov dword [rbp - 8], eax
mov dword [rbp - 4], r14d
lea rax, [rdi + 8]
cmp qword [rax + 0x18], 8
jb 0x1402387b2
mov rax, qword [rax]
mov rdx, rsi
mov rcx, r14
test rax, rax
je 0x1402387cd
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1402387c3
mov qword [rbp], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], r14d
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1402387ec
mov rcx, qword [rbx]
mov rdx, rsi
mov rax, r14
test rcx, rcx
je 0x140238807
mov rdx, rcx
mov rax, r8
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1402387fd
mov qword [rbp + 0x10], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x18], eax
mov dword [rbp + 0x1c], r14d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403523ee]
mov rcx, r10
call fcn.140001078
add rdi, 8
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1401b5524
nop
lea rcx, [rsp + 0x34]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_GetFirmwareType]
mov r14, qword [rsp + 0x50]
test eax, eax
jne 0x14023894f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x1402389c9
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 4
xor edx, edx
lea rax, str.Failed_to_query_firmware_type
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x3c
cmp qword [rdi + 0x18], 8
jb 0x1402388c7
mov rdi, qword [rdi]
mov rcx, rsi
mov rax, rdx
test rdi, rdi
je 0x1402388e2
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1402388d9
mov qword [rbp - 0x50], rcx
lea eax, [rax*2 + 2]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], edx
cmp qword [rbx + 0x18], 8
jb 0x1402388fd
mov rbx, qword [rbx]
mov rax, rdx
test rbx, rbx
je 0x140238915
mov rsi, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x14023890c
mov qword [rbp - 0x40], rsi
lea eax, [rax*2 + 2]
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x34], edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403523ac]
mov rcx, r10
call fcn.140001078
jmp 0x1402389c9
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.14027abe8
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x34]
lea rdx, vtable.sense::cyberData::RestrictExecutionResponse.0
mov qword [rax], rdx
mov dword [rax + 8], ecx
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rdx, [r14 + 0xf8]
lea rcx, [rsp + 0x38]
mov edi, 1
cmp rdx, rcx
je 0x1402389b2
xor r8d, r8d
mov ebx, r8d
mov qword [rsp + 0x38], rbx
mov rcx, qword [rdx]
mov qword [rdx], rax
test rcx, rcx
je 0x1402389c9
mov rax, qword [rcx]
mov edx, edi
mov rax, qword [rax]
call qword [str.__v__]
nop
test rbx, rbx
je 0x1402389c9
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
mov rax, qword [rax]
call qword [str.__v__]
nop
mov al, byte [rbp + 0x90]
mov byte [r14 + 0x58], al
mov dword [r14 + 0x80], r13d
lea rcx, [r14 + 0x88]
mov rdx, r15
call fcn.14005b588
mov rbx, qword [r12]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rdi, qword [rsp + 0x58]
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14004cf88
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [str.__v__]
nop
test rdi, rdi
je 0x140238a67
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140238a67
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.__v__]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140238a67
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__v__]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140238aaa
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140238aaa
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.__v__]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140238aaa
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [str.__v__]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret