Function at 0x1400030a0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400bf0c0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rdx
mov rdi, rcx
lea rax, str.Initializing_Winsock...
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], reloc.WS2_32.dll_socket
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call fcn.1400044b0
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140003142
lea rcx, str.Failed_to_initialize_Winsock._Error_code:_.
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x2d
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400045e0
jmp 0x1400032e0
lea rax, str.Creating_socket...
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], socket
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.1400044b0
mov ebx, 1
lea r8d, [rbx + 5]
mov edx, ebx
mov r14d, 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rdi], eax
cmp eax, 0xffffffff
jne 0x1400031bc
lea rax, str.Failed_to_create_socket.
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x18
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.140004380
jmp 0x1400032e0
mov word [rbp - 0x70], r14w
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x6c], eax
mov ecx, 0x1a0a
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x6e], ax
lea rax, str.Connecting_to_server_:...
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1d
movups xmm0, xmmword [rsi]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm1
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140004830
movsxd rcx, dword [rdi]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000325f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Failed_to_connect_to_server._Error_code:_.
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0x2c
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm0
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400045e0
jmp 0x1400032e0
lea rax, str.Connection_established_with_server.
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x23
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400044b0
xchg byte [rdi + 4], bl
add rdi, 0x148
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call fcn.140067b30
test eax, eax
jne 0x140003317
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
je 0x140003307
mov rbx, qword [rdi + 0x50]
mov rsi, qword [rdi + 0x58]
cmp rbx, rsi
je 0x1400032d8
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400032cf
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 0x40
cmp rbx, rsi
jne 0x1400032c0
mov rcx, rdi
call fcn.140067b38
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140068880
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call fcn.1400673ac
int3
mov ecx, 5
call fcn.1400673ac
int3