Function at 0x1004b1230
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12d, edx
mov edx, dword [0x100507ad0]
mov rbx, rcx
test edx, edx
jne 0x1004b14ae
mov esi, dword [0x100507acc]
test esi, esi
jne 0x1004b1490
mov eax, dword [0x100507ad8]
test eax, eax
je 0x1004b1460
mov rdx, rbx
lea rcx, [0x1004f3e67]
lea r13, [rsp + 0x20]
mov dword [0x100507ad4], 0
call fcn.1004b11c0
mov ecx, 0x32
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov rdi, rax
test r12d, r12d
jne 0x1004b13c8
mov ebp, 0x32
lea r14, str.Control_D_detected_n
nop
mov rcx, qword [0x100507ae0]
call sub.msys_2.0.dll_fileno
mov r8d, 1
mov rdx, r13
mov ecx, eax
call sub.msys_2.0.dll_read
cmp rax, 1
jne 0x1004b1358
movzx eax, byte [rsp + 0x20]
cmp al, 0xa
je 0x1004b1388
test r12d, r12d
jne 0x1004b12ef
add dword [0x100507ad4], 1
movzx edx, al
cmp al, 4
je 0x1004b1340
cmp edx, 9
je 0x1004b1320
cmp al, 0x1f
jbe 0x1004b12b0
cmp edx, 0x7f
je 0x1004b12b0
mov ebx, eax
lea eax, [rbp - 1]
cmp eax, esi
jle 0x1004b132c
movsxd rax, esi
add esi, 1
mov byte [rdi + rax], bl
jmp 0x1004b12b0
lea eax, [rbp - 1]
mov ebx, 0x20
cmp eax, esi
jg 0x1004b130d
add ebp, 0x32
mov rcx, rdi
movsxd rdx, ebp
call sub.msys_gcrypt_20.dll_gcry_xrealloc
mov rdi, rax
jmp 0x1004b130d
mov rcx, r14
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x1004b12b0
cmp byte [rsp + 0x20], 0xa
je 0x1004b1388
mov byte [rdi], 4
mov esi, 1
test r12d, r12d
jne 0x1004b1390
mov rax, rdi
mov byte [rdi + rsi], 0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movsxd rsi, esi
test r12d, r12d
je 0x1004b136c
mov rcx, qword [0x100507ae0]
call sub.msys_2.0.dll_fileno
lea r8, [0x100507aa0]
mov edx, 1
mov ecx, eax
call sub.msys_2.0.dll_tcsetattr
test eax, eax
jne 0x1004b1470
mov dword [0x100507a88], 0
jmp 0x1004b136c
mov rcx, qword [0x100507ae0]
call sub.msys_2.0.dll_fileno
lea rdx, [0x100507aa0]
mov ecx, eax
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jne 0x1004b14b7
movdqa xmm0, xmmword [0x100507aa0]
movdqa xmm1, xmmword [0x100507ab0]
mov dword [0x100507a88], 1
movdqu xmm2, xmmword [0x100507abc]
mov rcx, qword [0x100507ae0]
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x30], xmm1
and dword [rsp + 0x2c], 0xffffffc3
movups xmmword [rsp + 0x3c], xmm2
call sub.msys_2.0.dll_fileno
mov r8, r13
mov edx, 1
mov ecx, eax
call sub.msys_2.0.dll_tcsetattr
test eax, eax
je 0x1004b12a2
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.tcsetattr___failed:__s_n
mov rdx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_fatal
nop
call fcn.1004b1080
jmp 0x1004b126e
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.tcsetattr___failed:__s_n
mov rdx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x1004b13b7
lea rcx, str.Sorry__no_terminal_at_all_requested___cant_get_input_n
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov ecx, 2
call sub.msys_2.0.dll_exit
lea rcx, str.Sorry__we_are_in_batchmode___cant_get_input_n
jmp 0x1004b1497
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.tcgetattr___failed:__s_n
mov rdx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_fatal
nop
nop word cs:[rax + rax]
nop
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x100507ad0]
or eax, dword [0x100507acc]
jne 0x1004b1830
mov rax, qword [0x100507a60]
test rax, rax
je 0x1004b1830
cmp qword [0x100507a58], 0
je 0x1004b1830
mov edx, dword [0x100507ad8]
test edx, edx
je 0x1004b1870
test rcx, rcx
lea rdx, [0x1004f3e9c]
mov dword [0x100507ad4], 0
cmove rcx, rdx
call rax
mov rsi, rax
test rax, rax
je 0x1004b1850
mov rcx, rax
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov rdx, rsi
mov rbx, rax
mov rcx, rax
call sub.msys_2.0.dll_strcpy
mov rcx, rbx
call fcn.10049e720
mov rcx, rbx
call sub.msys_2.0.dll_strlen
cmp rax, 2
ja 0x1004b1840
mov rcx, rsi
call fcn.1004bcea0
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
ret
xor edx, edx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x1004b1230
mov rcx, rsi
call qword [0x100507a58]
jmp 0x1004b1817
mov ecx, 2
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov rbx, rax
mov eax, 4
mov word [rbx], ax
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
ret
mov qword [rsp + 0x28], rcx
call fcn.1004b1080
mov rax, qword [0x100507a60]
mov rcx, qword [rsp + 0x28]
jmp 0x1004b17c0