Function at 0x1800319e0
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rbp + 0x500], rax
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov ebx, 2
mov word [rsp + 0x48], bx
mov ecx, 0x2d1d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
lea r8, [rsp + 0x4c]
lea rdx, str.127.0.0.1
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x180031a91
lea rdx, [0x1800b7334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180050e20
lea rdx, [0x180055080]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x180031b27
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1800df058], rax
cmp rax, 0xffffffffffffffff
jne 0x180031ad8
lea rdx, [0x1800b775c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180050e20
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]
jmp 0x180031a76
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov rcx, qword [0x1800df058]
cmp eax, 0xffffffff
jne 0x180031b51
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x1800b7334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180050e20
lea rdx, [0x180055080]
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]
xor al, al
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, str.ping
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x100]
mov rcx, qword [0x1800df058]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov rcx, qword [0x1800df058]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
test ebx, ebx
jle 0x180031c34
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x180031be3
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x28]
call fcn.180009130
nop
mov edi, 1
mov dword [rsp + 0x20], edi
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
cmovae rax, rcx
cmp qword [rsp + 0x38], 4
jne 0x180031c3e
cmp dword [rax], 0x676e6f70
jne 0x180031c3e
movzx ebx, dil
jmp 0x180031c40
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
xor bl, bl
test dil, 1
je 0x180031c96
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
cmp rdx, 0x10
jb 0x180031c83
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031c7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180031c7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009d5c8
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
test bl, bl
je 0x180031b04
lea rdx, [0x1800b7334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180050e20
lea rdx, [0x180055080]
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
jmp 0x180031b29