Function at 0x1400a09dc
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a8]
sub rsp, 0x8a8
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rbp + 0x790], rax
movsxd r15, dword [rbp + 0x818]
xor esi, esi
cmp dword [rcx], esi
mov r12, r9
mov r14, qword [rbp + 0x810]
mov r13, rcx
cmove esi, dword [rbp + 0x820]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rcx
test r15d, r15d
jne 0x1400a0a56
lea edx, [r15 + 1]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SleepEx]
or r12d, 0xffffffff
jmp 0x1400a0f99
mov edi, 1
mov r9d, esi
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
movsxd rbx, eax
cmp ebx, 0xc0
jne 0x1400a0a86
cmp dword [r13 + 0x510], 0
je 0x1400a0a5b
lea rcx, [rsp + 0x48]
call fcn.1400a9b14
cmp ebx, 0xc0
je 0x1400a0b5d
test ebx, ebx
js 0x1400a0b5d
cmp ebx, r15d
jge 0x1400a0b5d
mov rsi, qword [r14 + rbx*8 + 0x200]
test rsi, rsi
je 0x1400a0b5d
mov rax, qword [r14 + rbx*8]
mov qword [r13 + 0x920], rax
mov qword [r13 + 0x928], rsi
and qword [r14 + rbx*8 + 0x200], 0
and qword [r14 + rbx*8], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400a0b4d
mov r9, qword [rsi + 0x10]
xor r8d, r8d
mov rdx, qword [r13 + 0x920]
mov rcx, r13
call rax
test eax, eax
jne 0x1400a0b4d
cmp qword [r13 + 0x920], 0
je 0x1400a0b38
mov rcx, rsi
call fcn.14009fccc
test eax, eax
je 0x1400a0b38
mov r8, qword [r13 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___REMOVED_
mov ecx, edi
call fcn.1400aa470
mov rcx, qword [rsi]
and qword [rsi + 0x10], 0
call fcn.1400a8440
jmp 0x1400a0b4d
mov r8, qword [r13 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___________p_
mov ecx, edi
call fcn.1400aa470
and qword [r13 + 0x920], 0
and qword [r13 + 0x928], 0
mov rsi, r15
cmp ebx, 0x102
jne 0x1400a0be2
test r15d, r15d
jle 0x1400a0c50
lea rbx, [r14 + 0x200]
mov r14d, dword [rsp + 0x4c]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a0bd7
mov edx, dword [rcx + 0x18]
test edx, edx
jne 0x1400a0b91
cmp dword [rcx + 0x1c], edx
je 0x1400a0bd7
cmp dword [rsp + 0x48], edx
jl 0x1400a0b9d
jne 0x1400a0bd7
cmp r14d, dword [rcx + 0x1c]
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400a0bc3
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [rbx - 0x200]
mov rcx, r13
call rax
test eax, eax
jne 0x1400a0bcb
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400a8440
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rsi, rdi
jne 0x1400a0b7d
jmp 0x1400a0c50
or r15d, 0xffffffff
cmp ebx, r15d
jne 0x1400a0c50
test rsi, rsi
jle 0x1400a0c50
lea rbx, [r14 + 0x200]
cmp qword [rbx], 0
je 0x1400a0c47
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r15d
jne 0x1400a0c47
mov r9, qword [rbx]
mov rax, qword [r9 + 8]
test rax, rax
je 0x1400a0c30
mov r9, qword [r9 + 0x10]
mov r8d, edi
mov rdx, qword [rbx - 0x200]
mov rcx, r13
call rax
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400a8440
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rsi, rdi
jne 0x1400a0bf7
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
xor esi, esi
mov r9, r12
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov qword [rsp + 0x20], rax
lea ecx, [rsi + 0x40]
call qword [sym.imp.WS2_32.dll_select]
mov r12d, eax
cmp eax, 0xffffffff
jne 0x1400a0f92
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x200
mov r15d, esi
call fcn.14020e630
mov r11, qword [rsp + 0x40]
mov r14d, esi
mov dword [rsp + 0x60], esi
mov dword [rbp + 0x380], esi
mov ecx, dword [r11]
test ecx, ecx
jle 0x1400a0d26
lea rsi, [rbp + 0x590]
lea rbx, [r11 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x380]
mov qword [rbp + 0x178], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x170], edi
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0d0b
mov rax, qword [rbx]
add r15d, edi
mov qword [rsi], rax
add rsi, 8
mov r11, qword [rsp + 0x40]
add r14d, edi
add rbx, 8
mov ecx, dword [r11]
cmp r14d, ecx
jl 0x1400a0cc1
mov rbx, qword [rsp + 0x38]
xor esi, esi
movsxd r10, r15d
test r15d, r15d
jle 0x1400a0d87
mov r9, rsi
mov r8d, esi
test ecx, ecx
je 0x1400a0d7f
mov rdx, qword [rbp + r9*8 + 0x590]
mov eax, r8d
cmp qword [r11 + rax*8 + 8], rdx
je 0x1400a0d54
add r8d, edi
cmp r8d, ecx
jb 0x1400a0d40
jmp 0x1400a0d7f
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x1400a0d7a
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [r11 + rdx*8 + 8]
mov r8d, edx
mov qword [r11 + rcx*8 + 8], rax
mov ecx, dword [r11]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x1400a0d5c
dec ecx
mov dword [r11], ecx
add r9, rdi
cmp r9, r10
jl 0x1400a0d31
mov ecx, dword [rbx]
mov r15d, esi
mov dword [rbp + 0x170], esi
mov r14d, esi
test ecx, ecx
jle 0x1400a0e0b
mov r13, qword [rsp + 0x38]
lea rsi, [rbp + 0x590]
add rbx, 8
mov rax, qword [rbx]
lea r9, [rbp + 0x380]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x60], edi
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0def
mov rax, qword [rbx]
add r15d, edi
mov qword [rsi], rax
add rsi, 8
mov ecx, dword [r13]
add r14d, edi
add rbx, 8
cmp r14d, ecx
jl 0x1400a0da9
mov r13, qword [rsp + 0x58]
xor esi, esi
mov rbx, qword [rsp + 0x38]
movsxd r10, r15d
test r15d, r15d
jle 0x1400a0e6a
mov r9, rsi
mov r8d, esi
test ecx, ecx
je 0x1400a0e62
mov rdx, qword [rbp + r9*8 + 0x590]
mov eax, r8d
cmp qword [rbx + rax*8 + 8], rdx
je 0x1400a0e39
add r8d, edi
cmp r8d, ecx
jb 0x1400a0e25
jmp 0x1400a0e62
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x1400a0e5e
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [rbx + rdx*8 + 8]
mov r8d, edx
mov qword [rbx + rcx*8 + 8], rax
mov ecx, dword [rbx]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x1400a0e41
dec ecx
mov dword [rbx], ecx
add r9, rdi
cmp r9, r10
jl 0x1400a0e16
mov r11, qword [rsp + 0x50]
mov r14d, esi
mov dword [rbp + 0x170], esi
mov r15d, esi
mov dword [rsp + 0x60], esi
mov eax, dword [r11]
test eax, eax
jle 0x1400a0ef1
lea rsi, [rbp + 0x590]
lea rbx, [r11 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x380]
mov qword [rbp + 0x388], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x380], edi
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0edb
mov rax, qword [rbx]
add r14d, edi
mov qword [rsi], rax
add rsi, 8
mov r11, qword [rsp + 0x50]
add r15d, edi
add rbx, 8
mov eax, dword [r11]
cmp r15d, eax
jl 0x1400a0e91
xor esi, esi
movsxd r10, r14d
test r14d, r14d
jle 0x1400a0f5b
mov r9, rsi
mov ecx, eax
mov r8d, esi
mov eax, ecx
test ecx, ecx
je 0x1400a0f51
mov rdx, qword [rbp + r9*8 + 0x590]
mov eax, r8d
cmp qword [r11 + rax*8 + 8], rdx
je 0x1400a0f25
add r8d, edi
cmp r8d, ecx
jb 0x1400a0f0f
mov eax, ecx
jmp 0x1400a0f51
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x1400a0f4b
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [r11 + rdx*8 + 8]
mov r8d, edx
mov qword [r11 + rcx*8 + 8], rax
mov ecx, dword [r11]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x1400a0f2d
lea eax, [rcx - 1]
mov dword [r11], eax
add r9, rdi
mov ecx, eax
cmp r9, r10
jl 0x1400a0efe
mov rdx, qword [rsp + 0x40]
cmp dword [rdx], esi
ja 0x1400a0f72
mov r8, qword [rsp + 0x38]
cmp dword [r8], esi
ja 0x1400a0f72
test eax, eax
je 0x1400a0f92
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9, r11
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
mov r12d, eax
mov dword [r13 + 0x510], esi
mov eax, r12d
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1401d9e80
add rsp, 0x8a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret