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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], esi
cmp ebx, edi
jne 0x467fc6
cmp dword [ebp + 0xc], edi
jne 0x467fc6
cmp dword [ebp + 0x10], edi
jne 0x467fc6
push dword [ebp + 0x14]
call fcn.00467f52
pop ecx
jmp 0x468275
mov eax, dword [ebp + 0x14]
cmp eax, esi
jle 0x467fe4
mov dword [ebp - 0x314], eax
call fcn.00470414
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
cmp ebx, 0xffffffff
je 0x468012
xor esi, esi
inc esi
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], esi
mov edi, ebx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x46808b
xor eax, eax
test esi, esi
je 0x46802e
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x46802e
inc eax
cmp eax, esi
jb 0x468020
cmp eax, esi
jne 0x46804b
cmp esi, 0x40
jae 0x46804b
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
xor eax, eax
cmp eax, dword [ebp - 0x108]
jae 0x46806d
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x468067
inc eax
cmp eax, dword [ebp - 0x108]
jb 0x468055
cmp eax, dword [ebp - 0x108]
jne 0x468085
cmp dword [ebp - 0x108], 0x40
jae 0x468085
mov dword [ebp + eax*4 - 0x104], ecx
inc dword [ebp - 0x108]
cmp ecx, edi
jbe 0x46808b
mov edi, ecx
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x310], ecx
cmp edx, 0xffffffff
je 0x4680e8
inc ecx
xor eax, eax
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x310], ecx
cmp eax, dword [ebp - 0x108]
jae 0x4680ca
cmp dword [ebp + eax*4 - 0x104], edx
je 0x4680c4
inc eax
cmp eax, dword [ebp - 0x108]
jb 0x4680b2
cmp eax, dword [ebp - 0x108]
jne 0x4680e2
cmp dword [ebp - 0x108], 0x40
jae 0x4680e2
mov dword [ebp + eax*4 - 0x104], edx
inc dword [ebp - 0x108]
cmp edx, edi
jbe 0x4680e8
mov edi, edx
xor eax, eax
cmp dword [ebp + 0x14], eax
jge 0x4680f7
mov dword [ebp - 0x320], eax
jmp 0x468103
lea edx, [ebp - 0x328]
mov dword [ebp - 0x320], edx
inc edi
jmp 0x468114
mov esi, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x310]
xor eax, eax
cmp dword [ebp + 0x14], eax
jle 0x468138
mov eax, dword [ebp - 0x314]
cdq
mov ebx, 0x3e8
idiv ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 0x324], edx
jmp 0x468140
jne 0x468146
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x328], eax
push dword [ebp - 0x320]
neg ecx
lea eax, [ebp - 0x108]
push eax
sbb ecx, ecx
lea eax, [ebp - 0x310]
and ecx, eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x20c]
push ecx
and esi, eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4681cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x468193
cmp dword [0x5034ac], 0
jne 0x4681d1
cmp eax, 0x2714
jne 0x4681d1
cmp dword [ebp + 0x14], 0
jle 0x468106
push dword [ebp - 0x318]
push dword [ebp - 0x31c]
call fcn.00470414
push edx
push eax
call fcn.0047042a
mov ecx, dword [ebp + 0x14]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x314], ecx
test ecx, ecx
jg 0x468106
xor eax, eax
test eax, eax
jns 0x4681d9
or eax, 0xffffffff
jmp 0x468275
jne 0x4681e2
xor eax, eax
jmp 0x468275
xor esi, esi
cmp ebx, 0xffffffff
je 0x46820f
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4681fb
inc esi
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x46820f
or esi, 4
cmp dword [ebp + 0xc], 0xffffffff
je 0x468241
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x46822b
or esi, 8
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x468241
or esi, 4
cmp dword [ebp + 0x10], 0xffffffff
je 0x468273
lea eax, [ebp - 0x310]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x46825d
or esi, 2
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x468273
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret