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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x330], 0
mov ebx, edx
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x334], eax
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x42791a
cmp ebx, ecx
jne 0x42791a
cmp dword [ebp + 8], ecx
jne 0x42791a
test edi, edi
je 0x427907
jns 0x427900
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
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 [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x427958
mov dword [ebp - 0x334], edi
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 [ebp - 0x330], eax
sub esi, ecx
mov ecx, dword [ebp - 0x328]
imul eax, esi, 0x3e8
mov dword [ebp - 0x32c], eax
xor eax, eax
xor edx, edx
or esi, 0xffffffff
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x218], edx
cmp ecx, 0xffffffff
je 0x427991
mov edx, 1
mov dword [ebp - 0x214], ecx
mov eax, edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x10c], ecx
mov esi, ecx
mov dword [ebp - 0x110], eax
cmp ebx, 0xffffffff
je 0x427a00
xor ecx, ecx
test edx, edx
je 0x4279ae
lea esp, [esp]
cmp dword [ebp + ecx*4 - 0x214], ebx
je 0x4279ae
inc ecx
cmp ecx, edx
jb 0x4279a0
cmp ecx, edx
jne 0x4279c4
cmp edx, 0x40
jae 0x4279c4
mov dword [ebp + ecx*4 - 0x214], ebx
inc dword [ebp - 0x218]
xor ecx, ecx
test eax, eax
je 0x4279de
lea ebx, [ebx]
cmp dword [ebp + ecx*4 - 0x10c], ebx
je 0x4279de
inc ecx
cmp ecx, eax
jb 0x4279d0
cmp ecx, eax
jne 0x4279fb
cmp eax, 0x40
jae 0x4279fb
mov dword [ebp + ecx*4 - 0x10c], ebx
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp ebx, esi
cmova esi, ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x320], 0
cmp edx, 0xffffffff
je 0x427a59
xor ecx, ecx
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x320], 1
test eax, eax
je 0x427a3e
jmp 0x427a30
cmp dword [ebp + ecx*4 - 0x10c], edx
je 0x427a3e
inc ecx
cmp ecx, eax
jb 0x427a30
cmp ecx, eax
jne 0x427a54
cmp eax, 0x40
jae 0x427a54
mov dword [ebp + ecx*4 - 0x10c], edx
inc dword [ebp - 0x110]
cmp edx, esi
cmova esi, edx
xor ecx, ecx
lea eax, [ebp - 0x33c]
test edi, edi
cmovs eax, ecx
lea ecx, [esi + 1]
mov esi, dword [ebp - 0x334]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x340], ecx
jmp 0x427a80
test edi, edi
jle 0x427ab9
mov eax, 0x10624dd3
mov ecx, esi
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x33c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x324]
jmp 0x427acf
jne 0x427acf
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x340]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x427b82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x427b1c
cmp dword [0x4dcdd0], 0
jne 0x4278ec
cmp eax, 0x2714
jne 0x4278ec
mov eax, dword [ebp - 0x324]
test edi, edi
jle 0x427ab9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0x330]
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 [ebp - 0x32c]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
test esi, esi
jle 0x427907
mov eax, dword [ebp - 0x324]
jmp 0x427a80
test eax, eax
js 0x4278ec
je 0x427907
mov eax, dword [ebp - 0x328]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x427bcd
lea ecx, [ebp - 0x218]
push ecx
push eax
call edi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x328]
cmovne esi, ecx
call edi
test eax, eax
je 0x427bcd
or esi, 4
cmp ebx, 0xffffffff
je 0x427bf4
lea eax, [ebp - 0x218]
push eax
push ebx
call edi
test eax, eax
je 0x427be3
or esi, 8
lea eax, [ebp - 0x110]
push eax
push ebx
call edi
test eax, eax
je 0x427bf4
or esi, 4
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x427c1e
lea eax, [ebp - 0x320]
push eax
push ebx
call edi
test eax, eax
je 0x427c0d
or esi, 2
lea eax, [ebp - 0x110]
push eax
push ebx
call edi
test eax, eax
je 0x427c1e
or esi, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret