Function at 0x10041c430
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rax, qword [rcx + 0x18]
mov rbp, qword [rsp + 0xf0]
mov r12d, edx
mov edx, dword [rcx + 4]
mov edi, r8d
mov r8d, dword [rax + 0x18]
mov dword [rsp + 0x3c], r9d
mov rsi, rcx
mov r13d, edx
and r13d, 8
cmp r8d, 0x3b
je 0x10041c5f8
jle 0x10041c508
cmp r8d, 0x7c
je 0x10041c6b0
lea ecx, [r8 - 0x120]
cmp ecx, 1
ja 0x10041cf9d
test r12d, r12d
jne 0x10041c9d0
mov rcx, qword [rax + 8]
add dword [sym.bash.exe_executing_list], 1
test rcx, rcx
je 0x10041c4b2
or dword [rcx + 4], 8
call sym.bash.exe_execute_command
mov ebx, eax
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x10041ce78
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
jne 0x10041ce68
mov rax, qword [rsi + 0x18]
mov eax, dword [rax + 0x18]
cmp eax, 0x120
je 0x10041ce30
cmp eax, 0x121
je 0x10041cf20
sub dword [sym.bash.exe_executing_list], 1
jmp 0x10041c693
cmp r8d, 0xa
je 0x10041c5f8
cmp r8d, 0x26
jne 0x10041cf9d
mov r14, qword [rax + 8]
test r14, r14
je 0x10041cd7f
mov eax, dword [r14 + 4]
mov r8d, dword [sym.bash.exe_subshell_environment]
mov edx, eax
or edx, 8
test r13d, r13d
cmovne eax, edx
mov edx, eax
or dh, 2
mov dword [r14 + 4], edx
test r8d, r8d
je 0x10041c9b0
mov edx, dword [sym.bash.exe_stdin_redir]
test edx, edx
jne 0x10041c562
or ah, 6
mov dword [r14 + 4], eax
mov qword [rsp + 0x20], rbp
mov r9d, dword [rsp + 0x3c]
mov r8d, edi
mov rcx, r14
mov edx, 1
call sym.bash.exe_execute_command_internal
mov ebx, eax
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x10041cdd8
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
jne 0x10041cdc8
mov eax, dword [r14 + 4]
test ah, 4
je 0x10041c5b0
and ah, 0xfb
mov dword [r14 + 4], eax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x10041c693
test r13d, r13d
je 0x10041c5ca
or dword [rcx + 4], 8
mov qword [rsp + 0xf0], rbp
mov r9d, dword [rsp + 0x3c]
mov r8d, edi
mov edx, r12d
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.bash.exe_execute_command_internal
test r13d, r13d
je 0x10041c617
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x10041c60a
or dword [rdx + 4], 8
mov rax, qword [rax + 0x10]
test rax, rax
je 0x10041c617
or dword [rax + 4], 8
mov rbx, qword [sym.bash.exe_terminating_signal]
add dword [sym.bash.exe_executing_list], 1
mov eax, dword [rbx]
test eax, eax
jne 0x10041ca40
mov r13, qword [sym.bash.exe_interrupt_state]
mov eax, dword [r13]
test eax, eax
jne 0x10041ca30
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 8]
call sym.bash.exe_execute_command
mov eax, dword [rbx]
test eax, eax
jne 0x10041ca20
mov eax, dword [r13]
test eax, eax
jne 0x10041ca10
mov rcx, rsi
call sym.bash.exe_optimize_connection_fork
mov rax, qword [rsi + 0x18]
mov r8d, edi
mov edx, r12d
mov r9d, dword [rsp + 0x3c]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x20], rbp
call sym.bash.exe_execute_command_internal
sub dword [sym.bash.exe_executing_list], 1
mov ebx, eax
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x42
call sym.bash.exe_signal_is_trapped
mov byte [rsp + 0x53], 0
test eax, eax
jne 0x10041c9f8
mov eax, dword [rsi + 4]
mov ecx, 0x42
mov dword [rsp + 0x54], eax
and eax, 8
mov dword [rsp + 0x48], eax
call sym.bash.exe_signal_in_progress
test eax, eax
je 0x10041c988
lea rbx, [rsp + 0x68]
lea r14, [rsp + 0x70]
mov rcx, rbx
lea r13, str.pipe_file_descriptors
call sub.msys_2.0.dll_sigemptyset
mov edx, 0x14
mov rcx, rbx
call sub.msys_2.0.dll_sigaddset
mov rcx, r14
call sub.msys_2.0.dll_sigemptyset
mov r8, r14
mov rdx, rbx
mov ecx, 1
call sub.msys_2.0.dll_sigprocmask
mov eax, dword [rsi + 4]
xor ecx, ecx
and eax, 8
mov dword [rsp + 0x38], eax
call sym.bash.exe_sh_validfd
mov dword [rsp + 0x4c], eax
jmp 0x10041c7d9
mov edx, dword [rsp + 0x7c]
mov rcx, qword [fcn.100513da0]
call sym.bash.exe_add_unwind_protect
mov rdx, r14
lea rcx, [0x1004142b0]
call sym.bash.exe_add_unwind_protect
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x10041c930
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x10041ca50
or dword [rcx + 4], 8
mov r9d, dword [rsp + 0x7c]
mov r8d, edi
mov edx, r12d
mov qword [rsp + 0x20], rbx
call sym.bash.exe_execute_command_internal
test edi, edi
jns 0x10041c8eb
mov ecx, dword [rsp + 0x7c]
mov edi, dword [rsp + 0x78]
call fcn.100513da0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x10041c7b8
call sub.msys_2.0.dll_free
mov rcx, rbx
call sub.msys_2.0.dll_free
mov rcx, r13
call sym.bash.exe_discard_unwind_frame
mov rax, qword [rsi + 0x18]
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x10041cf08
cmp dword [rsi], 6
jne 0x10041ca70
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x10041ca70
cmp dword [rax + 0x18], 0x7c
jne 0x10041ca70
lea rcx, [rsp + 0x78]
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x10041cec0
mov eax, dword [rsp + 0x78]
mov r15d, dword [rbp]
mov ecx, 0x10
lea edx, [rax + 8]
cmp eax, r15d
cmovge r15d, edx
call sym.bash.exe_xmalloc
mov dword [rax], r15d
mov rbx, rax
test r15d, r15d
jne 0x10041c900
mov qword [rax + 8], 0
xor edx, edx
mov r8d, dword [rbp]
mov rcx, qword [rbp + 8]
call sym.bash.exe_xbcopy
movsxd rax, dword [rsp + 0x78]
mov rdx, qword [rbx + 8]
mov rcx, r13
mov byte [rdx + rax], 1
call sym.bash.exe_begin_unwind_frame
mov rdx, rbx
lea rcx, [sym.bash.exe_dispose_fd_bitmap]
call sym.bash.exe_add_unwind_protect
mov rdx, rbx
lea rcx, [sym.bash.exe_close_fd_bitmap]
call sym.bash.exe_add_unwind_protect
test edi, edi
js 0x10041c740
mov rcx, qword [fcn.100513da0]
mov edx, edi
call sym.bash.exe_add_unwind_protect
mov edx, dword [rsp + 0x7c]
mov rcx, qword [fcn.100513da0]
call sym.bash.exe_add_unwind_protect
mov rdx, r14
lea rcx, [0x1004142b0]
call sym.bash.exe_add_unwind_protect
mov r15d, dword [rsp + 0x38]
test r15d, r15d
je 0x10041c958
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x10041c77c
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x7c]
mov r8d, edi
mov edx, r12d
xor ecx, ecx
call sym.bash.exe_execute_command_internal
mov ecx, edi
call fcn.100513da0
jmp 0x10041c79d
movsxd r8, r15d
mov rcx, r8
mov qword [rsp + 0x40], r8
call sym.bash.exe_xmalloc
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rax
call fcn.100514320
mov rdx, qword [rbx + 8]
jmp 0x10041c840
mov rax, qword [rsi + 0x18]
mov r9d, dword [rsp + 0x7c]
mov r8d, edi
mov edx, r12d
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rbx
call sym.bash.exe_execute_command_internal
jmp 0x10041c79d
mov rax, qword [rsi + 0x18]
mov r9d, dword [rsp + 0x7c]
mov r8d, edi
mov edx, r12d
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rbx
call sym.bash.exe_execute_command_internal
mov ecx, edi
call fcn.100513da0
jmp 0x10041c79d
mov rax, qword [sym.bash.exe_running_trap]
cmp dword [rax], 0x43
je 0x10041c6e7
mov rax, qword [sym.bash.exe_line_number]
mov eax, dword [rax]
mov dword [sym.bash.exe_line_number_for_err_trap], eax
jmp 0x10041c6e7
mov rdx, qword [sym.bash.exe_job_control]
mov ecx, dword [rdx]
test ecx, ecx
jne 0x10041c562
jmp 0x10041c551
or edx, 2
mov r9d, dword [rsp + 0x3c]
mov r8d, edi
mov rcx, rsi
mov dword [rsi + 4], edx
mov edx, 1
mov qword [rsp + 0xf0], rbp
jmp 0x10041c5dd
mov ecx, 0x42
call sym.bash.exe_signal_is_ignored
test eax, eax
sete byte [rsp + 0x53]
jmp 0x10041c6c7
call sym.bash.exe_throw_to_top_level
jmp 0x10041c665
mov ecx, dword [rbx]
call sym.bash.exe_termsig_handler
jmp 0x10041c659
call sym.bash.exe_throw_to_top_level
jmp 0x10041c642
mov ecx, dword [rbx]
call sym.bash.exe_termsig_handler
jmp 0x10041c62f
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x7c]
mov r8d, edi
mov edx, r12d
xor ecx, ecx
call sym.bash.exe_execute_command_internal
jmp 0x10041c79d
mov rax, qword [sym.bash.exe_last_made_pid]
mov r11d, dword [rsp + 0x38]
mov ebx, dword [rsp + 0x4c]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
test r11d, r11d
je 0x10041ca8f
or dword [rsi + 4], 8
lea r15, str.lastpipe_exec
mov rcx, r15
call sym.bash.exe_begin_unwind_frame
mov r13d, dword [sym.bash.exe_lastpipe_opt]
test r13d, r13d
je 0x10041cb30
mov rax, qword [sym.bash.exe_job_control]
mov r13d, r12d
or r13d, dword [rax]
jne 0x10041ce88
mov eax, edi
cmp dword [rsp + 0x3c], 0xffffffff
not eax
sete dl
shr eax, 0x1f
and dl, al
mov byte [rsp + 0x38], dl
je 0x10041cea0
test edi, edi
jle 0x10041cf2d
test ebx, ebx
je 0x10041cf2d
mov edx, 1
xor ecx, ecx
mov r8d, 0xffffffff
call sym.bash.exe_move_to_high_fd
mov ebx, eax
test eax, eax
mov dword [rsp + 0x40], eax
setg al
cmp ebx, 0xffffffff
sete dl
or al, dl
jne 0x10041cf35
mov byte [rsp + 0x38], 0
test rsi, rsi
je 0x10041cd90
or dword [rsi + 4], 0x2000
jmp 0x10041cb3d
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xfffffffe
test edi, edi
jns 0x10041cd90
mov qword [rsp + 0x20], rbp
mov r9d, dword [rsp + 0x3c]
mov r8d, edi
mov edx, r12d
mov rcx, rsi
call sym.bash.exe_execute_command_internal
mov ebx, eax
cmp byte [rsp + 0x38], 0
jne 0x10041ce08
mov rdx, r14
xor r8d, r8d
xor ecx, ecx
call sub.msys_2.0.dll_sigprocmask
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x10041cdf8
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
jne 0x10041cde8
test r13d, r13d
je 0x10041cc59
mov r14d, dword [rsp + 0x58]
test r14d, r14d
js 0x10041ccf0
mov rsi, qword [sym.bash.exe_js]
cmp dword [rsi + 0x1c], r14d
jle 0x10041ccd0
mov rdx, qword [sym.bash.exe_jobs]
movsxd rax, r14d
mov rdx, qword [rdx]
cmp qword [rdx + rax*8], 0
je 0x10041ccd0
mov rbp, qword [sym.bash.exe_the_printed_command_except_trap]
mov rax, qword [sym.bash.exe_dollar_dollar_pid]
mov rcx, rbp
mov edi, dword [rax]
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 edx, edi
mov r9d, r14d
mov r8d, ebx
mov rcx, rax
call sym.bash.exe_append_process
mov ecx, dword [rsp + 0x4c]
xor edx, edx
call sym.bash.exe_wait_for
mov edi, dword [rsp + 0x58]
cmp dword [rsi + 0x1c], edi
jle 0x10041cd08
mov rcx, qword [sym.bash.exe_jobs]
movsxd rdx, edi
mov rcx, qword [rcx]
cmp qword [rcx + rdx*8], 0
je 0x10041cd08
mov ecx, edi
call sym.bash.exe_job_exit_status
mov ebx, eax
nop
mov ecx, dword [rsp + 0x5c]
call sym.bash.exe_set_jobs_list_frozen
mov rcx, r15
call sym.bash.exe_discard_unwind_frame
test r12d, r12d
jne 0x10041cd60
mov r9d, dword [rsp + 0x48]
test r9d, r9d
jne 0x10041cd28
cmp byte [rsp + 0x53], 0
je 0x10041cd28
test byte [rsp + 0x54], 4
jne 0x10041cd28
test ebx, ebx
je 0x10041cd28
mov rsi, qword [sym.bash.exe_line_number]
mov dword [sym.bash.exe_last_command_exit_value], ebx
mov eax, dword [rsi]
mov dword [rsp + 0x78], eax
mov eax, dword [sym.bash.exe_line_number_for_err_trap]
mov dword [rsi], eax
call sym.bash.exe_run_error_trap
mov eax, dword [rsp + 0x78]
mov dword [rsi], eax
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov r8d, dword [rax]
test r8d, r8d
jne 0x10041cd48
jmp 0x10041c693
mov ecx, dword [rsp + 0x4c]
xor edx, edx
call sym.bash.exe_wait_for_single_pid
cmp eax, 0x100
jle 0x10041cc20
mov eax, 0x7f
jmp 0x10041cc20
mov ecx, dword [rsp + 0x4c]
xor edx, edx
call sym.bash.exe_wait_for_single_pid
mov edx, 0x7f
cmp eax, 0x101
cmovge eax, edx
mov rdx, qword [sym.bash.exe_pipefail_opt]
mov r10d, dword [rdx]
test r10d, r10d
je 0x10041cc50
or ebx, eax
jmp 0x10041cc50
test byte [rsp + 0x54], 0xc
jne 0x10041c693
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov edx, dword [rax]
test edx, edx
je 0x10041c693
test ebx, ebx
je 0x10041cd7f
mov dword [sym.bash.exe_last_command_exit_value], ebx
call sym.bash.exe_run_pending_traps
mov ecx, 4
call sym.bash.exe_jump_to_top_level
nop dword [rax]
mov ecx, dword [rsp + 0x48]
xor ebx, ebx
test ecx, ecx
jne 0x10041c693
mov rax, qword [sym.bash.exe_exit_immediately_on_error]
mov ebx, dword [rax]
test ebx, ebx
je 0x10041c693
xor ebx, ebx
jmp 0x10041c693
mov rcx, qword [fcn.100513da0]
mov edx, edi
call sym.bash.exe_add_unwind_protect
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r8d, edi
mov r9d, dword [rsp + 0x3c]
mov edx, r12d
call sym.bash.exe_execute_command_internal
mov ecx, edi
mov ebx, eax
call fcn.100513da0
jmp 0x10041cb5f
call sym.bash.exe_throw_to_top_level
jmp 0x10041c5a0
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x10041c58f
call sym.bash.exe_throw_to_top_level
jmp 0x10041cb99
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x10041cb88
cmp dword [rsp + 0x40], 0xffffffff
je 0x10041cead
mov edi, dword [rsp + 0x40]
xor edx, edx
mov ecx, edi
call sub.msys_2.0.dll_dup2
mov ecx, edi
call fcn.100513da0
jmp 0x10041cb6a
test ebx, ebx
jne 0x10041c4f8
mov rcx, rsi
call sym.bash.exe_optimize_connection_fork
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x10]
test r13d, r13d
je 0x10041ce56
test rcx, rcx
je 0x10041ce56
or dword [rcx + 4], 8
call sym.bash.exe_execute_command
mov ebx, eax
jmp 0x10041c4f8
call sym.bash.exe_throw_to_top_level
jmp 0x10041c4db
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x10041c4ca
mov byte [rsp + 0x38], 0
xor r13d, r13d
mov dword [rsp + 0x40], 0xfffffffe
jmp 0x10041cb3d
mov dword [rsp + 0x40], 0xfffffffe
jmp 0x10041cb3d
xor ecx, ecx
call fcn.100513da0
jmp 0x10041cb6a
lea rcx, str.pipe_error
mov ebx, 1
call sym.bash.exe_libintl_gettext
mov rcx, rax
call sym.bash.exe_sys_error
call sym.bash.exe_terminate_current_pipeline
call sym.bash.exe_kill_current_pipeline
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
call sub.msys_2.0.dll_sigprocmask
mov dword [sym.bash.exe_last_command_exit_value], 1
call sym.bash.exe_throw_to_top_level
jmp 0x10041cc61
mov rax, qword [sym.bash.exe_last_made_pid]
mov ebx, dword [rsp + 0x4c]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
jmp 0x10041ca8f
test ebx, ebx
je 0x10041c4f8
jmp 0x10041ce38
mov dword [rsp + 0x40], 0xffffffff
mov ecx, edi
mov edx, 0xffffffff
mov r13d, 1
call fcn.1004159a0
mov edx, dword [rsp + 0x40]
lea rcx, [0x100415970]
call sym.bash.exe_add_unwind_protect
call sym.bash.exe_freeze_jobs_list
xor edx, edx
xor ecx, ecx
mov edi, eax
mov dword [rsp + 0x5c], eax
call sym.bash.exe_stop_pipeline
mov edx, edi
lea rcx, [0x100415080]
mov edi, 0xffffffff
mov dword [rsp + 0x58], eax
call sym.bash.exe_add_unwind_protect
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
call sub.msys_2.0.dll_sigprocmask
test rsi, rsi
jne 0x10041cb25
jmp 0x10041cb45
lea rcx, str.execute_connection
xor r9d, r9d
mov edx, 2
call sym.bash.exe_command_error
mov ecx, 2
call sym.bash.exe_jump_to_top_level
nop
nop dword [rax]