Function at 0x140009980
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400ab800]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, r9
mov edi, edx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov edx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400ac9c0], eax
jle 0x140009a0a
lea rcx, [0x1400ac9c0]
call fcn.140069804
cmp dword [0x1400ac9c0], 0xffffffff
jne 0x140009a0a
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1400ac9b0], rax
lea rcx, [0x1400ac9c0]
call fcn.140069798
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
xor r8d, r8d
lea rdx, [0x14009986f]
lea rcx, [rsp + 0x68]
call fcn.140003e80
nop
mov ecx, edi
test edi, edi
je 0x140009a86
sub ecx, 1
je 0x140009a65
cmp ecx, 1
jne 0x140009f1f
mov edx, recv
mov rcx, qword [0x1400ac9b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERROR
mov r8d, 5
jmp 0x140009aa5
mov edx, recv
mov rcx, qword [0x1400ac9b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.INFO
mov r8d, 4
jmp 0x140009aa5
mov edx, 0xa
mov rcx, qword [0x1400ac9b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.SUCCESS
mov r8d, 7
lea rcx, [rsp + 0x68]
call fcn.140001c30
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x80]
call fcn.140004ea0
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.140004ea0
nop
mov qword [rsp + 0x40], rbx
lea rax, [0x14009e2f4]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
nop dword [rax + rax]
inc rax
cmp byte [rax], 0
jne 0x140009b40
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140005e30
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
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 0x140009bb0
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x140009bb0
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140009be1
test cl, 4
jne 0x140009bd7
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140009bd7
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 0x140009be1
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140009bf1
lea rcx, [rsp + 0x20]
call fcn.140001c30
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.140001850
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.140002450
lea rdx, [0x14009e2f8]
mov rcx, rax
call fcn.140001d90
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rax
call fcn.140002450
lea rdx, [0x14009df28]
mov rcx, rax
call fcn.140001d90
mov rcx, rax
mov rdx, rsi
call fcn.140001d90
mov rcx, rax
lea rdx, [0x14009e2ec]
call fcn.140001d90
mov rcx, rax
lea rdx, str.main__
call fcn.140001d90
mov rcx, rax
lea rdx, [0x14009e2f0]
call fcn.140001d90
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140009d0c
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009d06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009d06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069764
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
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 0x140009d71
mov rax, qword [rbp + 0xc8]
mov r8, qword [rax]
test r8, r8
je 0x140009d71
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xf0]
cmovb r8, qword [rbp + 0xf0]
sub r8, rdx
jmp 0x140009dab
test cl, 4
jne 0x140009da1
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140009da1
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 0x140009dab
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140009dbf
lea rcx, [rsp + 0x20]
call fcn.140001c30
mov r9, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
cmp r9, 0xf
cmova rcx, qword [rsp + 0x20]
call fcn.1400060e0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140009e13
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009e0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069764
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [0x1400ac9b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp edi, 2
jne 0x140009e6a
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.140001850
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 0x140009ef8
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009ef3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009ef3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069764
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140069700
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, Ordinal_27
call fcn.140069720
mov qword [rsp + 0x58], rax
mov rcx, rax
call fcn.140004260
mov qword [rsp + 0x60], rax
lea rdx, [0x1400a75f0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3