Function at 0x140001ee0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x210
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x140002018
xor eax, eax
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
xorps xmm1, xmm1
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x34], 6
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call fcn.140001c60
lea r9, [rsp + 0x20]
mov qword [0x1400089b8], rax
lea r8, [rsp + 0x28]
lea rdx, [0x14000560c]
lea rcx, str.127.0.0.1
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x14000204c
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1400089b0], rax
cmp rax, 0xffffffffffffffff
je 0x140002086
mov rdx, qword [rsp + 0x20]
mov rcx, rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001fd6
mov rcx, qword [0x1400089b0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x1400089b0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
mov ecx, 2
call fcn.140001c60
mov rcx, rbx
mov qword [0x1400089c0], rax
call rax
cmp qword [0x1400089b0], 0xffffffffffffffff
je 0x1400020d2
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400033d0
add rsp, 0x210
pop rbx
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.WSAStartup_failed:
call fcn.140002e60
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x140003200]
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 fcn.140001ec0
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.getaddrinfo_failed:
call fcn.140002e60
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x140003200]
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]
call fcn.140001ec0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_at_socket__:
mov ebx, eax
call fcn.140002e60
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x140003200]
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 + 0x20]
call fcn.140001e70
call qword [sym.imp.WS2_32.dll_WSACleanup]
call fcn.140001ec0
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Unable_to_connect_to_server_
call fcn.140002e60
mov rcx, rax
lea rdx, [0x140003200]
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]
call fcn.140001ec0
int3