Function at 0x4bfe10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x324
mov eax, dword [0x5200a8]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x338]
mov dword [esp], eax
push ebp
push esi
push edi
test eax, eax
jl 0x4bfe53
jg 0x4bfe46
mov esi, dword [esp + 0x340]
cmp esi, 0x7fffffff
jb 0x4bfe5a
xor eax, eax
mov esi, closesocket
mov dword [esp + 0xc], eax
jmp 0x4bfe5a
mov esi, dword [esp + 0x340]
mov eax, dword [esp + 0x334]
mov ebp, dword [esp + 0x33c]
mov edi, dword [esp + 0x338]
cmp eax, 0xffffffff
jne 0x4bfec9
cmp edi, 0xffffffff
jne 0x4bfec9
cmp ebp, edi
jne 0x4bfec9
test esi, esi
je 0x4bfeaf
jns 0x4bfea8
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.004e635f
add esp, 0x324
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.004e635f
add esp, 0x324
ret
push ebx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], ebx
cmp eax, 0xffffffff
je 0x4bfefb
mov ebx, 1
mov dword [esp + 0x12c], eax
mov ecx, ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov edx, eax
mov dword [esp + 0x18], 0xffffffff
cmove edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp edi, 0xffffffff
je 0x4bff7d
xor eax, eax
test ebx, ebx
je 0x4bff2e
nop dword [eax]
cmp dword [esp + eax*4 + 0x12c], edi
je 0x4bff2e
inc eax
cmp eax, ebx
jb 0x4bff20
cmp eax, ebx
jne 0x4bff4d
cmp ebx, 0x40
jae 0x4bff4d
mov dword [esp + eax*4 + 0x12c], edi
mov ebx, dword [esp + 0x128]
inc ebx
mov dword [esp + 0x128], ebx
xor eax, eax
test ecx, ecx
je 0x4bff5e
cmp dword [esp + eax*4 + 0x28], edi
je 0x4bff5e
inc eax
cmp eax, ecx
jb 0x4bff53
cmp eax, ecx
jne 0x4bff74
cmp ecx, 0x40
jae 0x4bff74
mov dword [esp + eax*4 + 0x28], edi
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp edi, edx
cmova edx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x22c], 0
cmp ebp, 0xffffffff
je 0x4bffcf
xor eax, eax
mov dword [esp + 0x230], ebp
mov dword [esp + 0x22c], 1
test ecx, ecx
je 0x4bffb0
cmp dword [esp + eax*4 + 0x28], ebp
je 0x4bffb0
inc eax
cmp eax, ecx
jb 0x4bffa5
cmp eax, ecx
jne 0x4bffc6
cmp ecx, 0x40
jae 0x4bffc6
mov dword [esp + eax*4 + 0x28], ebp
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ebp, edx
cmova edx, ebp
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4bffe8
jg 0x4bffe1
cmp esi, 0x7fffffff
jb 0x4bffe8
mov esi, closesocket
xor eax, eax
test ebx, ebx
jne 0x4c0027
cmp dword [esp + 0x22c], ebx
jne 0x4c0027
test ecx, ecx
jne 0x4c0027
test esi, esi
jne 0x4c0004
xor eax, eax
jmp 0x4c00bf
jns 0x4c0019
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x4c00bf
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x4c00bf
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], edx
test eax, eax
jg 0x4c004d
jl 0x4c0039
test esi, esi
jae 0x4c0043
mov dword [esp + 0x10], 0
jmp 0x4c0082
test eax, eax
jl 0x4c0076
jg 0x4c004d
test esi, esi
je 0x4c0076
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [esp + 0x20], eax
jmp 0x4c0082
or esi, eax
jne 0x4c0082
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push dword [esp + 0x10]
xor eax, eax
lea edx, [esp + 0x28]
test ecx, ecx
lea ecx, [esp + 0x230]
cmove edx, eax
cmp dword [esp + 0x230], eax
push edx
cmove ecx, eax
xor esi, esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x134]
test ebx, ebx
cmove eax, esi
inc ecx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4c00cc
mov eax, dword [esp + 0x18]
jmp 0x4c0167
jne 0x4c00d5
xor eax, eax
jmp 0x4c0167
mov ebx, dword [esp + 0x338]
xor esi, esi
cmp ebx, 0xffffffff
je 0x4c010d
lea eax, [esp + 0x128]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x24]
push eax
push ebx
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c010d
or esi, 4
cmp edi, 0xffffffff
je 0x4c0139
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0127
or esi, 8
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0139
or esi, 4
cmp ebp, 0xffffffff
je 0x4c0165
lea eax, [esp + 0x22c]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0153
or esi, 2
lea eax, [esp + 0x24]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c0165
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x330]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004e635f
add esp, 0x324
ret