Function at 0x4baa89
Capabilities:
Get socket status

Disassembly:
mov eax, 0x6bfa90
call fcn.006b6d3c
sub esp, 0x54c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov ebx, ecx
mov dword [eax], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
cmp byte [edi + 0x59], cl
je 0x4baad1
push 0x67
push str.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_bnl_dl2_net_source_net_selectsocketpollset.cpp
push str._m_polling
call fcn.0055c77a
add esp, 0xc
xor ecx, ecx
lea esi, [edi + 0x10]
mov dword [ebp - 0x134], ecx
push esi
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x558], ecx
call fcn.004222d6
pop ecx
cmp byte [edi + 0x58], bl
je 0x4bab06
mov byte [edi + 0x58], bl
and dword [ebp - 4], 0
push esi
call fcn.004222f5
xor eax, eax
jmp 0x4bb0de
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
cmp eax, ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x134]
je 0x4bac37
mov esi, ebx
mov edi, eax
mov ebx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 1]
cmp esi, eax
cmovl esi, eax
mov eax, dword [ebp - 0x10]
test al, 1
je 0x4bab84
lea eax, [ebp - 0x134]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 0x134]
test eax, eax
jne 0x4bab81
test ecx, ecx
je 0x4bab61
cmp dword [ebp + eax*4 - 0x130], ebx
je 0x4bab61
inc eax
cmp eax, ecx
jb 0x4bab53
cmp eax, ecx
jne 0x4bab7e
cmp ecx, 0x40
jae 0x4bab7e
mov dword [ebp + eax*4 - 0x130], ebx
mov ecx, dword [ebp - 0x134]
inc ecx
mov dword [ebp - 0x134], ecx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test al, 2
je 0x4babd3
lea eax, [ebp - 0x454]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4babca
mov ecx, dword [ebp - 0x454]
test ecx, ecx
je 0x4babb1
cmp dword [ebp + eax*4 - 0x450], ebx
je 0x4babb1
inc eax
cmp eax, ecx
jb 0x4baba3
cmp eax, ecx
jne 0x4babc7
cmp ecx, 0x40
jae 0x4babc7
mov dword [ebp + eax*4 - 0x450], ebx
inc dword [ebp - 0x454]
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x134]
test al, 4
je 0x4bac1f
lea eax, [ebp - 0x558]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4bac19
mov ecx, dword [ebp - 0x558]
test ecx, ecx
je 0x4bac00
cmp dword [ebp + eax*4 - 0x554], ebx
je 0x4bac00
inc eax
cmp eax, ecx
jb 0x4babf2
cmp eax, ecx
jne 0x4bac16
cmp ecx, 0x40
jae 0x4bac16
mov dword [ebp + eax*4 - 0x554], ebx
inc dword [ebp - 0x558]
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x134]
add edi, 8
cmp edi, dword [ebp - 0x24]
jne 0x4bab21
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp - 0x10]
lea esi, [edi + 0x10]
mov edx, dword [edi + 8]
lea eax, [edx + 1]
cmp ebx, eax
cmovl ebx, eax
xor eax, eax
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x4bac59
cmp dword [ebp + eax*4 - 0x130], edx
je 0x4bac59
inc eax
cmp eax, ecx
jb 0x4bac4b
cmp eax, ecx
jne 0x4bac6f
cmp ecx, 0x40
jae 0x4bac6f
mov dword [ebp + eax*4 - 0x130], edx
inc dword [ebp - 0x134]
inc dword [ebp - 0x14]
mov byte [edi + 0x59], 1
push esi
mov dword [ebp - 4], 1
call fcn.004222f5
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
pop ecx
xor ecx, ecx
cmp dword [eax + 4], ecx
jl 0x4bad83
jg 0x4baca0
cmp dword [eax], ecx
jb 0x4bad83
push ecx
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.005cccc0
push ebx
push 0
push 0xf4240
push edx
push eax
call fcn.005ccd70
mov dword [ebp - 0x2c], ebx
pop ebx
and dword [ebp - 0x350], 0
mov ebx, str.Network
and dword [ebp - 0x340], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x334]
push 0xad
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x350]
push 0x797140
mov dword [ebp - 0x34c], str.select__:_rd_d_wr_d_ex_d_tv_s
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], 0x200
mov dword [ebp - 0x33c], 1
mov dword [ebp - 0x338], ebx
call fcn.00492518
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x350]
push dword [ebp - 0x1c]
push eax
call fcn.00492b4d
mov ecx, eax
call fcn.00492b4d
mov ecx, eax
call fcn.00492b4d
mov edx, dword [ebp + 0x10]
mov ecx, eax
call fcn.004a1381
lea ecx, [ebp - 0x350]
call fcn.0042e42b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_select]
jmp 0x4bae29
push 0xb2
mov dword [ebp - 0x350], ecx
lea eax, [ebp - 0x334]
mov dword [ebp - 0x340], ecx
lea ecx, [ebp - 0x350]
push 0x797140
mov dword [ebp - 0x34c], str.select__:_rd_d_wr_d_ex_d
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], 0x200
mov dword [ebp - 0x33c], 1
mov dword [ebp - 0x338], str.Network
call fcn.00492518
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x350]
push dword [ebp - 0x1c]
push eax
call fcn.00492b4d
mov ecx, eax
call fcn.00492b4d
mov ecx, eax
call fcn.00492b4d
lea ecx, [ebp - 0x350]
call fcn.0042e42b
push 0
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, str.Network
and dword [ebp - 0x350], 0
lea ecx, [ebp - 0x350]
and dword [ebp - 0x340], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x334]
push 0xb5
push 0x797140
mov dword [ebp - 0x34c], str.select_______d
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], 0x200
mov dword [ebp - 0x33c], 1
mov dword [ebp - 0x338], ebx
call fcn.00492518
push dword [ebp + 0x10]
lea ecx, [ebp - 0x350]
call fcn.00492a9a
lea ecx, [ebp - 0x350]
call fcn.0042e42b
cmp byte [edi + 0x59], 0
jne 0x4baeb5
push 0xb7
push str.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_bnl_dl2_net_source_net_selectsocketpollset.cpp
push str.m_polling
call fcn.0055c77a
add esp, 0xc
cmp dword [ebp + 0x10], 0xffffffff
mov word [edi + 0x58], 0
jne 0x4baf5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2714
jne 0x4baee2
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x4bb0df
and dword [ebp - 0x350], 0
lea eax, [ebp - 0x334]
and dword [ebp - 0x340], 0
lea ecx, [ebp - 0x350]
push 0xc9
push 0x797140
mov dword [ebp - 0x34c], str.error_in_select___call:__s
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], 0x200
mov dword [ebp - 0x33c], 4
mov dword [ebp - 0x338], ebx
call fcn.00492518
lea eax, [ebp - 0x350]
mov dword [ebp + 8], esi
push eax
lea ecx, [ebp + 8]
call fcn.004ba84a
lea ecx, [ebp - 0x350]
call fcn.0042e42b
push 2
pop eax
jmp 0x4bb0df
push esi
mov dword [ebp - 0x2c], esi
call fcn.004222d6
pop ecx
mov dword [ebp - 4], 2
lea ebx, [edi + 0x4c]
mov ecx, dword [ebx]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x14], eax
cmp eax, edx
je 0x4bb081
mov ecx, dword [ebp - 0x10]
mov esi, edx
mov ebx, dword [eax]
lea edx, [eax + 4]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x28], edx
mov edx, dword [edx]
mov dword [ebp - 0x20], ebx
lea ebx, [edi + 0x4c]
mov dword [ebp - 0x24], edx
cmp edx, ecx
jge 0x4bb06d
xor ecx, ecx
test byte [ebp - 0x20], 1
mov dword [ebp + 0x10], ecx
je 0x4bafdf
xor eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x134]
push eax
push edx
call sub.WS2_32.dll___WSAFDIsSet
mov edx, dword [ebp - 0x24]
test eax, eax
je 0x4bafdc
xor eax, eax
inc eax
mov ecx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x10], ecx
jmp 0x4bafdf
mov ecx, dword [ebp + 0x10]
test byte [ebp - 0x20], 2
mov eax, ecx
mov dword [ebp - 0x1c], eax
je 0x4bb00f
lea eax, [ebp - 0x454]
mov dword [ebp - 0x1c], ecx
push eax
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb00c
mov eax, dword [ebp + 0x10]
or eax, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jmp 0x4bb00f
mov eax, dword [ebp - 0x1c]
test byte [ebp - 0x20], 4
mov ecx, eax
je 0x4bb03b
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x558]
push eax
push dword [ebp - 0x24]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb038
mov ecx, dword [ebp - 0x1c]
or ecx, 4
mov dword [ebp - 0x18], ecx
jmp 0x4bb03b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bb067
mov edx, dword [ebx + 4]
cmp dword [ebx + 8], edx
je 0x4bb057
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [edx], eax
mov dword [edx + 4], ecx
add dword [ebx + 4], 8
jmp 0x4bb067
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov eax, dword [ebp - 0x28]
push eax
push edx
call fcn.004bb733
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x4baf8c
mov ecx, dword [ebx + 4]
lea esi, [edi + 0x10]
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
cmp edx, ecx
jne 0x4bb095
and dword [eax], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
jmp 0x4bb0a4
mov ecx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 3
mov dword [ecx], eax
lea eax, [ebp - 0x134]
push eax
push dword [edi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb0cd
mov ecx, edi
call fcn.004bb554
mov edi, eax
test edi, edi
je 0x4bb0cd
mov dword [ebp - 4], 3
jmp 0x4bb0d6
mov dword [ebp - 4], 4
xor edi, edi
push esi
call fcn.004222f5
mov eax, edi
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc