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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp ebx, 0xffffffff
jne 0x421a59
cmp dword [ebp + 0xc], ebx
jne 0x421a59
cmp edi, eax
je 0x421c5f
jge 0x421a49
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
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 esp, ebp
pop ebp
ret
cmp edi, eax
jle 0x421a89
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x130], eax
cmp ebx, 0xffffffff
je 0x421abd
mov ecx, 1
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
mov edx, ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x238], eax
cmp ebx, 0xffffffff
je 0x421b09
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], 1
test ecx, ecx
jbe 0x421af0
mov ebx, dword [ebp + 0xc]
cmp dword [esp + eax*4 + 0x2c], ebx
je 0x421af0
inc eax
cmp eax, ecx
jb 0x421ae2
cmp eax, ecx
jne 0x421b01
cmp ecx, 0x40
jae 0x421b01
mov dword [esp + eax*4 + 0x2c], ebx
inc dword [esp + 0x28]
xor eax, eax
cmp ebx, edx
jbe 0x421b09
mov edx, ebx
xor ecx, ecx
cmp edi, eax
setl cl
lea ebx, [esp + 0x18]
dec ecx
and ecx, ebx
inc edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x421b24
xor eax, eax
cmp edi, eax
jle 0x421b53
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x421b5d
jne 0x421b5d
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421bed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x421b9a
cmp eax, 0x2714
jne 0x421bed
test edi, edi
jle 0x421b22
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov esi, dword [esp + 0x10]
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
sub ecx, dword [esp + 0x14]
sub esi, edx
mov eax, 0x10624dd3
imul esi, esi, 0x3e8
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
add esi, edi
test esi, esi
jg 0x421b22
test ebx, ebx
jl 0x421a3f
je 0x421a50
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x421c2e
lea edx, [esp + 0x130]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x421c1c
mov esi, 1
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x421c2e
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x421c5d
lea ecx, [esp + 0x238]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x421c4b
or esi, 2
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x421c5d
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret