Function at 0x1400017b2
Capabilities:
Read file on windows

Disassembly:
jmp 0x140014550
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
movzx r15d, r9b
mov r13, r8
mov rdi, rdx
mov r14, rcx
xor ebx, ebx
mov r12d, ebx
cmp dword [rdx + 8], ebx
je 0x1400145cd
lea r8d, [rbx - 1]
lea rdx, [0x14006c868]
mov rcx, rdi
call fcn.14000286a
test al, al
jne 0x1400145cd
mov rcx, rdi
call fcn.1400017bc
lea rdx, [0x14006c87c]
mov rcx, rax
call qword [sym.imp.MiKTeX231000_utf8wrap.dll_miktex_utf8_fopen]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12d, dword [rax]
jmp 0x140014606
mov r9b, 1
mov r8d, 0xffffffff
lea rdx, str._stdin_
mov rcx, rdi
call fcn.140001861
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
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 eax, dword [rdi + 8]
lea rcx, [0x1400794e8]
test eax, eax
je 0x14001464d
mov rdx, qword [rdi]
cmp byte [rdx], 0x7b
jne 0x140014638
mov rcx, qword [rdi + 0x10]
mov qword [rbp - 0x69], rdx
mov dword [rbp - 0x61], eax
mov qword [rbp - 0x59], rcx
test rcx, rcx
je 0x140014658
mov eax, dword [rcx]
inc eax
mov dword [rcx], eax
jmp 0x140014658
mov r8, rdi
lea rdx, [0x14006c204]
lea rcx, [rbp - 0x69]
call fcn.140002522
jmp 0x140014658
mov qword [rbp - 0x69], rcx
mov dword [rbp - 0x61], ebx
mov qword [rbp - 0x59], rbx
lea rax, [0x140079590]
lea rdx, [0x14007958c]
test r15b, r15b
cmovne rdx, rax
lea r8, [rbp - 0x69]
lea rcx, [rbp - 0x51]
call fcn.140002658
nop
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x14001469b
mov edx, dword [rax]
sub edx, 1
mov rax, qword [rbp - 0x59]
mov dword [rax], edx
jne 0x14001469b
mov rcx, qword [rbp - 0x59]
call fcn.1400019ec
nop
test rsi, rsi
jne 0x140014756
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
xor r9d, r9d
lea r8d, [rsi - 1]
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140001861
nop
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 1]
call fcn.1400016ae
nop
mov rdx, rax
mov rcx, r13
call fcn.1400023e7
nop
mov rax, qword [rbp + 0xf]
test rax, rax
je 0x1400146ff
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp + 0xf]
mov dword [rax], ecx
jne 0x1400146ff
mov rcx, qword [rbp + 0xf]
call fcn.1400019ec
nop
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14001471f
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x21]
mov dword [rax], ecx
jne 0x14001471f
mov rcx, qword [rbp - 0x21]
call fcn.1400019ec
nop
lea rax, [0x1400794e8]
mov qword [r14], rax
mov dword [r14 + 8], ebx
mov qword [r14 + 0x10], rbx
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x140014751
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x41]
mov dword [rax], ecx
jne 0x140014751
mov rcx, qword [rbp - 0x41]
call fcn.1400019ec
nop
jmp 0x1400148a3
mov qword [rbp - 0x79], rbx
mov ecx, ebx
mov qword [rbp - 0x71], rbx
mov eax, ebx
lea edx, [rcx + 0x2000]
cmp edx, eax
jg 0x140014774
movsxd rax, ecx
add rax, rbx
jmp 0x14001477d
lea rcx, [rbp - 0x79]
call fcn.140002775
test rax, rax
je 0x1400147ae
mov r9, rsi
mov edx, 1
mov r8d, 0x2000
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [rbp - 0x71]
add ecx, eax
mov dword [rbp - 0x71], ecx
test eax, eax
je 0x1400147ae
mov eax, dword [rbp - 0x6d]
mov rbx, qword [rbp - 0x79]
jmp 0x140014762
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x1400147cc
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14001484c
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]
xor r9d, r9d
lea r8d, [r9 - 1]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140001861
nop
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.1400016ae
nop
mov rdx, rax
mov rcx, r13
call fcn.1400023e7
nop
mov rax, qword [rbp + 0x27]
test rax, rax
je 0x14001482c
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp + 0x27]
mov dword [rax], ecx
jne 0x14001482c
mov rcx, qword [rbp + 0x27]
call fcn.1400019ec
nop
mov rax, qword [rbp - 9]
test rax, rax
je 0x14001484c
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 9]
mov dword [rax], ecx
jne 0x14001484c
mov rcx, qword [rbp - 9]
call fcn.1400019ec
nop
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rsi, rax
je 0x140014862
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, r14
lea rcx, [rbp - 0x79]
call fcn.140002fef
nop
cmp dword [rbp - 0x6d], 0
jle 0x140014883
mov rcx, qword [rbp - 0x79]
add rcx, 0xfffffffffffffff4
call fcn.140001ee7
nop
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x1400148a3
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp - 0x41]
mov dword [rax], ecx
jne 0x1400148a3
mov rcx, qword [rbp - 0x41]
call fcn.1400019ec
nop
cmp qword [rdi + 0x10], 0
je 0x1400148c5
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax]
mov rax, qword [rdi + 0x10]
sub ecx, 1
mov dword [rax], ecx
jne 0x1400148c5
mov rcx, qword [rdi + 0x10]
call fcn.1400019ec
nop
mov rax, r14
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret