Function at 0x140010700
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x1400246b0]
xor rax, rsp
mov qword [rsp + 0x220], rax
movsxd rbp, dword [rcx]
mov rbx, rcx
mov r12, qword [rcx + 0x10]
xor r14d, r14d
add rcx, 0x30b178
mov rdi, r8
sub rcx, rdx
lea r13d, [r14 + 1]
test ebp, ebp
jne 0x140010820
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140010750
lea r8, [rbx + 0x30b177]
cmp byte [r8 + 1], r14b
lea r8, [r8 + 1]
jne 0x140010765
mov eax, dword [str..tex]
lea rdx, [rbx + 0x30b178]
mov dword [r8], eax
mov rcx, rbx
movzx eax, byte [0x14001f4f0]
mov byte [r8 + 4], al
lea r8, [0x14001d158]
call fcn.140013b60
lea rdx, [0x14001e578]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov rdi, rax
mov r15, rsi
test rax, rax
je 0x14001086c
mov r9, rax
lea rcx, [rsp + 0x20]
mov r8d, 0x200
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140010810
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, rdi
lea rcx, [rsp + 0x20]
mov r8d, 0x200
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400107e0
mov rdx, rdi
mov rcx, rbx
call fcn.14000dbd0
jmp 0x14001086c
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140010820
lea rcx, [rbx + 0x30b177]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x140010835
movzx eax, word [0x14001f4f4]
lea r8, [0x14001d158]
mov word [rcx], ax
lea rdx, [rbx + 0x30b178]
movzx eax, byte [0x14001f4f6]
mov byte [rcx + 2], al
mov rcx, rbx
call fcn.140013b60
mov r15, rax
lea r8, [0x14001e578]
mov rdx, r12
mov rcx, rbx
call fcn.140013b60
lea rdi, [rbp*8]
mov qword [rbx + 0x18], rax
lea rsi, [0x140000000]
mov rcx, r15
mov r8, qword [rdi + rsi + 0x24610]
lea rdx, [0x14001f4e4]
call fcn.140001582
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.14000e950
test rax, rax
je 0x140010a49
nop dword [rax]
mov rdx, qword [rbx + 0x160]
mov rcx, rbx
mov qword [rbx + 0x158], rdx
call fcn.14000e7d0
test eax, eax
je 0x140010a34
nop
mov rax, qword [rbx + 0x150]
movzx ecx, byte [rax]
cmp cl, 0x25
je 0x140010a34
cmp cl, 0x22
jne 0x140010933
nop dword [rax + rax]
mov rdx, qword [rbx + 0x158]
mov rcx, rbx
call fcn.14000e7d0
test eax, eax
jne 0x140010922
lea rdx, str.string_does_not_end
mov rcx, rbx
call fcn.14000db80
mov rax, qword [rbx + 0x150]
cmp byte [rax], 0x22
jne 0x140010900
jmp 0x140010a1a
cmp cl, 0x62
jne 0x140010999
mov ecx, dword [rbx + 0x140]
lea eax, [rcx + 1]
mov dword [rbx + 0x140], eax
test ecx, ecx
jne 0x140010955
mov rdx, qword [rdi + rsi + 0x24630]
jmp 0x14001095d
mov rdx, qword [rdi + rsi + 0x24640]
mov r8d, dword [rbx + 0x38]
mov r9, r12
mov rcx, r15
call fcn.140001582
mov r8d, 2
mov rdx, r15
mov rcx, rbx
call fcn.14000a160
mov r8, qword [rdi + rsi + 0x24650]
lea rdx, [0x14001f4e4]
mov rcx, r15
call fcn.140001582
jmp 0x140010a1a
cmp cl, 0x76
jne 0x140010a0b
mov ecx, dword [rbx + 0x144]
lea eax, [rcx + 1]
mov dword [rbx + 0x144], eax
test ecx, ecx
jne 0x1400109c3
cmp dword [rbx + 0x140], ecx
jne 0x1400109c3
mov rdx, qword [rdi + rsi + 0x24660]
jmp 0x1400109cb
mov rdx, qword [rdi + rsi + 0x24670]
mov r8d, dword [rbx + 0x38]
mov r9, r12
mov rcx, r15
call fcn.140001582
mov r8d, 3
test r14d, r14d
mov rdx, r15
mov rcx, rbx
cmovne r8d, r13d
call fcn.14000a160
mov r8, qword [rdi + rsi + 0x24680]
lea rdx, [0x14001f4e4]
mov rcx, r15
call fcn.140001582
jmp 0x140010a1a
lea rdx, str.unmatched_etex
mov rcx, rbx
call fcn.14000db80
mov rdx, qword [rbx + 0x158]
mov rcx, rbx
mov r14d, r13d
call fcn.14000e7d0
test eax, eax
jne 0x1400108e0
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.14000e950
test rax, rax
jne 0x1400108c0
mov r8, qword [rdi + rsi + 0x24620]
lea rdx, [0x14001f4e4]
mov rcx, r15
call fcn.140001582
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.14000dbd0
mov rdx, r15
mov rcx, rbx
call fcn.14000dbd0
mov dword [rbx + 0x38], 0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14000132a
mov rbx, qword [rsp + 0x278]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret