Function at 0x42be50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14c], edi
mov al, byte [edi + 4]
test al, al
je 0x42c1c8
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x2c], xmm0
push 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.0042abd0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x10]
push eax
call fcn.0042b5d0
mov ebx, dword [ebp - 0x2c]
test al, al
je 0x42c183
xor edx, edx
mov dword [ebp - 0x13c], edx
mov eax, dword [ebx]
cmp eax, ebx
je 0x42bf27
nop
mov edi, dword [eax + 8]
xor ecx, ecx
test edx, edx
je 0x42befe
mov esi, dword [edi + 0x25c]
nop
cmp dword [ebp + ecx*4 - 0x138], esi
je 0x42befe
inc ecx
cmp ecx, edx
jb 0x42bef0
cmp ecx, edx
jne 0x42bf21
cmp edx, 0x40
jae 0x42bf21
mov edx, dword [edi + 0x25c]
mov dword [ebp + ecx*4 - 0x138], edx
mov edx, dword [ebp - 0x13c]
inc edx
mov dword [ebp - 0x13c], edx
mov eax, dword [eax]
cmp eax, ebx
jne 0x42bee0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x34], 1
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_select]
xorps xmm0, xmm0
mov dword [ebp - 0x150], eax
push 0
movq qword [ebp - 0x24], xmm0
push 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.0042abd0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push 0
movq qword [ebp - 0x1c], xmm0
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0042abd0
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov esi, dword [ebx]
cmp esi, ebx
je 0x42c0ff
nop word [eax + eax]
mov eax, dword [ebp - 0x150]
mov edi, dword [esi + 8]
mov dword [ebp - 0x148], edi
test eax, eax
jle 0x42bff7
lea eax, [ebp - 0x13c]
push eax
push dword [edi + 0x25c]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x42c0af
mov ecx, edi
call fcn.0042e8d0
jmp 0x42c063
jns 0x42c0af
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 4
push eax
push 0x1007
push 0xffff
push dword [edi + 0x25c]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x42c039
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
jmp 0x42c03c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42c060
mov ecx, dword [edi + 0x2ac]
test ecx, ecx
je 0x42c05e
mov eax, dword [0x46d978]
push 8
push 0
push ecx
mov ecx, dword [eax]
call fcn.00424ea0
mov eax, dword [ebp - 0x14]
test eax, eax
sete al
test al, al
jne 0x42c0af
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x140]
push dword [eax + 4]
push eax
call fcn.0042add0
mov edx, dword [ebp - 0x18]
mov ecx, 0x15555554
sub ecx, edx
mov edi, eax
cmp ecx, 1
jb 0x42c1e4
mov eax, dword [ebp - 0x140]
inc edx
mov dword [ebp - 0x18], edx
mov dword [eax + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x140], eax
jmp 0x42c0f5
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x144]
push dword [eax + 4]
push eax
call fcn.0042add0
mov edx, dword [ebp - 0x20]
mov ecx, 0x15555554
sub ecx, edx
mov edi, eax
cmp ecx, 1
jb 0x42c1e4
mov eax, dword [ebp - 0x144]
inc edx
mov dword [ebp - 0x20], edx
mov dword [eax + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x144], eax
mov esi, dword [esi]
cmp esi, ebx
jne 0x42bfc0
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ecx + 0x10]
call fcn.0042b770
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x42c141
nop word [eax + eax]
mov esi, dword [eax]
push eax
call fcn.0043e2e7
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x42c130
push edi
call fcn.0043e2e7
mov byte [ebp - 4], 0
add esp, 4
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x42c174
mov esi, dword [eax]
push eax
call fcn.0043e2e7
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x42c163
push edi
call fcn.0043e2e7
mov edi, dword [ebp - 0x14c]
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebp - 0x28], 0
cmp eax, ebx
je 0x42c1b5
mov esi, dword [eax]
push eax
call fcn.0043e2e7
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x42c1a4
push ebx
call fcn.0043e2e7
add esp, 4
cmp byte [edi + 4], 0
jne 0x42be91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0043ec62
int3