Function at 0x1005151d0
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, 0x1a8
mov dword [rsp + 0x1f0], ecx
mov qword [rsp + 0x1f8], rdx
mov qword [rsp + 0x200], r8
call sub.msys_2.0.dll___main
mov rbx, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
lea r8, [rbx + 0x108]
mov qword [rbx + 0x100], 0
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, rbx
call sub.msys_2.0.dll_setjmp
test eax, eax
je 0x100515237
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 + 0xa0]
lea rcx, [0x100521378]
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1005162cd
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x4000
je 0x100515290
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 0x100515290
mov ecx, 3
call sub.msys_2.0.dll_sleep
cmp dword [sym.bash.exe_debugging_login_shell], 0
jne 0x100515286
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 0x1005152f5
mov rcx, qword [0x100517050]
test rcx, rcx
je 0x1005152be
call sub.msys_2.0.dll_free
mov rcx, qword [0x100517058]
test rcx, rcx
je 0x1005152cf
call sub.msys_2.0.dll_free
mov rcx, qword [0x100517060]
test rcx, rcx
je 0x1005152e0
call sub.msys_2.0.dll_free
xor r15d, r15d
pxor xmm0, xmm0
mov qword [0x100517060], r15
movaps xmmword [0x100517050], xmm0
mov dword [sym.bash.exe_current_user], ebx
call sub.msys_2.0.dll_getgid
mov dword [0x100517048], eax
call sub.msys_2.0.dll_geteuid
mov dword [0x100517044], eax
call sub.msys_2.0.dll_getegid
mov edi, dword [0x100517044]
mov edx, 1
cmp dword [sym.bash.exe_current_user], edi
mov dword [0x10051704c], eax
jne 0x10051533a
xor edx, edx
cmp dword [0x100517048], eax
setne dl
lea rcx, [0x1005213cc]
mov dword [0x100656224], edx
call sym.bash.exe_getenv
test rax, rax
je 0x100516892
mov dword [sym.bash.exe_posixly_correct], 1
xor ecx, ecx
xor edx, edx
lea r8, [0x100656148]
mov qword [0x100656140], 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 0x1005153bf
mov eax, dword [sym.bash.exe_subshell_argc]
xor r14d, r14d
mov dword [0x100656228], r14d
mov dword [rsp + 0x1f0], eax
mov rax, qword [sym.bash.exe_subshell_argv]
mov qword [rsp + 0x1f8], rax
mov rax, qword [sym.bash.exe_subshell_envp]
mov qword [rsp + 0x200], rax
xor r13d, r13d
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
mov dword [0x100656208], r13d
cmp eax, dword [rsp + 0x1f0]
jle 0x1005153e9
mov eax, dword [rsp + 0x1f0]
mov dword [rsp + 0x48], eax
xor ebp, ebp
xor edi, edi
xor r12d, r12d
mov qword [sym.bash.exe_shell_script_filename], rdi
mov qword [sym.bash.exe_command_execution_string], rdi
mov dword [sym.bash.exe_read_from_stdin], ebp
mov dword [rsp + 0x44], ebp
mov dword [sym.bash.exe_want_pending_command], ebp
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 rax, qword [rax + 8]
mov dword [0x100656210], r12d
mov dword [sym.bash.exe_login_shell], r12d
mov qword [0x100656200], rax
mov rax, qword [sym.bash.exe_shell_name]
jne 0x10051544f
test rax, rax
je 0x1005155b2
cmp byte [rax], 0x2d
jne 0x10051545f
add rax, 1
mov qword [sym.bash.exe_shell_name], rax
mov rax, qword [sym.bash.exe_primary_prompt]
xor r14d, r14d
xor r15d, r15d
xor edx, edx
lea rdi, [0x1005213eb]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
mov qword [rax], rdi
mov rax, qword [sym.bash.exe_secondary_prompt]
xor r10d, r10d
xor r11d, r11d
lea rdi, [0x1005213f4]
xor r13d, r13d
xor ebx, ebx
xor esi, esi
mov qword [rax], rdi
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov dword [sym.bash.exe_bash_argv_initialized], r10d
mov dword [rax], r14d
mov rax, qword [sym.bash.exe_line_number]
mov dword [sym.bash.exe_current_command_number], 1
mov dword [rax], r15d
mov rax, qword [sym.bash.exe_forced_interactive]
mov dword [0x100656218], 1
mov dword [rax], edx
mov rax, qword [sym.bash.exe_running_in_background]
mov dword [0x10065621c], 1
mov dword [rax], ecx
mov rax, qword [sym.bash.exe_subshell_environment]
xor ecx, ecx
mov dword [sym.bash.exe_executing], r13d
mov dword [rax], r8d
mov rax, qword [sym.bash.exe_expaliases_flag]
mov dword [sym.bash.exe_interactive], r13d
mov dword [rax], r9d
mov rax, qword [sym.bash.exe_expand_aliases]
mov dword [0x100656214], r15d
mov dword [rax], r10d
mov rax, qword [sym.bash.exe_enable_history_list]
mov dword [0x100656220], r15d
mov dword [rax], r11d
mov dword [sym.bash.exe_interactive_shell], r15d
call sym.bash.exe_bash_history_reinit
mov rax, qword [sym.bash.exe_restricted]
mov dword [rax], ebx
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 rbx, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
mov dword [0x100656208], 1
lea r8, [rbx + 0x108]
mov qword [rbx + 0x100], rsi
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, rbx
call sub.msys_2.0.dll_setjmp
test eax, eax
jne 0x10051522d
mov rax, qword [rsp + 0x200]
mov qword [sym.bash.exe_shell_environment], rax
mov rax, qword [rsp + 0x1f8]
mov rbx, qword [rax]
test rbx, rbx
je 0x1005157e6
mov rcx, rbx
call sym.bash.exe_base_pathname
mov qword [sym.bash.exe_shell_name], rax
cmp byte [rbx], 0x2d
movzx edx, byte [rax]
je 0x100515831
mov rax, qword [sym.bash.exe_shell_name]
cmp byte [rax], 0x73
je 0x1005157f2
mov rax, qword [sym.bash.exe_dollar_vars]
mov qword [sym.bash.exe_shell_name], rbx
mov rcx, qword [rax]
test rcx, rcx
je 0x10051561b
call sub.msys_2.0.dll_free
mov rbx, qword [sym.bash.exe_shell_name]
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rbx
mov rcx, rax
call fcn.100514770
mov rdx, qword [sym.bash.exe_dollar_vars]
mov qword [rdx], rax
mov rax, qword [sym.bash.exe_shell_name]
test rax, rax
je 0x1005157d3
movzx edx, byte [rax]
test dl, dl
je 0x1005157d3
cmp dl, 0x2d
je 0x1005157c9
xor edx, edx
lea rcx, [sym.bash.exe_shellstart]
call sub.msys_2.0.dll_gettimeofday
mov rax, qword [sym.bash.exe_shellstart]
mov r15d, dword [rsp + 0x48]
mov qword [sym.bash.exe_shell_start_time], rax
cmp dword [rsp + 0x1f0], r15d
je 0x100515829
movsxd rax, r15d
lea rdi, [rax*8]
mov qword [rsp + 0x28], rdi
mov rdi, qword [rsp + 0x1f8]
mov r13, qword [rdi + rax*8]
test r13, r13
je 0x100515829
cmp byte [r13], 0x2d
jne 0x100515829
cmp byte [r13 + 1], 0x2d
je 0x1005157b0
mov rax, r13
xor ebp, ebp
movzx r14d, byte [rax + 1]
lea rsi, str.debugger
xor edi, edi
lea rbx, str.debug
lea r12, [rax + 1]
jmp 0x10051570f
mov rbx, qword [rsi]
add rsi, 0x20
add edi, 1
test rbx, rbx
je 0x10051576d
cmp r14b, byte [rbx]
jne 0x100515700
mov rdx, rbx
mov rcx, r12
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x100515700
movsxd rdi, edi
lea rax, str.debug
shl rdi, 5
add rax, rdi
cmp dword [rax + 8], 1
je 0x10051581a
mov rdi, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0x28]
add r15d, 1
mov rcx, qword [rdi + rcx + 8]
test rcx, rcx
je 0x10051691f
mov rax, qword [rax + 0x18]
mov qword [rax], rcx
add r15d, 1
jmp 0x10051568d
mov r12d, ebp
mov rbp, r13
mov r13d, r15d
test r12d, r12d
jne 0x1005168ac
cmp dword [0x10065620c], 0
mov dword [rsp + 0x48], r13d
jne 0x1005161d2
mov ebx, dword [0x100656214]
test ebx, ebx
je 0x100515866
mov ecx, 1
call sym.bash.exe_show_shell_version
xor ecx, ecx
call sub.msys_2.0.dll_exit
cmp byte [r13 + 2], 0
je 0x1005156d6
lea rax, [r13 + 1]
mov ebp, 1
jmp 0x1005156db
cmp byte [rax + 1], 0
jne 0x10051566c
lea rax, [0x10052136f]
mov qword [sym.bash.exe_shell_name], rax
jmp 0x10051566c
lea rbx, [0x10052136f]
jmp 0x100515600
movzx edx, byte [rax + 1]
cmp dl, 0x68
je 0x100515850
cmp dl, 0x75
jne 0x100515600
cmp byte [rax + 2], 0
jne 0x100515600
add dword [0x10065622c], 1
jmp 0x100515600
mov rax, qword [rax + 0x10]
mov dword [rax], 1
jmp 0x100515764
mov r13d, r15d
jmp 0x10051577f
cmp dl, 0x2d
jne 0x100515841
add rax, 1
mov qword [sym.bash.exe_shell_name], rax
mov dword [sym.bash.exe_login_shell], 1
jmp 0x1005155f0
cmp byte [rax + 2], 0
jne 0x100515600
add dword [0x100656230], 1
jmp 0x100515600
mov rax, qword [sym.bash.exe_verbose_flag]
mov esi, dword [rsp + 0x48]
lea r13, [0x10052157c]
mov rbp, qword [sym.bash.exe_enable_history_list]
mov r14, qword [rsp + 0x1f8]
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 + 0x1f0], esi
je 0x100515a4b
movsxd rax, esi
mov r15, qword [r14 + rax*8]
test r15, r15
je 0x100515a4b
movzx edx, byte [r15]
lea eax, [rdx - 0x2b]
test al, 0xfd
jne 0x100515a4b
movzx eax, byte [r15 + 1]
add esi, 1
cmp dl, 0x2d
je 0x100515a2e
movsx r12d, al
test r12d, r12d
je 0x1005158a3
mov edi, 0x2b
add r15, 2
nop word [rax + rax]
sub eax, 0x44
cmp al, 0x2f
ja case.0x10051590a.1
movzx eax, al
movsxd rax, dword [r13 + rax*4]
add rax, r13
jmp rax
mov edx, edi
mov ecx, r12d
call sym.bash.exe_change_flag
add eax, 1
je 0x100516b01
nop
movsx r12d, byte [r15]
add r15, 1
mov eax, r12d
test r12d, r12d
jne 0x1005158f8
jmp 0x1005158a3
mov dword [sym.bash.exe_read_from_stdin], 1
jmp 0x100515920
movsxd rax, esi
mov rdx, qword [r14 + rax*8]
test rdx, rdx
je 0x1005159d6
mov ecx, edi
call sym.bash.exe_set_minus_o_option
test eax, eax
jne 0x10051522d
add esi, 1
jmp 0x100515920
mov dword [0x100656210], 1
jmp 0x100515920
movsxd rax, esi
mov r12, qword [r14 + rax*8]
test r12, r12
je 0x1005159f9
mov eax, dword [0x1006561f0]
cmp dword [0x1006561f4], eax
mov rcx, qword [0x1006561f8]
jge 0x100515a0d
movsxd rax, dword [0x1006561f4]
mov rdx, rax
shl rax, 4
add rax, qword [0x1006561f8]
add edx, 1
mov qword [rax], r12
mov dword [rax + 8], edi
mov dword [0x1006561f4], edx
jmp 0x100515960
mov dword [sym.bash.exe_dump_translatable_strings], 1
jmp 0x100515920
mov dword [sym.bash.exe_want_pending_command], 1
jmp 0x100515920
xor r12d, r12d
xor edx, edx
cmp edi, 0x2d
setne dl
or ecx, 0xffffffff
mov dword [rbp], r12d
call sym.bash.exe_list_minus_o_opts
mov dword [rbp], 0xffffffff
jmp 0x100515920
xor edx, edx
cmp edi, 0x2d
setne dl
xor ecx, ecx
call sym.bash.exe_shopt_listopt
jmp 0x100515920
add eax, 8
movsxd rdx, eax
mov dword [0x1006561f0], eax
shl rdx, 4
call sym.bash.exe_xrealloc
mov qword [0x1006561f8], rax
jmp 0x100515992
test al, al
je 0x100515a4b
cmp al, 0x2d
je 0x100515a44
movsx r12d, al
mov edi, 0x2d
jmp 0x1005158ee
cmp byte [r15 + 2], 0
jne 0x100515a36
cmp dword [0x100656210], 0
mov eax, dword [sym.bash.exe_login_shell]
mov dword [rsp + 0x48], esi
je 0x100515a66
not eax
mov dword [sym.bash.exe_login_shell], eax
xor edx, edx
cmp dword [sym.bash.exe_login_shell], 0
lea rcx, [0x100521450]
setne dl
call sym.bash.exe_set_login_shell
cmp dword [sym.bash.exe_dump_po_strings], 0
je 0x1005162aa
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 [0x100656224], 0
je 0x100515abb
mov rax, qword [sym.bash.exe_privileged_mode]
cmp dword [rax], 0
je 0x10051640c
cmp dword [sym.bash.exe_want_pending_command], 0
je 0x100515af0
movsxd rax, dword [rsp + 0x48]
mov rdi, qword [rsp + 0x1f8]
mov rax, qword [rdi + rax*8]
mov qword [sym.bash.exe_command_execution_string], rax
test rax, rax
je 0x100516596
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [sym.bash.exe_this_command_name]
xor edi, edi
mov qword [rax], rdi
mov rax, qword [sym.bash.exe_forced_interactive]
cmp dword [rax], 0
jne 0x100516347
cmp qword [sym.bash.exe_command_execution_string], 0
je 0x1005162e6
call fcn.100401080
cmp dword [sym.bash.exe_login_shell], 0
je 0x100515b35
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x1005163c2
cmp dword [sym.bash.exe_posixly_correct], 0
jne 0x1005163e6
xor esi, esi
cmp qword [0x1006561f8], 0
jne 0x100515b77
jmp 0x100515ba3
mov rax, rsi
xor edx, edx
shl rax, 4
add rax, rcx
cmp dword [rax + 8], 0x2d
mov rcx, qword [rax]
sete dl
add rsi, 1
call sym.bash.exe_shopt_setopt
test eax, eax
jne 0x10051522d
cmp dword [0x1006561f4], esi
mov rcx, qword [0x1006561f8]
jg 0x100515b50
call sub.msys_2.0.dll_free
xor esi, esi
xor r11d, r11d
mov qword [0x1006561f8], r11
mov dword [0x1006561f0], esi
mov dword [0x1006561f4], esi
call fcn.100401b10
call sym.bash.exe_set_default_lang
call sym.bash.exe_set_default_locale_vars
cmp dword [sym.bash.exe_interactive_shell], 0
je 0x100515c65
lea rcx, [0x10052145e]
call sym.bash.exe_get_string_value
lea rcx, str.EMACS
mov rdi, rax
call sym.bash.exe_get_string_value
lea rcx, str.INSIDE_EMACS
mov rbp, rax
call sym.bash.exe_get_string_value
mov rcx, rax
test rax, rax
je 0x100516b1f
lea rdx, str._term:
xor esi, esi
call sub.msys_2.0.dll_strstr
test rax, rax
setne sil
cmp byte [rdi], 0x65
je 0x10051696a
mov r12d, dword [sym.bash.exe_no_line_editing]
mov ebp, esi
cmp byte [rdi], 0x64
jne 0x100515c37
lea rdx, [0x10052148d]
mov rcx, rdi
xor ebx, ebx
call sub.msys_2.0.dll_strcmp
test eax, eax
sete bl
mov dword [sym.bash.exe_running_under_emacs], 1
or r12d, ebx
mov dword [sym.bash.exe_no_line_editing], r12d
test ebp, ebp
je 0x100515c58
cmp byte [rdi], 0x65
je 0x1005169c1
mov rax, qword [sym.bash.exe_gnu_error_format]
mov dword [rax], 1
mov eax, dword [rsp + 0x48]
mov rbx, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], eax
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
lea r8, [rbx + 0x108]
mov qword [rbx + 0x100], 1
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, rbx
call sub.msys_2.0.dll_setjmp
test eax, eax
je 0x100515ce0
lea edx, [rax - 3]
cmp edx, 1
jbe 0x1005161c4
cmp eax, 6
je 0x1005161c4
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 + 0x34]
add dword [rax], edi
mov eax, dword [rsp + 0x44]
add eax, 1
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x4c]
mov ebx, dword [sym.bash.exe_interactive_shell]
mov dword [rsp + 0x48], eax
test ebx, ebx
jne 0x100515eeb
lea rcx, [0x100521498]
call sym.bash.exe_unbind_variable
lea rcx, [0x10052149c]
call sym.bash.exe_unbind_variable
mov rcx, qword [sym.bash.exe_shell_name]
mov dword [sym.bash.exe_interactive], ebx
call sym.bash.exe_shell_is_restricted
mov rdx, qword [sym.bash.exe_restricted_shell]
xor r10d, r10d
cmp dword [sym.bash.exe_wordexp_only], 0
mov dword [rdx], eax
mov rax, qword [sym.bash.exe_restricted]
mov ebx, dword [rax]
mov dword [rax], r10d
jne 0x100515d6f
cmp qword [sym.bash.exe_command_execution_string], 0
je 0x1005161ec
mov edx, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x1f0]
xor r9d, r9d
mov rcx, qword [rsp + 0x1f8]
call fcn.100401350
mov dword [rsp + 0x48], eax
mov edi, dword [rsp + 0x44]
or edi, dword [0x100656224]
jne 0x100515e84
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov rsi, qword [sym.bash.exe_shell_script_filename]
xor r9d, r9d
mov ecx, dword [rax]
mov dword [rax], r9d
mov dword [rsp + 0x34], ecx
test rsi, rsi
je 0x100515de3
mov rax, qword [sym.bash.exe_dollar_vars]
mov rbp, qword [sym.bash.exe_exec_argv0]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
test rbp, rbp
je 0x1005165bb
mov rcx, rbp
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rbp
mov rcx, rax
call fcn.100514770
mov rdx, qword [sym.bash.exe_dollar_vars]
mov qword [rdx], rax
mov esi, dword [sym.bash.exe_interactive_shell]
test esi, esi
je 0x1005164a6
xor ecx, ecx
call sym.bash.exe_set_job_control
cmp dword [sym.bash.exe_login_shell], 0
mov esi, eax
mov eax, edi
js 0x100516526
cmp dword [sym.bash.exe_interactive_shell], 0
mov edx, dword [sym.bash.exe_posixly_correct]
je 0x100516501
test edx, edx
jne 0x100516466
cmp dword [sym.bash.exe_login_shell], 0
je 0x100515e35
test al, 1
je 0x1005169f1
cmp dword [0x100656230], 0
jne 0x100516466
cmp dword [0x10065621c], 0
je 0x100516ada
mov ecx, esi
call sym.bash.exe_set_job_control
cmp qword [sym.bash.exe_shell_script_filename], 0
je 0x100515e77
mov rsi, qword [sym.bash.exe_dollar_vars]
mov rcx, qword [rsi]
call sub.msys_2.0.dll_free
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov edi, dword [rsp + 0x34]
add dword [rax], edi
cmp dword [0x100656230], 0
jne 0x100516284
mov rax, qword [sym.bash.exe_restricted]
xor edx, edx
or ebx, dword [rax]
setne dl
cmp dword [0x100656208], 0
mov dword [rax], edx
je 0x1005162bc
cmp dword [sym.bash.exe_wordexp_only], 0
je 0x10051622e
movsxd rax, dword [rsp + 0x4c]
mov rdi, qword [rsp + 0x1f8]
mov dword [sym.bash.exe_startup_state], 3
mov rcx, qword [rdi + rax*8]
call fcn.1004014d0
mov rdx, qword [sym.bash.exe_last_command_exit_value]
mov dword [rdx], eax
mov ecx, dword [rdx]
call sym.bash.exe_exit_shell
mov edx, 0x2d
mov ecx, 0x69
mov ebx, 1
call sym.bash.exe_change_flag
jmp 0x100515d0e
mov rbp, qword [sym.bash.exe_shell_script_filename]
test rbp, rbp
je 0x10051669e
mov rcx, rbp
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rbp
mov rcx, rax
call fcn.100514770
xor edx, edx
mov rcx, rax
mov rbx, rax
mov r12, rax
call sub.msys_2.0.dll_open
mov esi, eax
test eax, eax
js 0x100516861
mov rax, qword [sym.bash.exe_dollar_vars]
mov rcx, qword [rax]
call sub.msys_2.0.dll_free
mov rdi, qword [sym.bash.exe_exec_argv0]
test rdi, rdi
je 0x100516840
mov rcx, rdi
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rdi
mov rcx, rax
call fcn.100514770
mov rdx, qword [sym.bash.exe_dollar_vars]
mov qword [rdx], rax
mov rcx, qword [sym.bash.exe_exec_argv0]
test rcx, rcx
je 0x100515faa
call sub.msys_2.0.dll_free
xor r8d, r8d
mov qword [sym.bash.exe_exec_argv0], r8
mov rcx, rbx
call sym.bash.exe_file_isdir
test eax, eax
jne 0x100516816
lea rcx, [0x1005214fe]
call sym.bash.exe_find_variable
mov rbp, rax
test rax, rax
je 0x100515fdc
test byte [rax + 0x28], 4
je 0x100516838
mov rbp, qword [rax + 8]
lea rcx, [0x100521507]
call sym.bash.exe_find_variable
mov r12, rax
test rax, rax
je 0x100515ffe
test byte [rax + 0x28], 4
je 0x1005167d8
mov r12, qword [rax + 8]
lea rcx, [0x100521513]
call sym.bash.exe_find_variable
mov rdi, rax
test rax, rax
je 0x100516020
test byte [rax + 0x28], 4
je 0x1005167e0
mov rdi, qword [rax + 8]
mov r8, rbx
mov edx, 1
mov rcx, r12
call sym.bash.exe_array_rshift
test rdi, rdi
je 0x10051605d
call sym.bash.exe_executing_line_number
movsxd rcx, eax
call sym.bash.exe_itos
mov rcx, rdi
mov edx, 1
mov r12, rax
mov r8, rax
call sym.bash.exe_array_rshift
mov rcx, r12
call sub.msys_2.0.dll_free
lea r8, [0x10052151f]
mov edx, 1
mov rcx, rbp
call sym.bash.exe_array_rshift
mov ecx, esi
call sub.msys_2.0.dll_isatty
mov edi, eax
test eax, eax
jne 0x1005160d0
xor edx, edx
mov r8d, 1
mov ecx, esi
call sub.msys_2.0.dll_lseek
add rax, 1
je 0x1005160d0
lea rbp, [rsp + 0x50]
mov r8d, 0x50
mov ecx, esi
mov rdx, rbp
call fcn.1005144e0
mov edx, eax
test eax, eax
js 0x10051678d
je 0x1005160c4
mov rcx, rbp
call sym.bash.exe_check_binary_file
test eax, eax
jne 0x1005167e8
xor r8d, r8d
xor edx, edx
mov ecx, esi
call sub.msys_2.0.dll_lseek
or r8d, 0xffffffff
mov ecx, esi
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 esi, eax
call fcn.100513eb0
cmp dword [sym.bash.exe_interactive_shell], 0
je 0x10051610b
test edi, edi
jne 0x10051670a
mov rax, qword [sym.bash.exe_forced_interactive]
cmp dword [rax], 0
je 0x10051611f
test edi, edi
je 0x100516727
mov rcx, rbx
call sub.msys_2.0.dll_free
mov dword [sym.bash.exe_reading_shell_script], 1
cmp dword [sym.bash.exe_interactive], 0
jne 0x1005166c2
mov ecx, dword [sym.bash.exe_default_buffered_input]
call sym.bash.exe_sh_unset_nodelay_mode
cmp dword [sym.bash.exe_interactive], 0
jne 0x10051663a
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
cmp dword [sym.bash.exe_debugging_mode], 0
je 0x10051619b
mov eax, dword [rsp + 0x44]
or eax, dword [0x100656224]
jne 0x10051619b
cmp dword [sym.bash.exe_reading_shell_script], 0
jne 0x100516196
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x1005166dc
call fcn.100401680
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x1005166dc
cmp dword [sym.bash.exe_pretty_print_mode], 0
mov dword [sym.bash.exe_shell_initialized], 1
jne 0x10051665e
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
call sub.msys_2.0.dll___getreent
mov edx, 1
mov rcx, qword [rax + 0x10]
call fcn.100401100
xor ecx, ecx
call sub.msys_2.0.dll_exit
mov eax, dword [rsp + 0x48]
cmp eax, dword [rsp + 0x1f0]
je 0x100516206
cmp dword [sym.bash.exe_read_from_stdin], 0
je 0x100516416
mov edx, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x1f0]
mov r9d, 1
mov rcx, qword [rsp + 0x1f8]
call fcn.100401350
mov dword [rsp + 0x48], eax
jmp 0x100515d6f
call sym.bash.exe_cmd_init
call sym.bash.exe_uwp_init
mov r13, qword [sym.bash.exe_command_execution_string]
test r13, r13
je 0x100515f04
cmp dword [sym.bash.exe_debugging_mode], 0
mov dword [sym.bash.exe_startup_state], 2
je 0x100516260
call fcn.100401680
mov rcx, qword [sym.bash.exe_command_execution_string]
mov dword [sym.bash.exe_executing], 1
call fcn.1004018a0
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov ecx, dword [rax]
call sym.bash.exe_exit_shell
lea rsi, [0x1005213cc]
xor r8d, r8d
lea rdx, [0x10052145c]
mov rcx, rsi
call sym.bash.exe_bind_variable
mov rcx, rsi
call sym.bash.exe_sv_strict_posix
jmp 0x100515e91
cmp dword [sym.bash.exe_dump_translatable_strings], 0
je 0x100515aa2
jmp 0x100515a95
mov rcx, qword [sym.bash.exe_shell_name]
call sym.bash.exe_maybe_make_restricted
jmp 0x100515eae
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 0x100515290
cmp dword [sym.bash.exe_wordexp_only], 0
jne 0x100515b1a
mov eax, dword [rsp + 0x48]
cmp eax, dword [rsp + 0x1f0]
je 0x10051630d
cmp dword [sym.bash.exe_read_from_stdin], 0
je 0x100515b1a
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 0x100515b1a
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
je 0x100515b1a
mov rax, qword [sym.bash.exe_expaliases_flag]
mov dword [sym.bash.exe_interactive], 1
mov dword [sym.bash.exe_startup_state], 1
mov dword [rax], 1
mov rax, qword [sym.bash.exe_expand_aliases]
mov dword [sym.bash.exe_interactive_shell], 1
mov dword [rax], 1
mov rax, qword [sym.bash.exe_enable_history_list]
cmp dword [rax], 0xffffffff
jne 0x100516391
mov dword [rax], 1
mov rax, qword [sym.bash.exe_enable_history_list]
cmp dword [sym.bash.exe_login_shell], 0
mov edx, dword [rax]
mov rax, qword [sym.bash.exe_remember_on_history]
mov dword [rax], edx
mov rax, qword [sym.bash.exe_history_expansion]
mov edx, dword [rax]
mov rax, qword [sym.bash.exe_histexp_flag]
mov dword [rax], edx
je 0x100515b35
mov esi, 3
mov ecx, esi
mov r8d, 1
mov edx, 2
add esi, 1
call fcn.100513eb0
cmp esi, 0x14
jne 0x1005163c7
jmp 0x100515b35
lea rsi, [0x1005213cc]
xor r8d, r8d
lea rdx, [0x10052145c]
mov rcx, rsi
call sym.bash.exe_bind_variable
mov rcx, rsi
call sym.bash.exe_sv_strict_posix
jmp 0x100515b42
call sym.bash.exe_disable_priv_mode
jmp 0x100515abb
movsxd rax, dword [rsp + 0x48]
mov rdi, qword [rsp + 0x1f8]
mov r9d, 1
mov r8d, dword [rsp + 0x1f0]
lea edx, [rax + 1]
mov rax, qword [rdi + rax*8]
mov rcx, rdi
mov dword [rsp + 0x48], edx
mov edx, dword [rsp + 0x48]
mov qword [sym.bash.exe_shell_script_filename], rax
call fcn.100401350
mov dword [rsp + 0x48], eax
jmp 0x100515d6f
mov eax, dword [sym.bash.exe_interactive_shell]
test eax, eax
je 0x100516501
mov rax, qword [sym.bash.exe_privileged_mode]
cmp dword [rax], 0
jne 0x100515e4f
mov eax, dword [0x100656228]
lea edx, [rax + 1]
mov dword [0x100656228], edx
test eax, eax
jne 0x100515e4f
lea rcx, [0x100521304]
call sym.bash.exe_get_string_value
mov rcx, rax
call fcn.100401700
jmp 0x100515e4f
mov eax, dword [0x10065621c]
or eax, dword [sym.bash.exe_login_shell]
or eax, dword [0x100656230]
jne 0x1005164f6
cmp qword [sym.bash.exe_command_execution_string], 0
je 0x100516501
lea rcx, str.SSH_CLIENT
call sym.bash.exe_find_variable
test rax, rax
je 0x100516603
mov rax, qword [sym.bash.exe_shell_level]
cmp dword [rax], 1
jle 0x1005165dc
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x100515df1
cmp dword [sym.bash.exe_login_shell], 0
mov eax, esi
js 0x100516526
cmp dword [0x10065622c], 0
mov edx, dword [sym.bash.exe_posixly_correct]
je 0x100516551
cmp dword [sym.bash.exe_login_shell], 0
je 0x100516551
test edx, edx
jne 0x100515e4f
jmp 0x100515e24
cmp dword [sym.bash.exe_posixly_correct], 0
jne 0x100516458
add dword [0x10065621c], 1
cmp dword [0x100656218], 0
je 0x100516a67
mov eax, 1
jmp 0x100515e09
mov rax, qword [sym.bash.exe_privileged_mode]
or edx, dword [0x100656230]
or edx, dword [rax]
jne 0x100515e56
mov eax, dword [0x100656228]
lea edx, [rax + 1]
mov dword [0x100656228], edx
test eax, eax
jne 0x100515e56
lea rcx, str.BASH_ENV
call sym.bash.exe_get_string_value
mov rcx, rax
call fcn.100401700
jmp 0x100515e56
lea rcx, [0x100521408]
call sym.bash.exe_libintl_gettext
lea rdx, [0x1005212e7]
mov rcx, rax
call sym.bash.exe_report_error
mov ecx, 2
call sub.msys_2.0.dll_exit
mov rcx, rsi
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rsi
mov rcx, rax
call fcn.100514770
jmp 0x100515dd9
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 0x100515e56
lea rcx, str.SSH2_CLIENT
call sym.bash.exe_find_variable
test rax, rax
jne 0x1005164d9
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 0x1005164d9
jmp 0x1005164e9
cmp dword [sym.bash.exe_no_line_editing], 0
je 0x100516673
mov rax, qword [sym.bash.exe_dollar_vars]
mov rcx, qword [0x100656200]
mov rdx, qword [rax]
call sym.bash.exe_with_input_from_stream
jmp 0x10051616b
cmp dword [sym.bash.exe_interactive_shell], 0
jne 0x10051667d
call sym.bash.exe_pretty_print_loop
mov ecx, eax
call sym.bash.exe_exit_shell
call sym.bash.exe_with_input_from_stdin
jmp 0x10051616b
lea rcx, str.pretty_printing_mode_ignored_in_interactive_shells
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_internal_warning
xor edx, edx
mov dword [sym.bash.exe_pretty_print_mode], edx
jmp 0x1005161bf
cmp dword [sym.bash.exe_interactive], 0
je 0x10051693b
mov eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x1f0]
jne 0x1005166c2
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
jmp 0x100516149
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 0x100516783
call sym.bash.exe_get_tty_state
jmp 0x1005161a8
xor edx, edx
mov ecx, esi
call sub.msys_2.0.dll_dup2
mov ecx, esi
call fcn.100513da0
xor ecx, ecx
mov dword [sym.bash.exe_default_buffered_input], ecx
jmp 0x10051611f
mov rax, qword [sym.bash.exe_enable_history_list]
cmp dword [rax], 0xffffffff
jne 0x100516739
mov dword [rax], 1
call fcn.100401080
mov rax, qword [sym.bash.exe_expaliases_flag]
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_expand_aliases]
mov dword [rax], 1
mov rax, qword [sym.bash.exe_enable_history_list]
mov edx, dword [rax]
mov rax, qword [sym.bash.exe_remember_on_history]
mov dword [rax], edx
jmp 0x10051611f
call sym.bash.exe_load_history
jmp 0x100516700
call sub.msys_2.0.dll___errno
lea rdx, [rsp + 0x120]
mov ecx, esi
mov edi, dword [rax]
call sub.msys_2.0.dll_fstat
test eax, eax
jne 0x1005167ba
mov eax, dword [rsp + 0x130]
and eax, 0xf000
cmp eax, 0x4000
je 0x100516801
call sub.msys_2.0.dll___errno
mov rcx, rbx
mov dword [rax], edi
call sym.bash.exe_file_error
call sym.bash.exe_end_job_control
mov ecx, 0x7e
call sub.msys_2.0.dll_exit
mov r12, r13
jmp 0x100515ffe
mov rdi, r13
jmp 0x100516020
lea rcx, [0x100521528]
call sym.bash.exe_libintl_gettext
mov rdx, rbx
mov rcx, rax
call sym.bash.exe_internal_error
jmp 0x1005167c9
call sub.msys_2.0.dll___errno
mov rcx, rbx
mov dword [rax], 0x15
call sym.bash.exe_file_error
jmp 0x1005167c9
call sub.msys_2.0.dll___errno
mov rcx, rbx
mov dword [rax], 0x15
call sym.bash.exe_file_error
call sym.bash.exe_end_job_control
mov ecx, 0x7e
call sub.msys_2.0.dll_exit
mov rbp, r13
jmp 0x100515fdc
mov rcx, rbp
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rbp
mov rcx, rax
call fcn.100514770
jmp 0x100515f85
call sub.msys_2.0.dll___errno
cmp dword [rax], 2
je 0x1005168d8
mov rdi, r12
call sub.msys_2.0.dll___errno
mov rcx, rdi
mov ebx, dword [rax]
call sym.bash.exe_file_error
call sym.bash.exe_end_job_control
xor ecx, ecx
cmp ebx, 2
sete cl
add ecx, 0x7e
call sub.msys_2.0.dll_exit
lea rcx, [0x1005213dc]
call sym.bash.exe_getenv
test rax, rax
jne 0x100515355
jmp 0x10051535f
lea rcx, [0x100521428]
call sym.bash.exe_libintl_gettext
mov rdx, rbp
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.100401100
jmp 0x10051522d
mov rcx, rbx
call sym.bash.exe_absolute_program
test eax, eax
jne 0x10051686b
call sub.msys_2.0.dll___errno
mov rcx, rbp
mov esi, dword [rax]
call sym.bash.exe_find_path_file
mov rdi, rax
test rax, rax
je 0x10051695e
mov rcx, rbx
mov rbx, rdi
call sub.msys_2.0.dll_free
xor edx, edx
mov rcx, rdi
call sub.msys_2.0.dll_open
mov esi, eax
test eax, eax
jns 0x100515f4a
jmp 0x10051686e
lea rcx, [0x100521408]
call sym.bash.exe_libintl_gettext
mov rdx, rbx
mov rcx, rax
call sym.bash.exe_report_error
jmp 0x10051522d
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
jmp 0x100516131
call sub.msys_2.0.dll___errno
mov dword [rax], esi
jmp 0x10051686b
mov ebp, 1
lea rdx, [0x100521487]
mov rcx, rdi
xor r12d, r12d
call sub.msys_2.0.dll_strcmp
test eax, eax
sete r12b
or r12d, dword [sym.bash.exe_no_line_editing]
mov dword [sym.bash.exe_no_line_editing], r12d
test ebp, ebp
jne 0x100516bb1
cmp byte [rdi], 0x65
je 0x100516b76
xor eax, eax
mov dword [sym.bash.exe_running_under_emacs], eax
test esi, esi
je 0x100515c65
cmp byte [rdi], 0x65
jne 0x100515c65
mov ebp, ebx
mov r8d, 5
lea rdx, [0x100521492]
mov rcx, rdi
xor esi, esi
call sub.msys_2.0.dll_strncmp
test eax, eax
sete sil
add ebp, esi
mov dword [sym.bash.exe_running_under_emacs], ebp
je 0x100515c65
jmp 0x100515c58
add dword [0x10065621c], 1
cmp dword [0x100656218], 0
jne 0x100515e35
mov edx, 1
lea rcx, str._etc_profile
call sym.bash.exe_maybe_execute_file
cmp dword [0x100656230], 0
jne 0x100516a51
mov edx, 1
lea rcx, str._.bash_profile
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x100515e35
mov edx, 1
lea rcx, str._.bash_login
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x100515e35
mov edx, 1
lea rcx, str._.profile
call sym.bash.exe_maybe_execute_file
jmp 0x100515e35
mov edx, 1
lea rcx, str._etc_profile
call sym.bash.exe_maybe_execute_file
cmp dword [0x100656230], 0
mov edx, 1
je 0x100516a97
lea rcx, str._.profile
call sym.bash.exe_maybe_execute_file
jmp 0x100516547
lea rcx, str._.bash_profile
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x100516547
mov edx, 1
lea rcx, str._.bash_login
call sym.bash.exe_maybe_execute_file
test eax, eax
jne 0x100516547
mov edx, 1
lea rcx, str._.profile
call sym.bash.exe_maybe_execute_file
jmp 0x100516547
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 0x100515e4f
lea rcx, str._c_c:_invalid_option
call sym.bash.exe_libintl_gettext
mov r8d, r12d
mov edx, edi
mov rcx, rax
call sym.bash.exe_report_error
jmp 0x1005168c3
test rbp, rbp
je 0x100516b47
lea rdx, str.__term:
mov rcx, rbp
mov esi, 1
call sub.msys_2.0.dll_strstr
test rax, rax
jne 0x100515c0a
cmp byte [rbp], 0x74
je 0x100516b5b
cmp byte [rdi], 0x65
mov esi, ebx
jne 0x10051699d
mov ebp, ebx
mov esi, ebx
jmp 0x10051696f
lea rdx, [0x100521485]
mov rcx, rbp
call sub.msys_2.0.dll_strcmp
mov esi, eax
test eax, eax
je 0x100515c0a
jmp 0x100516b47
mov r8d, 5
lea rdx, [0x100521487]
mov rcx, rdi
xor ebp, ebp
call sub.msys_2.0.dll_strncmp
test eax, eax
sete bpl
mov dword [sym.bash.exe_running_under_emacs], ebp
test esi, esi
je 0x1005169de
cmp byte [rdi], 0x65
mov esi, ebx
jne 0x1005169de
jmp 0x1005169c1
mov ebp, esi
jmp 0x100515c1c