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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x4e50cc]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x46c08c
cmp ebx, 0xffffffff
jne 0x46c08c
test edi, edi
je 0x46c075
jns 0x46c06e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x46c0c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, edx
shr eax, 6
imul ecx, eax, 0x3e8
mov dword [esp + 0x14], eax
sub esi, ecx
imul eax, esi, 0x3e8
mov esi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x238], ecx
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
je 0x46c100
mov ecx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
mov edx, eax
mov dword [esp + 0x23c], eax
mov dword [esp + 0x238], ecx
jmp 0x46c100
mov dword [esp + 0x130], 0
cmp ebx, 0xffffffff
je 0x46c15a
xor eax, eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], 1
test ecx, ecx
je 0x46c13e
jmp 0x46c130
cmp dword [esp + eax*4 + 0x23c], ebx
je 0x46c13e
inc eax
cmp eax, ecx
jb 0x46c130
cmp eax, ecx
jne 0x46c155
cmp ecx, 0x40
jae 0x46c155
mov dword [esp + eax*4 + 0x23c], ebx
inc dword [esp + 0x238]
cmp ebx, edx
cmova edx, ebx
xor ecx, ecx
lea eax, [esp + 0x1c]
test edi, edi
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], ecx
test edi, edi
jle 0x46c1a3
mov eax, 0x10624dd3
mov ecx, esi
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
jmp 0x46c1b5
jne 0x46c1b5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push eax
xor ecx, ecx
lea eax, [esp + 0x23c]
cmp dword [esp + 0x134], ecx
push eax
lea eax, [esp + 0x138]
cmove eax, ecx
cmp dword [esp + 0x30], ecx
push eax
lea eax, [esp + 0x34]
cmove eax, ecx
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x46c271
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x46c213
cmp dword [0x4ed508], 0
jne 0x46c056
cmp eax, 0x2714
jne 0x46c056
mov eax, dword [esp + 0xc]
test edi, edi
jle 0x46c1a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [esp + 0x14]
shr edx, 6
imul ecx, edx, 0x3e8
sub eax, edx
sub esi, ecx
imul ecx, esi, 0x3e8
imul esi, eax, 0x3e8
mov eax, 0x10624dd3
sub ecx, dword [esp + 0x18]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
test esi, esi
jle 0x46c075
mov eax, dword [esp + 0xc]
jmp 0x46c170
test eax, eax
js 0x46c056
je 0x46c075
mov eax, dword [esp + 0x10]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x46c2b7
lea ecx, [esp + 0x28]
push ecx
push eax
call edi
test eax, eax
mov ecx, 1
lea eax, [esp + 0x238]
push eax
push dword [esp + 0x14]
cmovne esi, ecx
call edi
test eax, eax
je 0x46c2b7
or esi, 4
cmp ebx, 0xffffffff
je 0x46c2e0
lea eax, [esp + 0x130]
push eax
push ebx
call edi
test eax, eax
je 0x46c2ce
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call edi
test eax, eax
je 0x46c2e0
or esi, 4
mov ecx, dword [esp + 0x344]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret