Function at 0x4b4c03
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
xorps xmm0, xmm0
push ebx
xor ebx, ebx
movlpd qword [ebp - 0x340], xmm0
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x31c], ecx
push esi
push edi
cmp ecx, ebx
jl 0x4b4c5f
mov edx, accept
jg 0x4b4c53
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x314], eax
cmp eax, edx
jb 0x4b4c68
mov ecx, ebx
mov eax, edx
mov dword [ebp - 0x31c], ecx
jmp 0x4b4c62
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x314], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x4b4c86
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4b4c86
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4b4c86
push eax
call fcn.004b4f8f
pop ecx
jmp 0x4b4f7e
cmp ecx, ebx
jl 0x4b4caf
jg 0x4b4c90
cmp eax, ebx
jbe 0x4b4caf
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x350]
push eax
call fcn.004b7acc
mov esi, eax
lea edi, [ebp - 0x340]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, ebx
or edx, 0xffffffff
mov dword [ebp - 0x108], eax
mov ecx, ebx
xor edi, edi
mov dword [ebp - 0x20c], ecx
cmp esi, 0xffffffff
je 0x4b4cec
lea ecx, [edi + 1]
mov dword [ebp - 0x208], esi
lea eax, [edi + 1]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x104], esi
mov edx, esi
mov dword [ebp - 0x108], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x4b4d5b
mov esi, ebx
test ecx, ecx
je 0x4b4d08
cmp dword [ebp + esi*4 - 0x208], edi
je 0x4b4d08
inc esi
cmp esi, ecx
jb 0x4b4cfa
cmp esi, ecx
jne 0x4b4d25
cmp ecx, 0x40
jae 0x4b4d25
mov dword [ebp + esi*4 - 0x208], edi
mov ecx, dword [ebp - 0x20c]
inc ecx
mov dword [ebp - 0x20c], ecx
mov esi, ebx
test eax, eax
je 0x4b4d39
cmp dword [ebp + esi*4 - 0x104], edi
je 0x4b4d39
inc esi
cmp esi, eax
jb 0x4b4d2b
cmp esi, eax
jne 0x4b4d56
cmp eax, 0x40
jae 0x4b4d56
mov dword [ebp + esi*4 - 0x104], edi
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp edi, edx
cmova edx, edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x310], ebx
cmp esi, 0xffffffff
je 0x4b4da8
mov dword [ebp - 0x30c], esi
mov edi, ebx
mov dword [ebp - 0x310], 1
test eax, eax
je 0x4b4d8d
cmp dword [ebp + edi*4 - 0x104], esi
je 0x4b4d8d
inc edi
cmp edi, eax
jb 0x4b4d7f
cmp edi, eax
jne 0x4b4da3
cmp eax, 0x40
jae 0x4b4da3
mov dword [ebp + edi*4 - 0x104], esi
inc dword [ebp - 0x108]
cmp esi, edx
cmova edx, esi
mov edi, dword [ebp - 0x31c]
mov esi, dword [ebp - 0x314]
cmp edi, ebx
jg 0x4b4dc6
jl 0x4b4dbe
cmp esi, ebx
jae 0x4b4dc6
mov dword [ebp - 0x320], ebx
jmp 0x4b4dd2
lea eax, [ebp - 0x328]
mov dword [ebp - 0x320], eax
lea eax, [edx + 1]
mov dword [ebp - 0x330], eax
cmp edi, ebx
jl 0x4b4e10
jg 0x4b4de5
cmp esi, ebx
jbe 0x4b4e10
mov eax, dword [ebp - 0x318]
cdq
mov dword [ebp - 0x32c], 0x3e8
idiv dword [ebp - 0x32c]
mov dword [ebp - 0x328], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x324], eax
jmp 0x4b4e22
mov eax, esi
or eax, edi
jne 0x4b4e22
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
push dword [ebp - 0x320]
xor edx, edx
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x310], edx
push eax
lea eax, [ebp - 0x310]
cmove eax, edx
test ecx, ecx
push eax
lea eax, [ebp - 0x20c]
cmove eax, edx
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4b4ed6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b4e77
cmp dword [0x742acc], ebx
jne 0x4b4eda
cmp eax, 0x2714
jne 0x4b4eda
cmp edi, ebx
jl 0x4b4ec9
jg 0x4b4e81
cmp esi, ebx
jbe 0x4b4ec9
lea eax, [ebp - 0x350]
push eax
call fcn.004b7acc
sub esp, 0xc
lea esi, [ebp - 0x340]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b7b58
mov esi, dword [ebp - 0x314]
add esp, 0x20
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x318], ecx
test ecx, ecx
jle 0x4b4ed4
mov edi, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x20c]
jmp 0x4b4ddb
mov eax, ebx
test eax, eax
jns 0x4b4ee2
or eax, 0xffffffff
jmp 0x4b4f7e
jne 0x4b4eeb
xor eax, eax
jmp 0x4b4f7e
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4b4f1c
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
push 1
test eax, eax
pop eax
cmovne ebx, eax
lea eax, [ebp - 0x108]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b4f1c
or ebx, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x4b4f4c
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b4f38
or ebx, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b4f4c
or ebx, 4
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x4b4f7c
lea eax, [ebp - 0x310]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b4f68
or ebx, 2
lea eax, [ebp - 0x108]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b4f7c
or ebx, 4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret