Function at 0x140001470
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
movdqa xmm0, xmmword [0x140007920]
movdqu xmmword [rsp + 0x28], xmm0
movdqa xmm1, xmmword [0x140007910]
movdqu xmmword [rsp + 0x38], xmm1
mov dword [rsp + 0x48], edi
mov word [rcx + 0x18], 2
mov ecx, 0x17ed
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1a], ax
mov rsi, qword [rbp + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov ecx, recv
mov qword [rsp + 0x68], rcx
mov byte [rsp + 0x50], dil
mov dword [rsp + 0x20], 1
mov ebx, edi
nop dword [rax]
movsxd rax, dword [rsp + rbx*4 + 0x28]
movzx r9d, byte [rax + rsi]
cmp rdi, rcx
jae 0x140001532
lea rax, [rdi + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rcx, 0xf
cmova rax, qword [rsp + 0x50]
mov byte [rax + rdi], r9b
mov byte [rax + rdi + 1], 0
jmp 0x14000153c
lea rcx, [rsp + 0x50]
call fcn.140001240
inc rbx
cmp rbx, 9
jge 0x140001551
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
jmp 0x140001500
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x1c], eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400015ab
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ea4
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000160f
lea rdx, str.Connect_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003bc0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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]
lea rdx, [0x140003d90]
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]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x140001634
lea rdx, str.Connected_to_server_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003bc0
lea rdx, [0x140003d90]
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]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140004e40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret