Function at 0x140010a50
Capabilities:
Check if file exists
Get file attributes
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
and dword [rax + 0x18], 0
xor ebx, ebx
and qword [r8], rbx
mov r13d, ecx
and dword [r9], ebx
mov r14, r9
and dword [rax + 0x20], 0
mov r15, r8
mov r12d, ecx
and r13d, 0x800
je 0x140010aed
xor edi, edi
bt ecx, 0xa
jae 0x140010a9a
lea edi, [rbx + 1]
mov dword [r9], edi
test edi, edi
lea rax, str.2023
lea r8, str.2011
mov esi, 2
cmovne r8, rax
lea rdx, str.Offline_mode__using__ws_cert_binaries
mov ecx, esi
call fcn.14000f424
cmp dword [r14], 0
jne 0x140010ada
test r13d, r13d
jne 0x140010ada
lea rdx, str.Not_using_Ex_bins.
mov ecx, esi
call fcn.14000f424
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov esi, 2
lea r9, [rsp + 0x30]
mov r8d, esi
lea rdx, [rsp + 0x90]
mov ecx, 0x91
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
lea edi, [rsi - 1]
test eax, eax
jns 0x140010b84
mov r8d, eax
lea rdx, str.Failed_to_determine_Secure_Boot_enablement_state._Assuming_disabled._NtStatus___x
lea ecx, [rsi + 1]
call fcn.14000f424
xor bpl, bpl
mov rbx, qword [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140010beb
test al, 0x50
jne 0x140010beb
mov rdx, r15
mov rcx, rbx
call fcn.140010ce0
mov ebx, eax
test eax, eax
jne 0x140010bd0
mov rcx, qword [r15]
lea rdx, str.Windows_UEFI_CA_2023
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140010beb
lea rdx, str.Using_EX_bins_because_bootmgfw_on_ESP_is_2023_already.
jmp 0x140010bc1
mov bpl, byte [rsp + 0x90]
test bpl, bpl
je 0x140010b2f
lea r8, [rsp + 0xa0]
mov ecx, edi
lea rdx, [0x140028020]
call fcn.140010f7c
mov ebx, eax
test eax, eax
jne 0x140010b2f
cmp dword [rsp + 0xa0], eax
je 0x140010b2f
lea rdx, str.Using_files_signed_with_2023_cert__because_2011_PCA_is_revoked
mov ecx, esi
call fcn.14000f424
mov dword [r14], edi
jmp 0x140010ada
mov r8d, eax
lea rdx, str.Failed_to_get_cert_auth_of_bootmgfw_on_ESP_with_SB_enabled._Error_code___x
mov ecx, 3
call fcn.14000f424
xor ebx, ebx
jmp 0x140010ac1
bt r12d, 0xa
jae 0x140010c90
lea r8, [rsp + 0xa8]
xor ecx, ecx
lea rdx, [0x140028010]
call fcn.140010f7c
mov ebx, eax
test eax, eax
je 0x140010c28
mov r8d, eax
lea rdx, str.Failed_to_check_UEFI_DB_variable._Error_code___x
mov ecx, 4
call fcn.14000f424
jmp 0x140010c92
cmp dword [rsp + 0xa8], 0
jne 0x140010c48
lea rdx, str.USE_EX_BINS_flag_is_specified__but_2023_cert_is_not_in_db
mov ecx, 4
call fcn.14000f424
jmp 0x140010ac1
mov al, bpl
lea rdx, str.BfspShouldUseExFiles___IsSbOn:_c_Has2023PCAinDb:_c
neg al
mov r9d, 0x79
mov ecx, esi
mov dword [rsp + 0x20], r9d
sbb r8d, r8d
and r8d, 0xb
add r8d, 0x6e
call fcn.14000f424
mov ecx, esi
test bpl, bpl
jne 0x140010c84
lea rdx, str.Using_Ex_bins_because_SB_is_off_and_BFSVC_USE_EX_BINS_is_set.
jmp 0x140010bc3
lea rdx, str.Using_Ex_bins_because_SB_is_on__BFSVC_USE_EX_BINS_is_set__and_2023_PCA_is_in_DB.
jmp 0x140010bc3
xor ebx, ebx
test ebx, ebx
je 0x140010ac1
mov rdi, qword [r15]
test rdi, rdi
je 0x140010ada
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
je 0x140010cce
and qword [r15], 0
and qword [r15], 0
jmp 0x140010ada