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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4abd08]
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 0x42c979
cmp dword [ebp + 0xc], ebx
jne 0x42c979
cmp edi, eax
je 0x42cb79
jge 0x42c95f
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.0046c641
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.0046c641
mov esp, ebp
pop ebp
ret
cmp edi, eax
jle 0x42c992
mov esi, edi
call fcn.004346d0
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 0x42c9c7
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 0x42ca22
mov dword [ebp - 0x208], eax
xor eax, eax
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x42ca03
jmp 0x42c9f0
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x42ca06
inc eax
cmp eax, ecx
jb 0x42c9f0
jmp 0x42ca06
mov ebx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x42ca1c
cmp ecx, 0x40
jae 0x42ca1c
mov dword [ebp + eax*4 - 0x104], ebx
inc dword [ebp - 0x108]
cmp ebx, edx
jbe 0x42ca22
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 0x42ca75
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 0x42ca83
jne 0x42ca83
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 0x42cb05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x42cac0
cmp eax, 0x2714
jne 0x42c94b
test edi, edi
jle 0x42ca40
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x318]
push eax
push ecx
call fcn.004346d0
push edx
push eax
call fcn.00434700
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x42ca40
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c641
mov esp, ebp
pop ebp
ret
test eax, eax
js 0x42c94b
je 0x42c966
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x42cb47
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42cb33
mov esi, 1
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42cb47
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x42cb77
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42cb63
or esi, 2
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42cb77
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c641
mov esp, ebp
pop ebp
ret