Function at 0x49a1a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x5cc180]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5d0360]
mov ecx, dword [0x5d0364]
lea edx, [eax + 1]
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
test eax, edx
sete byte [ebp - 0x11]
cmp ecx, 0xa
setl byte [ebp - 0x12]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, 0x92145cea
mov esi, 0x8915b9dc
mov ebx, 0xacca029c
jmp 0x49a210
mov eax, 0xacca029c
nop word [eax + eax]
cmp eax, 0x1d6c0b54
jg 0x49a270
cmp eax, 0xd14057ba
jg 0x49a2f0
cmp eax, 0x997b52af
jg 0x49a377
cmp eax, 0x8915b9dc
je 0x49a3c7
cmp eax, 0x92145cea
jne 0x49a210
movzx ecx, byte [ebp - 0x11]
movzx eax, byte [ebp - 0x12]
mov edx, ecx
xor dl, al
mov edx, 0xef10488f
mov edi, 0x23ffb0bc
cmovne edx, edi
test al, al
mov eax, edx
cmovne eax, edi
test cl, cl
cmove eax, edx
jmp 0x49a210
cmp eax, 0x3690d914
jg 0x49a320
cmp eax, 0x1d6c0b55
je 0x49a205
cmp eax, 0x1f06772f
je 0x49a3d1
cmp eax, 0x23ffb0bc
jne 0x49a210
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, dword [0x5d0360]
lea ecx, [eax + 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
sete cl
mov eax, 0xef10488f
cmove eax, esi
cmp dword [0x5d0364], 0xa
mov edx, 0xef10488f
cmovge eax, edx
setl dl
xor dl, cl
cmovne eax, esi
jmp 0x49a210
cmp eax, 0xd14057bb
je 0x49a3db
cmp eax, 0xef10488f
je 0x49a3e5
cmp eax, 0xf3d3a2da
jne 0x49a210
mov eax, 0x997b52b0
jmp 0x49a210
cmp eax, 0x3690d915
je 0x49a3ef
cmp eax, 0x5488b602
je 0x49a409
cmp eax, 0x668ad4db
jne 0x49a210
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
inc eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
mov eax, 0x5488b602
mov ecx, 0x3690d915
cmovs eax, ecx
jmp 0x49a210
cmp eax, 0xacca029c
jne 0x49a443
mov edx, dword [0x5d0360]
mov ecx, dword [0x5d0364]
lea eax, [edx + 1]
imul eax, edx
not eax
or eax, 0xfffffffe
cmp eax, 0xffffffff
sete dl
cmp ecx, 0xa
setl dh
xor dh, dl
mov edx, 0x1d6c0b55
mov edi, 0xf3d3a2da
cmovne edx, edi
cmp eax, 0xffffffff
mov eax, edx
cmove eax, edi
cmp ecx, 0xa
cmovge eax, edx
jmp 0x49a210
mov eax, 0x1f06772f
jmp 0x49a210
mov eax, 0x668ad4db
jmp 0x49a210
mov eax, 0x1f06772f
jmp 0x49a210
mov eax, 0x23ffb0bc
jmp 0x49a210
call fcn.0059db37
cmp dword [eax], 4
mov eax, 0x5488b602
mov ecx, 0xd14057bb
cmove eax, ecx
jmp 0x49a210
mov eax, dword [0x5d0360]
lea ecx, [eax + 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
sete cl
mov eax, 0x1d6c0b55
cmove eax, ebx
cmp dword [0x5d0364], 0xa
mov edx, 0x1d6c0b55
cmovge eax, edx
setl dl
xor dl, cl
cmovne eax, ebx
jmp 0x49a210
cmp eax, 0x997b52b0
jne 0x49a210
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00594995
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret