Function at 0x1400795f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14012e800]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, r9
mov rsi, r8
mov edi, edx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401304f0], eax
jle 0x14007967b
lea rcx, [0x1401304f0]
call fcn.1400da750
cmp dword [0x1401304f0], 0xffffffff
jne 0x14007967b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1401304e8], rax
lea rcx, [0x1401304f0]
call fcn.1400da6e4
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
xor r8d, r8d
lea rdx, [0x14010b96f]
lea rcx, [rsp + 0x68]
call fcn.140004160
nop
mov ecx, edi
test edi, edi
je 0x1400796f7
sub ecx, 1
je 0x1400796d6
cmp ecx, 1
jne 0x140079b8a
mov edx, ntohs
mov rcx, qword [0x1401304e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERROR
mov r8d, 5
jmp 0x140079716
mov edx, ntohs
mov rcx, qword [0x1401304e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.INFO
mov r8d, 4
jmp 0x140079716
mov edx, 0xa
mov rcx, qword [0x1401304e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.SUCCESS
mov r8d, 7
lea rcx, [rsp + 0x68]
call fcn.140001d50
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x80]
call fcn.1400055e0
nop
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 rbx, rax
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x70]
call fcn.1400055e0
nop
mov qword [rsp + 0x40], rbx
lea rax, [0x1401196d4]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
nop dword [rax]
inc rax
cmp byte [rax], 0
jne 0x1400797b0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140067f60
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x60], 4
movups xmmword [rsp + 0x40], xmm0
mov ecx, dword [rbp + 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140079820
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x140079820
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140079851
test cl, 4
jne 0x140079847
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140079847
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140079851
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140079861
lea rcx, [rsp + 0x20]
call fcn.140001d50
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rbx
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.140001920
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
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x80]
call fcn.140002470
lea rdx, [0x1401196cc]
mov rcx, rax
call fcn.140001eb0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rax
call fcn.140002470
lea rdx, [0x140118fa8]
mov rcx, rax
call fcn.140001eb0
mov rcx, rax
mov rdx, r14
call fcn.140001eb0
mov rcx, rax
lea rdx, [0x1401196d0]
call fcn.140001eb0
mov rcx, rax
mov rdx, rsi
call fcn.140001eb0
mov rcx, rax
lea rdx, [0x1401196a8]
call fcn.140001eb0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140079978
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079972
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140079972
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400da674
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov r9d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r9
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x60], reloc.WS2_32.dll_send
movups xmmword [rsp + 0x40], xmm0
mov ecx, dword [rbp + 0xf8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400799dd
mov rax, qword [rbp + 0xc8]
mov r8, qword [rax]
test r8, r8
je 0x1400799dd
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xf0]
cmovb r8, qword [rbp + 0xf0]
sub r8, rdx
jmp 0x140079a17
test cl, 4
jne 0x140079a0d
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140079a0d
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xd8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140079a17
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140079a2b
lea rcx, [rsp + 0x20]
call fcn.140001d50
mov r9, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
cmp r9, 0xf
cmova rcx, qword [rsp + 0x20]
call fcn.140078f50
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140079a7f
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079a7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140079a7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400da674
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [0x1401304e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp edi, 2
jne 0x140079ad6
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
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]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x80], rbx
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x88]
call fcn.140001920
lea rcx, [rbp + 0x90]
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 + 0x108]
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 0x140079b64
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079b5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140079b5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400da674
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400da610
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, Ordinal_27
call fcn.1400da630
mov qword [rsp + 0x58], rax
lea rdx, str.Log_level_not_implemented.
mov rcx, rax
call fcn.140004540
mov qword [rsp + 0x60], rax
lea rdx, [0x14012ac00]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3