Function at 0x4e8b60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x689300]
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 0x4e8b9e
push 0x2719
mov ecx, esi
call fcn.0048c2d0
or eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8774
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 0x4e8bd9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], eax
jmp 0x4e8c23
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x4e8c19
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 0x4e8c23
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 [0x6924b8]
mov edi, eax
test cl, 1
jne 0x4e8c7a
or ecx, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], ecx
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x118], eax
mov ecx, 0x6924a8
push eax
mov eax, dword [0x6924a8]
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], 0x6924a8
test edi, edi
jne 0x4e8dc1
mov eax, dword [0x6924b8]
test bl, bl
je 0x4e8d55
test al, 1
jne 0x4e8cf0
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], eax
jmp 0x4e8cf5
mov eax, dword [0x6924a8]
mov eax, dword [eax + 0x18]
mov ecx, 0x6924a8
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], 0x6924a8
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.005b8774
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x120], 0
test al, 1
jne 0x4e8d90
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], 0x6924a8
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.005b8774
mov esp, ebp
pop ebp
ret
jle 0x4e8e16
mov eax, dword [0x6924b8]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x114], 0
test al, 1
jne 0x4e8e03
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
movq xmm0, qword [ebp - 0x118]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6924a8
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005b8774
mov esp, ebp
pop ebp
ret