Function at 0x1400ba530
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
mov qword [rsp + 0x40], rcx
mov esi, 0x7fffffff
mov qword [rsp + 0x30], rdi
cmp r9d, esi
mov r15, r8
mov r14, rdx
mov r13, rcx
cmovl esi, r9d
mov r12d, edi
cmp rcx, 0xffffffffffffffff
jne 0x1400ba5ba
cmp rdx, rcx
jne 0x1400ba5ba
cmp r8, rcx
jne 0x1400ba5ba
test esi, esi
je 0x1400ba5b3
jns 0x1400ba5ab
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, r13
mov eax, edi
jmp 0x1400ba897
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x1400ba897
mov qword [rsp + 0x698], rbx
test esi, esi
jle 0x1400ba5d3
mov r12d, esi
call fcn.1400afd10
mov rbx, rax
jmp 0x1400ba5d8
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x50], edi
mov r9d, edi
mov ecx, 1
cmp r13, 0xffffffffffffffff
je 0x1400ba5fd
mov qword [rsp + 0x58], r13
mov r9d, ecx
mov dword [rsp + 0x50], ecx
mov qword [rbp + 0x378], r13
mov rax, 0xffffffffffffffff
mov r10, r13
cmove r10, rax
mov edx, r9d
mov dword [rbp + 0x370], edx
mov r8d, r9d
cmp r14, rax
je 0x1400ba6ae
mov ecx, edi
test r9d, r9d
je 0x1400ba637
mov eax, ecx
cmp qword [rsp + rax*8 + 0x58], r14
je 0x1400ba637
inc ecx
cmp ecx, r9d
jb 0x1400ba627
cmp ecx, r9d
jne 0x1400ba656
cmp r9d, 0x40
jae 0x1400ba656
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], r14
mov r9d, dword [rsp + 0x50]
inc r9d
mov dword [rsp + 0x50], r9d
mov ecx, edi
test r8d, r8d
je 0x1400ba673
nop dword [rax]
mov eax, ecx
cmp qword [rbp + rax*8 + 0x378], r14
je 0x1400ba673
inc ecx
cmp ecx, r8d
jb 0x1400ba660
mov dword [rbp + 0x370], edx
cmp ecx, r8d
jne 0x1400ba6a2
mov dword [rbp + 0x370], edx
cmp r8d, 0x40
jae 0x1400ba6a2
mov eax, ecx
mov qword [rbp + rax*8 + 0x378], r14
mov edx, dword [rbp + 0x370]
inc edx
mov dword [rbp + 0x370], edx
cmp r14, r10
mov ecx, 1
cmova r10, r14
mov dword [rbp + 0x160], edi
cmp r15, 0xffffffffffffffff
je 0x1400ba702
mov dword [rbp + 0x160], ecx
mov ecx, edi
mov qword [rbp + 0x168], r15
test edx, edx
je 0x1400ba6e2
nop dword [rax]
mov eax, ecx
cmp qword [rbp + rax*8 + 0x378], r15
je 0x1400ba6e2
inc ecx
cmp ecx, edx
jb 0x1400ba6d0
cmp ecx, edx
jne 0x1400ba6fb
cmp edx, 0x40
jae 0x1400ba6fb
mov eax, ecx
mov qword [rbp + rax*8 + 0x378], r15
inc dword [rbp + 0x370]
cmp r15, r10
cmova r10, r15
test esi, esi
lea r13, [rsp + 0x30]
cmovs r13, rdi
inc r10d
mov dword [rsp + 0x38], r10d
test esi, esi
jle 0x1400ba746
mov eax, 0x10624dd3
mov ecx, r12d
imul r12d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1400ba74d
jne 0x1400ba74d
mov qword [rsp + 0x30], rdi
cmp dword [rbp + 0x160], edi
lea r8, [rbp + 0x160]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r13
cmove r8, rdi
mov ecx, r10d
test r9d, r9d
lea r9, [rbp + 0x370]
cmove rdx, rdi
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400ba7da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1400ba79d
cmp dword [0x14019c904], edi
jne 0x1400ba7de
cmp eax, 0x2714
jne 0x1400ba7de
test esi, esi
jg 0x1400ba7b0
mov r9d, dword [rsp + 0x50]
mov r10d, dword [rsp + 0x38]
jmp 0x1400ba715
call fcn.1400afd10
mov rcx, rax
mov rdx, rbx
call fcn.1400afc80
mov r12d, esi
sub r12d, eax
test r12d, r12d
jle 0x1400ba7ec
mov r9d, dword [rsp + 0x50]
mov r10d, dword [rsp + 0x38]
jmp 0x1400ba715
test eax, eax
jns 0x1400ba7ea
mov rax, 0xffffffffffffffff
jmp 0x1400ba88f
jne 0x1400ba7f3
xor eax, eax
jmp 0x1400ba88f
mov rbx, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x1400ba82b
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea rdx, [rbp + 0x370]
mov eax, 1
mov rcx, rbx
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ba82b
or edi, 4
cmp r14, 0xffffffffffffffff
je 0x1400ba85b
lea rdx, [rsp + 0x50]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ba845
or edi, 8
lea rdx, [rbp + 0x370]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ba85b
or edi, 4
cmp r15, 0xffffffffffffffff
je 0x1400ba88d
lea rdx, [rbp + 0x160]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ba877
or edi, 2
lea rdx, [rbp + 0x370]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ba88d
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x698]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14010f620
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret