Function at 0x140001720
Capabilities:
Connect socket
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 2
test eax, eax
je 0x140001784
lea rdx, str.Failed_to_initialize_Winsock
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002230]
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]
jmp 0x1400017c8
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x1400017c8
lea rdx, str.Failed_to_create_socket
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002230]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], send
mov qword [rsp + 0x48], send
movsd xmm0, qword [str.192.168.1.10]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x140004478]
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], bx
mov ecx, 0x539
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x64], eax
cmp eax, 0xffffffff
jne 0x140001866
lea rdx, str.Invalid_address
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002230]
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]
xor bl, bl
jmp 0x1400018ee
mov r8d, send
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000188a
lea rdx, str.Failed_to_connect_to_server
jmp 0x140001843
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400018ec
lea rdx, [0x1400044e8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002230]
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 [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov bl, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000192e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001929
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001929
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000234c
test bl, bl
jne 0x140001965
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400022f0
mov rbx, qword [rsp + 0x230]
add rsp, 0x220
pop rbp
ret
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140001bd0
nop
lea rcx, [rsp + 0x50]
call fcn.140001400
int3