Function at 0x14000eb3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor edi, edi
lea rdx, str.SYSPART
mov qword [rsp + 0x58], rdi
mov rsi, rcx
xor ebx, ebx
call fcn.1400107a4
lea r14d, [rbx + 4]
mov rbp, rax
test rax, rax
jne 0x14000eb85
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000ecc0
lea rdx, [rsp + 0x58]
mov rcx, rbp
call fcn.1400118e0
test eax, eax
jne 0x14000ebc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Failed_to_retrieve_spaces_physical_partitions._Last_Error___x
mov ecx, r14d
mov r8d, eax
mov ebx, eax
call fcn.14000f424
mov rdi, qword [rsp + 0x58]
jmp 0x14000ecc0
mov rdi, qword [rsp + 0x58]
cmp dword [rdi], ebx
je 0x14000ecc0
lea rdx, str.Servicing_spaces_files
mov ecx, 2
call fcn.14000f424
lea rdx, str.FWTYPE
mov rcx, rsi
call fcn.1400109f4
mov rcx, rax
lea rdx, [0x14002ff18]
mov r8, r14
call qword [sym.imp.msvcrt.dll_wcsncmp]
nop dword [rax + rax]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
test eax, eax
je 0x14000ec51
xor r9d, r9d
lea r8, str.DEST_bootspaces.dll
lea rdx, str.SOURCEMiscFWTYPE_bootspaces.dll
call fcn.14000ed98
test eax, eax
jne 0x14000ec41
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Failed_to_service_spaces_DLL._Last_Error___x
jmp 0x14000ecb3
lea r8, str.BOOTMGBIN
lea rdx, str.SYSPARTBOOTMGBIN
jmp 0x14000ec8c
lea r9, str.bootmgr.exe
lea r8, str.EFIDEFAULTDIRDEFAULTAPP
lea rdx, str.SYSPARTDESTBOOTMGBIN
call fcn.14000ed98
test eax, eax
jne 0x14000ec7e
lea rdx, str.Failed_to_service_spaces_default_bootmgr
lea ecx, [rax + 3]
call fcn.14000f424
lea r8, str.DESTBOOTMGBIN
lea rdx, str.SYSPARTDESTBOOTMGBIN
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call fcn.14000ed98
test eax, eax
jne 0x14000ecc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Failed_to_service_spaces_bootmgr._Last_Error___x
mov r8d, eax
mov ecx, r14d
mov ebx, eax
call fcn.14000f424
lea rdx, str.SYSPARTDEST_bootspaces.dll
mov rcx, rsi
call fcn.1400107a4
mov rsi, rax
test rax, rax
jne 0x14000ece7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000ed2e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000ed2e
test al, 0x50
jne 0x14000ed2e
mov rcx, rsi
call fcn.140013d5c
test eax, eax
jne 0x14000ed2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8, rsi
lea rdx, str.Error_deleting_stale_spaces_dll___s___Last_Error___x
mov r9d, eax
mov ecx, r14d
mov ebx, eax
call fcn.14000f424
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbp, rbp
je 0x14000ed62
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test ebx, ebx
je 0x14000ed78
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000ed7d
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret