Function at 0x14006e0b8
Capabilities:
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x728
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rax, qword [0x1400cb390]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0x64
cmp qword [rsp + 0x30], 0
je 0x14006e530
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 2
je 0x14006e11a
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x14006e0f3
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x510], 0
mov dword [rsp + 0x300], 0
mov dword [rsp + 0xb0], 0
cmp dword [rsp + 0x510], 0x40
jae 0x14006e17d
mov eax, dword [rsp + 0x510]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x518], rcx
mov eax, dword [rsp + 0x510]
inc eax
mov dword [rsp + 0x510], eax
xor eax, eax
test eax, eax
jne 0x14006e14b
cmp dword [rsp + 0x300], 0x40
jae 0x14006e1b5
mov eax, dword [rsp + 0x300]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x308], rcx
mov eax, dword [rsp + 0x300]
inc eax
mov dword [rsp + 0x300], eax
xor eax, eax
test eax, eax
jne 0x14006e183
cmp dword [rsp + 0xb0], 0x40
jae 0x14006e1ed
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0xb8], rcx
mov eax, dword [rsp + 0xb0]
inc eax
mov dword [rsp + 0xb0], eax
xor eax, eax
test eax, eax
jne 0x14006e1bb
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x300]
lea r8, [rsp + 0x510]
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call sub.WS2_32.dll_select
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 2
jne 0x14006e333
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006e32e
mov dword [rsp + 0x48], 1
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll_accept
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14006e31f
call fcn.14006e030
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2bf20
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.14006d6a0
mov edx, 0x80
lea rcx, [rsp + 0x58]
call fcn.14006fadc
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14006fb14
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
lea rcx, [rsp + 0x58]
call fcn.14006fb14
lea rcx, [rsp + 0x58]
call fcn.14006fb48
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x58]
call fcn.14006fd00
mov r8d, reloc.WS2_32.dll_socket
mov ecx, dword [rsp + 0x4c]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x740]
lea rcx, [rsp + 0x58]
call fcn.14006faa0
jmp 0x14006e32e
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_closesocket
jmp 0x14006e530
jmp 0x14006e51d
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 3
jne 0x14006e3ba
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006e3b5
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll_accept
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x2c0]
call fcn.14006bd10
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
or eax, 0x110000
mov r8, qword [rsp + 0x740]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14006c0ac
jmp 0x14006e51d
lea rdx, [rsp + 0x300]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006e3fc
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x740]
jmp 0x14006e51d
lea rdx, [rsp + 0x510]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006e43e
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 1
mov r8d, 6
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x740]
jmp 0x14006e51d
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006e4e2
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_accept
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0xffffffffffffffff
jne 0x14006e4b3
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x740]
jmp 0x14006e4d6
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 1
mov r8d, 6
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x740]
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_closesocket
jmp 0x14006e51d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x30]
sub eax, dword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 8]
jbe 0x14006e51d
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [rsp + 0x740]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x14006e0f3
add rsp, 0x728
pop rdi
pop rsi
ret