Function at 0x180005d24
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 [0x180018098]
mov rsi, rcx
and dword [rbp + 0x638], 0
and dword [rbp + 0x648], 0
mov dword [rbp + 0x64c], 0x64
test rdi, rdi
je 0x180006006
mov r12d, 1
lea r15d, [r12 + 3]
cmp dword [rdi + 4], 2
jne 0x180005fec
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
and dword [rbp + 0x3f0], 0
lea r9, [rbp + 0x1e0]
and dword [rbp + 0x1e0], 0
lea r8, [rbp + 0x3f0]
and dword [rbp - 0x30], 0
lea rdx, [rbp - 0x30]
mov dword [rbp + 0x638], eax
xor ecx, ecx
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]
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 0x180005ed1
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180005fec
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 edx, 0x8004667e
mov rcx, rax
mov rbx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x180005ffd
call fcn.180005cc0
xor r9d, r9d
mov dword [rsp + 0x28], r12d
and dword [rsp + 0x20], 0
mov r8d, 0x2bf20
mov edx, eax
mov dword [rbp + 0x638], eax
mov rcx, rbx
call fcn.180005c20
mov edx, 0x80
lea rcx, [rsp + 0x30]
call fcn.18000270c
mov edx, dword [rbp + 0x638]
lea rcx, [rsp + 0x30]
call fcn.18000273c
mov edx, dword [rdi + 0x14]
lea rcx, [rsp + 0x30]
call fcn.18000273c
lea rcx, [rsp + 0x30]
call fcn.18000276c
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.1800027cc
mov rcx, rax
mov r8d, 0x17
mov edx, ebx
call rsi
lea rcx, [rsp + 0x30]
call fcn.1800026e8
jmp 0x180005fec
cmp dword [rdi + 0x10], 3
jne 0x180005f40
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180005fec
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1800055f4
mov edx, dword [rdi + 0x14]
lea rcx, [rsp + 0x50]
or edx, 0x110000
mov r8, rsi
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
call fcn.18000532c
jmp 0x180005fec
lea rdx, [rbp + 0x1e0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180005fd9
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x3f0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180005f74
mov dword [rdi + 4], r12d
mov r8d, 6
jmp 0x180005fe0
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180005fcb
mov rbx, qword [rdi + 0x20]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 0x20], rax
mov edx, r15d
lea rcx, [rbp + 0x638]
cmp rax, 0xffffffffffffffff
jne 0x180005fb4
and dword [rdi + 4], 0
mov r8d, r15d
jmp 0x180005fbe
mov dword [rdi + 4], r12d
mov r8d, 6
call rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180005fec
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 8]
jbe 0x180005fec
and dword [rdi + 4], 0
mov r8d, r15d
mov edx, r15d
lea rcx, [rbp + 0x638]
call rsi
mov rax, qword [rdi + 0x28]
mov rdi, rax
test rax, rax
je 0x180006006
jmp 0x180005d75
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