Function at 0x140003a50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, r9
mov rsi, r8
mov edi, edx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
mov edx, 0x10
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14000ba18], eax
jle 0x140003ae1
lea rcx, [0x14000ba18]
call fcn.140004e44
cmp dword [0x14000ba18], 0xffffffff
jne 0x140003ae1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14000ba08], rax
lea rcx, [0x14000ba18]
call fcn.140004dd8
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], r15b
mov ecx, edi
test edi, edi
je 0x140003bc4
sub ecx, 1
je 0x140003b74
cmp ecx, 1
jne 0x140003fd4
lea edx, [rcx + 0xb]
mov rcx, qword [0x14000ba08]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rbp - 0x80]
cmp rax, 5
jb 0x140003b63
lea rbx, [rsp + 0x68]
cmp rax, 0xf
cmova rbx, qword [rsp + 0x68]
mov qword [rsp + 0x78], 5
mov r8d, 5
lea rdx, str.ERROR
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 5], 0
jmp 0x140003c29
lea r9, str.ERROR
mov edx, 5
jmp 0x140003c1f
mov edx, 0xe
mov rcx, qword [0x14000ba08]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rbp - 0x80]
lea rcx, [rsp + 0x68]
cmp rax, 4
jb 0x140003bb6
cmp rax, 0xf
cmova rcx, qword [rsp + 0x68]
mov qword [rsp + 0x78], 4
mov eax, dword [str.INFO]
mov dword [rcx], eax
mov byte [rcx + 4], 0
jmp 0x140003c29
lea r9, str.INFO
mov edx, 4
jmp 0x140003c24
mov edx, 0xa
mov rcx, qword [0x14000ba08]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rax, qword [rbp - 0x80]
cmp rax, 7
jb 0x140003c13
lea rbx, [rsp + 0x68]
cmp rax, 0xf
cmova rbx, qword [rsp + 0x68]
mov qword [rsp + 0x78], 7
mov r8d, 7
lea rdx, str.SUCCESS
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 7], 0
jmp 0x140003c29
lea r9, str.SUCCESS
mov edx, 7
lea rcx, [rsp + 0x68]
call fcn.140001f80
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140006660]
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 + 0x60], 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 r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], r12
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], r15
mov dword [rbp + 8], 4
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0xd6bf94d5e57a42bd
imul rcx
add rdx, rcx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov r8, rax
lea rdx, [rsp + 0x20]
call fcn.1400012c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140003d06
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140004820
lea rdx, [0x1400066e8]
mov rcx, rax
call fcn.1400042d0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rax
call fcn.140004820
lea rdx, [0x1400066e4]
mov rcx, rax
call fcn.1400042d0
mov rcx, rax
mov rdx, r14
call fcn.1400042d0
mov rcx, rax
lea rdx, [0x1400066e0]
call fcn.1400042d0
mov rcx, rax
mov rdx, rsi
call fcn.1400042d0
mov rcx, rax
lea rdx, [0x1400066dc]
call fcn.1400042d0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140003dc3
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003dbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003dbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004da4
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x60], 5
movups xmmword [rsp + 0x40], xmm0
mov ecx, dword [rbp + 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140003e1a
mov rax, qword [rbp - 0x28]
mov rbx, qword [rax]
test rbx, rbx
je 0x140003e1a
mov rax, qword [rbp - 0x48]
mov r9, qword [rax]
cmp rbx, qword [rbp]
cmovb rbx, qword [rbp]
sub rbx, r9
mov rax, rbx
jmp 0x140003e54
mov rax, r15
test cl, 4
jne 0x140003e4a
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
mov rax, r15
test rcx, rcx
je 0x140003e4a
mov rax, qword [rbp - 0x50]
mov r9, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd rbx, dword [rax]
add rbx, rcx
sub rbx, r9
mov rax, rbx
jmp 0x140003e54
mov rbx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x140003e84
lea rcx, [rsp + 0x20]
cmp rax, 0xf
ja 0x140003e7b
mov qword [rsp + 0x30], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x20], 0
jmp 0x140003e84
mov rdx, rbx
call fcn.140001f80
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call fcn.140002160
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140003eda
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ed5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ed5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004da4
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
mov edx, 0xf
mov rcx, qword [0x14000ba08]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp edi, 2
jne 0x140003f2d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
lea edx, [rdi + 3]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r12
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.140001ad0
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]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140003fa9
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fa4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004da4
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140004b00
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x18
call fcn.140004b20
mov qword [rsp + 0x58], rax
mov rcx, rax
call fcn.1400021c0
mov qword [rsp + 0x60], rax
lea rdx, [0x140008f38]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3