Function at 0x1400013b0
Capabilities:
Connect socket
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
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov ecx, 0x202
lea rdx, [rbp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001423
lea rdx, str.WSAStartup_failed_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400056a0
xor al, al
jmp 0x140001b48
mov edx, 1
lea r8d, [rdx + 5]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140001464
lea rdx, str.Socket_creation_failed_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400056a0
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x140001b48
mov word [rbp + 0x80], r12w
mov ecx, 0xbbd
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x82], ax
lea rcx, str.109.205.212.93
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x84], eax
cmp eax, 0xffffffff
jne 0x1400014bf
lea rdx, str.Invalid_address_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400056a0
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x140001b48
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x80]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400014e3
lea rdx, str.Connection_failed_n
jmp 0x14000149d
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x1400014fa
mov rcx, qword [rbx]
lea r8, [rcx + rax*2]
mov rbx, rcx
jmp 0x1400014fe
lea r8, [rbx + rax*2]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140005870
nop
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
xor r9d, r9d
mov r8d, dword [rbp + 0xa0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x250]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x250]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400015a6
lea rdx, str.Error_in_receiving_data:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400056a0
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, [0x1400059a0]
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]
jmp 0x140001af0
test eax, eax
jne 0x1400015c2
lea rdx, str.Connection_closed_by_server_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400056a0
jmp 0x140001af0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x58], r15
lea rax, [rbp + 0x250]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400015e0
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140001b78
cmp rbx, 0xf
ja 0x140001637
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], recv
mov r8, rbx
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx + 0x40], 0
mov rdi, qword [rbp + 0x58]
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x40]
jmp 0x1400016cf
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140001670
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140007178
test rax, rax
je 0x140001ae4
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400016ad
mov rdi, rax
mov ecx, socket
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14000169b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001b7e
jmp 0x140001651
test rcx, rcx
je 0x1400016aa
call fcn.140007178
mov rsi, rax
jmp 0x1400016ad
mov rsi, r15
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rdi
mov r8, rbx
lea rdx, [rbp + 0x250]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rax, [0x14000a3d0]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x2c], edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x40]
cmp rdi, 0xf
cmova rdx, rsi
mov r9d, r12d
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140005560
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], recv
mov byte [rbp + 0x60], 0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], recv
mov byte [rbp + 0x20], 0
mov r8b, 0x7c
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140006460
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140006460
lea rcx, [rbp + 0x60]
mov rbx, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x78]
cmp rdi, 0xf
cmova rcx, rbx
mov rsi, qword [rbp + 0x70]
cmp rsi, 5
jne 0x14000195f
mov r8, rsi
lea rdx, str.start
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000195f
lea rdx, [0x140009730]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400056a0
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
mov rcx, rax
call fcn.140006610
lea rdx, [0x1400059a0]
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, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x140001894
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000188f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a1a
call fcn.140007170
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], recv
mov byte [rbp + 0x20], 0
cmp rdi, 0xf
jbe 0x1400018dc
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400018d3
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a61
mov rcx, rbx
call fcn.140007170
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
call fcn.140004980
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
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 + 0x58]
cmp rdx, 0xf
jbe 0x140001958
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001953
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ae4
call fcn.140007170
mov bl, 1
jmp 0x140001b01
lea rcx, [rbp + 0x60]
cmp rdi, 0xf
cmova rcx, rbx
cmp rsi, 7
jne 0x140001994
mov r8, rsi
lea rdx, str.expired
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001994
lea rdx, [0x140009750]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x1400019d7
lea rcx, [rbp + 0x60]
cmp rdi, 0xf
cmova rcx, rbx
cmp rsi, 8
jne 0x1400019c9
mov r8, rsi
lea rdx, str.notfound
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400019c9
lea rdx, [0x140009788]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x1400019d7
lea rdx, [0x1400097b0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400056a0
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x140001a26
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007170
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], recv
mov byte [rbp + 0x20], 0
cmp rdi, 0xf
jbe 0x140001a71
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001a68
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140007170
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
call fcn.140004980
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
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 + 0x58]
cmp rdx, 0xf
jbe 0x140001af0
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007170
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x140001b45
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007170
movzx eax, bl
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.140007150
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140006ea0
nop
call fcn.140007040
int3