Function at 0x4bbb5a
Capabilities:
Get socket status

Disassembly:
mov eax, 0x61288c
call fcn.00609528
sub esp, 0x554
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [eax], ebx
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp byte [esi + 0x59], bl
je 0x4bbb9e
push 0x67
push 0x6a5110
push str._m_polling
call fcn.0054db53
add esp, 0xc
lea edi, [esi + 0x10]
mov dword [ebp - 0x13c], ebx
push edi
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x560], ebx
mov dword [ebp - 0x28], edi
call fcn.004227ca
pop ecx
cmp byte [esi + 0x58], bl
je 0x4bbbcd
mov byte [esi + 0x58], bl
mov dword [ebp - 4], ebx
jmp 0x4bc1fc
mov ebx, dword [esi + 0x44]
mov esi, dword [esi + 0x40]
mov edx, dword [ebp - 0x13c]
cmp esi, ebx
je 0x4bbd0c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x1c], eax
inc eax
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
cmovge ecx, eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ecx]
mov dword [ebp - 0x18], edi
test al, 1
je 0x4bbc5b
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
mov edx, dword [ebp - 0x13c]
test eax, eax
jne 0x4bbc58
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
test edx, edx
je 0x4bbc38
cmp dword [ebp + ecx*4 - 0x138], eax
je 0x4bbc38
inc ecx
cmp ecx, edx
jb 0x4bbc2a
cmp ecx, edx
jne 0x4bbc55
cmp edx, 0x40
jae 0x4bbc55
mov dword [ebp + ecx*4 - 0x138], eax
mov edx, dword [ebp - 0x13c]
inc edx
mov dword [ebp - 0x13c], edx
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test al, 2
je 0x4bbcb1
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4bbca8
mov edx, dword [ebp - 0x45c]
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
test edx, edx
je 0x4bbc8f
cmp dword [ebp + ecx*4 - 0x458], eax
je 0x4bbc8f
inc ecx
cmp ecx, edx
jb 0x4bbc81
cmp ecx, edx
jne 0x4bbca5
cmp edx, 0x40
jae 0x4bbca5
mov dword [ebp + ecx*4 - 0x458], eax
inc dword [ebp - 0x45c]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x13c]
test al, 4
je 0x4bbd04
lea eax, [ebp - 0x560]
push eax
push dword [ebp - 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4bbcfe
mov edx, dword [ebp - 0x560]
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
test edx, edx
je 0x4bbce5
cmp dword [ebp + ecx*4 - 0x55c], eax
je 0x4bbce5
inc ecx
cmp ecx, edx
jb 0x4bbcd7
cmp ecx, edx
jne 0x4bbcfb
cmp edx, 0x40
jae 0x4bbcfb
mov dword [ebp + ecx*4 - 0x55c], eax
inc dword [ebp - 0x560]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x13c]
add esi, 8
jmp 0x4bbbd9
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov esi, dword [ebx + 8]
lea edi, [ebx + 0x10]
lea eax, [esi + 1]
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
cmovge ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
xor eax, eax
test edx, edx
je 0x4bbd40
cmp dword [ebp + eax*4 - 0x138], esi
je 0x4bbd40
inc eax
cmp eax, edx
jb 0x4bbd32
cmp eax, edx
jne 0x4bbd56
cmp edx, 0x40
jae 0x4bbd56
mov dword [ebp + eax*4 - 0x138], esi
inc dword [ebp - 0x13c]
inc dword [ebp - 0x24]
xor eax, eax
inc eax
mov byte [ebx + 0x59], al
push edi
mov dword [ebp - 4], eax
call fcn.004227e9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
pop ecx
xor ecx, ecx
cmp dword [eax + 4], ecx
jl 0x4bbe6b
jg 0x4bbd85
cmp dword [eax], ecx
jb 0x4bbe6b
push ecx
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.005aeb00
push ebx
xor ecx, ecx
push ecx
push 0xf4240
push edx
push eax
call fcn.005aebb0
mov dword [ebp - 0x34], ebx
pop ebx
and dword [ebp - 0x358], 0
mov esi, str.Network
and dword [ebp - 0x348], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x350], eax
xor eax, eax
push 0xad
mov dword [ebp - 0x28], ecx
inc eax
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x354], str.select__:_rd_d_wr_d_ex_d_tv_s
mov dword [ebp - 0x34c], 0x200
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], esi
call fcn.00496d52
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x358]
push dword [ebp - 0x10]
push eax
call fcn.00497435
mov ecx, eax
call fcn.00497435
mov ecx, eax
call fcn.00497435
mov edx, dword [ebp + 0x10]
mov ecx, eax
call fcn.004a4f66
lea ecx, [ebp - 0x358]
call fcn.0042bc04
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_select]
mov ebx, dword [ebp - 0x30]
jmp 0x4bbf0e
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x358], ecx
mov dword [ebp - 0x350], eax
mov esi, str.Network
xor eax, eax
mov dword [ebp - 0x348], ecx
push 0xb2
inc eax
mov dword [ebp - 0x354], str.select__:_rd_d_wr_d_ex_d
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x34c], 0x200
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], esi
call fcn.00496d52
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x358]
push dword [ebp - 0x10]
push eax
call fcn.00497435
mov ecx, eax
call fcn.00497435
mov ecx, eax
call fcn.00497435
lea ecx, [ebp - 0x358]
call fcn.0042bc04
push 0
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_select]
and dword [ebp - 0x358], 0
lea ecx, [ebp - 0x358]
and dword [ebp - 0x348], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x350], eax
xor eax, eax
push 0xb5
inc eax
mov dword [ebp - 0x354], str.select_______d
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [ebp - 0x34c], 0x200
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], esi
call fcn.00496d52
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x358]
push esi
call fcn.00497382
lea ecx, [ebp - 0x358]
call fcn.0042bc04
cmp byte [ebx + 0x59], 0
jne 0x4bbf9a
push 0xb7
push 0x6a5110
push str.m_polling
call fcn.0054db53
add esp, 0xc
mov word [ebx + 0x58], 0
cmp esi, 0xffffffff
jne 0x4bc03f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2714
jne 0x4bbfc4
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x4bc203
and dword [ebp - 0x358], 0
lea eax, [ebp - 0x33c]
and dword [ebp - 0x348], 0
lea ecx, [ebp - 0x358]
push 0xc9
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [ebp - 0x354], str.error_in_select___call:__s
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0x200
mov dword [ebp - 0x344], 4
mov dword [ebp - 0x340], str.Network
call fcn.00496d52
lea edx, [ebp + 8]
mov dword [ebp + 8], esi
lea ecx, [ebp - 0x358]
call fcn.004b80fd
lea ecx, [ebp - 0x358]
call fcn.0042bc04
push 2
pop eax
jmp 0x4bc205
push edi
mov dword [ebp - 0x34], edi
call fcn.004227ca
pop ecx
mov dword [ebp - 4], 2
lea edx, [ebx + 0x4c]
mov eax, dword [edx]
mov dword [edx + 4], eax
mov esi, dword [ebx + 0x40]
mov ebx, dword [ebx + 0x44]
mov dword [ebp - 0x18], edx
jmp 0x4bc185
mov eax, dword [esi + 4]
and dword [ebp + 0x10], 0
mov ecx, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebp - 0x20]
jge 0x4bc182
test cl, 1
je 0x4bc0a4
lea ecx, [ebp - 0x13c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp + 0x10]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x10]
test cl, 2
je 0x4bc0c1
lea ecx, [ebp - 0x45c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4bc0c1
or dword [ebp + 0x10], 2
test cl, 4
je 0x4bc0e4
lea eax, [ebp - 0x560]
push eax
push dword [ebp - 0x14]
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x4bc0e7
or ecx, 4
mov dword [ebp + 0x10], ecx
jmp 0x4bc0e7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x4bc182
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jne 0x4bc163
mov eax, ecx
sub eax, dword [ebp - 0x14]
sar eax, 3
cmp eax, 1
jae 0x4bc163
mov eax, dword [edx]
xor edx, edx
mov ecx, dword [ebp - 0x14]
inc edx
sub ecx, eax
mov dword [ebp - 0x28], eax
sar ecx, 3
mov eax, 0x1fffffff
sub eax, ecx
mov dword [ebp - 0x14], ecx
cmp eax, edx
jb 0x4bc1a2
mov edx, dword [ebp - 0x10]
mov ecx, 0x1fffffff
sub edx, dword [ebp - 0x28]
sar edx, 3
mov eax, edx
mov dword [ebp - 0x10], edx
shr eax, 1
sub ecx, eax
add eax, edx
xor edx, edx
cmp ecx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmovae edx, eax
mov eax, dword [ebp - 0x14]
inc eax
cmp edx, eax
cmovae eax, edx
push eax
call fcn.0046ca5d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4bc17e
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
add dword [edx + 4], 8
add esi, 8
cmp esi, ebx
jne 0x4bc066
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x4bc1ac
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
jmp 0x4bc1c0
push str.vector_T__too_long
call fcn.0051788e
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [edx + 4]
sub eax, dword [edx]
mov ecx, dword [ebp + 0xc]
sar eax, 3
mov dword [ecx], eax
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x13c]
push eax
push dword [esi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bc1f5
mov ecx, esi
call fcn.004bc67b
mov esi, eax
test esi, esi
je 0x4bc1f5
push edi
mov dword [ebp - 4], 3
call fcn.004227e9
pop ecx
mov eax, esi
jmp 0x4bc205
mov dword [ebp - 4], 4
push edi
call fcn.004227e9
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc