Function at 0x10042d710
Capabilities:
Terminate process

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov ebx, ecx
call sub.msys_2.0.dll_getpgrp
mov dword [sym.bash.exe_shell_pgrp], eax
cmp eax, 0xffffffff
je 0x10042db35
mov rsi, qword [sym.bash.exe_interactive]
or ebx, dword [rsi]
je 0x10042d9a0
mov rax, qword [sym.bash.exe_forced_interactive]
mov dword [sym.bash.exe_shell_tty], 0xffffffff
mov r9d, dword [rax]
test r9d, r9d
jne 0x10042d838
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_dup
mov dword [sym.bash.exe_shell_tty], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x10042d864
mov r8d, dword [sym.bash.exe_shell_pgrp]
test r8d, r8d
je 0x10042d88a
mov ecx, dword [sym.bash.exe_shell_tty]
call sub.msys_2.0.dll_tcgetpgrp
mov dword [sym.bash.exe_terminal_pgrp], eax
cmp eax, 0xffffffff
je 0x10042daf8
cmp dword [sym.bash.exe_shell_pgrp], eax
jne 0x10042da68
mov ebx, 0xffffffff
mov dword [sym.bash.exe_original_pgrp], eax
call sub.msys_2.0.dll_getpid
cmp eax, dword [sym.bash.exe_original_pgrp]
mov dword [sym.bash.exe_shell_pgrp], eax
mov edx, eax
jne 0x10042d9e8
mov dword [sym.bash.exe_job_control], 1
mov ecx, dword [sym.bash.exe_shell_tty]
call sub.msys_2.0.dll_tcgetpgrp
mov r12d, eax
cmp eax, 0xffffffff
je 0x10042d803
cmp dword [sym.bash.exe_shell_pgrp], eax
je 0x10042d8c8
cmp ebx, 0xffffffff
je 0x10042d80f
call sub.msys_2.0.dll___errno
mov dword [rax], ebx
lea rcx, str.cannot_set_terminal_process_group___d_
call sym.bash.exe_libintl_gettext
mov edx, r12d
mov rcx, rax
call sym.bash.exe_sys_error
mov dword [sym.bash.exe_job_control], 0
jmp 0x10042da3c
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
mov ecx, dword [sym.bash.exe_shell_tty]
test eax, eax
je 0x10042da98
cmp ecx, 0xffffffff
je 0x10042d75a
mov r8d, 0xffffffff
mov edx, 1
call sym.bash.exe_move_to_high_fd
mov r8d, dword [sym.bash.exe_shell_pgrp]
mov dword [sym.bash.exe_shell_tty], eax
test r8d, r8d
jne 0x10042d790
call sub.msys_2.0.dll_getpid
xor ecx, ecx
mov edx, eax
mov dword [sym.bash.exe_shell_pgrp], eax
call fcn.1004d32a0
mov ecx, dword [sym.bash.exe_shell_tty]
cmp ecx, 0xffffffff
je 0x10042d796
mov edx, dword [sym.bash.exe_shell_pgrp]
call sub.msys_2.0.dll_tcsetpgrp
mov ecx, dword [sym.bash.exe_shell_tty]
jmp 0x10042d796
mov edx, dword [sym.bash.exe_job_control]
test edx, edx
je 0x10042da3c
mov eax, dword [sym.bash.exe_terminal_pgrp]
cmp eax, r12d
setne al
movzx eax, al
mov dword [sym.bash.exe_running_in_background], eax
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fileno
mov ecx, dword [sym.bash.exe_shell_tty]
cmp eax, ecx
je 0x10042d913
mov r8d, 1
mov edx, 2
call sub.msys_2.0.dll_fcntl
lea rdx, [0x10042b540]
mov ecx, 0x14
call sym.bash.exe_set_signal_handler
cmp dword [sym.bash.exe_job_control], 1
mov ecx, 0x6d
sbb edx, edx
and edx, 0xfffffffe
add edx, 0x2d
call sym.bash.exe_change_flag
mov eax, dword [rsi]
test eax, eax
jne 0x10042d990
cmp qword [sym.bash.exe_js], 0
js 0x10042d960
mov eax, dword [sym.bash.exe_job_control]
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.bash.exe_getmaxchild
test rax, rax
jns 0x10042db53
mov eax, dword [sym.bash.exe_job_control]
mov qword [sym.bash.exe_js], 0x20
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.bash.exe_get_tty_state
jmp 0x10042d943
mov dword [sym.bash.exe_job_control], 0
mov dword [sym.bash.exe_original_pgrp], 0xffffffff
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fileno
mov ecx, eax
mov dword [sym.bash.exe_shell_tty], eax
call sub.msys_2.0.dll_tcgetpgrp
mov r12d, dword [sym.bash.exe_shell_pgrp]
mov dword [sym.bash.exe_terminal_pgrp], eax
jmp 0x10042d8dc
xor ecx, ecx
call fcn.1004d32a0
test eax, eax
js 0x10042db10
mov dword [sym.bash.exe_job_control], 1
mov ecx, dword [sym.bash.exe_shell_pgrp]
cmp ecx, dword [sym.bash.exe_original_pgrp]
je 0x10042d7e4
cmp dword [sym.bash.exe_terminal_pgrp], ecx
je 0x10042d7e4
xor edx, edx
call sym.bash.exe_give_terminal_to
test eax, eax
js 0x10042dac0
mov ecx, dword [sym.bash.exe_job_control]
test ecx, ecx
jne 0x10042d7e4
lea rcx, str.no_job_control_in_this_shell
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_internal_error
mov eax, dword [sym.bash.exe_terminal_pgrp]
mov r12d, dword [sym.bash.exe_shell_pgrp]
jmp 0x10042d8dc
xor edx, edx
mov ecx, 0x15
call sym.bash.exe_set_signal_handler
xor ecx, ecx
mov edx, 0x15
mov r12, rax
call fcn.1004d2ec0
mov rdx, r12
mov ecx, 0x15
call sym.bash.exe_set_signal_handler
jmp 0x10042d790
lea rcx, str._dev_tty
mov edx, 0x4002
call sub.msys_2.0.dll_open
mov dword [sym.bash.exe_shell_tty], eax
mov ecx, eax
jmp 0x10042d85b
call sub.msys_2.0.dll___errno
mov edx, dword [sym.bash.exe_original_pgrp]
xor ecx, ecx
mov ebx, dword [rax]
call fcn.1004d32a0
mov eax, dword [sym.bash.exe_original_pgrp]
mov dword [sym.bash.exe_shell_pgrp], eax
call sub.msys_2.0.dll___errno
mov dword [rax], ebx
mov r12d, dword [sym.bash.exe_shell_pgrp]
jmp 0x10042d80f
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov eax, dword [sym.bash.exe_shell_pgrp]
jmp 0x10042d7bb
lea rcx, str.initialize_job_control:_setpgid
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_sys_error
mov eax, dword [sym.bash.exe_original_pgrp]
mov dword [sym.bash.exe_shell_pgrp], eax
jmp 0x10042d7da
lea rcx, str.initialize_job_control:_getpgrp_failed
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_sys_error
mov ecx, 1
call sub.msys_2.0.dll_exit
mov qword [sym.bash.exe_js], rax
jmp 0x10042d94d