Function at 0x14007db20
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rsi, r8
mov rbp, rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13b, 1
mov byte [rsp + 0x48], r13b
cmp byte [rbp + 0x198], 0
jne 0x14007e07a
lea rdi, [rbp + 0x148]
mov rax, qword [rdi]
xor r14d, r14d
mov dword [rax], r14d
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rax, qword [rbp + 0x160]
mov dword [rax], r14d
mov qword [rbp + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], r14d
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [rbp + 0x58]
mov ecx, r14d
mov r8, qword [rdi]
mov edx, dword [r8]
test edx, edx
je 0x14007dbd1
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14007dbea
inc ecx
cmp ecx, edx
jb 0x14007dbc2
inc edx
mov rcx, rdi
call fcn.14007aa40
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rdi]
inc dword [rax]
mov r13, r14
mov rbx, qword [rbp + 0x190]
test rbx, rbx
je 0x14007dc16
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14007dc16
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14007dc00
mov r14, rdi
add rbp, 0x70
mov ecx, 3
mov qword [rsp + 0x38], rcx
nop word [rax + rax]
mov rax, qword [rbp]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14007dcdb
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r15, qword [r14]
mov edx, dword [r15]
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x14007dcbb
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r12d, edx
lea rcx, [rdx*8 + 8]
call fcn.14028bcc4
mov r15, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r14]
cmp dword [r8], edx
jbe 0x14007dcac
nop word [rax + rax]
lea rcx, [rdx*8]
mov rax, qword [r8 + rcx + 8]
mov qword [rcx + r15 + 8], rax
inc edx
mov r8, qword [r14]
cmp edx, dword [r8]
jb 0x14007dc90
mov rcx, r8
call fcn.14028bd00
mov qword [r14], r15
mov dword [r14 + 8], r12d
mov rcx, qword [rdi + 0x10]
mov eax, dword [r15]
mov qword [r15 + rax*8 + 8], rcx
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [rbp]
jne 0x14007dc40
mov rcx, qword [rsp + 0x38]
cmp qword [r14 + 0x10], r13
cmova r13, qword [r14 + 0x10]
add rbp, 0x38
add r14, 0x18
sub rcx, 1
mov qword [rsp + 0x38], rcx
jne 0x14007dc30
mov r15, qword [rsp + 0xb0]
lea r14, [r15 + 0x160]
lea rdi, [r15 + 0x110]
mov rdx, rdi
mov rcx, r14
call fcn.14007a830
mov rax, qword [r15 + 0x170]
cmp rax, r13
cmova r13, rax
lea r12, [r15 + 0x178]
mov rdx, rdi
mov rcx, r12
call fcn.14007a830
mov rax, qword [r15 + 0x188]
cmp rax, r13
cmova r13, rax
mov ecx, 1
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x14007dd76
nop dword [rax + rax]
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14007dd60
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0xc8], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0xcc], ecx
lea rcx, [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bpl, bpl
mov byte [rsp + 0xb8], bpl
mov byte [rsp + 0x48], bpl
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0
mov r9, qword [r12]
mov r8, qword [r14]
mov rdx, qword [r15 + 0x148]
test rdx, rdx
jne 0x14007de2d
test r8, r8
jne 0x14007de2d
test r9, r9
jne 0x14007de2d
mov eax, 0x10624dd3
imul dword [rsp + 0xcc]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0xc8], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [0x14048a960]
lea rcx, [rsp + 0x50]
call fcn.140077ec0
xor ebx, ebx
jmp 0x14007def0
cmp dword [rsp + 0xc8], 0
jne 0x14007de57
mov ecx, dword [rsp + 0xcc]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0xcc], ecx
lea ecx, [r13 + 1]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rsp + 0x50]
call fcn.14007aad0
test ebx, ebx
jle 0x14007def0
mov rdx, qword [r15 + 0x148]
mov r15, qword [rsp + 0xb0]
add r15, 0x58
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14007def0
mov rcx, r15
call fcn.14007d0b0
test al, al
jne 0x14007dee9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bpl, 1
mov byte [rsp + 0xb8], bpl
mov byte [rsp + 0x48], bpl
mov rcx, r15
call fcn.14007d000
mov qword [r15 + 8], 0xffffffffffffffff
mov qword [r15], 0xffffffffffffffff
mov rcx, r15
call fcn.14007c4d0
dec ebx
test bpl, bpl
jne 0x14007df05
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13b, 1
mov byte [rsp + 0x48], r13b
jmp 0x14007df0e
movzx r13d, byte [rsp + 0xb8]
test ebx, ebx
jle 0x14007e046
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.14007a910
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.14007a910
mov r15d, 2
mov rbp, qword [rsp + 0xb0]
add rbp, 0xe0
nop word [rax + rax]
xor r14d, r14d
mov rcx, qword [r12]
cmp dword [rcx], r14d
jbe 0x14007e034
mov r8, qword [rcx + r14*8 + 8]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14007e024
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [rbp + 0x20]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [rbp]
je 0x14007e024
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rdi, rcx
je 0x14007e024
cmp qword [rdi + 0x10], r8
je 0x14007dfb3
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rcx
jne 0x14007dfa0
jmp 0x14007e024
cmp rdi, qword [rbp]
je 0x14007e024
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14007e018
mov rax, qword [rbx + 0x60]
mov rcx, rbx
call rax
test eax, eax
je 0x14007e024
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14007dff1
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14007dfe9
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x14007e008
mov qword [rax + 0x20], rbx
jmp 0x14007e00b
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x14007dfc2
lea rcx, [rbp - 8]
mov rdx, rdi
call fcn.1400d4da0
inc r14d
mov rcx, qword [r12]
cmp r14d, dword [rcx]
jb 0x14007df60
sub r12, 0x18
sub rbp, 0x38
sub r15, 1
jns 0x14007df50
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rax + 0x190]
test rbx, rbx
je 0x14007e075
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14007e060
mov rbx, qword [rsp + 0x30]
test r13b, r13b
je 0x14007e088
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret