Function at 0x180006a60
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800a31a8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x2d0]
call fcn.180005b10
movzx eax, al
test eax, eax
je 0x180006d1a
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x34], 0
jmp 0x180006aba
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x34], eax
jae 0x180006ae1
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
cmp qword [rsp + rax*8 + 0xa8], rcx
jne 0x180006adf
jmp 0x180006ae1
jmp 0x180006ab0
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x34], eax
jne 0x180006b1c
cmp dword [rsp + 0xa0], 0x40
jae 0x180006b1c
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
mov qword [rsp + rax*8 + 0xa8], rcx
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0xa0], eax
xor eax, eax
test eax, eax
jne 0x180006aa6
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov ecx, 1
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x44], eax
mov byte [rsp + 0x30], 0
cmp dword [rsp + 0x44], 0
jle 0x180006b97
lea rdx, [rsp + 0xa0]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x180006b95
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2d0]
call fcn.180006860
mov byte [rsp + 0x30], al
jmp 0x180006c00
cmp dword [rsp + 0x44], 0
jge 0x180006c00
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x4c], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 0x1007
mov edx, 0xffff
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x180006be4
call fcn.18001d9b0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180006c00
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov dword [rax + 0x34], 3
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x180006cfe
call fcn.180005210
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov dword [rsp + 0x54], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
call fcn.180005090
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x180006c7d
call fcn.180005210
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
call fcn.1800050a0
jmp 0x180006cdd
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180006cd1
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
jmp 0x180006cdd
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov edx, 0x20
mov rcx, qword [rsp + 0x98]
call fcn.180069ffc
jmp 0x180006d15
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2d0]
call fcn.180005b40
call fcn.180005960
jmp 0x180006a7e
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800698b0
add rsp, 0x2c8
ret