Function at 0x1400d6a30
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14021d798]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xorps xmm0, xmm0
mov dword [rbp - 0x69], 0x1c
mov rbx, rdx
mov dword [rbp - 0x65], 1
mov rdi, rcx
lea rdx, [rbp - 0x25]
mov rcx, qword [rcx]
lea r8, [rbp - 0x69]
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 9], rax
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp - 0x49], rax
cmp rax, 0xffffffffffffffff
je 0x1400d6dd4
lea rdx, [rbp - 0x25]
mov rcx, rbx
call fcn.1400d7130
cmp eax, 1
je 0x1400d6b37
movzx eax, word [rbp - 0x25]
mov byte [rbp + 7], 0
cmp ax, 2
jne 0x1400d6ac4
mov edx, reloc.WS2_32.dll_recv
jmp 0x1400d6acf
cmp ax, 0x17
jne 0x1400d6af4
mov edx, 0x1c
xor edi, edi
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], edi
lea r8, [rbp + 7]
lea rcx, [rbp - 0x25]
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x32]
call qword [sym.imp.WS2_32.dll_getnameinfo]
lea rax, [rbp + 7]
mov r9d, 0x4e0c
mov qword [rsp + 0x30], rax
lea rdi, str.accept_new_connection
lea rax, str._s:__s_is_not_allowed_to_connect
mov qword [rsp + 0x28], rdi
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
xor ecx, ecx
call fcn.1400e1360
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400d6dd4
mov rcx, qword [rbp - 0x49]
xor r8d, r8d
mov qword [rsp + 0x120], rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
movzx eax, byte [rdi + 0x40]
lea r8, [rbp - 0x69]
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x41]
mov byte [rbp - 9], al
movzx eax, byte [rdi + 0x41]
mov byte [rbp - 8], al
call qword [sym.imp.WS2_32.dll_getsockname]
lea rdi, str.accept_new_connection
test eax, eax
je 0x1400d6bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018a088
mov qword [rsp + 0x30], rax
mov r9d, 0x4e18
lea rax, str._s:_getsockname___failed:__s
mov qword [rsp + 0x28], rdi
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
xor ecx, ecx
call fcn.1400e1360
movzx eax, word [rbp - 0x41]
cmp ax, 2
je 0x1400d6bc1
cmp ax, 0x17
jne 0x1400d6c20
mov rcx, qword [rbp - 0x49]
lea r9, [rbp - 0x65]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400d6c1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018a088
mov qword [rsp + 0x30], rax
mov r9d, 0x4e2f
lea rax, str._s:_setsockopt_SOL_SOCKET_SO_KEEPALIVE__failed:__s
mov qword [rsp + 0x28], rdi
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
xor ecx, ecx
call fcn.1400e1360
movzx eax, word [rbp - 0x41]
mov rcx, qword [rbx + 0x7da8]
test rcx, rcx
je 0x1400d6ca3
cmp byte [rcx], 0x31
jne 0x1400d6ca3
cmp byte [rcx + 1], 0
jne 0x1400d6ca3
mov dword [rbp - 0x61], 1
cmp ax, 2
je 0x1400d6c4a
cmp ax, 0x17
jne 0x1400d6ca3
mov rcx, qword [rbp - 0x49]
lea r9, [rbp - 0x61]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400d6ca3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018a088
mov qword [rsp + 0x30], rax
mov r9d, 0x4e42
lea rax, str._s:_setsockopt_IPPROTO_TCP_TCP_NODELAY__failed:__s
mov qword [rsp + 0x28], rdi
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
xor ecx, ecx
call fcn.1400e1360
mov rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x59]
mov edx, 0x8004667e
mov dword [rbp - 0x59], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rcx, [rbx + 0x30]
mov byte [rbp - 7], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x84]
mov ecx, dword [rbx + 0x80]
sub ecx, eax
mov eax, dword [rbx + 0x28]
test eax, eax
jne 0x1400d6d1f
xor edi, edi
cmp ecx, dword [rbx + 0xec]
jl 0x1400d6d27
lea rcx, [rbx + 0xb8]
mov dword [rbx + 0xe8], 1
lea rdx, [rbx + 0x30]
call fcn.1400e8c10
mov dword [rbx + 0xe8], edi
mov eax, dword [rbx + 0x84]
mov ecx, dword [rbx + 0x80]
sub ecx, eax
mov eax, dword [rbx + 0x28]
test eax, eax
je 0x1400d6ce2
cmp ecx, dword [rbx + 0xec]
jge 0x1400d6d7b
mov eax, dword [rbx + 0x80]
movaps xmm0, xmmword [rbp - 0x49]
cdq
idiv dword [rbx + 0xec]
movsxd rax, edx
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 0x78]
movups xmmword [rax + rcx*8], xmm0
movaps xmm1, xmmword [rbp - 0x39]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x29]
movups xmmword [rax + rcx*8 + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x19]
movups xmmword [rax + rcx*8 + 0x30], xmm1
movsd xmm0, qword [rbp - 9]
movsd qword [rax + rcx*8 + 0x40], xmm0
mov eax, dword [rbx + 0x80]
inc eax
mov dword [rbx + 0x80], eax
mov eax, dword [rbx + 0x84]
lea rcx, [rbx + 0x88]
mov eax, dword [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0xb0]
test rax, rax
je 0x1400d6db5
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rbx + 0x88]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x120]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1401702b0
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret