Function at 0x140002333
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400933e0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1400c3648]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov edi, ecx
test edx, edx
je 0x1400934d4
call fcn.140002022
mov rdi, rax
test rax, rax
je 0x140093a79
lea rdx, [0x1400a75c8]
mov rcx, rax
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov rbx, rax
mov rcx, rdi
test rax, rax
jne 0x14009344c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140093a79
mov edx, 1
call qword [sym.imp.MiKTeX221000_web2c.dll_void___cdecl_MiKTeX::Web2C::RecordFileName_char_const____ptr64__enum_MiKTeX::Core::FileAccess_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MiKTeX221000_md5.dll_md5_init]
mov r9, rbx
lea rcx, [rbp - 0x30]
mov edx, 1
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x1400934ae
nop
mov r8d, eax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MiKTeX221000_md5.dll_md5_append]
mov r9, rbx
lea rcx, [rbp - 0x30]
mov edx, 1
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x140093480
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MiKTeX221000_md5.dll_md5_finish]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400935c8
lea rcx, [rsp + 0x30]
call qword [sym.imp.MiKTeX221000_md5.dll_md5_init]
mov edx, edi
lea rcx, [0x1400c47a0]
call qword [sym.imp.MiKTeX221000_texmf.dll_public:_int___cdecl_MiKTeX::TeXAndFriends::TeXMFApp::GetTeXStringLength_int_const___ptr64]
mov edx, edi
lea rcx, [0x1400c47a0]
mov ebx, eax
call qword [sym.imp.MiKTeX221000_texmf.dll_public:_int___cdecl_MiKTeX::TeXAndFriends::TeXMFApp::GetTeXStringStart_int_const___ptr64]
mov r9d, ebx
lea rdx, [rbp - 0x70]
mov r8d, eax
lea rcx, [0x1400c47a0]
call qword [sym.imp.MiKTeX221000_texmf.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MiKTeX::TeXAndFriends::TeXMFApp::GetTeXString_int__int____ptr64]
cmp qword [rbp - 0x58], 0x10
lea rcx, [rbp - 0x70]
mov r8d, 0x77
lea rdx, str.C:jenkinsworkspacemiktexwindows_build_sourceProgramsTeXAndFriends_texjpeptexmiktex_eptex.h
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.MiKTeX221000_core.dll_miktex_core_strdup]
mov rdx, qword [rbp - 0x58]
mov rbx, rax
cmp rdx, 0x10
jb 0x140093578
mov rcx, qword [rbp - 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093573
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140093573
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003382
mov qword [rbp - 0x60], 0
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
inc r8
cmp byte [rbx + r8], 0
jne 0x140093593
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MiKTeX221000_md5.dll_md5_append]
test rbx, rbx
je 0x1400935b9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MiKTeX221000_md5.dll_md5_finish]
mov rax, qword [0x1400c35b0]
mov ecx, dword [rax]
mov rax, qword [0x1400c35b8]
add ecx, 0x20
cmp ecx, dword [rax]
jge 0x140093a79
mov r8d, 0x10
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.140002de7
mov rax, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x70]
movsxd rdx, dword [rax]
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x6f]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x6e]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x6d]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x6c]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x6b]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x6a]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x69]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x68]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x67]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x66]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x65]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x64]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x63]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x62]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x61]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x60]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x5f]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x5e]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x5d]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x5c]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x5b]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x5a]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x59]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x58]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x57]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x56]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x55]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x54]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x53]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movsxd rdx, dword [rcx]
movzx r8d, byte [rbp - 0x52]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rcx, qword [0x1400c35b0]
movzx r8d, byte [rbp - 0x51]
movsxd rdx, dword [rcx]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, qword [0x1400c35d8]
mov rcx, qword [rax]
mov word [rcx + rdx*2 + 2], r8w
mov rax, qword [0x1400c35b0]
inc dword [rax]
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.14000259f
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret