Function at 0x14000a740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov r12, r9
mov rbx, r8
mov r14, rcx
test rcx, rcx
je 0x14000a7b7
cmp byte [rcx], 0x2d
jne 0x14000a77d
cmp byte [rcx + 1], 0
je 0x14000a7b7
lea rdx, [0x14005a4ec]
call qword [sym.imp.MiKTeX231000_utf8wrap.dll_miktex_utf8_fopen]
mov rsi, rax
test rax, rax
jne 0x14000a7df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r9, rax
mov r8, r14
lea rdx, str._s:__s
mov rcx, r12
call fcn.140002153
jmp 0x14000a7df
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
lea r14, str._stdin_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r13d, eax
mov rdx, rsi
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
xor r15d, r15d
cmp r13d, 0xffffffff
jne 0x14000a813
mov r8, r14
lea rdx, str._s:_empty_file
mov rcx, r12
call fcn.140002153
jmp 0x14000a81f
cmp r13d, 1
je 0x14000a831
cmp r13d, 0x4f
je 0x14000a831
mov r8, r14
lea rdx, str._s:_not_a_CFF_or_OpenType_CFF_font
mov rcx, r12
call fcn.140002153
mov dword [rsp + 0x38], r15d
mov ecx, 0x249fc
call fcn.140001bb8
test rax, rax
je 0x14000a850
lea rdx, [rax + 0xc]
mov eax, 0x249f0
jmp 0x14000a856
mov rdx, r15
mov eax, r15d
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x30], rdx
mov ecx, dword [rsp + 0x38]
lea r8d, [rcx + 0x8000]
cmp r8d, eax
jg 0x14000a877
movsxd rax, ecx
add rax, rdx
jmp 0x14000a884
mov edx, r8d
lea rcx, [rsp + 0x30]
call fcn.1400024a5
test rax, rax
je 0x14000a8b9
mov r9, rsi
mov edx, 1
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov dword [rsp + 0x38], ecx
test eax, eax
je 0x14000a8b9
mov eax, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x30]
jmp 0x14000a863
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14000a8d3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14000a931
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdi, rax
xor r9d, r9d
lea r8d, [r9 - 1]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140001767
nop
mov r9, rdi
lea r8, [0x14005a53c]
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1400025c7
nop
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14000a931
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x80]
mov dword [rax], ecx
jne 0x14000a931
mov rcx, qword [rbp - 0x80]
call fcn.1400018d4
nop
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rsi, rax
je 0x14000a947
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r9, r14
lea r8, str.While_processing__s:
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140001ea1
nop
xor r9d, r9d
xor edx, edx
lea r8d, [r9 - 1]
lea rcx, [rsp + 0x58]
call fcn.140001767
nop
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14000a991
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x30]
mov dword [rax], ecx
jne 0x14000a991
mov rcx, qword [rbp - 0x30]
call fcn.1400018d4
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x40], rax
mov eax, dword [rsp + 0x60]
mov dword [rbp - 0x38], eax
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14000a9bf
mov ecx, dword [rax]
inc ecx
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14000a9dd
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
jne 0x14000a9dd
mov rcx, qword [rsp + 0x68]
call fcn.1400018d4
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140002b99
nop
mov edi, r15d
cmp r13d, 0x4f
jne 0x14000aac5
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14000260d
nop
lea rdx, [0x14005a55c]
lea rcx, [rbp + 0x130]
call fcn.14000240f
mov r8d, dword [rax]
lea rdx, [rbp + 0x20]
lea rcx, [rbp]
call fcn.140001901
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x14000aa82
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000aa5f
mov edx, dword [rcx]
sub edx, 1
mov rcx, qword [rsp + 0x50]
mov dword [rcx], edx
jne 0x14000aa5f
mov rcx, qword [rsp + 0x50]
call fcn.1400018d4
mov rdx, qword [rdi + 0x10]
mov ecx, dword [rdi + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x50], rdx
test rdx, rdx
je 0x14000aa82
mov eax, dword [rdx]
inc eax
mov dword [rdx], eax
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14000aaa2
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp + 0x30]
mov dword [rax], ecx
jne 0x14000aaa2
mov rcx, qword [rbp + 0x30]
call fcn.1400018d4
nop
mov edi, dword [rbp + 0x1c]
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x14000aac5
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp + 0x10]
mov dword [rax], ecx
jne 0x14000aac5
mov rcx, qword [rbp + 0x10]
call fcn.1400018d4
nop
mov ecx, 0xf0
call fcn.140001118
mov qword [rbp + 0x148], rax
test rax, rax
je 0x14000aaf1
lea r9, [rbp - 0x70]
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400014f6
jmp 0x14000aaf4
mov rax, r15
lea r8, [rbp - 0x70]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f9
cmp dword [r12 + 8], 0
jne 0x14000ab48
mov dword [rsp + 0x20], r15d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll___RTDynamicCast
mov r15, rax
test rax, rax
jne 0x14000ab42
mov r8, r14
lea rdx, str._s:_CID_keyed_fonts_not_supported
mov rcx, r12
call fcn.140002153
cmp dword [r12 + 8], 0
jg 0x14000ac49
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.1400023c9
mov rdi, rax
mov rsi, qword [rbp + 0x138]
test rsi, rsi
je 0x14000abb1
cmp byte [rsi], 0x2d
jne 0x14000ab74
cmp byte [rsi + 1], 0
je 0x14000abb1
lea rdx, [0x14005a588]
mov rcx, rsi
call qword [sym.imp.MiKTeX231000_utf8wrap.dll_miktex_utf8_fopen]
mov rbx, rax
test rax, rax
jne 0x14000abbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r9, rax
mov r8, rsi
lea rdx, str._s:__s
mov rcx, r12
call fcn.140002153
jmp 0x14000abbf
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
cmp byte [0x140071026], 0
je 0x14000ac0c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140001aff
nop
lea rdx, [rbp + 0x90]
mov rcx, rdi
call fcn.140002202
nop
lea rcx, [rbp + 0x90]
call fcn.140002234
jmp 0x14000ac2f
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140001d84
nop
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140002202
nop
lea rcx, [rbp + 0x40]
call fcn.14000159b
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000ac49
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14000ac6c
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rsp + 0x50]
mov dword [rax], ecx
jne 0x14000ac6c
mov rcx, qword [rsp + 0x50]
call fcn.1400018d4
nop
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x14000ac8c
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x18]
mov dword [rax], ecx
jne 0x14000ac8c
mov rcx, qword [rbp - 0x18]
call fcn.1400018d4
nop
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14000acac
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x30]
mov dword [rax], ecx
jne 0x14000acac
mov rcx, qword [rbp - 0x30]
call fcn.1400018d4
nop
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x14000accc
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x48]
mov dword [rax], ecx
jne 0x14000accc
mov rcx, qword [rbp - 0x48]
call fcn.1400018d4
nop
lea rax, vtable.ErrorHandler.0
mov qword [rbp - 0x70], rax
cmp dword [rsp + 0x3c], 0
jle 0x14000acec
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
call fcn.140001d1b
mov rbx, qword [rsp + 0x240]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret