Function at 0x2100c3900
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
lea r15, [0x210273880]
lea rdi, [method.fhandler_base.get_handle__]
lea r12, [method.fhandler_pty_master.hit_eof__]
mov qword [rsp + 0x1c0], r8
mov r14, rcx
mov rsi, rdx
lea rbp, [rsp + 0x54]
mov dword [rsp + 0x1c8], r9d
call method.fhandler_pty_master.flush_to_slave__
cmp qword [rsp + 0x1c0], 0
je 0x2100c3afe
mov dword [rsp + 0x54], 0
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x50], 0
jmp 0x2100c3978
mov rcx, r14
call method.fhandler_pty_master.flush_to_slave__
mov rdx, qword [r14 + 0x238]
mov rcx, rbp
call sym.bytes_available_unsigned_int__void_
test al, al
je 0x2100c3999
mov r9d, dword [rsp + 0x54]
test r9d, r9d
jne 0x2100c3d10
mov rax, qword [r14]
mov rax, qword [rax + 0x280]
cmp rax, rdi
jne 0x2100c3ad0
mov rdx, qword [r14 + 0x18]
mov rcx, rbx
mov r13, rbx
call sym.bytes_available_unsigned_int__void_
test al, al
je 0x2100c3af0
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x2100c3bf0
mov rax, qword [r14]
mov rax, qword [rax + 0x2b0]
cmp rax, r12
jne 0x2100c3b38
mov rcx, qword [r14 + 0x1d8]
cmp byte [rcx + 0x130], 0
jne 0x2100c3a90
test rsi, rsi
je 0x2100c3b4a
mov rcx, r14
call method.fhandler_base.is_nonblocking__
test al, al
jne 0x2100c3ce0
call sym.pthread_testcancel_1
xor ecx, ecx
lea rdx, [rsp + 0x58]
mov r8d, 8
mov qword [rsp + 0x58], 0xfffffffffffe7960
call sym.cygwait_void___LARGE_INTEGER__unsigned_int_
cmp eax, 1
jne 0x2100c3970
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 8]
sub rcx, 0x3200
call method._cygtls.call_signal_handler__
test eax, eax
jne 0x2100c3970
test byte [0x210273880], 1
jne 0x2100c3eab
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r12d, 0xffffffff
mov dword [rax], 4
call sym.msys_2.0.dll___errno
mov dword [rax], 4
jmp 0x2100c3b06
call method.tty.slave_alive__
test al, al
jne 0x2100c39f8
test byte [0x210273880], 1
jne 0x2100c3b88
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r12d, 0xffffffff
mov dword [rax], 5
call sym.msys_2.0.dll___errno
mov dword [rax], 5
jmp 0x2100c3b01
mov rcx, r14
mov r13, rbx
call rax
mov rcx, rbx
mov rdx, qword [rax]
call sym.bytes_available_unsigned_int__void_
test al, al
jne 0x2100c39c3
nop dword [rax + rax]
call sym.GetLastError
cmp eax, 0x6d
jne 0x2100c3e29
xor r12d, r12d
test rsi, rsi
je 0x2100c3b14
mov rax, qword [r14 + 0x1d8]
mov byte [rax + 0x128], 0
test byte [0x210273880], 1
jne 0x2100c3b60
mov eax, r12d
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call rax
test al, al
jne 0x2100c3ba3
test rsi, rsi
jne 0x2100c3a01
xor r12d, r12d
test byte [0x210273880], 1
je 0x2100c3b1d
nop word cs:[rax + rax]
mov dword [rsp + 0x20], r12d
lea r9, [0x210295cc3]
mov edx, 0x100
mov rcx, r15
lea r8, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c3b1d
lea r9, str.all_other_handles_closed
lea r8, str.virtual_bool_fhandler_pty_master::hit_eof__
mov edx, 0x100
mov rcx, r15
call method.strace.prntf_unsigned_int__char_const__char_const__..._
test byte [0x210273880], 1
je 0x2100c3aaa
mov dword [rsp + 0x30], 5
mov edx, 0x40
mov rcx, r15
lea rax, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
mov dword [rsp + 0x28], 0x2a6
lea r9, [0x210295454]
lea r8, [0x210295470]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c3aaa
mov ecx, dword [rsp + 0x1c8]
test ecx, ecx
je 0x2100c3df2
test rsi, rsi
je 0x2100c3df2
lea rax, [rsi + 1]
mov byte [rsi], 0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1c0]
sub rax, 1
je 0x2100c3ea0
mov edx, 0x100
cmp rax, rdx
cmova rax, rdx
mov edx, dword [rsp + 0x54]
mov r8d, eax
test edx, edx
jne 0x2100c3d57
mov rax, qword [r14]
mov rax, qword [rax + 0x280]
cmp rax, rdi
jne 0x2100c3e8c
lea rax, [r14 + 0x18]
mov qword [rsp + 0x20], 0
lea r11, [rsp + 0x60]
mov rcx, qword [rax]
mov r9, rbx
mov rdx, r11
mov qword [rsp + 0x48], r11
call sym.ReadFile
mov r11, qword [rsp + 0x48]
test eax, eax
je 0x2100c3ee7
test byte [r15], 1
jne 0x2100c3dc0
test rsi, rsi
je 0x2100c3957
mov rax, qword [r14 + 0x1d8]
test byte [rax + 0x35], 2
je 0x2100c3cb3
cmp byte [rax + 0x128], 0
je 0x2100c3957
mov r12d, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rdx, r11
mov r8, r12
mov rcx, rdi
add r12, rdi
call sym.msys_2.0.dll_memcpy
sub r12d, esi
jmp 0x2100c3b06
test byte [0x210273880], 1
jne 0x2100c3e50
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r12d, 0xffffffff
mov dword [rax], 0xb
call sym.msys_2.0.dll___errno
mov dword [rax], 0xb
jmp 0x2100c3b06
mov eax, dword [rsp + 0x1c8]
test eax, eax
je 0x2100c3e04
test rsi, rsi
je 0x2100c3e04
lea rax, [rsi + 1]
mov byte [rsi], 0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1c0]
sub rax, 1
je 0x2100c3ea0
mov edx, 0x100
lea r13, [rsp + 0x50]
cmp rax, rdx
cmova rax, rdx
mov qword [rsp + 0x20], 0
lea r11, [rsp + 0x60]
mov r9, r13
mov r8d, eax
mov rcx, qword [r14 + 0x238]
mov rdx, r11
mov qword [rsp + 0x48], r11
call sym.ReadFile
mov r11, qword [rsp + 0x48]
test eax, eax
jne 0x2100c3c86
test byte [0x210273880], 1
je 0x2100c3af0
lea r9, str.ReadFile_on_echo_pipe_failed___E
lea r8, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
mov edx, 0x100
mov rcx, r15
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c3af0
mov eax, dword [rsp + 0x50]
lea r9, str.bytes_read__u
mov edx, 0x100
mov rcx, r15
lea r8, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x20], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov r11, qword [rsp + 0x48]
jmp 0x2100c3c90
mov qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x1c0]
jmp 0x2100c3c26
mov eax, 0x100
mov qword [rsp + 0x40], rsi
cmp qword [rsp + 0x1c0], rax
lea r13, [rsp + 0x50]
cmovbe rax, qword [rsp + 0x1c0]
jmp 0x2100c3d57
call sym.GetLastError
mov edx, 0x2f3
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_fhandler_tty.cc
mov r12d, 0xffffffff
mov r8d, eax
call sym.seterrno_from_win_error_char_const__int__unsigned_int_
jmp 0x2100c3b01
mov dword [rsp + 0x30], 0xb
mov edx, 0x40
mov rcx, r15
lea rax, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
mov dword [rsp + 0x28], 0x2b0
lea r9, [0x210295454]
lea r8, [0x210295470]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c3ced
mov dword [rsp + 0x48], r8d
mov rcx, r14
call rax
mov r8d, dword [rsp + 0x48]
jmp 0x2100c3c58
mov r12d, 1
jmp 0x2100c3b06
mov dword [rsp + 0x30], 4
mov edx, 0x40
mov rcx, r15
lea rax, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
mov dword [rsp + 0x28], 0x2b8
lea r9, [0x210295454]
lea r8, [0x210295470]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c3a68
test byte [0x210273880], 1
je 0x2100c3af0
lea r9, str.ReadFile_failed___E
lea r8, str.int_fhandler_pty_master::process_slave_output_char__size_t__int_
mov edx, 0x100
mov rcx, r15
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c3af0