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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
jne 0x428c12
cmp esi, edi
jne 0x428c12
cmp edx, edi
jne 0x428c12
mov eax, dword [ebp + 0x14]
call fcn.00428bbc
jmp 0x428e5f
cmp dword [ebp + 0x14], ebx
jle 0x428c28
mov ebx, dword [ebp + 0x14]
call fcn.0042f5a7
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
and dword [ebp - 0x118], 0
and dword [ebp - 0x220], 0
or ecx, 0xffffffff
cmp edi, 0xffffffff
je 0x428c5b
xor eax, eax
inc eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], eax
mov ecx, edi
cmp esi, 0xffffffff
je 0x428cc6
mov edi, dword [ebp - 0x220]
xor eax, eax
test edi, edi
jbe 0x428c7a
cmp dword [ebp + eax*4 - 0x21c], esi
je 0x428c7a
inc eax
cmp eax, edi
jb 0x428c6c
cmp eax, edi
jne 0x428c90
cmp edi, 0x40
jae 0x428c90
mov dword [ebp + eax*4 - 0x21c], esi
inc dword [ebp - 0x220]
mov edi, dword [ebp - 0x118]
xor eax, eax
test edi, edi
jbe 0x428caa
cmp dword [ebp + eax*4 - 0x114], esi
je 0x428caa
inc eax
cmp eax, edi
jb 0x428c9c
cmp eax, edi
jne 0x428cc0
cmp edi, 0x40
jae 0x428cc0
mov dword [ebp + eax*4 - 0x114], esi
inc dword [ebp - 0x118]
cmp esi, ecx
jbe 0x428cc6
mov ecx, esi
and dword [ebp - 0x328], 0
cmp edx, 0xffffffff
je 0x428d18
mov esi, dword [ebp - 0x118]
xor eax, eax
mov dword [ebp - 0x324], edx
mov dword [ebp - 0x328], 1
test esi, esi
jbe 0x428cfc
cmp dword [ebp + eax*4 - 0x114], edx
je 0x428cfc
inc eax
cmp eax, esi
jb 0x428cee
cmp eax, esi
jne 0x428d12
cmp esi, 0x40
jae 0x428d12
mov dword [ebp + eax*4 - 0x114], edx
inc dword [ebp - 0x118]
cmp edx, ecx
jbe 0x428d18
mov ecx, edx
cmp dword [ebp + 0x14], 0
jge 0x428d22
xor esi, esi
jmp 0x428d25
lea esi, [ebp - 0x10]
lea edi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x14], eax
jle 0x428d44
mov eax, ebx
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], edx
jmp 0x428d49
jne 0x428d4c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x428db2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x428d88
cmp dword [0x4a3784], 0
jne 0x428db6
cmp eax, 0x2714
jne 0x428db6
cmp dword [ebp + 0x14], 0
jle 0x428d28
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042f5a7
push edx
push eax
call fcn.0042f5bd
mov ebx, dword [ebp + 0x14]
sub ebx, eax
add esp, 0x10
test ebx, ebx
jg 0x428d28
xor eax, eax
test eax, eax
jge 0x428dbe
or eax, 0xffffffff
jmp 0x428e5f
jne 0x428dc7
xor eax, eax
jmp 0x428e5f
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
je 0x428df9
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428de3
inc esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428df9
or esi, 4
cmp dword [ebp + 0xc], 0xffffffff
je 0x428e2b
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428e15
or esi, 8
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428e2b
or esi, 4
cmp dword [ebp + 0x10], 0xffffffff
je 0x428e5d
lea eax, [ebp - 0x328]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428e47
or esi, 2
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428e5d
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret