Function at 0x100401ee0
Capabilities:
Execute command

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x100401f03
mov eax, dword [rdx + 4]
and eax, 0x182c
jne 0x100402198
cmp byte [0x100409011], 0
jne 0x100402070
movzx eax, byte [0x100409010]
test al, al
je 0x10040205c
mov rbx, qword [sym.imp.msys_ncursesw6.dll_cur_term]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 0x450]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
jbe 0x100402280
mov rcx, qword [rax + 0x180]
xor esi, esi
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
jbe 0x1004022b8
mov rcx, qword [rax + 0x188]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1004020cd
lea r8, [0x100401960]
xor edx, edx
mov esi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
jmp 0x1004020cd
mov rax, qword [rax + 0x18]
mov ecx, 2
xor r8d, r8d
movsx r9d, word [rax]
sub r9d, 1
call qword [sym.imp.msys_ncursesw6.dll__nc_tiparm]
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x10040217b
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov r8, qword [rax + 0x18]
movzx edx, word [r8 + 2]
cmp dx, 8
not edx
setne al
shr dx, 0xf
and al, dl
mov edi, eax
je 0x100401ff3
mov rax, qword [rcx + 0x420]
sub rax, 1
cmp rax, 0xfffffffffffffffd
jbe 0x100402330
cmp byte [0x100409011], 0
je 0x1004022f8
mov r8, qword [rcx + 0x3e8]
test r8, r8
je 0x1004022f8
mov rcx, r8
call fcn.1004019f0
mov rdx, qword [rbx]
cmp byte [0x100409011], 0
mov rdx, qword [rdx + 0x20]
je 0x1004022e8
mov rcx, qword [rdx + 0x3e0]
test rcx, rcx
je 0x1004022e8
lea rdx, [rcx - 1]
or eax, esi
cmp rdx, 0xfffffffffffffffd
ja 0x10040205c
lea r8, [0x100401960]
xor edx, edx
call qword [sym.imp.msys_ncursesw6.dll_tputs]
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.msys_ncursesw6.dll_cur_term]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 0x450]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
jbe 0x100402280
mov rcx, qword [rax + 0x3d0]
test rcx, rcx
je 0x1004022a0
xor esi, esi
cmp rcx, 0xffffffffffffffff
jne 0x1004022b8
mov rcx, qword [rax + 0x3d8]
test rcx, rcx
je 0x100401f59
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x100401f6e
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov r9, qword [rcx + 0x870]
lea rdx, [r9 - 1]
cmp rdx, 0xfffffffffffffffd
jbe 0x100402308
mov rdx, qword [rcx + 0xb80]
lea r8, [rdx - 1]
cmp r8, 0xfffffffffffffffd
jbe 0x100401f90
mov rdx, qword [rcx + 0xab0]
lea r8, [rdx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1004021b0
mov rdi, qword [rcx + 0xab8]
lea r8, [rdi - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1004021b0
mov ecx, 1
mov rdi, qword [sym.imp.msys_ncursesw6.dll__nc_tiparm]
xor r8d, r8d
call rdi
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x1004023a0
mov rax, qword [rbx]
mov rdx, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
movsx ecx, word [rdx]
mov rdx, qword [rax + 0xab8]
lea r8d, [rcx - 1]
mov ecx, 1
call rdi
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x100401fbb
lea r8, [0x100401960]
xor edx, edx
mov esi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
jmp 0x100401fbb
mov dword [rdx + 4], eax
mov r8, rdx
mov edx, 3
call fcn.100402ca0
jmp 0x100401f03
mov rdi, qword [rcx + 0x878]
lea rdx, [rdi - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x100401fc2
mov rdi, qword [rcx + 0x880]
lea rdx, [rdi - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x100401fc2
call fcn.100401c00
mov rcx, qword [rbx]
mov rdx, qword [rcx + 0x20]
mov r9, qword [rdx + 0x878]
lea r8, [r9 - 1]
cmp r8, 0xfffffffffffffffd
jbe 0x100402470
or eax, esi
mov edi, eax
mov r9, qword [rdx + 0x380]
mov rax, qword [rcx + 0x18]
lea rcx, [r9 - 1]
movsx eax, word [rax]
cmp rcx, 0xfffffffffffffffd
jbe 0x100402440
xor esi, esi
cmp ax, 1
jle 0x100402256
nop dword [rax + rax]
mov rdx, qword [0x100409018]
mov ecx, 0x20
add esi, 1
call sub.msys_2.0.dll_putc
mov rdx, qword [rbx]
mov rax, qword [rdx + 0x18]
movsx eax, word [rax]
sub eax, 1
cmp eax, esi
jg 0x100402228
mov rdx, qword [rdx + 0x20]
mov edi, 1
mov rcx, qword [rdx + 0x880]
xor esi, esi
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x100402420
call fcn.100401c00
or esi, eax
or esi, edi
jmp 0x100401fbb
call sub.msys_2.0.dll_system
mov rax, qword [rbx]
cmp byte [0x100409011], 0
mov rax, qword [rax + 0x20]
je 0x100401f42
jmp 0x100402093
mov rcx, qword [rax + 0x180]
xor esi, esi
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1004022d3
nop dword [rax + rax]
lea r8, [0x100401960]
xor edx, edx
mov esi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
cmp byte [0x100409011], 0
jne 0x1004020af
jmp 0x100401f59
mov rcx, qword [rdx + 0x190]
jmp 0x10040203c
mov r8, qword [rcx + 0x198]
jmp 0x100402010
mov rcx, r9
lea r8, [0x100401960]
xor edx, edx
mov esi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
jmp 0x100401fc2
mov rax, qword [rcx + 0x20]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x100401ff3
movzx r13d, word [r8]
call fcn.100401c00
mov rax, qword [rbx]
xor edx, edx
lea r8, [0x100401960]
mov rbp, qword [sym.imp.msys_ncursesw6.dll_tputs]
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 0x20]
call rbp
mov rax, qword [rbx]
mov rdx, qword [rax + 0x18]
movsx r8d, word [rdx + 2]
cmp r8w, 1
jle 0x100402394
movsx r12d, r13w
mov esi, r8d
cmp r12d, r8d
jge 0x1004023c0
mov word [rdx + 2], r13w
call fcn.100401c00
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov esi, edi
jmp 0x100401ff3
lea r8, [0x100401960]
xor edx, edx
mov esi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
jmp 0x10040214a
jle 0x10040238c
lea r14, [0x1004052c6]
lea r15, [0x1004052c4]
lea r13, [0x100401960]
nop word [rax + rax]
mov rcx, qword [0x100409018]
mov r9, r15
mov rdx, r14
call sub.msys_2.0.dll_fprintf
mov rax, qword [rbx]
mov r8, r13
xor edx, edx
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 0x420]
call rbp
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
movsx r8d, word [rax + 2]
add esi, r8d
cmp r12d, esi
jg 0x1004023e0
jmp 0x10040238c
lea r8, [0x100401960]
xor edx, edx
mov esi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
jmp 0x10040226d
mov ecx, 1
lea r8d, [rax - 1]
mov rdx, r9
call qword [sym.imp.msys_ncursesw6.dll__nc_tiparm]
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x100402493
mov rax, qword [rbx]
mov rdx, qword [rax + 0x20]
jmp 0x100402256
xor edx, edx
mov rcx, r9
mov edi, 1
lea r8, [0x100401960]
call qword [sym.imp.msys_ncursesw6.dll_tputs]
mov rcx, qword [rbx]
mov rdx, qword [rcx + 0x20]
jmp 0x1004021ff
lea r8, [0x100401960]
xor edx, edx
mov edi, 1
call qword [sym.imp.msys_ncursesw6.dll_tputs]
jmp 0x10040245f