Function at 0x4b86f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34c
xor ebx, ebx
or esi, 0xffffffff
mov dword [ebp - 0x128], 0
cmp ebx, dword [ebp + 8]
jge 0x4b8749
mov edx, dword [ebp - 0x128]
xor eax, eax
cmp edx, 0
jbe 0x4b8945
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + ebx*4]
cmp dword [ebp + eax*4 - 0x124], ecx
je 0x4b8735
inc eax
cmp edx, eax
ja 0x4b8727
cmp edx, eax
je 0x4b8953
cmp ecx, esi
jle 0x4b8743
mov esi, ecx
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4b8710
xor ebx, ebx
mov dword [ebp - 0x238], 0
cmp ebx, dword [ebp + 0x10]
jge 0x4b87b6
lea esi, [esi]
mov edx, dword [ebp - 0x238]
xor eax, eax
cmp edx, 0
jbe 0x4b896f
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + ebx*4]
cmp dword [ebp + eax*4 - 0x234], ecx
je 0x4b8975
inc eax
cmp edx, eax
ja 0x4b8777
cmp edx, eax
jne 0x4b897d
cmp eax, 0x3f
ja 0x4b897d
mov dword [ebp + eax*4 - 0x234], ecx
inc eax
mov dword [ebp - 0x238], eax
cmp ecx, esi
jg 0x4b8985
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x4b8760
xor ebx, ebx
mov dword [ebp - 0x348], 0
cmp ebx, dword [ebp + 0x18]
jge 0x4b8826
mov edx, dword [ebp - 0x348]
xor eax, eax
cmp edx, 0
jbe 0x4b898d
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi + ebx*4]
nop
cmp dword [ebp + eax*4 - 0x344], ecx
je 0x4b8993
inc eax
cmp edx, eax
ja 0x4b87e0
cmp edx, eax
jne 0x4b899b
cmp eax, 0x3f
ja 0x4b899b
mov dword [ebp + eax*4 - 0x344], ecx
inc eax
mov dword [ebp - 0x348], eax
cmp ecx, esi
jg 0x4b89a3
lea esi, [esi]
inc ebx
cmp ebx, dword [ebp + 0x18]
jl 0x4b87c7
mov edx, dword [ebp + 0x20]
xor eax, eax
test edx, edx
js 0x4b8879
mov eax, dword [ebp + 0x20]
mov edx, 0x10624dd3
imul edx
sar edx, 6
mov eax, dword [ebp + 0x20]
sar eax, 0x1f
sub edx, eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x350], edx
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
shl edx, 3
sub eax, edx
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x20]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x350]
sub esp, 0xc
lea edi, [ebp - 0x348]
push eax
lea eax, [ebp - 0x238]
push edi
lea edi, [ebp - 0x128]
push eax
lea eax, [esi + 1]
push edi
push eax
call sub.ws2_32.dll_select
add esp, 0xc
mov esi, eax
test eax, eax
js 0x4b893b
xor ebx, ebx
cmp ebx, dword [ebp + 8]
jge 0x4b88d5
nop
mov edx, dword [ebp + 0xc]
push eax
push eax
push edi
mov eax, dword [edx + ebx*4]
push eax
call sub.ws2_32.dll___WSAFDIsSet
pop edx
test eax, eax
pop ecx
jne 0x4b88cf
mov eax, dword [ebp + 0xc]
mov dword [eax + ebx*4], 0
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4b88b0
xor ebx, ebx
cmp ebx, dword [ebp + 0x10]
jge 0x4b8908
lea esi, [esi]
lea edx, [ebp - 0x238]
mov edi, dword [ebp + 0x14]
push eax
push eax
push edx
mov eax, dword [edi + ebx*4]
push eax
call sub.ws2_32.dll___WSAFDIsSet
pop edx
test eax, eax
pop ecx
jne 0x4b8902
mov dword [edi + ebx*4], 0
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x4b88e0
xor ebx, ebx
cmp ebx, dword [ebp + 0x18]
jge 0x4b893b
nop
mov edx, dword [ebp + 0x1c]
push eax
push eax
lea eax, [ebp - 0x348]
push eax
mov edi, dword [edx + ebx*4]
push edi
call sub.ws2_32.dll___WSAFDIsSet
pop edx
test eax, eax
pop ecx
jne 0x4b8935
mov edi, dword [ebp + 0x1c]
mov dword [edi + ebx*4], 0
inc ebx
cmp ebx, dword [ebp + 0x18]
jl 0x4b8910
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 0xc]
cmp edx, eax
mov ecx, dword [edi + ebx*4]
jne 0x4b873d
cmp eax, 0x3f
ja 0x4b873d
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
mov dword [ebp - 0x128], eax
jmp 0x4b873d
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + ebx*4]
cmp edx, eax
je 0x4b8791
cmp ecx, esi
jle 0x4b87b0
mov esi, ecx
inc ebx
jmp 0x4b87b1
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi + ebx*4]
cmp edx, eax
je 0x4b87fa
cmp ecx, esi
jle 0x4b8820
mov esi, ecx
inc ebx
jmp 0x4b8821