Function at 0x1400ea470
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x450
movaps xmmword [rsp + 0x440], xmm6
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 1
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400ea50d
cmp word [rdi], 0
je 0x1400ea522
movups xmm0, xmmword [rdi + 4]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x3c], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea r12, [rsp + 0x30]
mov rcx, r12
call fcn.140105f30
mov edi, eax
rol di, 8
mov rcx, r12
call fcn.14000fa30
movups xmm6, xmmword [rax]
mov rcx, r12
call fcn.1400ca530
mov r15d, eax
mov rcx, r12
call fcn.140105f40
mov r8d, 0x1c
mov cx, 0x17
jmp 0x1400ea55d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1400ea76d
mov eax, dword [rdi + 2]
movzx ecx, word [rdi + 6]
mov word [rsp + 0x34], cx
mov dword [rsp + 0x30], eax
lea r15, [rsp + 0x30]
mov rcx, r15
call fcn.140105f00
mov edi, eax
rol di, 8
mov rcx, r15
call fcn.14000fa30
mov r15d, dword [rax]
xorps xmm6, xmm6
mov r8d, 0x10
mov cx, 2
mov word [rsp + 0x30], cx
mov word [rsp + 0x32], di
mov dword [rsp + 0x34], r15d
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400ea58c
xor edi, edi
jmp 0x1400ea59c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400ea5e8
test rdi, rdi
je 0x1400ea604
mov r15d, edi
and r15d, 3
lea rax, [0x1400ea78c]
movsxd rcx, dword [rax + r15*4]
add rcx, rax
jmp rcx
movzx eax, byte [rdi + 0x10]
cmp al, 0xd
je 0x1400ea633
mov rsi, rdi
jmp 0x1400ea76d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov r15d, edi
and r15d, 3
jmp 0x1400ea728
xor esi, esi
jmp 0x1400ea76d
movzx eax, byte [rdi + 0xf]
cmp al, 0xd
jne 0x1400ea5e0
jmp 0x1400ea633
test r14, r14
jne 0x1400ea648
test ebp, ebp
jne 0x1400ea648
lea rsi, str.cannot_set_a_0_duration_timeout
jmp 0x1400ea728
mov eax, ebp
imul rax, rax, 0x10624dd3
shr rax, 0x26
mov dword [rsp + 0x28], r14d
cmp ebp, 0x3e8
mov ecx, 1
mov edx, eax
cmovb edx, ecx
test r14d, r14d
cmovne edx, eax
mov dword [rsp + 0x2c], edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1f8
xor edx, edx
call fcn.14012d200
mov qword [rsp + 0x238], 1
mov qword [rsp + 0x240], rbx
lea rcx, [rsp + 0x248]
mov r8d, 0x1f8
xor edx, edx
call fcn.14012d200
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x238]
lea r9, [rsp + 0x30]
mov ecx, 1
xor edx, edx
call qword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x1400ea6fc
cmp eax, 0xffffffff
jne 0x1400ea705
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1400ea728
lea rsi, str.connection_timed_out
jmp 0x1400ea72d
cmp dword [rsp + 0x238], 1
jne 0x1400ea713
xor esi, esi
jmp 0x1400ea72d
mov rcx, rsi
call fcn.1400ea7a0
mov rsi, rdx
test rax, rax
jne 0x1400ea728
test rsi, rsi
je 0x1400ea70f
test rdi, rdi
je 0x1400ea76d
cmp r15d, 1
jne 0x1400ea76d
lea rbx, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400ea75a
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.14000dd90
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.14000dd90
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x440]
add rsp, 0x450
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret