Function at 0x48553c
Capabilities:
Get socket status

Disassembly:
sub esp, 0x448
mov eax, dword [0x6d1d44]
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 0x4855a7
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SleepEx]
or ecx, 0xffffffff
jmp 0x485a43
push 1
push edi
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov esi, eax
cmp esi, 0xc0
jne 0x4855cb
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x2e0], 0
je 0x4855a7
lea ecx, [esp + 0x30]
call fcn.0048c3f8
cmp esi, 0xc0
je 0x48569c
test esi, esi
js 0x48569c
cmp esi, ebx
jge 0x48569c
mov edi, dword [ebp + esi*4 + 0x100]
test edi, edi
je 0x48569c
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [ebp + esi*4]
mov dword [ecx + 0x4e8], eax
mov dword [ecx + 0x4ec], edi
mov dword [ebp + esi*4 + 0x100], edx
mov dword [ebp + esi*4], edx
mov eax, dword [edi + 4]
test eax, eax
je 0x48568e
push dword [edi + 8]
push edx
push dword [ecx + 0x4e8]
push ecx
call eax
add esp, 0x10
test eax, eax
jne 0x48568a
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x4e8], 0
je 0x485675
mov ecx, edi
call fcn.00484e2f
test eax, eax
mov eax, dword [esp + 0x10]
je 0x485675
push dword [eax + 0x4e8]
push str.__ILibChain_WindowsSelect__p___REMOVED_
push 1
call fcn.0048cbcd
mov ecx, dword [edi]
add esp, 0xc
call fcn.0048b261
jmp 0x48568a
push dword [eax + 0x4e8]
push str.__ILibChain_WindowsSelect__p___________p_
push 1
call fcn.0048cbcd
add esp, 0xc
mov ecx, dword [esp + 0x10]
and dword [ecx + 0x4e8], 0
and dword [ecx + 0x4ec], 0
cmp esi, 0x102
jne 0x485738
test ebx, ebx
jle 0x485797
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 0x485721
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4856d6
cmp dword [ecx + 0x10], eax
je 0x485721
cmp dword [esp + 0x30], eax
jl 0x4856ee
jne 0x4856e3
cmp ebx, dword [ecx + 0x10]
jl 0x4856ee
cmp eax, dword [esp + 0x30]
jne 0x485721
cmp dword [ecx + 0x10], ebx
jg 0x485721
mov eax, dword [ecx + 4]
test eax, eax
je 0x48570c
push dword [ecx + 8]
push 2
push dword [edi - 0x100]
push ebp
call eax
add esp, 0x10
test eax, eax
jne 0x485713
mov ecx, dword [edi]
mov ecx, dword [ecx]
call fcn.0048b261
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 0x4856c4
mov ebx, dword [esp + 0x468]
mov ebp, dword [esp + 0x20]
cmp esi, 0xffffffff
jne 0x485797
test ebx, ebx
jle 0x485797
lea esi, [ebp + 0x100]
cmp dword [esi], 0
je 0x48578f
push 0
push dword [esi - 0x100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x48578f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x48577c
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.0048b261
and dword [esi - 0x100], 0
and dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x485747
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 0x485a38
push 0x100
xor ebx, ebx
lea eax, [esp + 0x354]
push ebx
push eax
call fcn.005bb370
and dword [esp + 0x44], ebx
add esp, 0xc
and dword [esp + 0x248], ebx
xor edi, edi
cmp dword [esi], ebx
jle 0x48584b
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 0x48583e
mov eax, dword [esi]
mov dword [esp + ebx*4 + 0x350], eax
inc ebx
inc edi
add esi, 4
cmp edi, dword [ebp]
jl 0x4857f9
mov ebp, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x48589e
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
je 0x485895
mov edi, dword [esp + esi*4 + 0x350]
lea edx, [ebp + 4]
cmp dword [edx], edi
je 0x485876
inc ecx
add edx, 4
cmp ecx, eax
jb 0x485868
jmp 0x485895
dec eax
cmp ecx, eax
jae 0x485892
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 0x485881
dec dword [ebp]
inc esi
cmp esi, ebx
jl 0x485855
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 0x485902
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 0x4858f5
mov eax, dword [esi]
mov dword [esp + ebx*4 + 0x350], eax
inc ebx
inc edi
add esi, 4
cmp edi, dword [ebp]
jl 0x4858b6
mov ebp, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x485955
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
je 0x48594c
mov edi, dword [esp + esi*4 + 0x350]
lea edx, [ebp + 4]
cmp dword [edx], edi
je 0x48592d
inc ecx
add edx, 4
cmp ecx, eax
jb 0x48591f
jmp 0x48594c
dec eax
cmp ecx, eax
jae 0x485949
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 0x485938
dec dword [ebp]
inc esi
cmp esi, ebx
jl 0x48590c
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 0x4859ba
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 0x4859b1
mov eax, dword [esi]
mov dword [esp + edi*4 + 0x350], eax
inc edi
inc ebx
add esi, 4
cmp ebx, dword [ebp]
jl 0x48596c
xor esi, esi
test edi, edi
jle 0x485a08
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
je 0x485a03
mov ebx, dword [esp + esi*4 + 0x350]
lea edx, [ebp + 4]
cmp dword [edx], ebx
je 0x4859e1
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4859d3
jmp 0x485a03
dec eax
cmp ecx, eax
jae 0x485a00
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 0x4859ef
dec dword [ebp]
inc esi
cmp esi, edi
jl 0x4859c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [ecx], 0
ja 0x485a20
cmp dword [eax], 0
ja 0x485a20
cmp dword [ebp], 0
jbe 0x485a34
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 0x485a38
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
and dword [eax + 0x2e0], 0
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x44c]
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x448
ret