Function at 0x4ebef0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4ebf2e
push 0x2719
mov ecx, esi
call fcn.0048fde0
or eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
and bl, 1
je 0x4ebf69
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], eax
jmp 0x4ebfb3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x4ebfa9
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x120], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x10c], eax
jmp 0x4ebfb3
mov dword [ebp - 0x10c], 0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0
push 0
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x693538]
mov edi, eax
test cl, 1
jne 0x4ec00a
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x118], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x114], al
movq xmm0, qword [ebp - 0x118]
movq qword [esi], xmm0
mov dword [esi + 8], 0x693528
test edi, edi
jne 0x4ec151
mov eax, dword [0x693538]
test bl, bl
je 0x4ec0e5
test al, 1
jne 0x4ec080
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], eax
jmp 0x4ec085
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
mov ecx, 0x693528
push 0x2733
mov dword [ebp - 0x118], 0x2733
call eax
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x118]
movq xmm0, qword [ebp - 0x118]
movq qword [ebp - 0x118], xmm0
mov dword [ebp - 0x110], 0x693528
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x120], 0
test al, 1
jne 0x4ec120
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], 0x693528
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
jle 0x4ec1a6
mov eax, dword [0x693538]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x114], 0
test al, 1
jne 0x4ec193
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0x118]
movq qword [esi], xmm0
mov dword [esi + 8], 0x693528
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret