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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x494ce8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], eax
cmp ebx, 0xffffffff
jne 0x42c779
cmp dword [ebp + 0xc], ebx
jne 0x42c779
cmp edi, eax
je 0x42c979
jge 0x42c75f
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
cmp edi, eax
jle 0x42c792
mov esi, edi
call fcn.004344b0
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x310], eax
cmp ebx, 0xffffffff
je 0x42c7c7
mov ecx, 1
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], ecx
mov edx, ebx
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x42c822
mov dword [ebp - 0x208], eax
xor eax, eax
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x42c803
jmp 0x42c7f0
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x42c806
inc eax
cmp eax, ecx
jb 0x42c7f0
jmp 0x42c806
mov ebx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x42c81c
cmp ecx, 0x40
jae 0x42c81c
mov dword [ebp + eax*4 - 0x104], ebx
inc dword [ebp - 0x108]
cmp ebx, edx
jbe 0x42c822
mov edx, ebx
xor ebx, ebx
test edi, edi
sets bl
lea eax, [ebp - 0x320]
dec ebx
and ebx, eax
inc edx
mov dword [ebp - 0x324], edx
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x42c875
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x320], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x31c], ecx
jmp 0x42c883
jne 0x42c883
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], eax
push ebx
lea edx, [ebp - 0x108]
push edx
mov edx, dword [ebp - 0x324]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x42c905
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x42c8c0
cmp eax, 0x2714
jne 0x42c74b
test edi, edi
jle 0x42c840
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x318]
push eax
push ecx
call fcn.004344b0
push edx
push eax
call fcn.004344e0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x42c840
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
test eax, eax
js 0x42c74b
je 0x42c766
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x42c947
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42c933
mov esi, 1
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42c947
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x42c977
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42c963
or esi, 2
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42c977
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d571
mov esp, ebp
pop ebp
ret