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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rdi, qword [0x180047b40]
and dword [rbp + 0x638], 0
and dword [rbp + 0x648], 0
mov rsi, rcx
mov dword [rbp + 0x64c], 0x64
test rdi, rdi
je 0x1800151d1
mov r12d, 1
lea r15d, [r12 + 3]
cmp dword [rdi + 4], 2
jne 0x1800151ba
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
and dword [rbp + 0x3f0], 0
and dword [rbp + 0x1e0], 0
and dword [rbp - 0x30], 0
mov dword [rbp + 0x638], eax
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x3f8], rax
mov dword [rbp + 0x3f0], r12d
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1e0], r12d
mov rax, qword [rdi + 0x20]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x648]
lea r9, [rbp + 0x1e0]
lea r8, [rbp + 0x3f0]
lea rdx, [rbp - 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], r12d
call qword [sym.imp.WS2_32.dll_select]
cmp dword [rdi + 0x10], 2
mov rcx, qword [rdi + 0x20]
jne 0x180015075
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800151ba
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x640], r12d
call qword [sym.imp.WS2_32.dll_accept]
lea r8, [rbp + 0x640]
mov rcx, rax
mov edx, 0x8004667e
mov rbx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1800151c8
call fcn.180014e64
xor r9d, r9d
mov r8d, 0x2bf20
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x28], r12d
and dword [rsp + 0x20], 0
mov dword [rbp + 0x638], eax
call fcn.18001489c
lea rcx, [rsp + 0x30]
mov edx, 0x80
call fcn.18000d47c
mov edx, dword [rbp + 0x638]
lea rcx, [rsp + 0x30]
call fcn.18000d4ac
mov edx, dword [rdi + 0x14]
lea rcx, [rsp + 0x30]
call fcn.18000d4ac
lea rcx, [rsp + 0x30]
call fcn.1800146cc
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.18000d548
mov r8d, reloc.WS2_32.dll_socket
mov rcx, rax
mov edx, ebx
call rsi
lea rcx, [rsp + 0x30]
call fcn.18000d458
jmp 0x1800151ba
cmp dword [rdi + 0x10], 3
jne 0x18001510e
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800151ba
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
lea rcx, [rbp - 0x70]
mov rdx, rax
call fcn.180013e28
mov r8, rsi
mov rcx, qword [rax]
mov rdx, rax
mov qword [rsp + 0x50], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x80], rax
mov rax, qword [rdx + 0x38]
mov edx, dword [rdi + 0x14]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x50]
or edx, 0x110000
mov qword [rbp - 0x78], rax
call fcn.1800135b0
jmp 0x1800151ba
lea rdx, [rbp + 0x1e0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1800151a7
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x3f0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015142
mov dword [rdi + 4], r12d
mov r8d, 6
jmp 0x1800151ae
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015199
mov rbx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov edx, r15d
lea rcx, [rbp + 0x638]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x180015182
and dword [rdi + 4], 0
mov r8d, r15d
jmp 0x18001518c
mov dword [rdi + 4], r12d
mov r8d, 6
call rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800151ba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 8]
jbe 0x1800151ba
and dword [rdi + 4], 0
mov r8d, r15d
lea rcx, [rbp + 0x638]
mov edx, r15d
call rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
je 0x1800151d1
jmp 0x180014f19
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x730]
add rsp, 0x700
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret