Function at 0x4e8330
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x686300]
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 0x4e836e
push 0x2719
mov ecx, esi
call fcn.0048c390
or eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
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 0x4e83a9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], eax
jmp 0x4e83f3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x4e83e9
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 0x4e83f3
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 eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x68f4b8]
mov edi, eax
test cl, 1
jne 0x4e844a
or ecx, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], ecx
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x118], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
test edi, edi
jne 0x4e8591
mov eax, dword [0x68f4b8]
test bl, bl
je 0x4e8525
test al, 1
jne 0x4e84c0
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], eax
jmp 0x4e84c5
mov eax, dword [0x68f4a8]
mov eax, dword [eax + 0x18]
mov ecx, 0x68f4a8
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], 0x68f4a8
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.005b7dc4
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x120], 0
test al, 1
jne 0x4e8560
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], 0x68f4a8
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.005b7dc4
mov esp, ebp
pop ebp
ret
jle 0x4e85e6
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x114], 0
test al, 1
jne 0x4e85d3
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
movq xmm0, qword [ebp - 0x118]
movq qword [esi], xmm0
mov dword [esi + 8], 0x68f4a8
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret