Function at 0x1400fd650
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbp, rcx
lea rdx, [rcx + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400c6570
nop
cmp byte [rbp + 0x198], 0
jne 0x1400fdbb5
lea rdi, [rbp + 0x148]
mov rax, qword [rdi]
xor esi, esi
mov dword [rax], esi
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rax, qword [rbp + 0x160]
mov dword [rax], esi
mov qword [rbp + 0x170], 0xffffffffffffffff
mov rax, qword [rbp + 0x178]
mov dword [rax], esi
mov qword [rbp + 0x188], 0xffffffffffffffff
mov rbx, qword [rbp + 0x58]
mov ecx, esi
mov r8, qword [rdi]
mov edx, dword [r8]
test edx, edx
je 0x1400fd6ef
nop dword [rax + rax]
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x1400fd708
inc ecx
cmp ecx, edx
jb 0x1400fd6e0
inc edx
mov rcx, rdi
call fcn.1400fbd50
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rdi]
inc dword [rax]
mov r12, rsi
mov rbx, qword [rbp + 0x190]
test rbx, rbx
je 0x1400fd72d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1400fd72d
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400fd717
mov rsi, rdi
lea r15, [rbp + 0x70]
mov r13d, 3
nop word [rax + rax]
mov rax, qword [r15]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400fd7d7
nop
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r14, qword [rsi]
mov edx, dword [r14]
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x1400fd7bd
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov ebp, edx
lea rcx, [rdx*8 + 8]
call fcn.1402398dc
mov r14, rax
mov rcx, qword [rsi]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [rsi]
cmp dword [r8], edx
jbe 0x1400fd7af
lea rcx, [rdx*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + r14 + 8], rax
inc edx
mov r8, qword [rsi]
cmp edx, dword [r8]
jb 0x1400fd793
mov rcx, r8
call fcn.140239c64
mov qword [rsi], r14
mov dword [rsi + 8], ebp
mov rcx, qword [rdi + 0x10]
mov eax, dword [r14]
mov qword [r14 + rax*8 + 8], rcx
mov rax, qword [rsi]
inc dword [rax]
cmp rbx, qword [r15]
jne 0x1400fd750
cmp qword [rsi + 0x10], r12
cmova r12, qword [rsi + 0x10]
add r15, 0x38
add rsi, 0x18
sub r13, 1
jne 0x1400fd740
mov rsi, qword [rsp + 0x90]
lea r15, [rsi + 0x160]
lea r14, [rsi + 0x110]
mov rdx, r14
mov rcx, r15
call fcn.1400fbae0
mov rax, qword [rsi + 0x170]
cmp rax, r12
cmova r12, rax
lea r13, [rsi + 0x178]
mov rdx, r14
mov rcx, r13
call fcn.1400fbae0
mov rax, qword [rsi + 0x188]
cmp rax, r12
cmova r12, rax
mov ecx, 1
mov rbx, qword [rsi + 0x190]
test rbx, rbx
je 0x1400fd868
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 0x1400fd852
mov eax, 0x431bde83
imul ecx
mov r8d, edx
sar r8d, 0x12
mov eax, r8d
shr eax, 0x1f
add r8d, eax
mov dword [rsp + 0xa8], r8d
imul eax, r8d, 0xf4240
sub ecx, eax
mov dword [rsp + 0xac], ecx
mov rbp, qword [rsp + 0x30]
movzx edi, byte [rsp + 0x38]
test dil, dil
je 0x1400fd8c5
mov rcx, rbp
call sub.KERNEL32.dll_LeaveCriticalSection
xor dil, dil
mov byte [rsp + 0x38], dil
mov ecx, dword [rsp + 0xac]
mov r8d, dword [rsp + 0xa8]
mov r9, qword [r13]
mov rdx, qword [r15]
mov r10, qword [rsi + 0x148]
test r10, r10
jne 0x1400fd911
test rdx, rdx
jne 0x1400fd911
test r9, r9
jne 0x1400fd911
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, r8d, 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x1400fd9dc
test r8d, r8d
jne 0x1400fd92f
lea eax, [rcx - 1]
mov r8d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r8d
mov dword [rsp + 0xac], ecx
lea ecx, [r12 + 1]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1400fd974
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400ad280
jmp 0x1400fd9dc
test ebx, ebx
jle 0x1400fd9dc
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x148]
lea r12, [rax + 0x58]
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400fd9dc
mov rcx, r12
call fcn.1400fd060
test al, al
jne 0x1400fd9d9
test dil, dil
jne 0x1400fd9ba
mov rcx, rbp
call sub.KERNEL32.dll_EnterCriticalSection
mov dil, 1
mov byte [rsp + 0x38], dil
mov rax, qword [rsp + 0x90]
mov byte [rax + 0x198], 1
lea rdx, [rax + 0x1a8]
mov rcx, qword [rax + 0x28]
call fcn.1400f7b60
lea esi, [rbx - 1]
test dil, dil
jne 0x1400fd9ee
mov rcx, rbp
call sub.KERNEL32.dll_EnterCriticalSection
mov byte [rsp + 0x38], 1
mov r12, qword [rsp + 0xa0]
test esi, esi
jle 0x1400fdb89
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.1400fbbc0
mov r8, r12
mov rdx, r14
mov rcx, r15
call fcn.1400fbbc0
mov r15d, 2
mov r14, qword [rsp + 0x90]
add r14, 0x100
nop
xor ebp, ebp
mov rcx, qword [r13]
cmp dword [rcx], ebp
jbe 0x1400fdb77
nop
mov r8, qword [rcx + rbp*8 + 8]
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400fdb69
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [r14]
mov rbx, qword [rax + rdx*8]
cmp rbx, qword [r14 - 0x20]
je 0x1400fdb69
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rbx, rcx
je 0x1400fdb69
nop
cmp qword [rbx + 0x10], r8
je 0x1400fda96
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rcx
jne 0x1400fda80
jmp 0x1400fdb69
cmp rbx, qword [r14 - 0x20]
je 0x1400fdb69
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x1400fdaf7
nop dword [rax]
mov rax, qword [rdi + 0x58]
mov rcx, rdi
call rax
test eax, eax
je 0x1400fdb69
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400fdae3
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400fdadb
mov qword [rbx + 0x20], rax
mov qword [rcx + 0x20], 0
mov rdx, rdi
mov rcx, r12
call fcn.1400c6430
mov rdi, qword [rbx + 0x18]
test rdi, rdi
jne 0x1400fdab0
xor edx, edx
mov rax, qword [rbx + 0x10]
div qword [r14 + 8]
shl rdx, 4
mov rcx, qword [r14]
add rcx, rdx
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
cmp rbx, r8
jne 0x1400fdb3a
cmp rbx, rax
jne 0x1400fdb32
mov rax, qword [r14 - 0x20]
mov qword [rcx + 8], rax
mov rcx, qword [r14]
mov rax, qword [rcx + rdx + 8]
mov qword [rcx + rdx], rax
jmp 0x1400fdb47
mov rax, qword [r8]
mov qword [rcx], rax
jmp 0x1400fdb47
cmp rbx, rax
jne 0x1400fdb47
mov rax, qword [rax + 8]
mov qword [rcx + 8], rax
mov qword [rbx + 0x10], 0
lea rcx, [r14 - 0x10]
mov rdx, qword [rcx]
mov r9, rbx
lea r8, [r14 - 0x20]
mov rdx, qword [rdx]
call fcn.140100930
dec qword [r14 - 0x28]
inc ebp
mov rcx, qword [r13]
cmp ebp, dword [rcx]
jb 0x1400fda40
sub r13, 0x18
sub r14, 0x38
sub r15, 1
jns 0x1400fda30
mov rax, qword [rsp + 0x90]
mov rbx, qword [rax + 0x190]
test rbx, rbx
je 0x1400fdbb5
nop dword [rax]
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400fdba0
lea rcx, [rsp + 0x30]
call fcn.1400c6560
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret