Function at 0x1400014c0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r14, qword [rcx]
mov rbx, rdx
mov rsi, rcx
lea rdx, [rbp - 0x80]
xor r15d, r15d
mov ecx, 0x202
mov qword [rsp + 0x48], r15
mov rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001587
lea rcx, str.____Failed_to_initialize_winsock_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x40]
lea rdx, str.WSAStartup
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140001858
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
xorps xmm1, xmm1
mov dword [rsp + 0x58], 1
lea rdx, [rbx + 0x34]
mov dword [rsp + 0x5c], 6
lea rcx, [rbx + 0x14]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x140001640
lea rcx, str.____Failed_to_get_address_info_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [0x140004750]
mov r9, qword [rsp + 0x40]
lea rcx, str.____The_function__S_failed_with_error_code__d____S
mov r8d, ebx
call fcn.140001010
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140001858
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400016ba
nop word [rax + rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400016e2
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400016b5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001650
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, str.____Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140001858
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x140001731
lea rcx, str.____Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140001858
lea rcx, str.____Failed_to_create_the_socket_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.socket
jmp 0x140001614
mov r8d, dword [rsi + 8]
xor r9d, r9d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400017c8
lea rcx, str.____Failed_to_send_data_through_the_socket_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x40]
lea rdx, str.send
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140001858
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x140001844
lea rcx, str.____Failed_to_shutdown_the_connection_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x40]
lea rdx, str.shutdown
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140002fb0
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret