Function at 0x100435ca0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov r8, qword [sym.bash.exe_sh_syntaxtab]
mov r13d, edx
mov qword [rsp + 0x130], rcx
mov rdx, rcx
test rcx, rcx
jne 0x100435ce3
jmp 0x100435cea
movzx ecx, al
test byte [r8 + rcx*4 + 1], 0x20
jne 0x100435cdf
cmp al, 0xa
jne 0x100435d00
add rdx, 1
movzx eax, byte [rdx]
test al, al
jne 0x100435cd0
xor eax, eax
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [sym.bash.exe_wordexp_only]
mov eax, dword [rax]
test eax, eax
jne 0x1004360a0
cmp qword [sym.bash.exe_subst_assign_varlist], 0
je 0x100436110
cmp qword [0x1005ff0a0], 0
je 0x100436110
mov rax, qword [sym.bash.exe_interactive]
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x100436058
lea rcx, [rsp + 0x58]
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x100436083
mov ecx, dword [rsp + 0x58]
cmp ecx, 2
jle 0x100436120
mov ecx, dword [rsp + 0x5c]
cmp ecx, 2
jle 0x100436149
mov eax, dword [rsp + 0x58]
or eax, dword [rsp + 0x5c]
js 0x1004360d0
mov rax, qword [sym.bash.exe_last_made_pid]
mov rdx, qword [sym.bash.exe_subshell_environment]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [sym.bash.exe_pipeline_pgrp]
mov esi, dword [rax]
test byte [rdx], 0x10
jne 0x100435da9
mov rdx, qword [sym.bash.exe_shell_pgrp]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.bash.exe_cleanup_the_pipeline
mov rax, qword [sym.bash.exe_subshell_environment]
mov rbx, qword [sym.bash.exe_last_asynchronous_pid]
xor ecx, ecx
mov edx, dword [rax]
mov ebp, dword [rbx]
and edx, 1
call sym.bash.exe_make_child
mov dword [rbx], ebp
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x100435e19
call sym.bash.exe_reset_signal_handlers
mov rbx, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rbx]
test eax, eax
jne 0x10043658e
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x1004365b4
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
jne 0x1004365aa
mov rax, qword [sym.bash.exe_subshell_environment]
or dword [rax], 0x80
call sym.bash.exe_set_sigchld_handler
call sym.bash.exe_stop_making_children
mov ebp, dword [rsp + 0x48]
test ebp, ebp
jne 0x100436180
mov rax, qword [sym.bash.exe_interactive]
mov dword [rax], 0
call sym.bash.exe_set_sigint_handler
call sym.bash.exe_free_pushed_string_input
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fpurge
mov ecx, dword [rsp + 0x5c]
mov edx, 1
call sub.msys_2.0.dll_dup2
test eax, eax
js 0x1004365e8
mov ebx, dword [rsp + 0x5c]
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
call sub.msys_2.0.dll_fileno
cmp ebx, eax
je 0x100435eb5
mov ebx, dword [rsp + 0x5c]
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fileno
cmp ebx, eax
je 0x100435eb5
mov ebx, dword [rsp + 0x5c]
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fileno
cmp ebx, eax
je 0x100435eb5
mov ecx, dword [rsp + 0x5c]
call fcn.1004d2aa0
mov ebx, dword [rsp + 0x58]
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 8]
call sub.msys_2.0.dll_fileno
cmp ebx, eax
je 0x100435f00
mov ebx, dword [rsp + 0x58]
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fileno
cmp ebx, eax
je 0x100435f00
mov ebx, dword [rsp + 0x58]
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fileno
cmp ebx, eax
je 0x100435f00
mov ecx, dword [rsp + 0x58]
call fcn.1004d2aa0
call sub.msys_2.0.dll___getreent
lea rdx, [0x1004e336a]
xor ecx, ecx
mov r8, qword [rax + 0x10]
call sub.msys_2.0.dll_freopen
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sym.bash.exe_sh_setlinebuf
mov edx, 0x2b
mov ecx, 0x76
mov rax, qword [sym.bash.exe_subshell_environment]
or dword [rax], 4
call sym.bash.exe_change_flag
cmp dword [sym.bash.exe_inherit_errexit], 0
jne 0x100435f63
mov rax, qword [sym.bash.exe_builtin_ignoring_errexit]
mov edx, 0x2b
mov ecx, 0x65
mov dword [rax], 0
call sym.bash.exe_change_flag
call sym.bash.exe_set_shellopts
mov rbx, qword [sym.bash.exe_expanding_redir]
cmp dword [rbx], 0
jne 0x1004365d8
mov rcx, qword [rsp + 0x130]
call sym.bash.exe_dequote_escapes
mov rcx, qword [rsp + 0x130]
mov r12, rax
mov rdx, rax
call fcn.1004d3420
mov rcx, r12
call fcn.1004d2c80
mov r12, qword [sym.bash.exe_top_level]
xor ecx, ecx
xor edx, edx
mov rax, qword [sym.bash.exe_startup_state]
mov qword [r12 + 0x100], 0
lea r8, [r12 + 0x108]
mov dword [rax], 2
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, r12
call sub.msys_2.0.dll_setjmp
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x1004364f8
mov rax, qword [sym.bash.exe_return_catch_flag]
mov ebx, dword [rax]
test ebx, ebx
jne 0x100436550
mov r8d, dword [rsp + 0x34]
mov rbx, qword [sym.bash.exe_subshell_level]
lea rdx, str.command_substitution
mov rcx, qword [rsp + 0x130]
or r8d, 4
add dword [rbx], 1
call sym.bash.exe_parse_and_execute
sub dword [rbx], 1
mov edx, eax
nop word [rax + rax]
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov dword [rax], edx
call sym.bash.exe_run_exit_trap
mov r10d, dword [0x1005ff094]
mov r12d, eax
test r10d, r10d
je 0x10043604a
call fcn.1004305a0
mov ecx, r12d
call sub.msys_2.0.dll_exit
nop word [rax + rax]
mov rax, qword [sym.bash.exe_sourcelevel]
lea rcx, [rsp + 0x58]
mov r12d, dword [rax]
xor eax, eax
test r12d, r12d
sete al
shl eax, 4
mov dword [rsp + 0x34], eax
call sub.msys_2.0.dll_pipe
test eax, eax
jns 0x100435d54
lea rcx, str.cannot_make_pipe_for_command_substitution
call sym.bash.exe_libintl_gettext
lea rcx, [0x1004e3302]
mov rdx, rax
call sym.bash.exe_sys_error
jmp 0x1004360e4
mov rax, qword [sym.bash.exe_read_but_dont_execute]
mov r14d, dword [rax]
test r14d, r14d
je 0x100435d11
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov ecx, 3
mov dword [rax], 0x7d
call sym.bash.exe_jump_to_top_level
nop word [rax + rax]
lea rcx, str.cannot_make_pipe_for_command_substitution
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_sys_error
mov esi, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x58]
mov rax, qword [sym.bash.exe_last_made_pid]
mov dword [rax], esi
call fcn.1004d2aa0
mov ecx, dword [rsp + 0x5c]
call fcn.1004d2aa0
jmp 0x100435cea
call sym.bash.exe_maybe_make_export_env
jmp 0x100435d2d
mov r8d, 3
xor edx, edx
call sub.msys_2.0.dll_fcntl
mov ecx, dword [rsp + 0x58]
mov ebx, eax
call fcn.1004d2aa0
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x58], ebx
cmp ecx, 2
jg 0x100435d6e
xor edx, edx
mov r8d, 3
call sub.msys_2.0.dll_fcntl
mov ecx, dword [rsp + 0x5c]
mov ebx, eax
call fcn.1004d2aa0
mov dword [rsp + 0x5c], ebx
mov eax, dword [rsp + 0x58]
or eax, dword [rsp + 0x5c]
jns 0x100435d7c
jmp 0x1004360d0
mov rax, qword [sym.bash.exe_pipeline_pgrp]
mov dword [rax], esi
jns 0x1004361a4
lea rcx, str.cannot_make_child_for_command_substitution
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_sys_error
jmp 0x1004360e4
mov ecx, dword [rsp + 0x5c]
xor r15d, r15d
call fcn.1004d2aa0
mov eax, dword [rsp + 0x58]
mov rdx, qword [sym.bash.exe_ifs_value]
xor ecx, ecx
mov dword [rsp + 0x2c], eax
test rdx, rdx
jne 0x1004361eb
jmp 0x1004361f2
xor r8d, r8d
cmp al, 1
sete r8b
or ecx, r8d
cmp al, 0x7f
sete al
add rdx, 1
movzx eax, al
or r15d, eax
movzx eax, byte [rdx]
test al, al
jne 0x1004361d0
mov r9d, dword [rsp + 0x2c]
mov dword [rsp + 0x44], 0
mov r12d, 0
test r9d, r9d
js 0x10043642d
xor ecx, 1
xor r14d, r14d
mov dword [rsp + 0x4c], r15d
xor esi, esi
mov eax, ecx
mov r15, r12
mov dword [rsp + 0x30], 0
xor ebx, ebx
and eax, 1
mov r12d, r14d
mov byte [rsp + 0x3f], al
jmp 0x10043629d
mov rax, qword [sym.bash.exe_igncr]
mov ecx, dword [rax]
test ecx, ecx
je 0x100436252
cmp edi, 0xd
je 0x10043629a
lea r11d, [rsi + 2]
cmp r11d, r12d
jge 0x1004363c0
movsxd rdx, esi
lea eax, [rsi + 1]
add rdx, r15
test r13b, 3
jne 0x100436300
cmp byte [rsp + 0x3f], 0
je 0x1004363f0
cmp edi, 1
jne 0x1004363f0
mov byte [rdx], 1
mov esi, r11d
mov dword [rsp + 0x44], 0x200000
cdqe
mov byte [r15 + rax], bpl
mov rdi, r14
sub rbx, 1
test rbx, rbx
jle 0x100436310
lea r14, [rdi + 1]
movsx edi, byte [rdi]
mov ebp, edi
test edi, edi
jne 0x100436240
mov r8d, dword [rsp + 0x30]
test r8d, r8d
jne 0x10043629a
lea rcx, str.command_substitution:_ignored_null_byte_in_input
call sym.bash.exe_libintl_gettext
lea rcx, [0x1004e3302]
mov rdx, rax
call sym.bash.exe_internal_warning
mov dword [rsp + 0x30], 1
jmp 0x10043629a
mov rcx, qword [sym.bash.exe_ifs_value]
test rcx, rcx
je 0x100436409
cmp byte [rcx], 0
jne 0x100436409
nop dword [rax + rax]
mov byte [rdx], 1
mov esi, r11d
jmp 0x100436294
mov ecx, dword [rsp + 0x2c]
lea rdi, [rsp + 0x60]
mov r8d, pe_nt_image_headers64
mov rdx, rdi
call sym.bash.exe_zread
mov rbx, rax
test rax, rax
jg 0x1004362a6
mov r12, r15
test r15, r15
je 0x100436581
movsxd rax, esi
mov byte [r15 + rax], 0
test esi, esi
je 0x1004365c0
and r13d, 3
je 0x1004364ce
movsxd rax, esi
movzx edx, byte [r12 + rax - 1]
nop word [rax + rax]
cmp dl, 0xa
jne 0x100436414
lea eax, [rsi - 1]
movsxd rdx, eax
cmp byte [r12 + rdx - 1], 1
jne 0x100436385
lea eax, [rsi - 2]
movsxd rdx, eax
test eax, eax
jle 0x100436420
movzx edx, byte [r12 + rdx - 1]
mov esi, eax
cmp dl, 0xd
jne 0x100436368
sub esi, 1
movsxd rdx, esi
cmp byte [r12 + rdx - 1], 1
jne 0x1004363ae
lea esi, [rax - 2]
movsxd rdx, esi
test esi, esi
jle 0x100436420
movzx edx, byte [r12 + rdx - 1]
jmp 0x100436368
mov eax, r11d
mov rcx, r15
mov dword [rsp + 0x40], r11d
sub eax, r12d
and eax, 0xffffff80
lea r12d, [rax + r12 + 0x80]
movsxd rdx, r12d
call sym.bash.exe_xrealloc
mov r11d, dword [rsp + 0x40]
mov r15, rax
jmp 0x10043625f
test byte [rsp + 0x4c], 1
jne 0x100436400
cmp edi, 0x7f
je 0x100436300
cmp edi, 0x20
je 0x1004362e2
mov edx, eax
mov eax, esi
mov esi, edx
jmp 0x100436294
movsxd rdx, esi
nop word [rax + rax]
mov byte [r12 + rdx], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x2c], eax
mov ecx, dword [rsp + 0x2c]
call fcn.1004d2aa0
mov ebx, dword [rsp + 0x48]
mov ecx, ebx
mov dword [sym.bash.exe_current_command_subst_pid], ebx
call sym.bash.exe_wait_for
mov rdx, qword [sym.bash.exe_last_command_exit_value]
mov esi, dword [rsp + 0x38]
mov dword [sym.bash.exe_last_command_subst_pid], ebx
mov dword [rdx], eax
mov rdx, qword [sym.bash.exe_last_made_pid]
mov dword [rdx], esi
cmp eax, 0x82
je 0x1004364af
mov rax, qword [sym.bash.exe_interactive]
mov edx, dword [rax]
test edx, edx
je 0x10043649b
mov rax, qword [sym.bash.exe_pipeline_pgrp]
mov ecx, dword [rax]
test ecx, ecx
je 0x10043649b
mov rax, qword [sym.bash.exe_subshell_environment]
mov rdx, qword [sym.bash.exe_running_in_background]
mov eax, dword [rax]
and eax, 0x11
or eax, dword [rdx]
je 0x1004364ec
call sym.bash.exe_alloc_word_desc
mov esi, dword [rsp + 0x44]
mov qword [rax], r12
mov dword [rax + 8], esi
jmp 0x100435cec
mov rax, qword [sym.bash.exe_last_command_exit_signal]
cmp dword [rax], 2
jne 0x10043646a
call sub.msys_2.0.dll_getpid
mov edx, 2
mov ecx, eax
call fcn.1004d2ec0
jmp 0x10043646a
lea edx, [rsi - 1]
mov r8d, 1
mov rcx, r12
call sym.bash.exe_strip_trailing
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x2c], eax
jmp 0x10043642d
xor edx, edx
call sym.bash.exe_give_terminal_to
jmp 0x10043649b
xor eax, eax
cmp dword [rsp + 0x28], 4
je 0x100436538
cmp dword [rsp + 0x28], 3
je 0x100436538
mov r11d, dword [rsp + 0x28]
mov edx, 1
test r11d, r11d
jne 0x100436028
test eax, eax
je 0x100435ff6
mov rax, qword [sym.bash.exe_return_catch_value]
mov edx, dword [rax]
jmp 0x100436028
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov edx, dword [rax]
jmp 0x100436028
mov r12, qword [sym.bash.exe_return_catch]
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
jmp 0x1004364fa
test esi, esi
jne 0x10043634f
jmp 0x1004364df
call sub.msys_2.0.dll_getpid
mov edx, 2
mov ecx, eax
call fcn.1004d2ec0
mov dword [rbx], 0
jmp 0x100435dea
call sym.bash.exe_throw_to_top_level
jmp 0x100435e0c
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x100435dfb
mov rcx, r15
xor r12d, r12d
call fcn.1004d2c80
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x2c], eax
jmp 0x10043642d
call sym.bash.exe_flush_temporary_env
mov dword [rbx], 0
jmp 0x100435f78
lea rcx, str.command_substitute:_cannot_duplicate_pipe_as_fd_1
call sym.bash.exe_libintl_gettext
lea rcx, [0x1004e3302]
mov rdx, rax
call sym.bash.exe_sys_error
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop