Function at 0x1402738ec
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 [0x14049e510]
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 r14, [0x140344690]
xor esi, esi
test r9d, r9d
jns 0x140273a30
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x140273a30
mov rax, r15
cmp qword [r15 + 0x18], 8
jb 0x14027396a
mov rax, qword [r15]
mov rdx, r14
mov rcx, rsi
or r8, 0xffffffffffffffff
test rax, rax
je 0x140273988
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], si
jne 0x14027397f
mov qword [rbp - 0x10], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp - 8], eax
mov dword [rbp - 4], esi
lea rax, [rbx + 8]
cmp qword [rax + 0x18], 8
jb 0x1402739a7
mov rax, qword [rax]
mov rdx, r14
mov rcx, rsi
test rax, rax
je 0x1402739c1
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], si
jne 0x1402739b8
mov qword [rbp], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], esi
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402739df
mov rax, qword [rdi]
mov rdx, r14
mov rcx, rsi
test rax, rax
je 0x1402739f9
mov rdx, rax
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], si
jne 0x1402739f0
mov qword [rbp + 0x10], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x18], eax
mov dword [rbp + 0x1c], esi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e48a0]
mov rcx, r10
call fcn.140001158
add rbx, 8
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1401bf110
nop
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFirmwareType]
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x140273b40
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.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140273bb5
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 0x140273ab8
mov rbx, qword [rbx]
mov rcx, r14
mov rax, rdx
test rbx, rbx
je 0x140273ad3
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x140273aca
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 0x140273aee
mov rdi, qword [rdi]
mov rax, rdx
test rdi, rdi
je 0x140273b06
mov r14, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140273afd
mov qword [rbp - 0x40], r14
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, [0x1403e47f0]
mov rcx, r10
call fcn.140001158
jmp 0x140273bb5
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1402e0358
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, [rsi + 0xf8]
lea rcx, [rsp + 0x38]
cmp rdx, rcx
je 0x140273b9c
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x38], rbx
mov rcx, qword [rdx]
mov qword [rdx], rax
test rcx, rcx
je 0x140273bb5
mov rax, qword [rcx]
lea edx, [rdi + 1]
mov rax, qword [rax]
call qword [case.0x140245398.0]
test rbx, rbx
je 0x140273bb5
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140245398.0]
mov al, byte [rbp + 0x90]
mov byte [rsi + 0x58], al
mov dword [rsi + 0x80], r13d
lea rcx, [rsi + 0x88]
mov rdx, r15
call fcn.140064f70
mov rcx, qword [r12]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140273bf4
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
mov rax, qword [rax + 0x30]
call qword [case.0x140245398.0]
nop
test rbx, rbx
je 0x140273c58
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140273c58
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140245398.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140273c58
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140245398.0]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140273c9b
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140273c9b
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140245398.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140273c9b
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140245398.0]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret