Function at 0x1400a0340
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x698
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x660], rax
movaps xmmword [rsp + 0x670], xmm6
movaps xmm6, xmm1
call fcn.140044f40
mov rax, qword [0x140167558]
test rax, rax
je 0x1400a038e
cmp byte [0x14016b0c0], 0
jne 0x1400a038e
mov byte [0x14016b0c0], 1
call rax
mov byte [0x14016b0c0], 0
cmp dword [0x14016b088], 0
je 0x1400a04e9
mov qword [rsp + 0x680], r14
lea rcx, [rsp + 0x40]
xor r14d, r14d
lea rdx, [0x14016aa70]
mov r8d, 0x618
mov qword [rsp + 0x30], r14
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [0x14016aa68]
lea rax, [rsp + 0x30]
inc ecx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
lea r8, [rsp + 0x248]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1400a04d2
cmp dword [0x14016b088], r14d
mov qword [rsp + 0x690], rsi
mov esi, r14d
jle 0x1400a04c5
mov qword [rsp + 0x6a0], rbx
mov qword [rsp + 0x6b0], rbp
mov qword [rsp + 0x688], rdi
mov edi, r14d
nop word [rax + rax]
mov rax, qword [0x14016b090]
lea rdx, [rsp + 0x40]
movzx ebx, r14w
movsxd rbp, dword [rdi + rax]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400a0455
mov ebx, 1
lea rdx, [rsp + 0x248]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400a046d
or bx, 4
lea rdx, [rsp + 0x450]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400a0485
or bx, 8
mov rax, qword [0x14016b090]
test word [rdi + rax + 4], bx
je 0x1400a049f
mov rdx, qword [rdi + rax + 0x10]
mov rcx, rbp
call qword [rdi + rax + 8]
inc esi
add rdi, 0x18
cmp esi, dword [0x14016b088]
jl 0x1400a0430
mov rdi, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x6b0]
mov rbx, qword [rsp + 0x6a0]
mov rsi, qword [rsp + 0x690]
xorps xmm6, xmm6
jmp 0x1400a04e1
movsd xmm0, qword [0x14011e698]
minsd xmm0, xmm6
movaps xmm6, xmm0
mov r14, qword [rsp + 0x680]
cmp qword [0x140167558], 0
jne 0x1400a04fc
cmp dword [0x140167530], 0
je 0x1400a04ff
xorps xmm6, xmm6
call fcn.140043310
test rax, rax
jne 0x1400a0518
ucomisd xmm6, qword [0x140116078]
jp 0x1400a0518
jne 0x1400a0518
xorps xmm6, xmm6
call qword [fcn.140005100]
movsd xmm0, qword [0x14011e6a8]
xor r8d, r8d
minsd xmm0, xmm6
mov dword [rsp + 0x20], 0xff
xor edx, edx
xor ecx, ecx
mulsd xmm0, qword [0x14011cf08]
addsd xmm0, qword [0x140113c08]
cvttsd2si r9d, xmm0
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call qword [fcn.140005100]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [0x14016a9b8]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
movaps xmm6, xmmword [rsp + 0x670]
test eax, eax
jle 0x1400a063e
nop word [rax + rax]
lea rcx, [0x14016a9b8]
call fcn.140043670
test eax, eax
jne 0x1400a0619
mov eax, dword [0x14016a9c0]
cmp eax, 0x12
jne 0x1400a05ba
lea ecx, [rax - 3]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_raise]
mov eax, dword [0x14016a9c0]
cmp eax, dword [0x14016a9b0]
jne 0x1400a05ff
mov rax, qword [0x14016a9c8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov qword [0x14016b098], rax
call fcn.1400a75c0
test eax, eax
jne 0x1400a05ff
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400a75c0
test eax, eax
je 0x1400a05e3
lea rcx, [0x14016a9b8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x14016a9b8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [0x14016a9b8]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jg 0x1400a0590
mov eax, dword [0x14016ba08]
cmp dword [0x14016ba04], eax
je 0x1400a067c
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a75c0
test eax, eax
jne 0x1400a067c
nop
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a75c0
test eax, eax
je 0x1400a0660
call fcn.140043800
movsd xmm0, qword [0x14010a1d0]
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0x698
ret