Function at 0x4bfac0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
mov eax, dword [0x5200a8]
xor eax, esp
mov dword [esp + 0x324], eax
mov edx, dword [esp + 0x32c]
mov dword [esp + 0x14], edx
test edx, edx
je 0x4bfafb
mov ecx, dword [esp + 0x330]
xor eax, eax
test ecx, ecx
je 0x4bfafb
cmp dword [edx + eax*8], 0xffffffff
jne 0x4bfb33
inc eax
cmp eax, ecx
jb 0x4bfaf0
mov eax, dword [esp + 0x334]
test eax, eax
je 0x4bfde1
jns 0x4bfdda
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
mov ecx, dword [esp + 0x324]
xor ecx, esp
call fcn.004e635f
add esp, 0x328
ret
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
xor ebx, ebx
mov dword [esp + 0x28], edi
xor esi, esi
mov dword [esp + 0x12c], ebx
lea eax, [edx + 4]
mov dword [esp + 0x230], esi
or ebp, 0xffffffff
mov dword [esp + 0x10], eax
nop dword [eax]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov word [eax + 2], cx
mov ecx, dword [eax - 4]
cmp ecx, 0xffffffff
je 0x4bfc41
movzx eax, word [eax]
mov edx, eax
mov dword [esp + 0x14], edx
mov edx, ebp
test eax, 0x710
je 0x4bfc3d
cmp ecx, edx
mov ebp, ecx
cmovbe ebp, edx
test eax, 0x300
je 0x4bfbc1
xor eax, eax
test edi, edi
je 0x4bfbab
cmp dword [esp + eax*4 + 0x2c], ecx
je 0x4bfbab
inc eax
cmp eax, edi
jb 0x4bfba0
cmp eax, edi
jne 0x4bfbc1
cmp edi, 0x40
jae 0x4bfbc1
mov dword [esp + eax*4 + 0x2c], ecx
mov edi, dword [esp + 0x28]
inc edi
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x14]
test dl, 0x10
je 0x4bfbfd
xor eax, eax
test ebx, ebx
je 0x4bfbde
cmp dword [esp + eax*4 + 0x130], ecx
je 0x4bfbde
inc eax
cmp eax, ebx
jb 0x4bfbd0
cmp eax, ebx
jne 0x4bfbfd
cmp ebx, 0x40
jae 0x4bfbfd
mov dword [esp + eax*4 + 0x130], ecx
mov ebx, dword [esp + 0x12c]
inc ebx
mov dword [esp + 0x12c], ebx
test edx, 0x600
je 0x4bfc3d
xor eax, eax
test esi, esi
je 0x4bfc1e
nop dword [eax + eax]
cmp dword [esp + eax*4 + 0x234], ecx
je 0x4bfc1e
inc eax
cmp eax, esi
jb 0x4bfc10
cmp eax, esi
jne 0x4bfc3d
cmp esi, 0x40
jae 0x4bfc3d
mov dword [esp + eax*4 + 0x234], ecx
mov esi, dword [esp + 0x230]
inc esi
mov dword [esp + 0x230], esi
mov eax, dword [esp + 0x10]
add eax, 8
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], eax
jne 0x4bfb60
mov eax, dword [esp + 0x344]
cdq
mov dword [esp + 0x10], ebp
mov ecx, eax
test edx, edx
jl 0x4bfc76
jg 0x4bfc6f
cmp ecx, 0x7fffffff
jb 0x4bfc76
mov ecx, closesocket
xor edx, edx
test edi, edi
jne 0x4bfcb0
test ebx, ebx
jne 0x4bfcb0
test esi, esi
jne 0x4bfcb0
test ecx, ecx
jne 0x4bfc8d
xor eax, eax
jmp 0x4bfd36
jns 0x4bfca2
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x4bfd36
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x4bfd36
lea ebp, [esp + 0x14]
test edx, edx
jg 0x4bfccc
jl 0x4bfcbe
test ecx, ecx
jae 0x4bfcc2
xor ebp, ebp
jmp 0x4bfd01
test edx, edx
jl 0x4bfcf5
jg 0x4bfccc
test ecx, ecx
je 0x4bfcf5
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x18], eax
jmp 0x4bfd01
or ecx, edx
jne 0x4bfd01
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
xor eax, eax
lea edx, [esp + 0x230]
test esi, esi
lea ecx, [esp + 0x12c]
push ebp
cmove edx, eax
test ebx, ebx
push edx
cmove ecx, eax
xor esi, esi
test edi, edi
lea eax, [esp + 0x30]
push ecx
cmove eax, esi
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4bfd56
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x324]
xor ecx, esp
call fcn.004e635f
add esp, 0x328
ret
jne 0x4bfd5c
xor eax, eax
jmp 0x4bfd3d
mov esi, dword [esp + 0x24]
xor edi, edi
mov ebx, dword [esp + 0x340]
add esi, 6
mov ebp, 0x400
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x4bfdcb
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bfd95
mov eax, 0x300
or word [esi], ax
lea eax, [esp + 0x12c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bfdad
or word [esi], 0x10
lea eax, [esp + 0x230]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bfdc4
or word [esi], bp
cmp word [esi], 0
je 0x4bfdcb
inc edi
add esi, 8
sub ebx, 1
jne 0x4bfd71
mov eax, edi
jmp 0x4bfd3d
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x324]
xor eax, eax
xor ecx, esp
call fcn.004e635f
add esp, 0x328
ret