Function at 0x49267c
Capabilities:
Get socket status

Disassembly:
sub esp, 0x344
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x33c], eax
mov dword [esp + 8], edx
mov dword [esp + 0x1c], ecx
push ebx
push ebp
push esi
push edi
test ecx, ecx
je 0x4926b3
xor esi, esi
mov eax, esi
test edx, edx
je 0x4926b3
cmp dword [ecx + eax*8], 0xffffffff
jne 0x4926e1
inc eax
cmp eax, edx
jb 0x4926a8
push dword [esp + 0x35c]
push dword [esp + 0x35c]
call fcn.00492526
pop ecx
pop ecx
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x344
ret
or eax, 0xffffffff
mov dword [esp + 0x24], esi
mov ebx, esi
mov dword [esp + 0x14], eax
mov ebp, esi
mov dword [esp + 0x30], ebx
mov edi, esi
mov dword [esp + 0x138], ebp
add ecx, 4
mov dword [esp + 0x240], edi
mov dword [esp + 0x1c], ecx
xor edx, edx
mov esi, eax
mov word [ecx + 2], dx
mov ecx, dword [ecx - 4]
mov edx, dword [esp + 0x18]
cmp ecx, 0xffffffff
je 0x492806
jae 0x492845
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
mov edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
test al, 7
je 0x492802
cmp ecx, esi
mov edx, ecx
cmovbe edx, esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
test al, 1
je 0x492780
xor esi, esi
mov eax, esi
test ebx, ebx
je 0x492768
cmp dword [esp + eax*4 + 0x34], ecx
je 0x492768
inc eax
cmp eax, ebx
jb 0x49275d
cmp eax, ebx
jne 0x492782
cmp ebx, 0x40
jae 0x492782
mov dword [esp + eax*4 + 0x34], ecx
mov ebx, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x30], ebx
jmp 0x492782
xor esi, esi
mov eax, dword [esp + 0x20]
test al, 4
je 0x4927c1
mov eax, esi
test ebp, ebp
je 0x49279e
cmp dword [esp + eax*4 + 0x13c], ecx
je 0x49279e
inc eax
cmp eax, ebp
jb 0x492790
cmp eax, ebp
jne 0x4927bd
cmp ebp, 0x40
jae 0x4927bd
mov dword [esp + eax*4 + 0x13c], ecx
mov ebp, dword [esp + 0x138]
inc ebp
mov dword [esp + 0x138], ebp
mov eax, dword [esp + 0x20]
test al, 2
je 0x492802
mov eax, esi
test edi, edi
je 0x4927d9
cmp dword [esp + eax*4 + 0x244], ecx
je 0x4927d9
inc eax
cmp eax, edi
jb 0x4927cb
cmp eax, edi
jne 0x4927f8
cmp edi, 0x40
jae 0x4927f8
mov dword [esp + eax*4 + 0x244], ecx
mov edi, dword [esp + 0x240]
inc edi
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x492806
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
inc esi
add ecx, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ecx
cmp esi, edx
jb 0x49270b
test ebx, ebx
jne 0x492858
test ebp, ebp
jne 0x492858
test edi, edi
jne 0x492858
push dword [esp + 0x35c]
push dword [esp + 0x35c]
call fcn.00492526
pop ecx
pop ecx
jmp 0x4928a6
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x4926c8
push dword [esp + 0x35c]
lea ecx, [esp + 0x28]
push dword [esp + 0x35c]
call fcn.004b245b
pop ecx
pop ecx
push eax
xor eax, eax
lea esi, [esp + 0x244]
test edi, edi
lea ecx, [esp + 0x13c]
cmove esi, eax
test ebp, ebp
push esi
cmove ecx, eax
xor edi, edi
test ebx, ebx
lea eax, [esp + 0x38]
push ecx
cmove eax, edi
push eax
mov eax, dword [esp + 0x24]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jg 0x4928c8
cmp esi, 0xffffffff
jne 0x4928c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2714
cmove esi, ecx
mov eax, esi
jmp 0x4926c8
mov esi, dword [esp + 0x2c]
xor edi, edi
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
add esi, 6
mov ebp, dword [esp + 0x18]
xor eax, eax
cmp dword [esi - 6], 0xffffffff
mov word [esi], ax
je 0x49293c
lea eax, [esp + 0x30]
push eax
push dword [esi - 6]
call ebx
test eax, eax
je 0x4928fe
test byte [esi - 2], 1
je 0x4928fe
or word [esi], 1
lea eax, [esp + 0x138]
push eax
push dword [esi - 6]
call ebx
test eax, eax
je 0x492919
test byte [esi - 2], 4
je 0x492919
or word [esi], 4
lea eax, [esp + 0x240]
push eax
push dword [esi - 6]
call ebx
test eax, eax
je 0x492934
test byte [esi - 2], 2
je 0x492934
or word [esi], 2
xor eax, eax
cmp word [esi], ax
je 0x49293c
inc edi
add esi, 8
sub ebp, 1
jne 0x4928db
mov eax, edi
jmp 0x4926c8