Function at 0x417048
Capabilities:
Get socket status

Disassembly:
mov eax, 0x46a199
call fcn.00469788
mov eax, dword [ecx]
sub esp, 0x53c
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [eax + 4], ebx
jne 0x417072
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
jmp 0x417299
xor ecx, ecx
mov dword [ebp - 0x138], ebx
inc ecx
mov dword [ebp - 0x240], ebx
push ecx
mov byte [ebp - 0xd], cl
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x348], ebx
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
call fcn.00417397
mov dword [ebp - 4], ebx
mov eax, ebx
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov esi, dword [edi]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x41728a
mov dword [ebp - 0x14], ebx
jmp 0x4171b2
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
cmp byte [eax + 8], 0
je 0x417105
mov eax, dword [ebp - 0x138]
mov ecx, ebx
test eax, eax
je 0x4170e6
mov edx, dword [esi + 0x10]
cmp dword [ebp + ecx*4 - 0x134], edx
je 0x4170e6
inc ecx
cmp ecx, eax
jb 0x4170d8
cmp ecx, eax
jne 0x4170ff
cmp eax, 0x40
jae 0x4170ff
mov eax, dword [esi + 0x10]
mov dword [ebp + ecx*4 - 0x134], eax
inc dword [ebp - 0x138]
xor eax, eax
inc eax
mov byte [ebp - 0xf], al
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
cmp byte [eax + 9], 0
je 0x41714d
mov eax, dword [ebp - 0x240]
mov ecx, ebx
test eax, eax
je 0x41712e
mov edx, dword [esi + 0x10]
cmp dword [ebp + ecx*4 - 0x23c], edx
je 0x41712e
inc ecx
cmp ecx, eax
jb 0x417120
cmp ecx, eax
jne 0x417147
cmp eax, 0x40
jae 0x417147
mov eax, dword [esi + 0x10]
mov dword [ebp + ecx*4 - 0x23c], eax
inc dword [ebp - 0x240]
xor eax, eax
inc eax
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0x348]
mov ecx, ebx
test eax, eax
je 0x41716a
mov edx, dword [esi + 0x10]
cmp dword [ebp + ecx*4 - 0x344], edx
je 0x41716a
inc ecx
cmp ecx, eax
jb 0x41715c
cmp ecx, eax
jne 0x417183
cmp eax, 0x40
jae 0x417183
mov eax, dword [esi + 0x10]
mov dword [ebp + ecx*4 - 0x344], eax
inc dword [ebp - 0x348]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebp + ecx*4 - 0x448], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + ecx*4 - 0x548], eax
inc ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
call fcn.00415dd9
cmp dword [ebp - 0x14], 0x40
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
je 0x4171ba
cmp esi, edi
jne 0x4170bd
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
je 0x4171c9
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x28]
xor ecx, ecx
cmp byte [ebp - 0xe], cl
push eax
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x240]
cmove eax, ecx
cmp byte [ebp - 0xf], cl
push eax
lea eax, [ebp - 0x138]
cmove eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x41728f
cmp dword [ebp - 0x14], 0
je 0x41727c
mov esi, dword [ebp - 0x14]
dec esi
lea eax, [ebp - 0x138]
push eax
push dword [ebp + esi*4 - 0x448]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push 1
test eax, eax
mov edi, ebx
pop eax
cmovne edi, eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp + esi*4 - 0x448]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x417243
or edi, 2
lea eax, [ebp - 0x348]
push eax
push dword [ebp + esi*4 - 0x448]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x41725e
or edi, 4
mov ecx, dword [ebp + esi*4 - 0x548]
test edi, edi
je 0x417275
mov eax, dword [ecx]
push edi
call dword [eax + 4]
movzx eax, al
add dword [ebp - 0x20], eax
test esi, esi
jne 0x417209
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
cmp esi, edi
jne 0x4170b5
mov eax, dword [ebp - 0x20]
test eax, eax
setne bl
lea ecx, [ebp - 0x30]
call fcn.004139ba
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4