Function at 0x1400116d0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x458
mov rax, qword [0x140028380]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov qword [r11 + 8], rbx
mov qword [r11 - 0x20], r14
xor r14d, r14d
cmp dword [0x14018a7c0], r14d
jne 0x140011711
call fcn.14000c760
lea rcx, str.end
jmp 0x140011d80
cmp dword [0x14018a7a0], r14d
mov qword [rsp + 0x470], rsi
mov qword [rsp + 0x448], r12
mov qword [rsp + 0x440], r13
mov qword [rsp + 0x430], r15
mov dword [0x140028894], 3
je 0x14001175f
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
lea rcx, str._nWriting_the_index...
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
call fcn.14000c760
lea rdx, [0x1400226b0]
lea rcx, [0x140189de0]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov qword [0x14018a7e8], rax
test rax, rax
jne 0x140011797
lea rdx, [0x140189de0]
lea rcx, str.__Cannot_open_index_file
call fcn.14000178f
lea rcx, str.inx
call fcn.140010a20
call fcn.14000c760
mov rax, qword [0x14018a7e8]
lea r13, [0x1403278b0]
mov qword [0x14018a7f8], rax
mov ecx, 0x20
mov rax, r13
nop word [rax + rax]
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
lea rax, [rax + 0x40]
mov qword [rax - 0x28], r14
mov qword [rax - 0x20], r14
mov qword [rax - 0x18], r14
mov qword [rax - 0x10], r14
mov qword [rax - 8], r14
sub rcx, 1
jne 0x1400117d0
mov rdx, qword [0x140028260]
lea rax, [0x140178c20]
mov qword [rsp + 0x450], rdi
lea rsi, [0x1401d19f0]
mov qword [0x140178c18], rax
lea r15, [0x140128c30]
lea r12, [0x1403280c0]
cmp rax, rdx
ja 0x1400118f5
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rax]
mov qword [0x1403280b0], rcx
test rcx, rcx
je 0x1400118e1
nop dword [rax]
nop word [rax + rax]
cmp qword [rcx + 0x18], rsi
mov rdx, rcx
mov qword [0x140327878], rcx
mov rcx, qword [rcx + 8]
mov qword [0x1403280b0], rcx
je 0x1400118ce
mov rax, qword [rdx]
movsx edi, byte [rax]
mov ecx, edi
mov ebx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isupper]
test eax, eax
je 0x14001189f
cmp dil, 0x80
jae 0x14001189f
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov rdx, qword [0x140327878]
movsxd rax, ebx
mov rcx, rdx
sub rcx, r15
sar rcx, 5
lea r8, [rax*8]
mov rax, qword [r8 + r13]
mov qword [r12 + rcx*8], rax
mov rcx, qword [0x1403280b0]
mov qword [r8 + r13], rdx
test rcx, rcx
jne 0x140011860
mov rax, qword [0x140178c18]
mov rdx, qword [0x140028260]
add rax, 8
mov qword [0x140178c18], rax
cmp rax, rdx
jbe 0x140011840
lea rbx, [0x140305a40]
mov cl, 1
mov qword [0x140327820], rbx
call fcn.1400183f0
mov rax, qword [0x140327820]
cmp rax, rbx
jbe 0x140011c9e
mov qword [rsp + 0x468], rbp
mov ebp, 0x5000
nop word [rax + rax]
movzx ecx, byte [rax]
mov r8, qword [rax + 8]
mov rax, r8
mov byte [0x140326a96], cl
sub rax, r15
sar rax, 5
cmp qword [r12 + rax*8], r14
je 0x140011a18
cmp cl, 0xff
je 0x140011a18
nop word [rax + rax]
movzx r10d, byte [0x140326a96]
mov rdx, r8
mov r9, r8
mov qword [0x140327878], r8
sub r8, r15
sar r8, 5
add r10, qword [rdx]
mov qword [0x1403280b8], r10
mov r8, qword [r12 + r8*8]
mov qword [0x1403280b0], r8
cmp r10, qword [rdx + 0x20]
jne 0x14001199c
mov ebx, r14d
jmp 0x1400119cc
movsx edi, byte [r10]
mov ecx, edi
mov ebx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isupper]
test eax, eax
je 0x1400119be
cmp dil, 0x80
jae 0x1400119be
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov r9, qword [0x140327878]
mov r8, qword [0x1403280b0]
movsxd rax, ebx
mov rcx, r9
sub rcx, r15
sar rcx, 5
lea rdx, [rax*8]
mov rax, qword [rdx + r13]
mov qword [r12 + rcx*8], rax
mov qword [rdx + r13], r9
test r8, r8
jne 0x140011960
movzx ecx, byte [0x140326a96]
sub qword [0x140327820], 0x10
inc cl
call fcn.1400183f0
mov rax, qword [0x140327820]
jmp 0x140011c86
mov qword [0x140327878], r8
nop
lea rcx, [0x140023b94]
call fcn.140010a20
mov rbx, qword [0x140327878]
movsx ecx, byte [rbx + 0x10]
test ecx, ecx
je 0x140011a94
sub ecx, 1
je 0x140011a84
sub ecx, 1
je 0x140011a74
sub ecx, 1
je 0x140011a64
cmp ecx, 2
je 0x140011a5b
lea rcx, [0x140023f58]
jmp 0x140011ae2
lea rcx, [0x140023f54]
jmp 0x140011ae2
lea rcx, [0x140023f44]
call fcn.140010a20
xor edx, edx
jmp 0x140011aed
lea rcx, [0x140023f50]
call fcn.140010a20
xor edx, edx
jmp 0x140011aed
lea rcx, [0x140023f4c]
call fcn.140010a20
xor edx, edx
jmp 0x140011aed
mov rcx, qword [rbx + 0x20]
mov rbx, qword [rbx]
mov rax, rcx
sub rax, rbx
cmp rax, 1
jne 0x140011ab0
lea rcx, [0x140023f40]
jmp 0x140011ae2
cmp rbx, rcx
jae 0x140011adb
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
test eax, eax
je 0x140011acb
cmp byte [rbx], 0x80
jb 0x140011b69
mov rax, qword [0x140327878]
inc rbx
cmp rbx, qword [rax + 0x20]
jb 0x140011ab5
lea rcx, [0x140023f44]
call fcn.140010a20
mov edx, dword [0x14018a720]
mov rcx, qword [0x140327878]
call fcn.1400107a0
mov rax, qword [0x140327878]
mov r8, rsi
mov rdx, qword [rax + 0x18]
mov rcx, rdx
nop word [rax + rax]
lea rax, [rcx + 8]
mov rcx, qword [rcx + 8]
mov qword [rax], r8
mov r8, rdx
mov rdx, rcx
cmp rcx, rsi
jne 0x140011b10
mov qword [0x14033c0c8], rcx
mov qword [0x14033c1b8], rcx
mov qword [0x140326bf0], r8
nop dword [rax + rax]
lea rcx, [0x140022e58]
call fcn.140010a20
mov rax, qword [0x140326bf0]
movzx ecx, word [rax]
mov word [0x14033c0b8], cx
cmp cx, bp
jae 0x140011b75
call fcn.1400109c0
jmp 0x140011be1
lea rcx, [0x140023f48]
jmp 0x140011ae2
lea rcx, [0x140023f5c]
call fcn.140010a20
movzx ecx, word [0x14033c0b8]
sub cx, bp
call fcn.1400109c0
cmp dword [0x14033c0bc], r14d
je 0x140011bb8
mov rax, qword [0x140404190]
cmp rax, qword [0x140028338]
jae 0x140011be8
mov byte [rax], 0x5d
inc rax
mov qword [0x140404190], rax
jmp 0x140011be8
mov rax, qword [str.0Z0_]
cmp qword [0x140326bf8], rax
jb 0x140011bcd
call fcn.14000ba40
mov rax, qword [0x140326bf8]
inc rax
mov qword [0x140326bf8], rax
mov byte [rax], 0x5d
mov rax, qword [0x140404190]
mov rcx, qword [0x140326bf0]
mov rdx, qword [rcx + 8]
mov qword [0x140326bf0], rdx
cmp rdx, rsi
jne 0x140011b40
cmp dword [0x14033c0bc], r14d
je 0x140011c24
cmp rax, qword [0x140028338]
jae 0x140011c4d
mov byte [rax], 0x2e
inc rax
mov qword [0x140404190], rax
jmp 0x140011c4d
mov rax, qword [str.0Z0_]
cmp qword [0x140326bf8], rax
jb 0x140011c39
call fcn.14000ba40
mov rax, qword [0x140326bf8]
inc rax
mov qword [0x140326bf8], rax
mov byte [rax], 0x2e
call fcn.14000c760
mov rax, qword [0x140327878]
sub rax, r15
sar rax, 5
mov rax, qword [r12 + rax*8]
mov qword [0x140327878], rax
test rax, rax
jne 0x140011a20
mov rax, qword [0x140327820]
sub rax, 0x10
mov qword [0x140327820], rax
lea rcx, [0x140305a40]
cmp rax, rcx
ja 0x140011930
mov rbp, qword [rsp + 0x468]
call fcn.14000c760
mov rcx, qword [0x14018a7f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14018a7e0]
lea rcx, str._fin
mov qword [0x14018a7f8], rax
call fcn.140010a20
call fcn.14000c760
lea rdx, [0x1400226b0]
lea rcx, [0x14018a1e0]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov r15, qword [rsp + 0x430]
mov r13, qword [rsp + 0x440]
mov r12, qword [rsp + 0x448]
mov rdi, qword [rsp + 0x450]
mov rsi, qword [rsp + 0x470]
mov qword [0x14018a7f0], rax
test rax, rax
jne 0x140011d31
lea rdx, [0x14018a1e0]
lea rcx, str.__Cannot_open_section_file
call fcn.14000178f
mov rax, qword [0x14018a7f0]
mov rcx, qword [0x140128c40]
mov qword [0x14018a7f8], rax
call fcn.140013d90
call fcn.14000c760
mov rcx, qword [0x14018a7f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14018a7e0]
lea rcx, str.end
cmp dword [0x14032789c], r14d
mov qword [0x14018a7f8], rax
lea rax, str.con
cmove rax, rcx
mov rcx, rax
call fcn.140010a20
call fcn.14000c760
mov rcx, qword [0x14018a7f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp dword [0x14018a76c], r14d
mov qword [0x14018a7e0], r14
mov qword [0x14018a7f8], r14
je 0x140011f16
lea rdx, [0x140022884]
lea rcx, [0x1401899e0]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov qword [0x14018a7e0], rax
lea rcx, [0x140030740]
test rax, rax
je 0x140011f02
lea rdx, [0x140022884]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov qword [0x14018a800], rax
test rax, rax
jne 0x140011e10
lea rdx, [0x140030740]
lea rcx, str.__Cannot_open_output_file
call fcn.14000178f
nop dword [rax]
mov r9, qword [0x14018a7e0]
lea rcx, [rsp + 0x220]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [0x14018a800]
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x200
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp ebx, eax
jne 0x140011ec6
movsxd r8, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x220]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140011ec6
mov rcx, qword [0x14018a7e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140011e8f
mov rcx, qword [0x14018a800]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140011e10
mov rcx, qword [0x14018a7e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x14018a800]
mov qword [0x14018a7e0], r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [0x140030740]
mov qword [0x14018a800], r14
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_remove]
jmp 0x140011f0f
mov rcx, qword [0x14018a7e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x14018a800]
mov qword [0x14018a7e0], r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [0x1401899e0]
mov qword [0x14018a800], r14
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_remove]
lea rcx, [0x140030740]
lea rdx, [0x1401899e0]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_rename]
mov byte [0x140030740], r14b
cmp dword [0x14018a780], 0
mov r14, qword [rsp + 0x438]
mov rbx, qword [rsp + 0x460]
je 0x140011f5e
cmp dword [0x14018a7a0], 0
je 0x140011f43
mov ecx, 0xa
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putchar]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
lea rcx, str.Done.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
call fcn.140001118
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140001398
add rsp, 0x458
ret