Function at 0x42e3d0
Capabilities:
Get socket status

Disassembly:
push rbp
sub rsp, 0x680
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0x5f8], rax
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x34], edx
mov dword [rbp - 0x38], r8d
mov qword [rbp - 0x48], 0
lea rcx, [rbp - 0x28]
xor edx, edx
mov r8d, 8
call fcn.0041ba90
mov eax, dword [rbp - 0x38]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x38]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [rbp - 0x24], eax
mov dword [rbp + 0x3f0], 0
mov dword [rbp + 0x1e8], 0
mov dword [rbp - 0x20], 0
mov dword [rbp - 0x3c], 0
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
jae 0x42e705
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
movsx eax, word [rax + 8]
and eax, 0xd
cmp eax, 0
je 0x42e6ae
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
movsx eax, word [rax + 8]
and eax, 1
cmp eax, 0
je 0x42e54f
jmp 0x42e4a9
mov dword [rbp - 0x4c], 0
mov eax, dword [rbp - 0x4c]
cmp eax, dword [rbp + 0x3f0]
jae 0x42e4f9
mov eax, dword [rbp - 0x4c]
mov rax, qword [rbp + rax*8 + 0x3f8]
mov rcx, qword [rbp - 0x30]
mov edx, dword [rbp - 0x3c]
shl rdx, 4
add rcx, rdx
cmp rax, qword [rcx]
jne 0x42e4e6
jmp 0x42e4f9
jmp 0x42e4eb
mov eax, dword [rbp - 0x4c]
add eax, 1
mov dword [rbp - 0x4c], eax
jmp 0x42e4b0
mov eax, dword [rbp - 0x4c]
cmp eax, dword [rbp + 0x3f0]
jne 0x42e545
cmp dword [rbp + 0x3f0], 0x40
jae 0x42e540
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rcx, qword [rax]
mov eax, dword [rbp - 0x4c]
mov qword [rbp + rax*8 + 0x3f8], rcx
mov eax, dword [rbp + 0x3f0]
add eax, 1
mov dword [rbp + 0x3f0], eax
jmp 0x42e545
jmp 0x42e54a
jmp 0x42e54f
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
movsx eax, word [rax + 8]
and eax, 4
cmp eax, 0
je 0x42e618
jmp 0x42e572
mov dword [rbp - 0x50], 0
mov eax, dword [rbp - 0x50]
cmp eax, dword [rbp + 0x1e8]
jae 0x42e5c2
mov eax, dword [rbp - 0x50]
mov rax, qword [rbp + rax*8 + 0x1f0]
mov rcx, qword [rbp - 0x30]
mov edx, dword [rbp - 0x3c]
shl rdx, 4
add rcx, rdx
cmp rax, qword [rcx]
jne 0x42e5af
jmp 0x42e5c2
jmp 0x42e5b4
mov eax, dword [rbp - 0x50]
add eax, 1
mov dword [rbp - 0x50], eax
jmp 0x42e579
mov eax, dword [rbp - 0x50]
cmp eax, dword [rbp + 0x1e8]
jne 0x42e60e
cmp dword [rbp + 0x1e8], 0x40
jae 0x42e609
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rcx, qword [rax]
mov eax, dword [rbp - 0x50]
mov qword [rbp + rax*8 + 0x1f0], rcx
mov eax, dword [rbp + 0x1e8]
add eax, 1
mov dword [rbp + 0x1e8], eax
jmp 0x42e60e
jmp 0x42e613
jmp 0x42e618
jmp 0x42e61d
mov dword [rbp - 0x54], 0
mov eax, dword [rbp - 0x54]
cmp eax, dword [rbp - 0x20]
jae 0x42e667
mov eax, dword [rbp - 0x54]
mov rax, qword [rbp + rax*8 - 0x18]
mov rcx, qword [rbp - 0x30]
mov edx, dword [rbp - 0x3c]
shl rdx, 4
add rcx, rdx
cmp rax, qword [rcx]
jne 0x42e654
jmp 0x42e667
jmp 0x42e659
mov eax, dword [rbp - 0x54]
add eax, 1
mov dword [rbp - 0x54], eax
jmp 0x42e624
mov eax, dword [rbp - 0x54]
cmp eax, dword [rbp - 0x20]
jne 0x42e6a4
cmp dword [rbp - 0x20], 0x40
jae 0x42e69f
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rcx, qword [rax]
mov eax, dword [rbp - 0x54]
mov qword [rbp + rax*8 - 0x18], rcx
mov eax, dword [rbp - 0x20]
add eax, 1
mov dword [rbp - 0x20], eax
jmp 0x42e6a4
jmp 0x42e6a9
jmp 0x42e6ae
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov word [rax + 0xa], 0
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rax, qword [rax]
cmp rax, qword [rbp - 0x48]
jbe 0x42e6f2
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rax, qword [rax]
mov qword [rbp - 0x48], rax
jmp 0x42e6f7
mov eax, dword [rbp - 0x3c]
add eax, 1
mov dword [rbp - 0x3c], eax
jmp 0x42e45c
mov rax, qword [rbp - 0x48]
mov ecx, eax
add ecx, 1
lea rdx, [rbp + 0x3f0]
lea r8, [rbp + 0x1e8]
lea r9, [rbp - 0x20]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rbp - 0x40], eax
cmp eax, 0
jle 0x42e820
mov dword [rbp - 0x3c], 0
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
jae 0x42e81b
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rcx, qword [rax]
lea rdx, [rbp + 0x3f0]
call sub.WS2_32.dll___WSAFDIsSet
cmp eax, 0
je 0x42e78d
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
movsx ecx, word [rax + 0xa]
or ecx, 1
mov word [rax + 0xa], cx
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rcx, qword [rax]
lea rdx, [rbp + 0x1e8]
call sub.WS2_32.dll___WSAFDIsSet
cmp eax, 0
je 0x42e7cc
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
movsx ecx, word [rax + 0xa]
or ecx, 4
mov word [rax + 0xa], cx
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
mov rcx, qword [rax]
lea rdx, [rbp - 0x20]
call sub.WS2_32.dll___WSAFDIsSet
cmp eax, 0
je 0x42e808
mov rax, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x3c]
shl rcx, 4
add rax, rcx
movsx ecx, word [rax + 0xa]
or ecx, 8
mov word [rax + 0xa], cx
jmp 0x42e80d
mov eax, dword [rbp - 0x3c]
add eax, 1
mov dword [rbp - 0x3c], eax
jmp 0x42e742
jmp 0x42e820
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x58], eax
mov rcx, qword [rbp + 0x5f8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x42e848
jmp 0x42e84d
call fcn.0041bf30
mov eax, dword [rbp - 0x58]
add rsp, 0x680
pop rbp
ret