Function at 0x140136a60
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140491ab8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, r8
mov r14, rcx
lea r13, [rcx + 0x30]
mov qword [rsp + 0x30], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bpl, 1
mov byte [rsp + 0x38], bpl
cmp byte [r14 + 0x198], 0
jne 0x140136e25
lea r15, [r14 + 0x148]
mov rax, qword [r15]
xor esi, esi
mov dword [rax], esi
mov qword [r15 + 0x10], 0xffffffffffffffff
mov rax, qword [r14 + 0x160]
mov dword [rax], esi
mov qword [r14 + 0x170], 0xffffffffffffffff
mov rax, qword [r13 + 0x148]
mov dword [rax], esi
mov qword [r13 + 0x158], 0xffffffffffffffff
mov rdi, qword [r14 + 0x58]
mov ecx, esi
mov rbx, qword [r15]
mov edx, dword [rbx]
test edx, edx
je 0x140136b13
nop
mov eax, ecx
cmp qword [rbx + rax*8 + 8], rdi
je 0x140136b89
inc ecx
cmp ecx, edx
jb 0x140136b00
inc edx
mov ecx, dword [r15 + 8]
cmp edx, ecx
jbe 0x140136b7d
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.14035b61c
mov rbx, rax
mov rcx, qword [r15]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r15]
cmp dword [r8], edx
jbe 0x140136b6e
nop dword [rax + rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + rbx + 8], rax
inc edx
mov r8, qword [r15]
cmp edx, dword [r8]
jb 0x140136b50
mov rcx, r8
call fcn.14035b978
mov qword [r15], rbx
mov dword [r15 + 8], ebp
mov eax, dword [rbx]
mov qword [rbx + rax*8 + 8], rdi
mov rax, qword [r15]
inc dword [rax]
mov rdi, rsi
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x140136bb6
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x140136bb6
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140136ba0
lea rbx, [r14 + 0x158]
lea rsi, [r14 + 0x68]
mov rbp, r15
mov r13d, 3
nop word [rax + rax]
mov rdx, rsi
mov rcx, rbp
call fcn.140135630
cmp qword [rbx], rdi
cmova rdi, qword [rbx]
add rbp, 0x18
add rsi, 0x38
lea rbx, [rbx + 0x18]
sub r13, 1
jne 0x140136bd0
lea rcx, [r14 + 0x160]
lea rdx, [r14 + 0x110]
call fcn.140135630
mov rax, qword [r14 + 0x170]
cmp rax, rdi
cmova rdi, rax
lea rsi, [r14 + 0x178]
lea rdx, [r14 + 0x110]
mov rcx, rsi
call fcn.140135630
mov rax, qword [r14 + 0x188]
cmp rax, rdi
cmova rdi, rax
mov ecx, 0x11e1a300
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x140136c66
nop word [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 0x140136c50
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x58], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x5c], ecx
mov r13, qword [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bpl, bpl
mov byte [rsp + 0x38], bpl
mov r9, qword [rsi]
mov r8, qword [r14 + 0x160]
mov rdx, qword [r15]
test rdx, rdx
jne 0x140136ceb
test r8, r8
jne 0x140136ceb
test r9, r9
jne 0x140136ceb
mov eax, 0x10624dd3
imul dword [rsp + 0x5c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x58], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x140136d90
cmp dword [rsp + 0x58], 0
jne 0x140136d0c
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x5c], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
sets dl
lea rcx, [rsp + 0x40]
call fcn.140131be0
mov ebx, edi
test edi, edi
jle 0x140136d90
mov rdx, qword [r15]
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140136d90
lea rcx, [r14 + 0x58]
call fcn.140136380
test al, al
jne 0x140136d88
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
mov byte [r14 + 0x198], 1
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [r14 + 0x1a8]
call fcn.140134860
movzx ebp, byte [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea ebx, [rdi - 1]
test bpl, bpl
jne 0x140136da1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bpl, 1
mov byte [rsp + 0x38], bpl
test ebx, ebx
jle 0x140136dfb
mov r8, r12
lea rdx, [r14 + 0x110]
mov rcx, rsi
call fcn.140135710
mov r8, r12
lea rdx, [r14 + 0x110]
lea rcx, [r14 + 0x160]
call fcn.140135710
mov ebx, 2
lea rdi, [r14 + 0xd8]
nop dword [rax]
mov r8, r12
mov rdx, rdi
mov rcx, rsi
call fcn.140135710
sub rsi, 0x18
sub rdi, 0x38
sub ebx, 1
jns 0x140136de0
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x140136e25
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140136e10
test bpl, bpl
je 0x140136e33
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14035b0c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret