Function at 0x1400ccd70
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, r9
mov rcx, rdx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cce2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400ccdf4
mov eax, 0x36fd
jmp 0x1400cce05
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400cce05
int3
lea rcx, str.onecore_basewcp_toolsmtcommonmt_util.cpp
mov qword [rbp + 0x17], rcx
lea rcx, str.GetFileContents
mov qword [rbp + 0x1f], rcx
mov dword [rbp + 0x27], SystemTimeToVariantTime
lea rcx, str.FileHandle_____HANDLE__LONG_PTR__1_
jmp 0x1400cce94
xor eax, eax
mov qword [rbp + 0x37], rax
lea rdx, [rbp + 0x37]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400ccebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400cce5f
mov eax, 0x36fd
jmp 0x1400cce70
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400cce70
int3
lea rcx, str.onecore_basewcp_toolsmtcommonmt_util.cpp
mov qword [rbp + 0x17], rcx
lea rcx, str.GetFileContents
mov qword [rbp + 0x1f], rcx
mov dword [rbp + 0x27], 0xbb
lea rcx, str.EnsureBOOL_::GetFileSizeEx_FileHandle__liFileSize__
mov qword [rbp + 0x2f], rcx
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14009dbd4
mov edi, eax
mov r8d, eax
lea rcx, [rbp + 0x17]
call fcn.1400c81b4
jmp 0x1400ccfe0
mov rsi, qword [rbp + 0x37]
test rsi, rsi
je 0x1400cd032
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.1400c9d54
mov edi, eax
test eax, eax
js 0x1400ccfd6
mov eax, 0xffffffff
cmp qword [rbp + 0x37], rax
jle 0x1400ccefa
int3
and dword [rbp + 0xf], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0xf]
mov r8d, esi
mov rdx, qword [rbp + 0x27]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400ccf95
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400ccf39
mov eax, 0x36fd
jmp 0x1400ccf4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400ccf4a
int3
lea rcx, str.onecore_basewcp_toolsmtcommonmt_util.cpp
mov qword [rbp - 0x19], rcx
lea rcx, str.GetFileContents
mov qword [rbp - 0x11], rcx
mov dword [rbp - 9], 0xcf
lea rcx, str.EnsureBOOL_::ReadFile_FileHandle__Contents.Buffer__dwSizeToRead__dwBytesRead__0__
mov qword [rbp - 1], rcx
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14009dbd4
mov edi, eax
mov r8d, eax
lea rcx, [rbp - 0x19]
call fcn.1400c81b4
jmp 0x1400ccfd6
cmp dword [rbp + 0xf], esi
je 0x1400ccffe
lea rcx, str.onecore_basewcp_toolsmtcommonmt_util.cpp
mov qword [rbp - 0x19], rcx
lea rcx, str.GetFileContents
mov qword [rbp - 0x11], rcx
mov dword [rbp - 9], 0xd0
lea rax, str.dwBytesRead__dwSizeToRead
mov qword [rbp - 1], rax
mov r8d, 0xc0000001
lea rcx, [rbp - 0x19]
call fcn.1400c81b4
mov edi, 0xc0000001
lea rcx, [rbp + 0x17]
call fcn.14000342c
nop
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400ccffa
mov rcx, rbx
call qword [sym.imp.NTDLL.dll_NtClose]
nop dword [rax + rax]
nop
mov eax, edi
jmp 0x1400cd049
mov qword [rbp + 0x17], rsi
movups xmm3, xmmword [r14]
movsd xmm2, qword [r14 + 0x10]
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [r14], xmm0
movsd xmm1, qword [rbp + 0x27]
movsd qword [r14 + 0x10], xmm1
movups xmmword [rbp + 0x17], xmm3
movsd qword [rbp + 0x27], xmm2
lea rcx, [rbp + 0x17]
call fcn.14000342c
nop
test rbx, rbx
je 0x1400cd047
mov rcx, rbx
call qword [sym.imp.NTDLL.dll_NtClose]
nop dword [rax + rax]
nop
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140109af0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret