Function at 0x1004311d0
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call sub.msys_2.0.dll_getpgrp
mov dword [sym.bash.exe_shell_pgrp], eax
cmp eax, 0xffffffff
je 0x1004315fb
mov rbp, qword [sym.bash.exe_interactive]
or ebx, dword [rbp]
je 0x100431360
mov rax, qword [sym.bash.exe_forced_interactive]
mov dword [sym.bash.exe_shell_tty], 0xffffffff
mov r9d, dword [rax]
test r9d, r9d
jne 0x1004312d0
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
cmp eax, 0xffffffff
jne 0x1004312fc
mov r8d, dword [sym.bash.exe_shell_pgrp]
test r8d, r8d
je 0x100431324
mov ecx, dword [sym.bash.exe_shell_tty]
mov rdi, qword [sym.bash.exe_terminating_signal]
mov esi, 0x12
jmp 0x10043129f
xor edx, edx
mov ecx, 0x15
call sym.bash.exe_set_signal_handler
xor ecx, ecx
mov edx, 0x15
mov rbx, rax
call fcn.1005141e0
mov rdx, rbx
mov ecx, 0x15
call sym.bash.exe_set_signal_handler
sub esi, 1
je 0x100431430
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 0x100431598
cmp dword [sym.bash.exe_shell_pgrp], eax
je 0x100431488
mov eax, dword [rdi]
test eax, eax
je 0x100431268
mov ecx, dword [rdi]
call sym.bash.exe_termsig_handler
jmp 0x100431268
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 0x100431468
mov eax, dword [sym.bash.exe_shell_tty]
cmp eax, 0xffffffff
je 0x10043121b
mov r8d, 0xffffffff
mov edx, 1
mov ecx, eax
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 0x10043124f
call sub.msys_2.0.dll_getpid
xor ecx, ecx
mov edx, eax
mov dword [sym.bash.exe_shell_pgrp], eax
call sub.msys_2.0.dll_setpgid
mov ecx, dword [sym.bash.exe_shell_tty]
cmp ecx, 0xffffffff
je 0x100431255
mov edx, dword [sym.bash.exe_shell_pgrp]
call sub.msys_2.0.dll_tcsetpgrp
jmp 0x10043124f
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 ebx, dword [sym.bash.exe_shell_pgrp]
mov dword [sym.bash.exe_terminal_pgrp], eax
cmp eax, ebx
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 0x1004313d1
mov r8d, 1
mov edx, 2
call fcn.100513eb0
lea rdx, [0x10042d7a0]
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 [rbp]
test eax, eax
jne 0x100431420
xor ecx, ecx
call sym.bash.exe_set_maxchild
mov eax, dword [sym.bash.exe_job_control]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.bash.exe_get_tty_state
jmp 0x100431402
lea rcx, str.initialize_job_control:_no_job_control_in_background
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_sys_error
mov eax, dword [sym.bash.exe_terminal_pgrp]
mov dword [sym.bash.exe_job_control], 0
mov ebx, dword [sym.bash.exe_shell_pgrp]
mov dword [sym.bash.exe_original_pgrp], eax
jmp 0x10043139b
mov edx, 0x4002
lea rcx, str._dev_tty
call sub.msys_2.0.dll_open
mov dword [sym.bash.exe_shell_tty], eax
jmp 0x1004312f3
mov esi, 0xffffffff
mov eax, dword [sym.bash.exe_shell_pgrp]
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
jne 0x100431540
mov dword [sym.bash.exe_job_control], 1
mov ecx, dword [sym.bash.exe_shell_tty]
call sub.msys_2.0.dll_tcgetpgrp
mov ebx, eax
cmp eax, 0xffffffff
je 0x1004314d4
cmp dword [sym.bash.exe_shell_pgrp], eax
je 0x100431525
cmp esi, 0xffffffff
je 0x1004314e0
call sub.msys_2.0.dll___errno
mov dword [rax], esi
lea rcx, str.cannot_set_terminal_process_group___d_
call sym.bash.exe_libintl_gettext
mov edx, ebx
mov rcx, rax
call sym.bash.exe_sys_error
mov dword [sym.bash.exe_job_control], 0
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 ebx, dword [sym.bash.exe_shell_pgrp]
jmp 0x10043139b
mov edx, dword [sym.bash.exe_job_control]
test edx, edx
je 0x100431500
mov eax, dword [sym.bash.exe_terminal_pgrp]
jmp 0x10043139b
xor ecx, ecx
mov edx, eax
call sub.msys_2.0.dll_setpgid
test eax, eax
js 0x1004315a4
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 0x1004314ba
cmp dword [sym.bash.exe_terminal_pgrp], ecx
je 0x1004314ba
xor edx, edx
call sym.bash.exe_give_terminal_to
test eax, eax
js 0x1004315c9
mov ecx, dword [sym.bash.exe_job_control]
test ecx, ecx
je 0x100431500
jmp 0x1004314ba
call sub.msys_2.0.dll___errno
mov esi, dword [rax]
jmp 0x10043148d
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 0x1004314b0
call sub.msys_2.0.dll___errno
mov edx, dword [sym.bash.exe_original_pgrp]
xor ecx, ecx
mov ebx, dword [rax]
call sub.msys_2.0.dll_setpgid
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 ebx, dword [sym.bash.exe_shell_pgrp]
jmp 0x1004314e0
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
nop
nop word [rax + rax]