Function at 0x4ec1c0
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 0x4ec1fe
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 0x4ec239
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], eax
jmp 0x4ec283
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x4ec279
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 0x4ec283
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 [0x693538]
mov edi, eax
test cl, 1
jne 0x4ec2da
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 0x4ec421
mov eax, dword [0x693538]
test bl, bl
je 0x4ec3b5
test al, 1
jne 0x4ec350
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 0x4ec355
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 0x4ec3f0
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 0x4ec476
mov eax, dword [0x693538]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x114], 0
test al, 1
jne 0x4ec463
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