Function at 0x140005840
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rcx, [rbp - 0x31]
call fcn.140003ac0
nop
mov qword [rbp - 0x79], 2
lea rcx, [rbp - 0x79]
call fcn.1400070c0
lea rdx, [0x14000d334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006ee0
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r15, qword [rbp - 0x21]
sub rax, r15
cmp rax, 8
jb 0x140005c29
lea r13, [rbp - 0x31]
mov rsi, qword [rbp - 0x31]
mov r14, qword [rbp - 0x19]
cmp r14, 7
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r12, [r15 + 8]
mov ebx, 7
lea rdi, [rsp + 0x20]
cmp r12, rbx
jbe 0x140005985
mov rbx, r12
or rbx, 7
cmp rbx, rcx
jbe 0x14000594c
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140005978
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005c23
mov rcx, rax
call fcn.1400097a8
test rax, rax
je 0x140005ae3
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140005980
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140005c23
add rcx, rcx
jne 0x140005917
xor edi, edi
jmp 0x140005980
call fcn.1400097a8
mov rdi, rax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [str.Result:]
movups xmmword [rdi], xmm0
lea rcx, [rdi + 0x10]
lea r8, [r15 + r15]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [rdi + r12*2], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [rbp - 3]
movsx ecx, word [rbp - 7]
sub eax, ecx
inc eax
sub eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
movsxd r8, eax
lea rcx, [rbp - 0x51]
call fcn.1400072c0
nop
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 7]
call fcn.140006d60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x71]
call fcn.140006550
mov rcx, rax
call fcn.1400031c0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140005a66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x140005aaa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005aa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005aa4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140005aef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005aea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005aea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
lea rdx, [0x14000d334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006ee0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x20
call fcn.1400097a8
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [0x14000d5a0]
movdqu xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [str.Press_any_key_to_continue...]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14000d348]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x14000d350]
mov dword [rax + 0x18], ecx
mov byte [rax + 0x1c], 0
lea rcx, [rsp + 0x20]
call fcn.140003280
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140005b9f
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea rcx, [0x14000ce60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140003dc0
nop
cmp r14, 7
jbe 0x140005bf6
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140005bee
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400097a0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140009780
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002000
nop
call fcn.1400020a0
int3