Function at 0x140099650
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rdx, [rsp + 0x60]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400996a4
mov cx, 0xc
call fcn.140099380
lea rcx, str.Socket_startup_failed.
call fcn.1400993b0
nop
jmp 0x14009987c
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400996e8
mov cx, 0xc
call fcn.140099380
lea rcx, str.Error_at_socket.
call fcn.1400993b0
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14009987c
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, send
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x48], ax
mov cx, 0x1f40
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, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140099776
mov cx, 0xc
call fcn.140099380
lea rcx, str.Unable_to_connect_to_server.
call fcn.1400993b0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14009987c
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x14009978c
mov rax, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400997f6
mov cx, 0xc
call fcn.140099380
lea rcx, str.Send_Failed.
call fcn.1400993b0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
jmp 0x14009987c
mov cx, 8
call fcn.140099380
lea rdx, str.Script_Sent:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14009ce50
mov rdx, qword [rsp + 0x220]
mov rcx, rax
call fcn.14009ce50
mov qword [rsp + 0x40], rax
lea rdx, [0x14009d230]
mov rcx, qword [rsp + 0x40]
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 edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14009986a
mov cx, 0xc
call fcn.140099380
lea rcx, str.Error
call fcn.1400993b0
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14009eff0
add rsp, 0x210
pop rdi
ret