Function at 0x10043a9c0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0xa0], rcx
mov esi, edx
test rcx, rcx
je 0x10043ad6b
cmp byte [rcx], 0
je 0x10043ad6b
mov rax, qword [sym.bash.exe_wordexp_only]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x10043ad6b
lea rcx, [rsp + 0x3c]
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x10043ad50
mov ebp, esi
mov r8d, 0x40
mov edx, 1
xor ebp, 1
movsxd rax, ebp
mov r12d, dword [rsp + rax*4 + 0x3c]
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x3c]
call sym.bash.exe_move_to_high_fd
mov ecx, 0x11
movsxd r15, eax
call sym.bash.exe_xmalloc
lea rdx, [rsp + 0x44]
mov rcx, r15
mov rdi, r15
mov rbx, rax
mov r8d, 0xc
movabs rax, 0x2f64662f7665642f
mov qword [rbx], rax
mov byte [rbx + 8], 0
call sym.bash.exe_inttostr
lea rcx, [rbx + 8]
mov rdx, rax
call fcn.100514770
mov rax, qword [0x10065d118]
movsxd r13, dword [0x10065d110]
test rax, rax
je 0x10043aa96
cmp r15d, r13d
jl 0x10043ad88
call sub.msys_2.0.dll_getdtablesize
mov dword [0x10065d110], eax
cmp eax, 0x100
jbe 0x10043aab7
mov dword [0x10065d110], 0x100
mov eax, 0x100
cmp edi, eax
jl 0x10043aac4
lea eax, [rdi + 2]
mov dword [0x10065d110], eax
mov rcx, qword [0x10065d118]
cdqe
lea rdx, [rax*4]
call sym.bash.exe_xrealloc
xor edx, edx
mov r15, rax
mov qword [0x10065d118], rax
mov eax, dword [0x10065d110]
lea rcx, [r15 + r13*4]
sub eax, r13d
cdqe
lea r8, [rax*4]
call fcn.100514320
movsxd rax, edi
mov dword [r15 + rax*4], 1
lea r14, [rax*4]
mov eax, dword [0x10065d114]
add eax, 1
mov dword [0x10065d114], eax
mov rax, qword [sym.bash.exe_last_made_pid]
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
mov rax, qword [sym.bash.exe_pipeline_pgrp]
mov r13d, dword [rax]
test r13d, r13d
je 0x10043ab4c
mov rax, qword [sym.bash.exe_subshell_environment]
test byte [rax], 0x19
jne 0x10043ab5e
mov rax, qword [sym.bash.exe_shell_pgrp]
mov edx, dword [rax]
mov rax, qword [sym.bash.exe_pipeline_pgrp]
mov dword [rax], edx
mov ecx, 1
call sym.bash.exe_save_pipeline
mov edx, 1
xor ecx, ecx
call sym.bash.exe_make_child
mov r15d, eax
test eax, eax
jne 0x10043adb0
mov rax, qword [sym.bash.exe_interactive]
mov dword [rax], 0
call sym.bash.exe_reset_terminating_signals
call sym.bash.exe_free_pushed_string_input
call sym.bash.exe_restore_original_signals
mov rax, qword [sym.bash.exe_subshell_environment]
and dword [rax], 0xfffffeff
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x10043ae58
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
je 0x10043abcb
call sym.bash.exe_throw_to_top_level
call sym.bash.exe_setup_async_signals
mov edx, 0x2b
mov ecx, 0x76
mov rax, qword [sym.bash.exe_subshell_environment]
or dword [rax], 0x25
call sym.bash.exe_change_flag
mov rax, qword [sym.bash.exe_expanding_redir]
mov r15d, dword [rax]
test r15d, r15d
jne 0x10043ae68
call sym.bash.exe_set_sigchld_handler
call sym.bash.exe_stop_making_children
mov r15, qword [sym.bash.exe_pipeline_pgrp]
mov dword [r15], r13d
call sym.bash.exe_set_sigint_handler
xor ecx, ecx
call sym.bash.exe_set_job_control
call sym.bash.exe_procsub_clear
mov rax, qword [sym.bash.exe_shell_pgrp]
mov eax, dword [rax]
cmp dword [r15], eax
jne 0x10043af3b
test esi, esi
jne 0x10043ac45
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fpurge
mov edx, ebp
mov ecx, r12d
call sub.msys_2.0.dll_dup2
test eax, eax
js 0x10043af17
cmp ebp, r12d
je 0x10043ac64
mov ecx, r12d
call fcn.100513da0
mov rbx, qword [sym.bash.exe_current_fds_to_close]
mov rcx, qword [rbx]
test rcx, rcx
je 0x10043ac7d
call sym.bash.exe_close_fd_bitmap
xor ebp, ebp
mov qword [rbx], rbp
mov ecx, edi
xor esi, esi
call fcn.100513da0
mov rax, qword [0x10065d118]
xor r9d, r9d
xor r10d, r10d
mov rcx, qword [rsp + 0xa0]
mov dword [rax + r14], r9d
mov rax, qword [sym.bash.exe_expanding_redir]
mov dword [rax], r10d
call fcn.10043a990
mov rax, qword [sym.bash.exe_startup_state]
xor ecx, ecx
xor edx, edx
mov rbx, qword [sym.bash.exe_top_level]
xor r11d, r11d
mov dword [rax], 2
mov rax, qword [sym.bash.exe_parse_and_execute_level]
lea r8, [rbx + 0x108]
mov qword [rbx + 0x100], rsi
mov dword [rax], r11d
call sub.msys_2.0.dll_pthread_sigmask
mov rcx, rbx
call sub.msys_2.0.dll_setjmp
mov edx, eax
test eax, eax
jne 0x10043ae7c
mov rax, qword [sym.bash.exe_return_catch_flag]
mov r8d, dword [rax]
test r8d, r8d
jne 0x10043aee0
mov rax, qword [sym.bash.exe_subshell_level]
mov rcx, qword [rsp + 0xa0]
lea rdx, str.process_substitution
mov r8d, 5
add dword [rax], 1
call sym.bash.exe_parse_and_execute
mov edx, eax
nop dword [rax]
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov dword [rax], edx
call sym.bash.exe_run_exit_trap
mov ecx, eax
call sub.msys_2.0.dll_exit
nop dword [rax]
lea rcx, str.cannot_make_pipe_for_process_substitution
call sym.bash.exe_libintl_gettext
lea rcx, [0x100525951]
mov rdx, rax
call sym.bash.exe_sys_error
xor ebx, ebx
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rax + r15*4], 1
mov eax, dword [0x10065d114]
lea r14, [r15*4]
add eax, 1
jmp 0x10043ab1e
call sym.bash.exe_set_sigchld_handler
call sym.bash.exe_stop_making_children
mov rax, qword [sym.bash.exe_pipeline_pgrp]
mov dword [rax], r13d
test r15d, r15d
js 0x10043ae10
xor ecx, ecx
call sym.bash.exe_restore_pipeline
mov rcx, rax
mov rax, qword [sym.bash.exe_last_procsub_child]
mov qword [rax], rcx
mov qword [rcx], 0
call sym.bash.exe_procsub_add
mov rax, qword [0x10065d118]
mov esi, dword [rsp + 0x2c]
mov ecx, r12d
mov dword [rax + r14], r15d
mov rax, qword [sym.bash.exe_last_made_pid]
mov dword [rax], esi
call fcn.100513da0
jmp 0x10043ad6d
lea rcx, str.cannot_make_child_for_process_substitution
call sym.bash.exe_libintl_gettext
lea rcx, [0x100525951]
mov rdx, rax
call sym.bash.exe_sys_error
mov rcx, rbx
call sub.msys_2.0.dll_free
mov ecx, edi
call fcn.100513da0
mov ecx, r12d
call fcn.100513da0
mov ecx, 1
call sym.bash.exe_restore_pipeline
jmp 0x10043ad6b
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x10043abb9
call sym.bash.exe_flush_temporary_env
call sym.bash.exe_set_sigchld_handler
call sym.bash.exe_stop_making_children
jmp 0x10043ac06
mov dword [rsp + 0x24], edx
mov eax, dword [rsp + 0x28]
mov edi, dword [rsp + 0x24]
cmp edi, 4
je 0x10043ae9d
cmp edi, 6
sete dl
cmp edi, 3
sete cl
or dl, cl
je 0x10043aeb0
mov rax, qword [sym.bash.exe_last_command_exit_value]
mov edx, dword [rax]
jmp 0x10043ad38
mov ecx, dword [rsp + 0x24]
mov edx, 1
test ecx, ecx
jne 0x10043ad38
test eax, eax
je 0x10043ad0b
mov rax, qword [sym.bash.exe_return_catch_value]
mov edx, dword [rax]
jmp 0x10043ad38
mov rbx, qword [sym.bash.exe_return_catch]
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
mov dword [rsp + 0x24], 0
call sub.msys_2.0.dll_setjmp
jmp 0x10043ae84
lea rcx, str.cannot_duplicate_named_pipe__s_as_fd__d
call sym.bash.exe_libintl_gettext
mov r8d, ebp
mov rdx, rbx
mov rcx, rax
call sym.bash.exe_sys_error
mov ecx, 0x7f
call sub.msys_2.0.dll_exit
call sub.msys_2.0.dll_getpid
mov dword [r15], eax
jmp 0x10043ac33