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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov edi, r12d
mov ebx, r12d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], r12w
lea r8d, [r12 - 1]
mov rdx, qword [0x140148c30]
lea rcx, [rsp + 0x50]
call fcn.14000cdd0
nop
mov rdx, qword [0x140148cc0]
cmp word [rdx], r12w
jne 0x140017726
test r14, r14
je 0x14001767b
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14000ccf0
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400176cd
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x140017851
call fcn.1400a9798
jmp 0x140017851
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400176b0
mov dword [rsp + 0x40], r12d
mov ecx, ebx
call fcn.1400a2da4
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], ebx
je 0x140017834
mov rcx, rdi
call fcn.1400a2510
mov rdi, r12
jmp 0x1400176b0
lea rcx, [rsp + 0x50]
call fcn.14000ccf0
mov rsi, qword [0x140151640]
test rsi, rsi
je 0x1400176b0
mov dword [rsp + 0x40], r12d
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x18], r12w
mov r8d, 0xffffffff
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.14000cdd0
nop
lea r8, [0x140113a2c]
lea rdx, [0x140113a30]
lea rcx, [rbp - 0x20]
call fcn.14000cf10
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call fcn.140041e90
test eax, eax
je 0x1400177b5
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x1400176b0
call fcn.1400a9798
jmp 0x1400176b0
mov ebx, dword [rbp + 0x29c]
test ebx, ebx
je 0x14001779a
mov ecx, ebx
call fcn.1400a2da4
mov rdi, rax
cmp dword [rsi], 1
je 0x1400177e5
mov dword [0x14015166c], 0x80000
mov rcx, rax
call fcn.1400a2510
mov rdi, r12
jmp 0x14001779a
mov dword [rsp + 0x20], 3
mov r9d, ebx
mov r8, rdi
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsi + 8]
call fcn.140041890
mov dword [0x14015166c], eax
test eax, eax
je 0x140017821
cmp eax, 0x600
je 0x140017821
mov rcx, rdi
call fcn.1400a2510
mov rdi, r12
jmp 0x14001779a
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140017834
call fcn.1400a9798
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x140017848
call fcn.1400a9798
test rdi, rdi
jne 0x1400178d7
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400178d7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400178d7
mov dword [rsp + 0x44], r12d
mov ecx, ebx
call fcn.1400a2da4
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], ebx
je 0x1400178d7
mov rcx, rdi
call fcn.1400a2510
mov rdi, r12
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov rbx, rax
mov rcx, rdi
call fcn.1400a2510
lea rcx, [r15 + 0x5c0]
mov rdx, rbx
call fcn.14000cb20
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400a24f0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret