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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov rax, qword [0x18010c300]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov dword [rsp + 0x74], 0
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.1800144d0
nop
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x300]
add rax, 0x38
mov rdx, rax
lea rcx, [rsp + 0x118]
call qword [0x1800b3028]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x180086f0a
mov dword [rsp + 0x148], 0x80004005
lea rdx, str.Failed_to_open_HLSL_source_file.
lea rcx, [rsp + 0x150]
call fcn.1800169c0
jmp 0x180087358
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.180004480
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x180086f77
mov dword [rsp + 0x148], 0x8007000e
lea rdx, str.Failed_to_allocate_memory_for_compiled_byte_code.
lea rcx, [rsp + 0x150]
call fcn.1800169c0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180087358
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180086fed
mov dword [rsp + 0x148], 0x80004005
lea rdx, str.Failed_to_read_HLSL_source_file.
lea rcx, [rsp + 0x150]
call fcn.1800169c0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.180010cd0
jmp 0x180087358
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x80], 0
mov eax, dword [rsp + 0x90]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x4000
lea rcx, [0x1800dd694]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x318]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1d0]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.1800a22ec
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.180010cd0
cmp dword [rsp + 0x70], 0
jge 0x1800871b7
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
call qword [0x1800b36d8]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x148], eax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1a8]
call fcn.180007f30
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov r8, qword [rsp + 0xd0]
lea rdx, str.Failed_to_compile_HLSL_source_code._n
lea rcx, [rsp + 0x180]
call fcn.18000c190
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x150]
call fcn.180016930
nop
lea rcx, [rsp + 0x180]
call fcn.180008ab0
nop
lea rcx, [rsp + 0x1a8]
call fcn.180008ab0
lea rcx, [rsp + 0x80]
call fcn.18000a070
jmp 0x180087358
lea rcx, [rsp + 0x80]
call fcn.18000a070
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0xe8]
call qword [0x1800b36d8]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0xf0], rcx
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0xf0]
call qword [0x1800b36d8]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rsp + 0x300]
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0x100], rdx
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x90]
mov qword [rsp + 0x108], rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0xf8]
mov r8, rcx
mov rdx, rax
mov rax, qword [rsp + 0x100]
mov rcx, rax
mov rax, qword [rsp + 0x108]
call qword [0x1800b36d8]
mov dword [rsp + 0x148], eax
cmp dword [rsp + 0x148], 0x887a0005
jne 0x1800872ab
mov rcx, qword [rsp + 0x300]
call fcn.180088490
mov dword [rsp + 0x14c], eax
mov rcx, qword [rsp + 0x300]
call fcn.18008a080
test eax, eax
jl 0x180087318
mov rax, qword [rsp + 0x300]
movzx eax, byte [rax + 0xb8]
test eax, eax
je 0x180087318
mov rax, qword [rsp + 0x300]
add rax, 0x90
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.180008e70
cmp dword [rsp + 0x148], 0
jne 0x180087318
mov dword [rsp + 0x148], 0x80004005
mov rax, qword [rsp + 0x300]
movzx eax, byte [rax + 0xb9]
mov byte [rsp + 0x178], al
cmp dword [rsp + 0x148], 0
je 0x18008732a
jmp 0x180087358
xor eax, eax
test eax, eax
jne 0x1800871c4
cmp qword [rsp + 0x88], 0
jne 0x180087358
mov dword [rsp + 0x148], 0x80004005
jmp 0x180087358
lea rcx, [rsp + 0x68]
call fcn.18000a070
lea rcx, [rsp + 0x148]
call fcn.180021420
movzx eax, al
test eax, eax
je 0x18008738f
lea rcx, [rsp + 0x88]
call fcn.18000a070
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
lea rdx, [rsp + 0x148]
mov rcx, qword [rsp + 0x308]
call fcn.180080bd0
mov eax, dword [rsp + 0x74]
or eax, 1
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x118]
call qword [0x1800b3030]
nop
lea rcx, [rsp + 0x148]
call fcn.180016280
mov rax, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.18009ff40
add rsp, 0x2f8
ret