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

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x608]
sub rsp, 0x708
mov rbx, qword [0x18001a788]
xor r14d, r14d
mov dword [rbp + 0x638], r14d
mov rsi, rcx
mov dword [rbp + 0x648], r14d
mov dword [rbp + 0x64c], 0x64
test rbx, rbx
je 0x180006295
mov qword [rsp + 0x700], rdi
nop dword [rax + rax]
cmp dword [rbx + 4], 2
jne 0x180006272
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x3f0], r14d
lea r9, [rbp + 0x1e0]
mov dword [rbp + 0x638], eax
lea r8, [rbp + 0x3f0]
mov dword [rbp + 0x1e0], r14d
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], r14d
xor ecx, ecx
mov rax, qword [rbx + 0x20]
mov qword [rbp + 0x3f8], rax
mov dword [rbp + 0x3f0], 1
mov rax, qword [rbx + 0x20]
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1e0], 1
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x648]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov eax, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x20]
cmp eax, 2
jne 0x18000613d
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180006272
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x640], 1
call qword [sym.imp.WS2_32.dll_accept]
lea r8, [rbp + 0x640]
mov edx, 0x8004667e
mov rcx, rax
mov rdi, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x180006284
call fcn.180005f10
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, 0x2bf20
mov dword [rbp + 0x638], eax
mov edx, eax
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.180005e60
mov edx, 0x80
lea rcx, [rsp + 0x30]
call fcn.180001790
mov edx, dword [rbp + 0x638]
lea rcx, [rsp + 0x30]
call fcn.1800017c0
mov edx, dword [rbx + 0x14]
lea rcx, [rsp + 0x30]
call fcn.1800017c0
lea rcx, [rsp + 0x30]
call fcn.1800017f0
lea rcx, [rsp + 0x30]
mov edi, eax
call fcn.180001870
mov rcx, rax
mov r8d, 0x17
mov edx, edi
call rsi
lea rcx, [rsp + 0x30]
call fcn.180001760
jmp 0x180006272
cmp eax, 3
jne 0x1800061ab
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180006272
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1800054f0
mov edx, dword [rbx + 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.1800051d0
jmp 0x180006272
lea rdx, [rbp + 0x1e0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x18000625d
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp + 0x3f0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800061e8
mov edx, 4
mov dword [rbx + 4], 1
lea r8d, [rdx + 2]
jmp 0x180006269
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp - 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18000624f
mov rdi, qword [rbx + 0x20]
xor r8d, r8d
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x20], rax
mov edx, 4
lea rcx, [rbp + 0x638]
cmp rax, 0xffffffffffffffff
jne 0x180006235
mov r8d, edx
mov dword [rbx + 4], r14d
call rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180006272
mov r8d, 6
mov dword [rbx + 4], 1
call rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180006272
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, dword [rbx + 8]
jbe 0x180006272
mov edx, 4
mov dword [rbx + 4], r14d
mov r8d, edx
lea rcx, [rbp + 0x638]
call rsi
mov rax, qword [rbx + 0x28]
mov rbx, rax
test rax, rax
jne 0x180005fd0
jmp 0x18000628d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rsp + 0x700]
add rsp, 0x708
pop r14
pop rsi
pop rbx
pop rbp
ret