Function at 0x456ab5
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x49b854]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], esi
cmp edi, esi
je 0x456afb
xor eax, eax
cmp dword [ebp + 0xc], esi
jbe 0x456afb
or ebx, 0xffffffff
cmp dword [edi + eax*8], ebx
jne 0x456b09
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x456aed
push dword [ebp + 0x10]
call fcn.00456882
pop ecx
jmp 0x456d46
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x456b27
mov dword [ebp - 0x314], eax
call fcn.00458122
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x108], esi
xor ecx, ecx
lea eax, [edi + esi*8 + 4]
mov word [eax + 2], cx
mov ecx, dword [edi + esi*8]
cmp ecx, 0xffffffff
je 0x456c1e
movzx edx, word [eax]
test dl, 7
je 0x456c1e
cmp ecx, ebx
jbe 0x456b61
mov ebx, ecx
test dl, 1
je 0x456ba0
xor eax, eax
cmp eax, dword [ebp - 0x310]
jae 0x456b88
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x456b82
inc eax
cmp eax, dword [ebp - 0x310]
jb 0x456b70
cmp eax, dword [ebp - 0x310]
jne 0x456ba0
cmp dword [ebp - 0x310], 0x40
jae 0x456ba0
mov dword [ebp + eax*4 - 0x30c], ecx
inc dword [ebp - 0x310]
test dl, 4
je 0x456bdf
xor eax, eax
cmp eax, dword [ebp - 0x20c]
jae 0x456bc7
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x456bc1
inc eax
cmp eax, dword [ebp - 0x20c]
jb 0x456baf
cmp eax, dword [ebp - 0x20c]
jne 0x456bdf
cmp dword [ebp - 0x20c], 0x40
jae 0x456bdf
mov dword [ebp + eax*4 - 0x208], ecx
inc dword [ebp - 0x20c]
test dl, 2
je 0x456c1e
xor eax, eax
cmp eax, dword [ebp - 0x108]
jae 0x456c06
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x456c00
inc eax
cmp eax, dword [ebp - 0x108]
jb 0x456bee
cmp eax, dword [ebp - 0x108]
jne 0x456c1e
cmp dword [ebp - 0x108], 0x40
jae 0x456c1e
mov dword [ebp + eax*4 - 0x104], ecx
inc dword [ebp - 0x108]
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x456b39
xor esi, esi
cmp dword [ebp + 0x10], esi
jl 0x456c35
lea esi, [ebp - 0x324]
inc ebx
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x456c59
mov eax, dword [ebp - 0x314]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x320], edx
jmp 0x456c61
jne 0x456c67
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x324], eax
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x456cd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x456c9a
cmp eax, 0x2714
jne 0x456cd4
cmp dword [ebp + 0x10], 0
jle 0x456c36
push dword [ebp - 0x318]
push dword [ebp - 0x31c]
call fcn.00458122
push edx
push eax
call fcn.00458138
mov ecx, dword [ebp + 0x10]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x314], ecx
test ecx, ecx
jg 0x456c36
jmp 0x456cd4
test eax, eax
jns 0x456cd9
or eax, 0xffffffff
jmp 0x456d46
jne 0x456cdf
xor eax, eax
jmp 0x456d46
lea esi, [edi + 6]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x456d3e
lea ecx, [ebp - 0x310]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456d09
or word [esi], 1
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456d20
or word [esi], 4
lea eax, [ebp - 0x108]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x456d37
or word [esi], 2
cmp word [esi], 0
je 0x456d3e
inc ebx
add esi, 8
dec edi
jne 0x456ce7
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bc90
leave
ret