Function at 0x1400018f0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140916040]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, rdx
test r8d, r8d
je 0x140001986
mov rdx, qword [rdi + 0x30]
mov r8d, 0x30
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140001b35
cmp word [rbx], 2
mov eax, 0x1c
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WS2_32.dll_recv
cmovne r8d, eax
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000197c
cmp eax, 0xffffffff
jne 0x140001b35
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140001b35
mov esi, 1
jmp 0x140001b35
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x140001b5c
cmp word [rbx], 2
mov eax, 0x1c
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WS2_32.dll_recv
cmovne r8d, eax
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
je 0x140001ad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x140001b35
cmp ebx, 0xffffffff
jne 0x140001b2d
mov ecx, dword [rdi + 0x4c]
lea r9, [rsp + 0x50]
mov rbx, qword [rdi + 0x28]
lea r8, [rsp + 0x260]
mov eax, 0x10624dd3
mov qword [rsp + 0x268], rbx
mul ecx
mov dword [rsp + 0x260], 1
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x40], edx
xor edx, edx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
sub ecx, eax
imul eax, ecx, 0x3e8
xor ecx, ecx
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140001a5f
jne 0x140001aad
mov ebx, 0x5b4
jmp 0x140001ad1
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rcx, rbx
test eax, eax
je 0x140001ac1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140001aad
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x140001aad
cmp ebx, 0xffffffff
jne 0x140001ad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, 0x22a
test ebx, ebx
cmove ebx, eax
jmp 0x140001ad1
lea rdx, [rsp + 0x260]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ebx, esi
test ebx, ebx
jne 0x140001b2d
mov rdx, qword [rdi + 0x30]
mov r8d, 0x23
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140001b35
mov dword [rdi + 0x78], 1
xor ecx, ecx
mov dword [rdi + 0x7c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x130]
cmp eax, 2
jne 0x14000197c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
jmp 0x140001b2f
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1408e81d0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1408e5c20
int3