Function at 0x100416b70
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov ebx, dword [rsp + 0xb8]
mov r12, qword [rsp + 0xb0]
mov r14, qword [rax]
mov eax, dword [rsp + 0xb8]
and ebx, 0x4000
shr eax, 6
mov rdi, rcx
mov rbp, r8
mov esi, r9d
and eax, 1
mov qword [rsp + 0x88], rdx
mov byte [rsp + 0x2f], al
mov rax, qword [sym.bash.exe_restricted]
mov r13d, dword [rax]
test r13d, r13d
jne 0x100416e40
cmp ebx, 1
mov rcx, r14
sbb edx, edx
and edx, 0xfffffffe
add edx, 3
call sym.bash.exe_search_for_command
mov r13, qword [sym.bash.exe_terminating_signal]
mov rbx, rax
mov eax, dword [r13]
test eax, eax
jne 0x100416ec8
mov r15, qword [sym.bash.exe_interrupt_state]
mov eax, dword [r15]
test eax, eax
jne 0x100416ee3
cmp esi, 0xffffffff
movzx eax, byte [rsp + 0x2f]
sete byte [rsp + 0x2e]
movzx edx, byte [rsp + 0x2e]
and eax, edx
test rbx, rbx
je 0x100416ef0
test al, al
jne 0x100416d50
call sym.bash.exe_maybe_make_export_env
mov rcx, rbx
call sym.bash.exe_put_command_name_into_env
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 r11d, dword [rsp + 0xa8]
xor edx, edx
mov rcx, rax
mov rbp, rax
test r11d, r11d
setne dl
call sym.bash.exe_make_child
test eax, eax
jne 0x100416f10
call sym.bash.exe_reset_terminating_signals
call sym.bash.exe_restore_original_signals
mov rcx, rbp
and dword [sym.bash.exe_subshell_environment], 0xfffffeff
call sub.msys_2.0.dll_free
mov r10d, dword [rsp + 0xa8]
test r10d, r10d
je 0x100416d9d
test dword [rsp + 0xb8], 0x400
je 0x100416cc2
cmp byte [rsp + 0x2e], 0
jne 0x100417030
mov rax, qword [sym.bash.exe_job_control]
mov r9d, dword [rax]
test r9d, r9d
je 0x100416ff0
test r12, r12
je 0x100416f68
mov eax, dword [r12]
test eax, eax
jle 0x100416f68
xor ebp, ebp
jmp 0x100416cfa
add rbp, 1
cmp dword [r12], ebp
jle 0x100416d1f
mov rax, qword [r12 + 8]
cmp byte [rax + rbp], 0
je 0x100416cf0
mov ecx, ebp
call fcn.100513da0
mov rax, qword [r12 + 8]
mov byte [rax + rbp], 0
add rbp, 1
cmp dword [r12], ebp
jg 0x100416cfa
mov edx, dword [rsp + 0xa0]
mov ecx, esi
call fcn.1004159a0
mov rsi, qword [sym.bash.exe_interactive]
mov r8d, dword [rsp + 0xa8]
mov ebp, dword [rsi]
test r8d, r8d
jne 0x100416f7f
jmp 0x100416dbe
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x100416c31
test byte [sym.bash.exe_subshell_environment], 0x10
je 0x100417050
call sym.bash.exe_maybe_make_export_env
mov rcx, rbx
call sym.bash.exe_put_command_name_into_env
call sym.bash.exe_reset_terminating_signals
call sym.bash.exe_restore_original_signals
mov r10d, dword [rsp + 0xa8]
and dword [sym.bash.exe_subshell_environment], 0xfffffeff
test r10d, r10d
jne 0x100416caa
test r12, r12
je 0x100416db0
mov edx, dword [r12]
test edx, edx
jg 0x100416cea
nop
mov edx, dword [rsp + 0xa0]
mov ecx, esi
call fcn.1004159a0
or dword [sym.bash.exe_subshell_environment], 8
cmp qword [rsp + 0x88], 0
je 0x100416dea
mov rcx, qword [rsp + 0x88]
mov edx, 1
call sym.bash.exe_do_redirections
test eax, eax
jne 0x100417096
test rbx, rbx
jne 0x10041705f
lea rsi, str.command_not_found_handle
mov rcx, rsi
call sym.bash.exe_find_function
mov rbx, rax
test rax, rax
je 0x100416fc0
call sym.bash.exe_without_job_control
call sym.bash.exe_set_sigchld_handler
mov rcx, rsi
call sym.bash.exe_make_word
mov rdx, rdi
mov rcx, rax
call sym.bash.exe_make_word_list
mov rcx, rbx
mov rdx, rax
call sym.bash.exe_execute_shell_function
mov ecx, eax
call sub.msys_2.0.dll_exit
nop dword [rax]
mov edx, 0x2f
mov rcx, r14
call sym.bash.exe_mbschr
test rax, rax
je 0x100416bd1
lea rcx, str._s:_restricted:_cannot_specify____in_command_names
call sym.bash.exe_libintl_gettext
mov rdx, r14
mov rcx, rax
call sym.bash.exe_internal_error
mov eax, dword [rsp + 0xa0]
mov dword [sym.bash.exe_last_command_exit_value], 1
and eax, esi
cmp eax, 0xffffffff
jne 0x100416e90
cmp byte [rsp + 0x2f], 0
jne 0x10041708b
mov r13, qword [sym.bash.exe_terminating_signal]
mov r15, qword [sym.bash.exe_interrupt_state]
mov edi, 1
xor ebx, ebx
mov eax, dword [r13]
test eax, eax
je 0x100416f1a
mov ecx, dword [r13]
call sym.bash.exe_termsig_handler
mov eax, dword [r15]
test eax, eax
je 0x100416f21
call sym.bash.exe_throw_to_top_level
jmp 0x100416f21
mov ecx, dword [r13]
call sym.bash.exe_termsig_handler
mov r15, qword [sym.bash.exe_interrupt_state]
mov eax, dword [r15]
test eax, eax
je 0x100416c0c
call sym.bash.exe_throw_to_top_level
jmp 0x100416c0c
test al, al
je 0x100416c3e
cmp dword [rsp + 0xa0], 0xffffffff
je 0x100416d78
jmp 0x100416c3e
mov eax, dword [r13]
xor edi, edi
test eax, eax
jne 0x100416ead
mov eax, dword [r15]
test eax, eax
jne 0x100416ebd
test esi, esi
js 0x100416f2c
mov ecx, esi
call fcn.100513da0
mov ecx, dword [rsp + 0xa0]
test ecx, ecx
js 0x100416f43
mov ecx, dword [rsp + 0xa0]
call fcn.100513da0
test rbx, rbx
je 0x100416f50
mov rcx, rbx
call sub.msys_2.0.dll_free
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rsp + 0xa0]
mov ecx, esi
call fcn.1004159a0
mov rsi, qword [sym.bash.exe_interactive]
mov ebp, dword [rsi]
or dword [sym.bash.exe_subshell_environment], 8
cmp qword [rsp + 0x88], 0
mov dword [rsi], 0
je 0x100416fb1
mov rcx, qword [rsp + 0x88]
mov edx, 1
call sym.bash.exe_do_redirections
test eax, eax
jne 0x100417096
mov dword [rsi], ebp
jmp 0x100416dea
xor edx, edx
mov rcx, r14
call sym.bash.exe_printable_filename
lea rcx, str._s:_command_not_found
mov rbx, rax
call sym.bash.exe_libintl_gettext
mov rdx, rbx
mov rcx, rax
call sym.bash.exe_internal_error
mov ecx, 0x7f
call sub.msys_2.0.dll_exit
nop
mov ecx, 2
call sym.bash.exe_get_original_signal
mov edx, 1
mov ecx, 2
call sym.bash.exe_set_signal_handler
mov ecx, 3
call sym.bash.exe_get_original_signal
mov edx, 1
mov ecx, 3
call sym.bash.exe_set_signal_handler
jmp 0x100416cd5
mov rcx, qword [rsp + 0x88]
call sym.bash.exe_stdin_redirects
test eax, eax
jne 0x100416cc2
call sym.bash.exe_async_redirect_stdin
jmp 0x100416cc2
mov ecx, 0xffffffff
call sym.bash.exe_adjust_shell_level
jmp 0x100416d6b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call sym.bash.exe_strvec_from_word_list
mov rcx, rbx
mov rdx, rax
mov rax, qword [sym.bash.exe_export_env]
mov r8, qword [rax]
call sym.bash.exe_shell_execve
mov ecx, eax
call sub.msys_2.0.dll_exit
mov ecx, dword [sym.bash.exe_last_command_exit_value]
call sub.msys_2.0.dll_exit
call sym.bash.exe_unlink_all_fifos
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]