Function at 0x6e9246f2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
test eax, eax
je 0x6e9247bc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 1
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_mm_realloc_
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x6e924754
mov eax, 0xffffffff
jmp 0x6e924aba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_mm_realloc_
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x6e924783
mov eax, 0xffffffff
jmp 0x6e924aba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_mm_realloc_
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x6e9247b2
mov eax, 0xffffffff
jmp 0x6e924aba
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fd_set_copy
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fd_set_copy
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fd_set_copy
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
cmp edx, eax
cmovae eax, edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6e924864
cmp dword [ebp + 0xc], 0
je 0x6e924835
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_tv_to_msec_
jmp 0x6e92483a
mov eax, 0x7fffffff
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jns 0x6e92484a
mov dword [ebp - 0x24], 0x7fffffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 0
jmp 0x6e924aba
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e92488a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e9248e8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [sym.libevent_core_2_1_6.dll_event_debug_logging_mask_]
test eax, eax
je 0x6e92490c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.win32_dispatch
mov dword [esp], str._s:_select_returned__d
call sym.libevent_core_2_1_6.dll_event_debugx_
cmp dword [ebp - 0x1c], 0
jg 0x6e92491a
mov eax, dword [ebp - 0x1c]
jmp 0x6e924aba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6e9249a3
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, 0x188
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_weakrand_range_
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
jmp 0x6e924996
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jb 0x6e924968
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evmap_io_active_
add dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jb 0x6e924950
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x6e924a2c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, 0x188
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_weakrand_range_
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
jmp 0x6e924a1f
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jb 0x6e9249f1
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evmap_io_active_
add dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jb 0x6e9249d9
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x6e924ab5
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, 0x188
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_weakrand_range_
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
jmp 0x6e924aa8
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jb 0x6e924a7a
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evmap_io_active_
add dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jb 0x6e924a62
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret