Function at 0x48aa10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
push edi
mov dword [ebp - 4], esi
jl 0x48aa3c
jg 0x48aa32
mov edx, dword [ebp + 0x14]
cmp edx, 0x7fffffff
jb 0x48aa3f
mov dword [ebp + 0x14], accept
mov dword [ebp + 0x18], esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x48aa7e
cmp ecx, eax
jne 0x48aa7e
cmp edi, eax
jne 0x48aa7e
cmp edx, esi
je 0x48aa76
jge 0x48aa6f
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], esi
jl 0x48aa8c
jg 0x48aa89
cmp edx, esi
jbe 0x48aa8c
mov dword [ebp - 4], edx
push ebx
xor edx, edx
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x20c], esi
cmp eax, 0xffffffff
je 0x48aac6
mov esi, 1
mov edx, esi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], edx
mov ebx, eax
cmp ecx, 0xffffffff
je 0x48ab33
xor eax, eax
test esi, esi
jbe 0x48aadf
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x48aadf
inc eax
cmp eax, esi
jb 0x48aad1
cmp eax, esi
jne 0x48aafc
cmp esi, 0x40
jae 0x48aafc
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
xor eax, eax
test edx, edx
jbe 0x48ab10
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x48ab10
inc eax
cmp eax, edx
jb 0x48ab02
cmp eax, edx
jne 0x48ab2d
cmp edx, 0x40
jae 0x48ab2d
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
inc edx
mov dword [ebp - 0x108], edx
cmp ecx, ebx
jbe 0x48ab33
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x310], ecx
cmp edi, 0xffffffff
je 0x48ab81
mov ecx, 1
xor eax, eax
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x310], ecx
test edx, edx
jbe 0x48ab65
cmp dword [ebp + eax*4 - 0x104], edi
je 0x48ab65
inc eax
cmp eax, edx
jb 0x48ab57
cmp eax, edx
jne 0x48ab7b
cmp edx, 0x40
jae 0x48ab7b
mov dword [ebp + eax*4 - 0x104], edi
inc dword [ebp - 0x108]
cmp edi, ebx
jbe 0x48ab81
mov ebx, edi
cmp dword [ebp + 0x18], 0
jg 0x48ab93
jl 0x48ab8f
cmp dword [ebp + 0x14], 0
jae 0x48ab93
xor edi, edi
jmp 0x48ab96
lea edi, [ebp + 0x14]
mov edx, dword [ebp + 0x18]
test edx, edx
jl 0x48abd1
jg 0x48aba6
mov eax, dword [ebp + 0x14]
test eax, eax
jbe 0x48abd4
mov eax, 0x10624dd3
imul dword [ebp - 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 4]
mov dword [ebp + 0x14], eax
imul eax, eax, 0x3e8
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp + 0x18], edx
jmp 0x48abde
mov eax, dword [ebp + 0x14]
or eax, edx
jne 0x48abde
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
neg ecx
sbb ecx, ecx
push edi
lea edx, [ebp - 0x310]
and ecx, edx
lea eax, [ebp - 0x108]
push eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x20c]
push ecx
and esi, eax
push esi
inc ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
pop ebx
test eax, eax
jl 0x48aa66
je 0x48aa76
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x48ac4b
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48ac37
mov esi, 1
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48ac4b
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x48ac7b
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48ac67
or esi, 8
lea ecx, [ebp - 0x108]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48ac7b
or esi, 4
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
je 0x48acab
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48ac97
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48acab
or esi, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret