Function at 0x1402b470c
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 [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r13d, r9d
mov rdi, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rdx
mov r15, qword [rbp + 0x98]
lea rsi, [0x1403cb630]
xor r14d, r14d
test r9d, r9d
jns 0x1402b4857
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402b4857
mov rax, r15
cmp qword [r15 + 0x18], 8
jb 0x1402b478b
mov rax, qword [r15]
mov rdx, rsi
mov rcx, r14
or r8, 0xffffffffffffffff
test rax, rax
je 0x1402b47aa
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1402b47a0
mov qword [rbp - 0x10], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp - 8], eax
mov dword [rbp - 4], r14d
lea rax, [rbx + 8]
cmp qword [rax + 0x18], 8
jb 0x1402b47ca
mov rax, qword [rax]
mov rdx, rsi
mov rcx, r14
test rax, rax
je 0x1402b47e5
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1402b47db
mov qword [rbp], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], r14d
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402b4804
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, r14
test rax, rax
je 0x1402b481f
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1402b4815
mov qword [rbp + 0x10], rdx
lea eax, [rcx*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, [0x140489148]
mov rcx, r10
call fcn.140001208
add rbx, 8
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1401e790c
nop
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFirmwareType]
nop dword [rax + rax]
mov r14, qword [rsp + 0x40]
test eax, eax
jne 0x1402b4973
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x1402b49e8
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 [rbx + 0x18], 8
jb 0x1402b48eb
mov rbx, qword [rbx]
mov rcx, rsi
mov rax, rdx
test rbx, rbx
je 0x1402b4906
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x1402b48fd
mov qword [rbp - 0x50], rcx
lea eax, [rax*2 + 2]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], edx
cmp qword [rdi + 0x18], 8
jb 0x1402b4921
mov rdi, qword [rdi]
mov rax, rdx
test rdi, rdi
je 0x1402b4939
mov rsi, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1402b4930
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, [0x140489681]
mov rcx, r10
call fcn.140001208
jmp 0x1402b49e8
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140356b9c
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 + 0x108]
lea rcx, [rsp + 0x38]
cmp rdx, rcx
je 0x1402b49cf
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x38], rbx
mov rcx, qword [rdx]
mov qword [rdx], rax
test rcx, rcx
je 0x1402b49e8
mov rax, qword [rcx]
lea edx, [rdi + 1]
mov rax, qword [rax]
call qword [str.p76_]
test rbx, rbx
je 0x1402b49e8
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [str.p76_]
mov al, byte [rbp + 0x90]
mov byte [r14 + 0x68], al
mov dword [r14 + 0x90], r13d
lea rcx, [r14 + 0x98]
mov rdx, r15
call fcn.14006fe84
mov rcx, qword [r12]
mov rax, qword [rcx]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1402b4a2b
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov rax, qword [rax + 0x30]
call qword [str.p76_]
nop
test rbx, rbx
je 0x1402b4a8c
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1402b4a8c
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.p76_]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1402b4a8c
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.p76_]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x1402b4acf
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1402b4acf
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.p76_]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1402b4acf
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [str.p76_]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret