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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140144038]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r13, rdx
mov qword [rsp + 0x50], rcx
xor edx, edx
mov esi, edx
mov r14d, edx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x68], dx
mov rax, qword [0x140144c80]
lea r12, [0x140112cfc]
mov r15, r12
test rax, rax
cmovne r15, rax
mov rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp word [r15 + rbx*2], dx
jne 0x140014f30
cmp ebx, 0x3f
jl 0x140014f5c
mov qword [rsp + 0x60], rdx
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
xor ecx, ecx
call fcn.1400a9604
mov rcx, rax
mov qword [rsp + 0x60], rax
movsxd rbx, ebx
mov r8, rbx
mov rdx, r15
call fcn.1400a960c
mov rax, qword [rsp + 0x60]
xor ecx, ecx
mov word [rax + rbx*2], cx
mov rdx, qword [0x140144d10]
cmp word [rdx], cx
jne 0x140015046
test r13, r13
je 0x140014f97
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14000c8f0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140014feb
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400151b3
call fcn.1400a95f0
jmp 0x1400151b3
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x140014fce
mov dword [rsp + 0x40], edi
mov ecx, r14d
call fcn.1400a2ca4
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r14d
je 0x140015196
mov rcx, rsi
call fcn.1400a2410
mov rsi, rdi
jmp 0x140014fce
lea rcx, [rsp + 0x60]
call fcn.14000c8f0
mov r15, qword [0x14014a530]
test r15, r15
je 0x140014fce
xor ecx, ecx
mov dword [rsp + 0x40], ecx
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov word [rbp - 8], cx
test r13, r13
cmovne r12, r13
nop dword [rax]
inc rdi
cmp word [r12 + rdi*2], cx
jne 0x140015080
cmp edi, 0x3f
jl 0x1400150a5
mov qword [rbp - 0x10], rcx
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
call fcn.1400a9604
mov qword [rbp - 0x10], rax
movsxd rbx, edi
mov r8, rbx
mov rdx, r12
mov rcx, rax
call fcn.1400a960c
mov rax, qword [rbp - 0x10]
xor edi, edi
mov word [rax + rbx*2], di
lea r8, [0x140113134]
lea rdx, [0x140113138]
lea rcx, [rbp - 0x10]
call fcn.14000cc90
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x10]
mov rcx, r15
call fcn.1400281a0
test eax, eax
je 0x140015113
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x140014fce
call fcn.1400a95f0
jmp 0x140014fce
mov r14d, dword [rbp + 0x2ac]
test r14d, r14d
je 0x1400150f8
mov ecx, r14d
call fcn.1400a2ca4
mov rsi, rax
cmp dword [r15], 1
je 0x140015147
mov dword [0x14014a550], 0x80000
mov rcx, rax
call fcn.1400a2410
mov rsi, rdi
jmp 0x1400150f8
mov dword [rsp + 0x20], 3
mov r9d, r14d
mov r8, rsi
mov edx, dword [rsp + 0x40]
mov rcx, qword [r15 + 8]
call fcn.140027ba0
mov dword [0x14014a550], eax
test eax, eax
je 0x140015183
cmp eax, 0x600
je 0x140015183
mov rcx, rsi
call fcn.1400a2410
mov rsi, rdi
jmp 0x1400150f8
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x140015196
call fcn.1400a95f0
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400151aa
call fcn.1400a95f0
test rsi, rsi
jne 0x14001523c
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001523c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x14001523c
mov dword [rsp + 0x44], edi
mov ecx, r14d
call fcn.1400a2ca4
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], r14d
je 0x14001523c
mov rcx, rsi
call fcn.1400a2410
mov esi, edi
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov rbx, rax
mov rcx, rsi
call fcn.1400a2410
mov rcx, qword [rsp + 0x50]
add rcx, 0x5c0
mov rdx, rbx
call fcn.14000c670
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1400a23f0
mov rbx, qword [rsp + 0x410]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret