Function at 0x14000c130
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 - 0x90]
sub rsp, 0x190
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov rbx, qword [0x140025340]
lea r14, [0x140025330]
mov rdi, qword [0x140025348]
mov rcx, r14
mov rsi, qword [0x140025330]
cmp rdi, 0xf
cmova rcx, rsi
cmp rbx, 6
jne 0x14000c1b0
mov r8, rbx
lea rdx, str.colour
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000c1dc
mov rcx, r14
cmp rdi, 0xf
cmova rcx, rsi
cmp rbx, 5
jne 0x14000c755
mov r8, rbx
lea rdx, [0x14001b128]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000c755
mov rax, qword [0x140026308]
cmp rax, 2
jne 0x14000c706
mov r8, qword [0x140023300]
lea rbx, [0x1400232f0]
mov rcx, rbx
mov rdi, qword [0x1400232f0]
mov rsi, qword [0x140023308]
cmp rsi, 0xf
cmova rcx, rdi
cmp r8, 1
jne 0x14000c244
lea rdx, [0x14001b078]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000c244
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140003520
mov rcx, rax
call fcn.140006810
jmp 0x14000c74e
mov rcx, rbx
cmp rsi, 0xf
cmova rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtof]
mov rax, qword [rsp + 0x40]
cmp byte [rax], r12b
jne 0x14000c6d1
cmp qword [0x140023300], 5
ja 0x14000c6d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
cmp qword [0x140023308], 0xf
cmova rbx, qword [0x1400232f0]
mov dword [rax], r12d
mov r8d, 0xa
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x40]
jne 0x14000c2bb
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rdi], 0x22
jne 0x14000c2ce
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov dword [0x14002314c], eax
test eax, eax
jle 0x14000c688
cmp eax, 0xfe
jg 0x14000c688
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140000000]
lea rax, [rcx + 0x1ac48]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x68], rax
mov qword [rbp], r12
mov dword [rbp + 8], 4
lea rdx, [0x140004770]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [0x14002314c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov r15, r12
mov qword [rsp + 0x78], r12
mov edi, 0xf
mov r14d, edi
mov qword [rbp - 0x80], rdi
mov byte [rsp + 0x68], r15b
mov dword [rsp + 0x40], 5
movups xmmword [rsp + 0x28], xmm0
mov rcx, r12
mov edx, dword [rbp + 8]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x14000c3f9
mov rax, qword [rbp - 0x28]
mov rbx, qword [rax]
test rbx, rbx
je 0x14000c3f9
mov rax, qword [rbp - 0x48]
mov r9, qword [rax]
cmp rbx, qword [rbp]
cmovb rbx, qword [rbp]
sub rbx, r9
mov rcx, r9
jmp 0x14000c42b
test dl, 4
jne 0x14000c462
mov rax, qword [rbp - 0x30]
mov rdx, qword [rax]
mov rbx, r12
test rdx, rdx
je 0x14000c426
mov rax, qword [rbp - 0x50]
mov r9, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x14000c42b
mov r9, qword [rsp + 0x28]
test rcx, rcx
je 0x14000c462
lea rcx, [rsp + 0x68]
cmp rbx, rdi
ja 0x14000c451
mov qword [rsp + 0x78], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x68], r15b
jmp 0x14000c459
mov rdx, rbx
call fcn.140015d80
mov r15, qword [rsp + 0x78]
mov r14, qword [rbp - 0x80]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 6
jb 0x14000c785
lea r13, [rsp + 0x68]
mov rsi, qword [rsp + 0x68]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r12, [r15 + 6]
lea rbx, [rsp + 0x48]
cmp r12, 0xf
jbe 0x14000c528
mov rdi, r12
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000c4ea
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400176d0
test rax, rax
je 0x14000c5e6
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000c523
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14000c512
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000c78b
jmp 0x14000c4cb
test rcx, rcx
je 0x14000c521
call fcn.1400176d0
mov rbx, rax
jmp 0x14000c523
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], rdi
mov eax, dword [str.color]
mov dword [rbx], eax
movzx eax, word [0x14001ba30]
mov word [rbx + 4], ax
lea rcx, [rbx + 6]
mov r8, r15
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r12], 0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str._DEFAULT:_2__COLOUR_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003a60
mov edx, dword [0x14002314c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x14001aa94]
call fcn.140003a60
lea rdx, [0x140003c30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14000c5f2
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c5ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c5ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017714
movdqa xmm0, xmmword [0x14001c630]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
cmp r14, 0xf
jbe 0x14000c640
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000c637
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c637
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140017714
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140014930
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14000c74e
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [0x140026308]
shl rax, 5
lea rcx, [0x140000000]
lea rdx, [rcx + 0x232b0]
add rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003520
mov rbx, rax
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.140003520
nop
mov r8d, 1
jmp 0x14000c743
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140026308]
shl rax, 5
lea rcx, [0x140000000]
lea rdx, [rcx + 0x232b0]
add rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003520
mov rbx, rax
jmp 0x14000c6bb
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
shl rax, 5
lea rcx, [0x140000000]
lea rdx, [rcx + 0x232b0]
add rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003520
mov rbx, rax
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.140003520
nop
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140006670
mov byte [0x1400261cd], 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400176b0
lea r11, [rsp + 0x190]
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.140001730
nop
call fcn.140001690
int3