Function at 0x18012be00
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x40]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
cmp qword [rsp + 0xa0], 0
jne 0x18012be54
lea r8, [0x1801b7c00]
mov edx, 0x149
mov ecx, 0x28
call fcn.18012c620
or eax, 0x28
jmp 0x18012c237
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x18012bed4
lea rcx, [0x1801b7c78]
call fcn.18012c4b0
mov rdx, qword [rsp + 0xa8]
lea rcx, str._could_not_open___s_n
call fcn.18012c4b0
lea r8, [0x1801b7ca0]
mov edx, 0x152
mov ecx, 1
call fcn.18012c620
or eax, 1
jmp 0x18012c237
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18012bf0d
lea rcx, [0x1801b7d18]
call fcn.18012c4b0
mov rdx, qword [rsp + 0xa8]
lea rcx, str._could_not_retrieve_size_of_file___s_n
call fcn.18012c4b0
jmp 0x18012c1e6
cmp qword [rsp + 0x58], 0x7fffffff
jle 0x18012bf2b
lea rcx, str.FT_Stream_Open:_file_is_too_big_n
call fcn.18012c4b0
jmp 0x18012c1e6
cmp qword [rsp + 0x58], 0
jne 0x18012bf44
lea rcx, str.FT_Stream_Open:_zero_length_file_n
call fcn.18012c4b0
jmp 0x18012c1e6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x18012bf89
lea rcx, str.FT_Stream_Open:_can_not_map_file_n
call fcn.18012c4b0
jmp 0x18012c1e6
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0xc], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x18012c002
mov rax, qword [rsp + 0xa0]
lea rcx, [0x18012c320]
mov qword [rax + 0x28], rcx
jmp 0x18012c11c
lea rcx, [0x1801b7dc8]
call fcn.18012c4b0
mov rdx, qword [rsp + 0xa8]
lea rcx, str._could_not__mmap_file___s_n
call fcn.18012c4b0
mov rax, qword [rsp + 0xa0]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x30]
call fcn.18012c260
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
jne 0x18012c074
lea rcx, [0x1801b7df8]
call fcn.18012c4b0
lea rcx, str._could_not__alloc_memory_n
call fcn.18012c4b0
jmp 0x18012c1e6
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x64]
mov eax, dword [rax + 8]
sub eax, ecx
mov ecx, dword [rsp + 0x64]
mov rdx, qword [rsp + 0xa0]
add rcx, qword [rdx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18012c0e4
lea rcx, [0x1801b7e28]
call fcn.18012c4b0
mov rdx, qword [rsp + 0xa8]
lea rcx, str._error_while__reading_file___s_n
call fcn.18012c4b0
jmp 0x18012c1ca
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x64], eax
jne 0x18012c07c
mov rax, qword [rsp + 0xa0]
lea rcx, [0x18012c370]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x20], 0
mov eax, 4
imul rax, rax, 6
mov rcx, qword [0x18023c728]
cmp dword [rcx + rax], 1
jl 0x18012c184
lea rcx, str.FT_Stream_Open:
call fcn.18012c4b0
xor eax, eax
test eax, eax
jne 0x18012c162
mov eax, 4
imul rax, rax, 6
mov rcx, qword [0x18023c728]
cmp dword [rcx + rax], 1
jl 0x18012c1c0
mov rax, qword [rsp + 0xa0]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0xa8]
lea rcx, str._opened___s___ld_bytes__successfully_n
call fcn.18012c4b0
xor eax, eax
test eax, eax
jne 0x18012c18a
xor eax, eax
jmp 0x18012c237
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x30]
call fcn.18012c2f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax], 0
mov rax, qword [rsp + 0xa0]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0xc], 0
lea r8, str.C:UserskaDesktopinternal_skinchangercs2_sdk_1cs2cheatdependencies_freetype_2.13.0_buildswindows_ftsystem.c
mov edx, 0x1bc
mov ecx, 0x51
call fcn.18012c620
or eax, 0x51
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180168dd0]
call fcn.180138610
mov rax, rdi
add rsp, 0x90
pop rdi
ret