Function at 0x100498580
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov edi, ecx
mov ecx, dword [0x100661fe0]
test ecx, ecx
je 0x1004985a8
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.bash.exe__rl_block_sigint
mov rax, qword [sym.bash.exe_rl_instream]
mov rcx, qword [rax]
test rcx, rcx
je 0x100498900
call sub.msys_2.0.dll_fileno
lea rsi, [rsp + 0x30]
mov edx, 0x5401
mov r8, rsi
mov ecx, eax
mov ebx, eax
call sub.msys_2.0.dll_ioctl
test eax, eax
je 0x1004988e8
call sub.msys_2.0.dll___errno
mov rdx, rsi
mov ecx, ebx
mov dword [rax], 0
call fcn.100498120
test eax, eax
js 0x10049894f
mov rax, qword [sym.bash.exe__rl_bind_stty_chars]
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x40]
movdqu xmm2, xmmword [rsp + 0x4c]
mov r8d, dword [rax]
mov rax, qword [sym.bash.exe_rl_editing_mode]
movaps xmmword [0x100661fa0], xmm0
movaps xmmword [0x100661fb0], xmm1
mov ebp, dword [rax]
movups xmmword [0x100661fbc], xmm2
test r8d, r8d
je 0x100498653
test ebp, ebp
jne 0x1004988d0
mov rcx, qword [sym.bash.exe_vi_insertion_keymap]
call sym.bash.exe_rl_tty_unset_default_bindings
movzx eax, byte [0x100661fb7]
movzx ecx, byte [0x100661fbc]
movzx r11d, byte [0x100661fb5]
mov r12, qword [sym.bash.exe_rl_readline_state]
mov rdx, rax
shl rax, 8
or rax, rcx
movzx ecx, byte [0x100661fb8]
or qword [r12], 0x40000
shl rax, 8
or rax, rcx
movzx ecx, byte [0x100661fc2]
shl rax, 8
or rax, rcx
movzx ecx, byte [0x100661fb6]
shl rax, 8
or rax, rcx
movzx ecx, byte [0x100661fb4]
shl rax, 8
or rax, rcx
movzx ecx, byte [0x100661fb3]
shl rax, 8
or rax, rcx
movzx ecx, r11b
shl rax, 8
or rax, rcx
mov qword [0x100661fd0], rax
mov rax, qword [sym.bash.exe__rl_intr_char]
mov dword [rax], edx
movzx edx, byte [0x100661fbb]
mov rax, qword [sym.bash.exe__rl_quit_char]
mov dword [rax], edx
movzx eax, byte [0x100661fbf]
movzx edx, dl
mov dh, al
mov word [0x100661fd8], dx
mov rdx, qword [sym.bash.exe__rl_susp_char]
mov dword [rdx], eax
movzx eax, byte [0x100661fb2]
movzx edx, byte [0x100661fb9]
shl eax, 8
or eax, edx
movzx edx, byte [0x100661fbe]
shl eax, 8
or eax, edx
movzx edx, byte [0x100661fbd]
shl eax, 8
or eax, edx
mov dword [0x100661fdb], eax
test r8d, r8d
je 0x100498773
movzx edx, byte [rsp + 0x46]
movzx r8d, byte [rsp + 0x48]
movzx r9d, byte [rsp + 0x49]
movzx eax, byte [rsp + 0x52]
test ebp, ebp
jne 0x1004988a8
mov byte [rsp + 0x20], al
mov rcx, qword [sym.bash.exe_vi_insertion_keymap]
call fcn.100498190
mov eax, dword [0x100661fac]
mov rdx, qword [sym.bash.exe__rl_echoing_p]
mov ecx, eax
and eax, 0x800
and ecx, 4
mov dword [rdx], ecx
mov rdx, qword [sym.bash.exe__rl_echoctl]
mov ecx, dword [rsp + 0x3c]
mov dword [rdx], eax
mov edx, ecx
and edx, 0xfffffff9
test r11b, r11b
je 0x1004987ad
mov rax, qword [sym.bash.exe__rl_eof_char]
mov dword [rax], r11d
mov r8d, dword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
not r8d
and r8d, 0x30
je 0x1004987c3
test edi, edi
je 0x1004987c6
and eax, 0xffffffcf
and eax, 0xfffffebf
or edx, 1
mov byte [rsp + 0x4a], 1
mov dword [rsp + 0x30], eax
mov eax, ecx
and eax, 0xfffffdf9
mov byte [rsp + 0x51], 0
or eax, 1
and ch, 2
mov byte [rsp + 0x49], 0
cmove eax, edx
mov rdx, qword [sym.bash.exe_vi_insertion_keymap]
mov dword [rsp + 0x3c], eax
test ebp, ebp
je 0x10049880a
mov rax, qword [sym.bash.exe__rl_keymap]
mov rdx, qword [rax]
movzx eax, byte [rsp + 0x42]
test al, al
je 0x10049883d
shl rax, 4
cmp byte [rdx + rax], 0
jne 0x10049883d
mov byte [rsp + 0x42], 0
jmp 0x10049883d
call sub.msys_2.0.dll___errno
cmp dword [rax], 4
jne 0x100498891
call sub.msys_2.0.dll___errno
mov dword [rax], 0
mov r8, rsi
mov edx, 3
mov ecx, ebx
call fcn.100514910
test eax, eax
js 0x100498828
mov rax, qword [sym.bash.exe__rl_enable_keypad]
mov eax, dword [rax]
test eax, eax
jne 0x100498940
mov rax, qword [sym.bash.exe__rl_enable_bracketed_paste]
mov edx, dword [rax]
test edx, edx
jne 0x100498910
mov rbx, qword [sym.bash.exe_rl_outstream]
mov esi, 1
mov rcx, qword [rbx]
call fcn.100513ed0
or qword [r12], 4
mov dword [0x100661fe0], esi
call sym.bash.exe__rl_release_sigint
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [sym.bash.exe__rl_keymap]
mov rcx, qword [rcx]
mov byte [rsp + 0x20], al
call fcn.100498190
movzx r11d, byte [0x100661fb5]
jmp 0x100498773
mov rax, qword [sym.bash.exe__rl_keymap]
mov rcx, qword [rax]
call sym.bash.exe_rl_tty_unset_default_bindings
jmp 0x100498653
mov r8, rsi
mov edx, 0x5402
mov ecx, ebx
call sub.msys_2.0.dll_ioctl
jmp 0x1004985e3
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
jmp 0x1004985c0
mov r8d, 8
mov rbx, qword [sym.bash.exe_rl_outstream]
mov edx, 1
lea rcx, str.e__2004h
mov esi, 3
mov r9, qword [rbx]
call sub.msys_2.0.dll_fwrite
jmp 0x10049887e
mov ecx, 1
call sym.bash.exe__rl_control_keypad
jmp 0x100498861
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x19
jne 0x10049896b
mov rax, qword [sym.bash.exe__rl_echoing_p]
mov dword [rax], 1
jmp 0x100498891
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x16
je 0x100498959
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x86
jne 0x100498891
jmp 0x100498959