Function at 0x1004886b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x60
mov edi, ecx
mov ecx, dword [0x100602c80]
test ecx, ecx
je 0x1004886d8
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
call sym.bash.exe__rl_block_sigint
mov rax, qword [sym.bash.exe_rl_instream]
mov rcx, qword [rax]
test rcx, rcx
je 0x100488a58
call sub.msys_2.0.dll_fileno
lea rsi, [rbp - 0x30]
mov edx, 0x5401
mov r8, rsi
mov ecx, eax
mov ebx, eax
call sub.msys_2.0.dll_ioctl
test eax, eax
je 0x100488a40
call sub.msys_2.0.dll___errno
mov rdx, rsi
mov ecx, ebx
mov dword [rax], 0
call fcn.100488390
test eax, eax
js 0x100488aaf
mov rax, qword [rbp - 0x10]
mov r10, qword [sym.bash.exe__rl_bind_stty_chars]
movdqa xmm0, xmmword [rbp - 0x30]
movdqa xmm1, xmmword [rbp - 0x20]
mov qword [0x100602c60], rax
mov r11, qword [sym.bash.exe_rl_editing_mode]
mov eax, dword [rbp - 8]
mov r12, qword [sym.bash.exe_rl_readline_state]
movaps xmmword [0x100602c40], xmm0
mov r9d, dword [r10]
mov ecx, dword [r11]
movaps xmmword [0x100602c50], xmm1
mov dword [0x100602c68], eax
mov r8, qword [r12]
test r9d, r9d
je 0x1004887b0
mov rax, r8
and eax, 0x40000
test ecx, ecx
jne 0x100488a10
test rax, rax
je 0x1004887b0
mov rcx, qword [sym.bash.exe_vi_insertion_keymap]
call fcn.100488410
mov r8, qword [r12]
mov r9d, dword [r10]
mov ecx, dword [r11]
nop word [rax + rax]
movzx eax, word [0x100602c53]
mov r10, qword [sym.bash.exe__rl_intr_char]
or r8, 0x40000
movzx edx, byte [0x100602c55]
mov qword [r12], r8
mov word [0x100602c71], ax
movzx eax, byte [0x100602c56]
mov byte [0x100602c70], dl
mov byte [0x100602c73], al
movzx eax, byte [0x100602c62]
mov byte [0x100602c74], al
movzx eax, byte [0x100602c58]
mov byte [0x100602c75], al
movzx eax, byte [0x100602c5c]
mov byte [0x100602c76], al
movzx eax, byte [0x100602c57]
mov dword [r10], eax
mov r10, qword [sym.bash.exe__rl_quit_char]
mov byte [0x100602c77], al
movzx eax, byte [0x100602c5b]
mov dword [r10], eax
mov r10, qword [sym.bash.exe__rl_susp_char]
mov byte [0x100602c78], al
movzx eax, byte [0x100602c5f]
mov byte [0x100602c79], al
mov dword [r10], eax
movzx eax, word [0x100602c5d]
mov word [0x100602c7b], ax
movzx eax, byte [0x100602c59]
mov byte [0x100602c7d], al
movzx eax, byte [0x100602c52]
mov byte [0x100602c7e], al
test r9d, r9d
je 0x1004888b0
movzx eax, byte [rbp - 0xe]
movzx edx, byte [rbp - 0x1a]
movzx r8d, byte [rbp - 0x18]
movzx r9d, byte [rbp - 0x17]
mov byte [rsp + 0x20], al
test ecx, ecx
jne 0x1004889e8
mov rcx, qword [sym.bash.exe_vi_insertion_keymap]
call fcn.1004884b0
movzx edx, byte [0x100602c55]
mov ecx, dword [r11]
mov eax, dword [0x100602c4c]
mov r8, qword [sym.bash.exe__rl_echoing_p]
mov r9d, eax
and eax, 0x800
and r9d, 4
mov dword [r8], r9d
mov r8, qword [sym.bash.exe__rl_echoctl]
mov dword [r8], eax
mov r8d, dword [rbp - 0x24]
mov eax, r8d
and eax, 0xfffffff9
test dl, dl
je 0x1004888ee
mov r9, qword [sym.bash.exe__rl_eof_char]
mov dword [r9], edx
mov r9d, dword [rbp - 0x28]
mov edx, dword [rbp - 0x30]
and r9d, 0x30
cmp r9d, 0x30
je 0x100488903
test edi, edi
je 0x100488906
and edx, 0xffffffcf
and edx, 0xfffffebf
or eax, 1
mov byte [rbp - 0x16], 1
mov dword [rbp - 0x30], edx
mov edx, eax
mov eax, r8d
and eax, 0xfffffdf9
mov byte [rbp - 0xf], 0
or eax, 1
and r8d, 0x200
mov byte [rbp - 0x17], 0
cmove eax, edx
mov rdx, qword [sym.bash.exe_vi_insertion_keymap]
mov dword [rbp - 0x24], eax
test ecx, ecx
je 0x10048894d
mov rax, qword [sym.bash.exe__rl_keymap]
mov rdx, qword [rax]
movzx eax, byte [rbp - 0x1e]
test al, al
je 0x10048897d
shl rax, 4
cmp byte [rdx + rax], 0
jne 0x10048897d
mov byte [rbp - 0x1e], 0
jmp 0x10048897d
call sub.msys_2.0.dll___errno
cmp dword [rax], 4
jne 0x1004889d1
call sub.msys_2.0.dll___errno
mov dword [rax], 0
mov r8, rsi
mov edx, 3
mov ecx, ebx
call sub.msys_2.0.dll_tcsetattr
test eax, eax
js 0x100488968
mov rax, qword [sym.bash.exe__rl_enable_keypad]
mov eax, dword [rax]
test eax, eax
jne 0x100488aa0
mov rax, qword [sym.bash.exe__rl_enable_bracketed_paste]
mov rsi, qword [sym.bash.exe_rl_outstream]
mov ebx, 1
mov edx, dword [rax]
mov rcx, qword [rsi]
test edx, edx
jne 0x100488a70
call fcn.1004d2bc0
or qword [r12], 4
mov dword [0x100602c80], ebx
call sym.bash.exe__rl_release_sigint
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
mov rax, qword [sym.bash.exe__rl_keymap]
mov rcx, qword [rax]
call fcn.1004884b0
movzx edx, byte [0x100602c55]
mov ecx, dword [r11]
jmp 0x1004888b0
test rax, rax
je 0x1004887b0
mov rax, qword [sym.bash.exe__rl_keymap]
mov rcx, qword [rax]
call fcn.100488410
mov r8, qword [r12]
mov r9d, dword [r10]
mov ecx, dword [r11]
jmp 0x1004887b0
mov r8, rsi
mov edx, 0x5402
mov ecx, ebx
call sub.msys_2.0.dll_ioctl
jmp 0x100488712
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
jmp 0x1004886f0
mov r9, rcx
mov r8d, 8
mov edx, 1
mov ebx, 3
lea rcx, str.e__2004h
call sub.msys_2.0.dll_fwrite
mov rcx, qword [rsi]
jmp 0x1004889c1
mov ecx, 1
call sym.bash.exe__rl_control_keypad
jmp 0x1004889a1
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x19
jne 0x100488acb
mov rax, qword [sym.bash.exe__rl_echoing_p]
mov dword [rax], 1
jmp 0x1004889d1
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x16
je 0x100488ab9
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x86
jne 0x1004889d1
jmp 0x100488ab9