Function at 0x180006f20
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 0x1800071d9
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x34], 0
jmp 0x180006f7a
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x34], eax
jae 0x180006fa1
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
cmp qword [rsp + rax*8 + 0xa8], rcx
jne 0x180006f9f
jmp 0x180006fa1
jmp 0x180006f70
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x34], eax
jne 0x180006fdc
cmp dword [rsp + 0xa0], 0x40
jae 0x180006fdc
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 0x180006f66
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0xa0]
xor edx, edx
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 0x180007056
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 0x180007054
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2d0]
call fcn.180006d40
mov byte [rsp + 0x30], al
jmp 0x1800070bf
cmp dword [rsp + 0x44], 0
jge 0x1800070bf
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 0x1800070a3
call fcn.18001d9b0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800070bf
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 0x1800071bd
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 0x18000713c
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 0x18000719c
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 0x180007190
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 0x18000719c
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 0x1800071d4
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2d0]
call fcn.180005b40
call fcn.180005960
jmp 0x180006f3e
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800698b0
add rsp, 0x2c8
ret