Function at 0x10049e030
Capabilities:
Get socket status

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x80]
mov rax, qword [sym.bash.exe_rl_pending_input]
mov r13d, dword [rax]
test r13d, r13d
je 0x10049e080
mov dword [rax], 0
mov rax, qword [sym.bash.exe_rl_readline_state]
and qword [rax], 0xfffffffffffdffff
mov eax, r13d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sym.bash.exe__rl_next_macro_key
mov r13d, eax
test eax, eax
jne 0x10049e2d8
cmp qword [sym.bash.exe_rl_event_hook], 0
mov edx, dword [0x100603460]
movsxd rax, dword [0x100603464]
je 0x10049e2f8
mov rbx, qword [sym.bash.exe_rl_instream]
mov rsi, qword [sym.bash.exe__rl_caught_signal]
mov rdi, qword [sym.bash.exe_rl_done]
cmp edx, eax
je 0x10049e0f0
lea edx, [rax + 1]
lea rcx, [0x100603260]
movzx r13d, byte [rcx + rax]
cmp edx, 0x200
mov eax, 0
cmovge edx, eax
mov dword [0x100603464], edx
jmp 0x10049e06b
mov rcx, qword [rbx]
mov byte [rbp - 0x41], 0
call sub.msys_2.0.dll_fileno
lea r9, [rbp - 0x38]
mov r12d, eax
lea eax, [rax + 0x3f]
test r12d, r12d
mov edx, r12d
cmovns eax, r12d
sar edx, 0x1f
xor r8d, r8d
shr edx, 0x1a
lea ecx, [r12 + rdx]
sar eax, 6
and ecx, 0x3f
cdqe
sub ecx, edx
mov edx, 1
shl rdx, cl
mov qword [rbp + rax*8 - 0x40], rdx
mov qword [rbp + rax*8 - 0x38], rdx
movsxd rax, dword [0x1004de5e0]
mov rdx, rax
imul rax, rax, 0x431bde83
mov ecx, edx
sar ecx, 0x1f
sar rax, 0x32
sub eax, ecx
movsxd rcx, eax
imul eax, eax, 0xf4240
mov qword [rbp - 0x30], rcx
lea ecx, [r12 + 1]
sub edx, eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
movsxd rdx, edx
mov qword [rbp - 0x28], rdx
lea rdx, [rbp - 0x40]
call sub.msys_2.0.dll_select
test eax, eax
jle 0x10049e250
call sub.msys_2.0.dll___errno
xor r8d, r8d
mov edx, 3
mov ecx, r12d
mov dword [rax], 0
call sub.msys_2.0.dll_fcntl
mov edx, 4
mov ecx, r12d
mov r8d, eax
mov r14d, eax
or r8d, 0x4000
call sub.msys_2.0.dll_fcntl
lea rdx, [rbp - 0x41]
mov r8d, 1
mov ecx, r12d
call sub.msys_2.0.dll_read
mov r8d, r14d
mov edx, 4
mov ecx, r12d
mov r15, rax
call sub.msys_2.0.dll_fcntl
cmp r15d, 0xffffffff
je 0x10049e290
test r15d, r15d
je 0x10049e240
jle 0x10049e250
mov eax, dword [0x100603464]
mov edx, dword [0x100603460]
cmp eax, edx
jle 0x10049e280
sub eax, edx
sub eax, 1
cmp eax, 0x1fe
jle 0x10049e220
movsx ecx, byte [rbp - 0x41]
call sym.bash.exe_rl_stuff_char
nop word [rax + rax]
cmp qword [sym.bash.exe_rl_event_hook], 0
je 0x10049e06b
mov edx, dword [0x100603460]
movsxd rax, dword [0x100603464]
jmp 0x10049e0c0
mov ecx, 0xffffffff
call sym.bash.exe_rl_stuff_char
nop word [rax + rax]
mov eax, dword [rsi]
test eax, eax
jne 0x10049e270
mov eax, dword [rdi]
test eax, eax
jne 0x10049e2e8
call qword [sym.bash.exe_rl_event_hook]
jmp 0x10049e220
mov ecx, dword [rsi]
call sym.bash.exe__rl_signal_handler
jmp 0x10049e256
sub eax, edx
add eax, 0x1ff
jmp 0x10049e20a
call sub.msys_2.0.dll___errno
cmp dword [rax], 0xb
je 0x10049e250
call sub.msys_2.0.dll___errno
cmp dword [rax], 5
jne 0x10049e250
mov rax, qword [sym.bash.exe_rl_done]
mov dword [rax], 1
call sub.msys_2.0.dll___errno
cmp dword [rax], 5
jne 0x10049e2e8
mov rax, qword [sym.bash.exe_rl_readline_state]
xor r13d, r13d
test byte [rax], 8
sete r13b
sub r13d, 2
jmp 0x10049e06b
movzx r13d, al
jmp 0x10049e06b
mov r13d, 0xa
jmp 0x10049e06b
cmp eax, edx
je 0x10049e33c
lea edx, [rax + 1]
lea rcx, [0x100603260]
movzx r13d, byte [rcx + rax]
cmp edx, 0x200
mov eax, 0
cmovge edx, eax
mov dword [0x100603464], edx
mov rax, qword [sym.bash.exe__rl_caught_signal]
mov edx, dword [rax]
test edx, edx
je 0x10049e06b
mov ecx, dword [rax]
call sym.bash.exe__rl_signal_handler
jmp 0x10049e06b
mov rax, qword [sym.bash.exe_rl_instream]
mov rcx, qword [rax]
call qword [sym.bash.exe_rl_getc_function]
mov r13d, eax
jmp 0x10049e31f