Function at 0x1004d3d60
Capabilities:
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x198
mov dword [rsp + 0x1e0], ecx
mov qword [rsp + 0x1e8], rdx
mov qword [rsp + 0x1f0], r8
call sub.msys_2.0.dll___main
mov r12, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
mov qword [r12 + 0x100], 0
lea r8, [r12 + 0x108]
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, r12
call sub.msys_2.0.dll_setjmp
test eax, eax
je 0x1004d3dc9
mov ecx, 2
call sub.msys_2.0.dll_exit
call sym.bash.exe_xtrace_init
call sym.bash.exe_check_dev_tty
lea rdx, [rsp + 0x90]
lea rcx, [0x1004df370]
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004d4d35
mov eax, dword [rsp + 0xa0]
and eax, 0xf000
cmp eax, 0x4000
je 0x1004d3e22
lea rcx, str._tmp_must_be_a_valid_directory_name
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_internal_warning
jmp 0x1004d3e22
mov ecx, 3
call sub.msys_2.0.dll_sleep
cmp dword [sym.bash.exe_debugging_login_shell], 0
jne 0x1004d3e18
call sym.bash.exe_set_default_locale
call sub.msys_2.0.dll_getuid
cmp eax, dword [sym.bash.exe_current_user]
mov ebx, eax
je 0x1004d3e93
mov rcx, qword [0x1004d6050]
test rcx, rcx
je 0x1004d3e50
call fcn.1004d2c80
mov rcx, qword [0x1004d6058]
test rcx, rcx
je 0x1004d3e61
call fcn.1004d2c80
mov rcx, qword [0x1004d6060]
test rcx, rcx
je 0x1004d3e72
call fcn.1004d2c80
mov qword [0x1004d6060], 0
mov qword [0x1004d6058], 0
mov qword [0x1004d6050], 0
mov dword [sym.bash.exe_current_user], ebx
call sub.msys_2.0.dll_getgid
mov dword [0x1004d6048], eax
call sub.msys_2.0.dll_geteuid
mov dword [0x1004d6044], eax
call sub.msys_2.0.dll_getegid
mov edi, dword [0x1004d6044]
mov edx, 1
cmp dword [sym.bash.exe_current_user], edi
mov dword [0x1004d604c], eax
jne 0x1004d3ed8
xor edx, edx
cmp dword [0x1004d6048], eax
setne dl
lea rcx, [0x1004df3c4]
mov dword [0x1005f8204], edx
call sym.bash.exe_getenv
test rax, rax
je 0x1004d5499
mov dword [sym.bash.exe_posixly_correct], 1
xor ecx, ecx
xor edx, edx
lea r8, [0x1005f8148]
mov qword [0x1005f8140], 1
call sub.msys_2.0.dll_pthread_sigmask
lea rcx, [sym.bash.exe_subshell_top_level]
call sub.msys_2.0.dll_setjmp
test eax, eax
je 0x1004d3f5d
mov dword [0x1005f8208], 0
mov eax, dword [sym.bash.exe_subshell_argc]
mov dword [rsp + 0x1e0], eax
mov rax, qword [sym.bash.exe_subshell_argv]
mov qword [rsp + 0x1e8], rax
mov rax, qword [sym.bash.exe_subshell_envp]
mov qword [rsp + 0x1f0], rax
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
mov dword [0x1005f81e8], 0
cmp eax, dword [rsp + 0x1e0]
jle 0x1004d3f87
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x38], eax
mov qword [sym.bash.exe_command_execution_string], 0
mov dword [sym.bash.exe_read_from_stdin], 0
mov dword [rsp + 0x34], 0
mov dword [sym.bash.exe_want_pending_command], 0
call sub.msys_2.0.dll___getreent
cmp dword [sym.bash.exe_shell_initialized], 0
mov dword [sym.bash.exe_default_buffered_input], 0xffffffff
mov dword [0x1005f81f0], 0
mov rax, qword [rax + 8]
mov dword [sym.bash.exe_login_shell], 0
mov qword [0x1005f81e0], rax
mov rax, qword [sym.bash.exe_shell_name]
jne 0x1004d3ff5
test rax, rax
je 0x1004d415a
cmp byte [rax], 0x2d
jne 0x1004d4005
add rax, 1
mov qword [sym.bash.exe_shell_name], rax
mov rax, qword [sym.bash.exe_primary_prompt]
xor ecx, ecx
lea rdi, [0x1004df3e3]
mov dword [sym.bash.exe_current_command_number], 1
mov dword [0x1005f81f8], 1
mov qword [rax], rdi
mov rax, qword [sym.bash.exe_secondary_prompt]
lea rdi, [0x1004df3ec]
mov dword [0x1005f81fc], 1
mov qword [rax], rdi
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov dword [sym.bash.exe_executing], 0
mov dword [rax], 0
mov rax, qword [sym.bash.exe_line_number]
mov dword [sym.bash.exe_interactive], 0
mov dword [rax], 0
mov rax, qword [sym.bash.exe_forced_interactive]
mov dword [0x1005f81f4], 0
mov dword [rax], 0
mov rax, qword [sym.bash.exe_running_in_background]
mov dword [0x1005f8200], 0
mov dword [rax], 0
mov rax, qword [sym.bash.exe_subshell_environment]
mov dword [sym.bash.exe_interactive_shell], 0
mov dword [rax], 0
mov rax, qword [sym.bash.exe_expand_aliases]
mov dword [rax], 0
mov rax, qword [sym.bash.exe_enable_history_list]
mov dword [rax], 0
call sym.bash.exe_bash_history_reinit
mov rax, qword [sym.bash.exe_restricted]
mov dword [rax], 0
lea rax, str._.bashrc
mov qword [str._.bashrc], rax
mov rax, qword [sym.bash.exe_shell_variables]
mov rcx, qword [rax]
call sym.bash.exe_delete_all_contexts
mov rax, qword [sym.bash.exe_shell_functions]
mov rcx, qword [rax]
call sym.bash.exe_delete_all_variables
call sym.bash.exe_reinit_special_variables
call sym.bash.exe_bashline_reinitialize
mov r12, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
mov dword [0x1005f81e8], 1
mov qword [r12 + 0x100], 0
lea r8, [r12 + 0x108]
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, r12
call sub.msys_2.0.dll_setjmp
test eax, eax
jne 0x1004d3dbf
mov rax, qword [rsp + 0x1f0]
mov qword [sym.bash.exe_shell_environment], rax
mov rax, qword [rsp + 0x1e8]
mov rbx, qword [rax]
test rbx, rbx
je 0x1004d4355
mov rcx, rbx
call sym.bash.exe_base_pathname
mov qword [sym.bash.exe_shell_name], rax
cmp byte [rbx], 0x2d
je 0x1004d439b
mov rax, qword [sym.bash.exe_shell_name]
cmp byte [rax], 0x73
jne 0x1004d41c0
movzx edx, byte [rax + 1]
cmp dl, 0x68
je 0x1004d43ba
cmp dl, 0x75
jne 0x1004d41c0
cmp byte [rax + 2], 0
jne 0x1004d41c0
add dword [0x1005f820c], 1
mov rax, qword [sym.bash.exe_dollar_vars]
mov qword [sym.bash.exe_shell_name], rbx
mov rcx, qword [rax]
test rcx, rcx
je 0x1004d41db
call fcn.1004d2c80
mov r12, qword [sym.bash.exe_shell_name]
mov rcx, r12
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, r12
mov rcx, rax
call fcn.1004d3420
mov rdx, qword [sym.bash.exe_dollar_vars]
mov qword [rdx], rax
mov rax, qword [sym.bash.exe_shell_name]
test rax, rax
je 0x1004d4342
movzx edx, byte [rax]
test dl, dl
je 0x1004d4342
cmp dl, 0x2d
je 0x1004d4338
xor ecx, ecx
call sub.msys_2.0.dll_time
mov esi, dword [rsp + 0x38]
mov qword [sym.bash.exe_shell_start_time], rax
cmp dword [rsp + 0x1e0], esi
je 0x1004d4361
mov rdi, qword [rsp + 0x1e8]
movsxd rax, esi
lea r13, [rax*8]
mov r12, qword [rdi + rax*8]
test r12, r12
je 0x1004d4361
cmp byte [r12], 0x2d
jne 0x1004d4361
cmp byte [r12 + 1], 0x2d
je 0x1004d431a
mov dword [rsp + 0x28], 0
mov rdi, r12
movzx r14d, byte [rdi + 1]
lea rbx, str.debugger
xor ebp, ebp
lea r15, str.debug
add rdi, 1
jmp 0x1004d42c3
mov r15, qword [rbx]
add rbx, 0x20
add ebp, 1
test r15, r15
je 0x1004d4b2d
cmp r14b, byte [r15]
jne 0x1004d42b0
mov rdx, r15
mov rcx, rdi
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004d42b0
movsxd r8, ebp
lea rax, str.debug
shl r8, 5
add rax, r8
cmp dword [rax + 8], 1
je 0x1004d438c
mov rdi, qword [rsp + 0x1e8]
add esi, 1
mov rdx, qword [rdi + r13 + 8]
test rdx, rdx
je 0x1004d547d
mov rax, qword [rax + 0x18]
mov qword [rax], rdx
add esi, 1
jmp 0x1004d423e
cmp byte [r12 + 2], 0
je 0x1004d4282
mov dword [rsp + 0x28], 1
lea rdi, [r12 + 1]
jmp 0x1004d428d
cmp byte [rax + 1], 0
jne 0x1004d422c
lea rax, [0x1004df367]
mov qword [sym.bash.exe_shell_name], rax
jmp 0x1004d422c
lea rbx, [0x1004df367]
jmp 0x1004d41c0
cmp dword [0x1005f81ec], 0
mov dword [rsp + 0x38], esi
jne 0x1004d459d
cmp dword [0x1005f81f4], 0
je 0x1004d43d0
mov ecx, 1
call sym.bash.exe_show_shell_version
xor ecx, ecx
call sub.msys_2.0.dll_exit
mov rax, qword [rax + 0x10]
mov dword [rax], 1
jmp 0x1004d4312
cmp byte [rax], 0x2d
jne 0x1004d43ab
add rax, 1
mov qword [sym.bash.exe_shell_name], rax
mov dword [sym.bash.exe_login_shell], 1
jmp 0x1004d4195
cmp byte [rax + 2], 0
jne 0x1004d41c0
add dword [0x1005f8210], 1
jmp 0x1004d41c0
mov rax, qword [sym.bash.exe_verbose_flag]
mov esi, dword [rsp + 0x38]
lea r13, [0x1004df540]
mov edi, 0x2d
mov r14, qword [rsp + 0x1e8]
mov edx, dword [rax]
mov rax, qword [sym.bash.exe_echo_input_at_read]
mov dword [rax], edx
mov rax, qword [sym.bash.exe_this_command_name]
mov rdx, qword [sym.bash.exe_shell_name]
mov qword [rax], rdx
cmp dword [rsp + 0x1e0], esi
je 0x1004d45b7
movsxd rax, esi
mov rbx, qword [r14 + rax*8]
test rbx, rbx
je 0x1004d45b7
movsx r12d, byte [rbx]
lea eax, [r12 - 0x2b]
test al, 0xfd
jne 0x1004d45b7
movzx eax, byte [rbx + 1]
add esi, 1
cmp r12b, 0x2d
je 0x1004d4581
movsx ebp, al
test ebp, ebp
je 0x1004d440b
add rbx, 2
nop dword [rax]
sub eax, 0x44
cmp al, 0x2f
ja case.0x1004d446a.1
movzx eax, al
movsxd rax, dword [r13 + rax*4]
add rax, r13
jmp rax
mov edx, r12d
mov ecx, ebp
call sym.bash.exe_change_flag
add eax, 1
je 0x1004d54b3
nop
movsx ebp, byte [rbx]
add rbx, 1
mov eax, ebp
test ebp, ebp
jne 0x1004d4458
jmp 0x1004d440b
mov dword [sym.bash.exe_read_from_stdin], 1
jmp 0x1004d4480
movsxd rax, esi
mov rdx, qword [r14 + rax*8]
test rdx, rdx
je 0x1004d4535
mov ecx, r12d
call sym.bash.exe_set_minus_o_option
test eax, eax
jne 0x1004d3dbf
add esi, 1
jmp 0x1004d4480
mov dword [0x1005f81f0], 1
jmp 0x1004d4480
movsxd rax, esi
mov rbp, qword [r14 + rax*8]
test rbp, rbp
je 0x1004d454b
mov eax, dword [0x1005f81cc]
cmp dword [0x1005f81d0], eax
mov rcx, qword [0x1005f81d8]
jge 0x1004d4560
movsxd rax, dword [0x1005f81d0]
mov rdx, rax
shl rax, 4
add rax, qword [0x1005f81d8]
add edx, 1
mov qword [rax], rbp
mov dword [rax + 8], r12d
mov dword [0x1005f81d0], edx
jmp 0x1004d44be
mov dword [sym.bash.exe_dump_translatable_strings], 1
jmp 0x1004d4480
mov dword [sym.bash.exe_want_pending_command], 1
jmp 0x1004d4480
xor edx, edx
cmp r12d, 0x2d
setne dl
or ecx, 0xffffffff
call sym.bash.exe_list_minus_o_opts
jmp 0x1004d4480
xor edx, edx
cmp r12d, 0x2d
setne dl
xor ecx, ecx
call sym.bash.exe_shopt_listopt
jmp 0x1004d4480
add eax, 8
movsxd rdx, eax
mov dword [0x1005f81cc], eax
shl rdx, 4
call sym.bash.exe_xrealloc
mov qword [0x1005f81d8], rax
jmp 0x1004d44f0
test al, al
je 0x1004d45b7
cmp al, 0x2d
jne 0x1004d444a
cmp byte [rbx + 2], 0
je 0x1004d45b7
mov ebp, edi
mov r12d, edi
jmp 0x1004d4451
call sub.msys_2.0.dll___getreent
mov edx, 1
mov rcx, qword [rax + 0x10]
call fcn.1004010f0
xor ecx, ecx
call sub.msys_2.0.dll_exit
cmp dword [0x1005f81f0], 0
mov eax, dword [sym.bash.exe_login_shell]
mov dword [rsp + 0x38], esi
je 0x1004d45d2
not eax
mov dword [sym.bash.exe_login_shell], eax
xor edx, edx
cmp dword [sym.bash.exe_login_shell], 0
lea rcx, [0x1004df448]
setne dl
call sym.bash.exe_set_login_shell
cmp dword [sym.bash.exe_dump_po_strings], 0
je 0x1004d4c11
mov dword [sym.bash.exe_dump_translatable_strings], 1
mov rax, qword [sym.bash.exe_read_but_dont_execute]
mov dword [rax], 1
cmp dword [0x1005f8204], 0
je 0x1004d4627
mov rax, qword [sym.bash.exe_privileged_mode]
cmp dword [rax], 0
je 0x1004d4e6d
cmp dword [sym.bash.exe_want_pending_command], 0
je 0x1004d465c
movsxd rax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x1e8]
mov rax, qword [rdi + rax*8]
mov qword [sym.bash.exe_command_execution_string], rax
test rax, rax
je 0x1004d4eb0
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [sym.bash.exe_this_command_name]
mov qword [rax], 0
mov rax, qword [sym.bash.exe_forced_interactive]
cmp dword [rax], 0
je 0x1004d4ce4
mov rax, qword [sym.bash.exe_expand_aliases]
cmp dword [sym.bash.exe_login_shell], 0
mov dword [sym.bash.exe_startup_state], 1
mov dword [sym.bash.exe_interactive_shell], 1
mov dword [rax], 1
mov rax, qword [sym.bash.exe_enable_history_list]
mov dword [sym.bash.exe_interactive], 1
mov dword [rax], 1
mov rax, qword [sym.bash.exe_remember_on_history]
mov dword [rax], 1
jne 0x1004d4d11
cmp dword [sym.bash.exe_posixly_correct], 0
jne 0x1004d4e47
xor ebx, ebx
cmp qword [0x1005f81d8], 0
jne 0x1004d470e
jmp 0x1004d4741
mov rax, rbx
xor edx, edx
shl rax, 4
add rax, rcx
cmp dword [rax + 8], 0x2d
mov rcx, qword [rax]
sete dl
add rbx, 1
call sym.bash.exe_shopt_setopt
test eax, eax
jne 0x1004d3dbf
cmp dword [0x1005f81d0], ebx
mov rcx, qword [0x1005f81d8]
jg 0x1004d46e7
call fcn.1004d2c80
mov qword [0x1005f81d8], 0
mov dword [0x1005f81cc], 0
mov dword [0x1005f81d0], 0
call fcn.1004018d0
call sym.bash.exe_set_default_lang
call sym.bash.exe_set_default_locale_vars
cmp dword [sym.bash.exe_interactive_shell], 0
je 0x1004d480f
lea rcx, [0x1004df456]
call sym.bash.exe_get_string_value
lea rcx, str.EMACS
mov r12, rax
call sym.bash.exe_get_string_value
lea rcx, str.INSIDE_EMACS
mov r13, rax
call sym.bash.exe_get_string_value
mov rcx, rax
test rax, rax
je 0x1004d5023
lea rdx, str._term:
xor esi, esi
call sub.msys_2.0.dll_strstr
test rax, rax
setne sil
cmp byte [r12], 0x65
mov ebx, dword [sym.bash.exe_no_line_editing]
je 0x1004d4fff
cmp byte [r12], 0x64
je 0x1004d4fda
mov dword [sym.bash.exe_no_line_editing], ebx
mov dword [sym.bash.exe_running_under_emacs], 1
test esi, esi
je 0x1004d4802
cmp byte [r12], 0x65
jne 0x1004d4802
mov r8d, 5
lea rdx, [0x1004df48a]
mov rcx, r12
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x1004d4802
mov dword [sym.bash.exe_running_under_emacs], 2
mov rax, qword [sym.bash.exe_gnu_error_format]
mov dword [rax], 1
mov eax, dword [rsp + 0x38]
mov r12, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x3c], eax
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
lea r8, [r12 + 0x108]
mov qword [r12 + 0x100], 1
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, r12
call sub.msys_2.0.dll_setjmp
test eax, eax
je 0x1004d4883
sub eax, 3
cmp eax, 1
jbe 0x1004d4a83
mov ecx, dword [sym.bash.exe_interactive_shell]
call sym.bash.exe_set_job_control
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov edi, dword [rsp + 0x2c]
add dword [rax], edi
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x3c]
mov ebx, dword [sym.bash.exe_interactive_shell]
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x1004d4965
lea rcx, [0x1004df490]
call sym.bash.exe_unbind_variable
lea rcx, [0x1004df494]
call sym.bash.exe_unbind_variable
mov rdx, qword [sym.bash.exe_restricted]
mov dword [sym.bash.exe_interactive], ebx
mov eax, 1
mov rcx, qword [sym.bash.exe_shell_name]
cmp dword [rdx], 0
jne 0x1004d48d4
call fcn.100401740
mov rdx, qword [sym.bash.exe_restricted_shell]
mov dword [rdx], eax
mov rax, qword [sym.bash.exe_restricted]
mov esi, dword [rax]
mov dword [rax], 0
mov eax, dword [rsp + 0x34]
or eax, dword [0x1005f8204]
mov ebx, eax
je 0x1004d4b75
cmp dword [0x1005f8210], 0
jne 0x1004d4a91
mov rax, qword [sym.bash.exe_restricted]
xor edx, edx
or esi, dword [rax]
setne dl
cmp dword [0x1005f81e8], 0
mov dword [rax], edx
je 0x1004d4b64
cmp dword [sym.bash.exe_wordexp_only], 0
je 0x1004d4ab7
movsxd rax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x1e8]
mov dword [sym.bash.exe_startup_state], 3
mov rcx, qword [rdi + rax*8]
call fcn.100401370
mov ecx, eax
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov dword [rax], ecx
call sym.bash.exe_exit_shell
mov edx, 0x2d
mov ecx, 0x69
mov ebx, 1
call sym.bash.exe_change_flag
jmp 0x1004d48b1
mov eax, dword [rsp + 0x38]
cmp eax, dword [rsp + 0x1e0]
je 0x1004d4998
cmp dword [sym.bash.exe_read_from_stdin], 0
je 0x1004d5136
cmp dword [sym.bash.exe_interactive], 0
je 0x1004d50fb
mov eax, dword [rsp + 0x38]
cmp eax, dword [rsp + 0x1e0]
jne 0x1004d49bc
mov dword [sym.bash.exe_read_from_stdin], 1
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
call sub.msys_2.0.dll_fileno
mov ecx, eax
call sym.bash.exe_sh_unset_nodelay_mode
cmp dword [sym.bash.exe_interactive], 0
jne 0x1004d50d3
mov rax, qword [sym.bash.exe_dollar_vars]
mov ecx, dword [sym.bash.exe_default_buffered_input]
mov rdx, qword [rax]
call sym.bash.exe_with_input_from_buffered_stream
mov edx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x1e0]
mov r9d, 1
mov rcx, qword [rsp + 0x1e8]
call fcn.100401530
cmp dword [sym.bash.exe_debugging_mode], 0
mov dword [rsp + 0x38], eax
je 0x1004d4a42
mov eax, dword [rsp + 0x34]
or eax, dword [0x1005f8204]
jne 0x1004d4a42
cmp dword [sym.bash.exe_reading_shell_script], 0
jne 0x1004d4a3d
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x1004d4a4b
call fcn.100401670
cmp dword [sym.bash.exe_interactive_shell], 0
je 0x1004d4a74
call sym.bash.exe_reset_mail_timer
call sym.bash.exe_init_mail_dates
call sym.bash.exe_bash_initialize_history
mov rdx, qword [sym.bash.exe_history_lines_this_session]
mov eax, dword [sym.bash.exe_shell_initialized]
or eax, dword [rdx]
je 0x1004d4fd0
call sym.bash.exe_get_tty_state
mov dword [sym.bash.exe_shell_initialized], 1
call sym.bash.exe_reader_loop
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov ecx, dword [rax]
call sym.bash.exe_exit_shell
lea r12, [0x1004df3c4]
xor r8d, r8d
lea rdx, [0x1004df454]
mov rcx, r12
call sym.bash.exe_bind_variable
mov rcx, r12
call sym.bash.exe_sv_strict_posix
jmp 0x1004d490b
call sym.bash.exe_cmd_init
call sym.bash.exe_uwp_init
mov rsi, qword [sym.bash.exe_command_execution_string]
test rsi, rsi
je 0x1004d497e
mov edx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x1e0]
xor r9d, r9d
mov rcx, qword [rsp + 0x1e8]
call fcn.100401530
cmp dword [sym.bash.exe_debugging_mode], 0
mov dword [sym.bash.exe_startup_state], 2
mov dword [rsp + 0x38], eax
je 0x1004d4b09
call fcn.100401670
mov rcx, qword [sym.bash.exe_command_execution_string]
mov dword [sym.bash.exe_executing], 1
call fcn.100401a50
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov ecx, dword [rax]
call sym.bash.exe_exit_shell
cmp dword [rsp + 0x28], 0
je 0x1004d4361
lea rcx, [0x1004df420]
call sym.bash.exe_libintl_gettext
mov rdx, r12
mov rcx, rax
call sym.bash.exe_report_error
call sub.msys_2.0.dll___getreent
xor edx, edx
mov rcx, qword [rax + 0x18]
call fcn.1004010f0
jmp 0x1004d3dbf
mov rcx, qword [sym.bash.exe_shell_name]
call sym.bash.exe_maybe_make_restricted
jmp 0x1004d4928
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov edi, dword [rax]
mov dword [rax], 0
mov dword [rsp + 0x2c], edi
mov edi, dword [sym.bash.exe_interactive_shell]
test edi, edi
je 0x1004d4c23
xor ecx, ecx
mov edi, ebx
call sym.bash.exe_set_job_control
cmp dword [sym.bash.exe_login_shell], 0
mov r12d, eax
js 0x1004d4caf
cmp dword [sym.bash.exe_interactive_shell], 0
mov eax, dword [sym.bash.exe_posixly_correct]
je 0x1004d4c82
test eax, eax
jne 0x1004d4d5c
cmp dword [sym.bash.exe_login_shell], 0
je 0x1004d4bdd
and dil, 1
je 0x1004d4efc
cmp dword [0x1005f8210], 0
jne 0x1004d4d5c
cmp dword [0x1005f81fc], 0
je 0x1004d4ed5
mov ecx, r12d
call sym.bash.exe_set_job_control
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov edi, dword [rsp + 0x2c]
add dword [rax], edi
jmp 0x1004d48fe
cmp dword [sym.bash.exe_dump_translatable_strings], 0
je 0x1004d460e
jmp 0x1004d4601
mov r12d, dword [0x1005f81fc]
or r12d, dword [sym.bash.exe_login_shell]
or r12d, dword [0x1005f8210]
jne 0x1004d4c76
cmp qword [sym.bash.exe_command_execution_string], 0
je 0x1004d4c82
lea rcx, str.SSH_CLIENT
call sym.bash.exe_find_variable
test rax, rax
je 0x1004d4f99
mov rax, qword [sym.bash.exe_shell_level]
cmp dword [rax], 1
jle 0x1004d4f72
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x1004d4b96
cmp dword [sym.bash.exe_login_shell], 0
mov r12d, edi
js 0x1004d4caf
cmp dword [0x1005f820c], 0
mov eax, dword [sym.bash.exe_posixly_correct]
je 0x1004d4d9c
cmp dword [sym.bash.exe_login_shell], 0
je 0x1004d4d9c
test eax, eax
jne 0x1004d4bf7
jmp 0x1004d4bca
cmp dword [sym.bash.exe_posixly_correct], 0
jne 0x1004d4d4e
add dword [0x1005f81fc], 1
cmp dword [0x1005f81f8], 0
je 0x1004d4e77
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x1004d4bdd
mov edi, 1
jmp 0x1004d4c82
cmp qword [sym.bash.exe_command_execution_string], 0
je 0x1004d4de1
call fcn.100401080
cmp dword [sym.bash.exe_login_shell], 0
je 0x1004d46cc
cmp dword [sym.bash.exe_interactive_shell], 0
je 0x1004d46cc
mov ebx, 3
mov ecx, ebx
mov r8d, 1
mov edx, 2
add ebx, 1
call sub.msys_2.0.dll_fcntl
cmp ebx, 0x14
jne 0x1004d4d16
jmp 0x1004d46cc
lea rcx, str.could_not_find__tmp__please_create_
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_internal_warning
jmp 0x1004d3e22
mov edi, dword [sym.bash.exe_interactive_shell]
test edi, edi
je 0x1004d4c82
mov rax, qword [sym.bash.exe_privileged_mode]
cmp dword [rax], 0
jne 0x1004d4bf7
mov eax, dword [0x1005f8208]
lea edx, [rax + 1]
mov dword [0x1005f8208], edx
test eax, eax
jne 0x1004d4bf7
lea rcx, [0x1004df304]
call sym.bash.exe_get_string_value
mov rcx, rax
call fcn.1004016f0
jmp 0x1004d4bf7
mov rdx, qword [sym.bash.exe_privileged_mode]
or eax, dword [0x1005f8210]
or eax, dword [rdx]
jne 0x1004d4bff
mov eax, dword [0x1005f8208]
lea edx, [rax + 1]
mov dword [0x1005f8208], edx
test eax, eax
jne 0x1004d4bff
lea rcx, str.BASH_ENV
call sym.bash.exe_get_string_value
mov rcx, rax
call fcn.1004016f0
jmp 0x1004d4bff
cmp dword [sym.bash.exe_wordexp_only], 0
jne 0x1004d4cf2
mov eax, dword [rsp + 0x38]
cmp eax, dword [rsp + 0x1e0]
je 0x1004d4e08
cmp dword [sym.bash.exe_read_from_stdin], 0
je 0x1004d4cf2
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
call sub.msys_2.0.dll_fileno
mov ecx, eax
call sub.msys_2.0.dll_isatty
test eax, eax
je 0x1004d4cf2
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fileno
mov ecx, eax
call sub.msys_2.0.dll_isatty
test eax, eax
jne 0x1004d467a
jmp 0x1004d4cf2
lea r12, [0x1004df3c4]
xor r8d, r8d
lea rdx, [0x1004df454]
mov rcx, r12
call sym.bash.exe_bind_variable
mov rcx, r12
call sym.bash.exe_sv_strict_posix
jmp 0x1004d46d9
call sym.bash.exe_disable_priv_mode
jmp 0x1004d4627
mov edx, 1
lea rcx, str._etc_profile
call sym.bash.exe_maybe_execute_file
cmp dword [0x1005f8210], 0
mov edx, 1
je 0x1004d54d2
lea rcx, str._.profile
mov edi, 1
call sym.bash.exe_maybe_execute_file
jmp 0x1004d4baf
lea rcx, [0x1004df400]
call sym.bash.exe_libintl_gettext
lea rdx, [0x1004df2f6]
mov rcx, rax
call sym.bash.exe_report_error
mov ecx, 2
call sub.msys_2.0.dll_exit
mov edx, 1
lea rcx, str._etc_bash.bashrc
call sym.bash.exe_maybe_execute_file
mov rcx, qword [str._.bashrc]
mov edx, 1
call sym.bash.exe_maybe_execute_file
jmp 0x1004d4bf7
add dword [0x1005f81fc], 1
cmp dword [0x1005f81f8], 0
jne 0x1004d4bdd
mov edx, 1
lea rcx, str._etc_profile
call sym.bash.exe_maybe_execute_file
cmp dword [0x1005f8210], 0
jne 0x1004d4f5c
mov edx, 1
lea rcx, str._.bash_profile
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x1004d4bdd
mov edx, 1
lea rcx, str._.bash_login
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x1004d4bdd
mov edx, 1
lea rcx, str._.profile
call sym.bash.exe_maybe_execute_file
jmp 0x1004d4bdd
mov edx, 1
lea rcx, str._etc_bash.bashrc
call sym.bash.exe_maybe_execute_file
mov rcx, qword [str._.bashrc]
mov edx, 1
call sym.bash.exe_maybe_execute_file
jmp 0x1004d4bff
lea rcx, str.SSH2_CLIENT
call sym.bash.exe_find_variable
test rax, rax
jne 0x1004d4c59
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
call sub.msys_2.0.dll_fileno
mov ecx, eax
call sym.bash.exe_isnetconn
test eax, eax
jne 0x1004d4c59
jmp 0x1004d4c69
call sym.bash.exe_load_history
jmp 0x1004d4a6f
lea rdx, [0x1004df47f]
mov rcx, r12
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004d47c4
or ebx, 1
mov dword [sym.bash.exe_no_line_editing], ebx
jmp 0x1004d47ca
lea rdx, [0x1004df484]
mov rcx, r12
call sub.msys_2.0.dll_strcmp
test eax, eax
sete al
movzx eax, al
or ebx, eax
mov dword [sym.bash.exe_no_line_editing], ebx
jmp 0x1004d47b9
test r13, r13
je 0x1004d504c
lea rdx, str.__term:
mov rcx, r13
mov esi, 1
call sub.msys_2.0.dll_strstr
test rax, rax
jne 0x1004d47a8
cmp byte [r13], 0x74
je 0x1004d5075
cmp byte [r12], 0x65
mov ebx, dword [sym.bash.exe_no_line_editing]
je 0x1004d50b8
mov dword [sym.bash.exe_no_line_editing], ebx
cmp byte [r12], 0x65
je 0x1004d5090
mov dword [sym.bash.exe_running_under_emacs], 0
jmp 0x1004d480f
lea rdx, [0x1004df47d]
mov rcx, r13
call sub.msys_2.0.dll_strcmp
mov esi, eax
test eax, eax
je 0x1004d47a8
jmp 0x1004d504c
mov r8d, 5
lea rdx, [0x1004df484]
mov rcx, r12
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x1004d5066
mov dword [sym.bash.exe_running_under_emacs], 1
jmp 0x1004d4802
lea rdx, [0x1004df484]
mov rcx, r12
call sub.msys_2.0.dll_strcmp
test eax, eax
sete al
movzx eax, al
or ebx, eax
jmp 0x1004d5059
cmp dword [sym.bash.exe_no_line_editing], 0
je 0x1004d5543
mov rax, qword [sym.bash.exe_dollar_vars]
mov rcx, qword [0x1005f81e0]
mov rdx, qword [rax]
call sym.bash.exe_with_input_from_stream
jmp 0x1004d49f3
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
call sub.msys_2.0.dll_fileno
mov dword [sym.bash.exe_read_from_stdin], 1
mov dword [sym.bash.exe_default_buffered_input], eax
cmp dword [sym.bash.exe_interactive], 0
jne 0x1004d49bc
mov ecx, dword [sym.bash.exe_default_buffered_input]
call sym.bash.exe_sh_unset_nodelay_mode
jmp 0x1004d49d1
movsxd rax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x1e8]
mov r15, qword [rdi + rax*8]
mov rcx, r15
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, r15
mov rcx, rax
call fcn.1004d3420
xor edx, edx
mov rcx, rax
mov r14, rax
call sub.msys_2.0.dll_open
mov r12, r14
mov r13d, eax
test eax, eax
js 0x1004d551a
mov rax, qword [sym.bash.exe_dollar_vars]
mov rcx, qword [rax]
call fcn.1004d2c80
mov r14, qword [sym.bash.exe_exec_argv0]
test r14, r14
je 0x1004d5592
mov rcx, r14
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, r14
mov rcx, rax
call fcn.1004d3420
mov rdx, qword [sym.bash.exe_dollar_vars]
mov qword [rdx], rax
mov rcx, qword [sym.bash.exe_exec_argv0]
test rcx, rcx
je 0x1004d51df
call fcn.1004d2c80
mov qword [sym.bash.exe_exec_argv0], 0
mov rcx, r12
call sym.bash.exe_file_isdir
test eax, eax
jne 0x1004d5439
lea rcx, [0x1004df4f6]
call sym.bash.exe_find_variable
mov r15, rax
test rax, rax
je 0x1004d5211
test byte [rax + 0x28], 4
je 0x1004d55b3
mov r15, qword [rax + 8]
lea rcx, [0x1004df4ff]
call sym.bash.exe_find_variable
mov rbx, rax
test rax, rax
je 0x1004d5233
test byte [rax + 0x28], 4
je 0x1004d5451
mov rbx, qword [rax + 8]
lea rcx, [0x1004df50b]
call sym.bash.exe_find_variable
mov r14, rax
test rax, rax
je 0x1004d5255
test byte [rax + 0x28], 4
je 0x1004d5459
mov r14, qword [rax + 8]
mov r8, r12
mov edx, 1
mov rcx, rbx
call sym.bash.exe_array_rshift
test r14, r14
je 0x1004d5292
call sym.bash.exe_executing_line_number
movsxd rcx, eax
call sym.bash.exe_itos
mov rcx, r14
mov edx, 1
mov rbx, rax
mov r8, rax
call sym.bash.exe_array_rshift
mov rcx, rbx
call fcn.1004d2c80
lea r8, [0x1004df517]
mov edx, 1
mov rcx, r15
call sym.bash.exe_array_rshift
mov ecx, r13d
call sub.msys_2.0.dll_isatty
mov ebx, eax
test eax, eax
jne 0x1004d5309
xor edx, edx
mov r8d, 1
mov ecx, r13d
call sub.msys_2.0.dll_lseek
add rax, 1
je 0x1004d5309
lea r14, [rsp + 0x40]
mov r8d, 0x50
mov ecx, r13d
mov rdx, r14
call sub.msys_2.0.dll_read
mov edx, eax
test eax, eax
js 0x1004d5378
je 0x1004d52fc
mov rcx, r14
call sym.bash.exe_check_binary_file
test eax, eax
jne 0x1004d5461
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call sub.msys_2.0.dll_lseek
or r8d, 0xffffffff
mov ecx, r13d
mov edx, 1
call sym.bash.exe_move_to_high_fd
mov r8d, 1
mov edx, 2
mov ecx, eax
mov dword [sym.bash.exe_default_buffered_input], eax
mov r13d, eax
call sub.msys_2.0.dll_fcntl
cmp dword [sym.bash.exe_interactive_shell], 0
je 0x1004d53c3
test ebx, ebx
jne 0x1004d5418
mov rax, qword [sym.bash.exe_forced_interactive]
cmp dword [rax], 0
jne 0x1004d53d3
mov rcx, r12
call fcn.1004d2c80
mov eax, dword [rsp + 0x38]
mov dword [sym.bash.exe_reading_shell_script], 1
add eax, 1
mov dword [rsp + 0x38], eax
jmp 0x1004d5119
call sub.msys_2.0.dll___errno
lea rdx, [rsp + 0x110]
mov ecx, r13d
mov ebx, dword [rax]
call sub.msys_2.0.dll_fstat
test eax, eax
jne 0x1004d53aa
mov eax, dword [rsp + 0x120]
and eax, 0xf000
cmp eax, 0x4000
je 0x1004d5439
call sub.msys_2.0.dll___errno
mov rcx, r12
mov dword [rax], ebx
call sym.bash.exe_file_error
mov ecx, 0x7e
call sub.msys_2.0.dll_exit
mov rax, qword [sym.bash.exe_forced_interactive]
cmp dword [rax], 0
je 0x1004d5356
test ebx, ebx
jne 0x1004d5356
call fcn.100401080
mov rax, qword [sym.bash.exe_expand_aliases]
mov dword [sym.bash.exe_startup_state], 1
mov dword [sym.bash.exe_interactive_shell], 1
mov dword [rax], 1
mov rax, qword [sym.bash.exe_enable_history_list]
mov dword [rax], 1
mov rax, qword [sym.bash.exe_remember_on_history]
mov dword [rax], 1
jmp 0x1004d5356
xor edx, edx
mov ecx, r13d
call sub.msys_2.0.dll_dup2
mov ecx, r13d
call fcn.1004d2aa0
mov dword [sym.bash.exe_default_buffered_input], 0
jmp 0x1004d5356
call sub.msys_2.0.dll___errno
mov rcx, r12
mov dword [rax], 0x15
call sym.bash.exe_file_error
jmp 0x1004d53b9
mov rbx, rsi
jmp 0x1004d5233
mov r14, rsi
jmp 0x1004d5255
lea rcx, [0x1004df520]
call sym.bash.exe_libintl_gettext
mov rdx, r12
mov rcx, rax
call sym.bash.exe_internal_error
jmp 0x1004d53b9
lea rcx, [0x1004df400]
call sym.bash.exe_libintl_gettext
mov rdx, r15
mov rcx, rax
call sym.bash.exe_report_error
jmp 0x1004d3dbf
lea rcx, [0x1004df3d4]
call sym.bash.exe_getenv
test rax, rax
jne 0x1004d3ef3
jmp 0x1004d3efd
lea rcx, str._c_c:_invalid_option
call sym.bash.exe_libintl_gettext
mov r8d, ebp
mov edx, r12d
mov rcx, rax
call sym.bash.exe_report_error
jmp 0x1004d4b4f
lea rcx, str._.bash_profile
mov edi, 1
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x1004d4baf
mov edx, 1
lea rcx, str._.bash_login
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x1004d4baf
mov edx, 1
lea rcx, str._.profile
call sym.bash.exe_maybe_execute_file
jmp 0x1004d4baf
call sub.msys_2.0.dll___errno
cmp dword [rax], 2
je 0x1004d554d
call sub.msys_2.0.dll___errno
mov rcx, r14
mov ebx, dword [rax]
call sym.bash.exe_file_error
xor ecx, ecx
cmp ebx, 2
sete cl
add ecx, 0x7e
call sub.msys_2.0.dll_exit
call sym.bash.exe_with_input_from_stdin
jmp 0x1004d49f3
mov rcx, r14
call sym.bash.exe_absolute_program
test eax, eax
jne 0x1004d5524
call sub.msys_2.0.dll___errno
mov rcx, r15
mov ebx, dword [rax]
call sym.bash.exe_find_path_file
mov r12, rax
test rax, rax
je 0x1004d55bb
mov rcx, r14
call fcn.1004d2c80
xor edx, edx
mov rcx, r12
call sub.msys_2.0.dll_open
mov r13d, eax
test eax, eax
jns 0x1004d517e
mov r14, r12
jmp 0x1004d5524
mov rcx, r15
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, r15
mov rcx, rax
call fcn.1004d3420
jmp 0x1004d51b9
mov r15, rsi
jmp 0x1004d5211
call sub.msys_2.0.dll___errno
mov dword [rax], ebx
jmp 0x1004d5524