Function at 0x4881ea
Capabilities:
Get socket status

Disassembly:
sub esp, 0x448
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
mov ebx, dword [esp + 0x45c]
mov eax, ecx
mov ecx, dword [esp + 0x450]
push ebp
mov ebp, dword [esp + 0x45c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
cmp dword [eax], edi
mov ecx, dword [esp + 0x460]
cmove edi, dword [esp + 0x46c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebp
test ebx, ebx
jne 0x488255
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SleepEx]
or ecx, 0xffffffff
jmp 0x4886f5
push 1
push edi
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov esi, eax
cmp esi, 0xc0
jne 0x488279
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x2ec], 0
je 0x488255
lea ecx, [esp + 0x30]
call fcn.0048f293
cmp esi, 0xc0
je 0x48834e
test esi, esi
js 0x48834e
cmp esi, ebx
jge 0x48834e
mov edi, dword [ebp + esi*4 + 0x100]
test edi, edi
je 0x48834e
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [ebp + esi*4]
mov dword [ecx + 0x4f4], eax
mov dword [ecx + 0x4f8], edi
mov dword [ebp + esi*4 + 0x100], edx
mov dword [ebp + esi*4], edx
mov eax, dword [edi + 4]
test eax, eax
je 0x488340
push dword [edi + 8]
push edx
push dword [ecx + 0x4f4]
push ecx
call eax
add esp, 0x10
test eax, eax
jne 0x48833c
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x4f4], 0
je 0x488327
mov ecx, edi
call fcn.00487815
test eax, eax
mov eax, dword [esp + 0x10]
je 0x488327
push dword [eax + 0x4f4]
push str.__ILibChain_WindowsSelect__p___REMOVED_
push 1
call fcn.0048fac1
mov ecx, dword [edi]
add esp, 0xc
and dword [edi + 8], 0
call fcn.0048e0b5
jmp 0x48833c
push dword [eax + 0x4f4]
push str.__ILibChain_WindowsSelect__p___________p_
push 1
call fcn.0048fac1
add esp, 0xc
mov ecx, dword [esp + 0x10]
and dword [ecx + 0x4f4], 0
and dword [ecx + 0x4f8], 0
cmp esi, 0x102
jne 0x4883ea
test ebx, ebx
jle 0x488449
mov edx, ebx
lea edi, [ebp + 0x100]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
mov ecx, dword [edi]
test ecx, ecx
je 0x4883d3
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x488388
cmp dword [ecx + 0x10], eax
je 0x4883d3
cmp dword [esp + 0x30], eax
jl 0x4883a0
jne 0x488395
cmp ebx, dword [ecx + 0x10]
jl 0x4883a0
cmp eax, dword [esp + 0x30]
jne 0x4883d3
cmp dword [ecx + 0x10], ebx
jg 0x4883d3
mov eax, dword [ecx + 4]
test eax, eax
je 0x4883be
push dword [ecx + 8]
push 2
push dword [edi - 0x100]
push ebp
call eax
add esp, 0x10
test eax, eax
jne 0x4883c5
mov ecx, dword [edi]
mov ecx, dword [ecx]
call fcn.0048e0b5
and dword [edi - 0x100], 0
and dword [edi], 0
mov edx, dword [esp + 0x2c]
add edi, 4
sub edx, 1
mov dword [esp + 0x2c], edx
jne 0x488376
mov ebx, dword [esp + 0x468]
mov ebp, dword [esp + 0x20]
cmp esi, 0xffffffff
jne 0x488449
test ebx, ebx
jle 0x488449
lea esi, [ebp + 0x100]
cmp dword [esi], 0
je 0x488441
push 0
push dword [esi - 0x100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x488441
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x48842e
push dword [eax + 8]
push 1
push dword [esi - 0x100]
push dword [esp + 0x1c]
call ecx
add esp, 0x10
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.0048e0b5
and dword [esi - 0x100], 0
and dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x4883f9
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov esi, dword [esp + 0x1c]
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
push eax
push ebp
push dword [esp + 0x1c]
push esi
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
mov dword [esp + 0x20], ecx
cmp ecx, 0xffffffff
jne 0x4886ea
push 0x100
xor ebx, ebx
lea eax, [esp + 0x354]
push ebx
push eax
call fcn.005c3840
and dword [esp + 0x44], ebx
add esp, 0xc
and dword [esp + 0x248], ebx
xor edi, edi
cmp dword [esi], ebx
jle 0x4884fd
mov ebp, esi
lea esi, [ebp + 4]
mov eax, dword [esi]
mov dword [esp + 0x144], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24c]
mov dword [esp + 0x144], 1
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x14c]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4884f0
mov eax, dword [esi]
mov dword [esp + ebx*4 + 0x350], eax
inc ebx
inc edi
add esi, 4
cmp edi, dword [ebp]
jl 0x4884ab
mov ebp, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x488550
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
je 0x488547
mov edi, dword [esp + esi*4 + 0x350]
lea edx, [ebp + 4]
cmp dword [edx], edi
je 0x488528
inc ecx
add edx, 4
cmp ecx, eax
jb 0x48851a
jmp 0x488547
dec eax
cmp ecx, eax
jae 0x488544
lea edx, [ebp + 4]
lea edx, [edx + ecx*4]
mov eax, dword [edx + 4]
inc ecx
mov dword [edx], eax
lea edx, [edx + 4]
mov eax, dword [ebp]
dec eax
cmp ecx, eax
jb 0x488533
dec dword [ebp]
inc esi
cmp esi, ebx
jl 0x488507
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor ebx, ebx
and dword [esp + 0x140], ebx
xor edi, edi
cmp dword [eax], ebx
jle 0x4885b4
mov ebp, eax
lea esi, [ebp + 4]
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24c]
mov dword [esp + 0x3c], 1
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x14c]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4885a7
mov eax, dword [esi]
mov dword [esp + ebx*4 + 0x350], eax
inc ebx
inc edi
add esi, 4
cmp edi, dword [ebp]
jl 0x488568
mov ebp, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x488607
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
je 0x4885fe
mov edi, dword [esp + esi*4 + 0x350]
lea edx, [ebp + 4]
cmp dword [edx], edi
je 0x4885df
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4885d1
jmp 0x4885fe
dec eax
cmp ecx, eax
jae 0x4885fb
lea edx, [ebp + 4]
lea edx, [edx + ecx*4]
mov eax, dword [edx + 4]
inc ecx
mov dword [edx], eax
lea edx, [edx + 4]
mov eax, dword [ebp]
dec eax
cmp ecx, eax
jb 0x4885ea
dec dword [ebp]
inc esi
cmp esi, ebx
jl 0x4885be
mov ebp, dword [esp + 0x18]
xor edi, edi
xor ebx, ebx
and dword [esp + 0x140], edi
and dword [esp + 0x38], edi
cmp dword [ebp], ebx
jle 0x48866c
lea esi, [ebp + 4]
mov eax, dword [esi]
mov dword [esp + 0x24c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24c]
mov dword [esp + 0x24c], 1
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x14c]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x488663
mov eax, dword [esi]
mov dword [esp + edi*4 + 0x350], eax
inc edi
inc ebx
add esi, 4
cmp ebx, dword [ebp]
jl 0x48861e
xor esi, esi
test edi, edi
jle 0x4886ba
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
je 0x4886b5
mov ebx, dword [esp + esi*4 + 0x350]
lea edx, [ebp + 4]
cmp dword [edx], ebx
je 0x488693
inc ecx
add edx, 4
cmp ecx, eax
jb 0x488685
jmp 0x4886b5
dec eax
cmp ecx, eax
jae 0x4886b2
lea edx, [ecx*4 + 4]
add edx, ebp
mov eax, dword [edx + 4]
inc ecx
mov dword [edx], eax
lea edx, [edx + 4]
mov eax, dword [ebp]
dec eax
cmp ecx, eax
jb 0x4886a1
dec dword [ebp]
inc esi
cmp esi, edi
jl 0x488672
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [ecx], 0
ja 0x4886d2
cmp dword [eax], 0
ja 0x4886d2
cmp dword [ebp], 0
jbe 0x4886e6
lea edx, [esp + 0x24]
push edx
push ebp
push eax
push ecx
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
jmp 0x4886ea
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
and dword [eax + 0x2ec], 0
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x44c]
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x448
ret