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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x320
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov edx, dword [ebp + 0x78]
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x70]
xor ebx, ebx
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2ac], ebx
cmp edi, 0xffffffff
jne 0x452b11
cmp esi, edi
jne 0x452b11
cmp edx, edi
jne 0x452b11
push dword [ebp + 0x7c]
call fcn.00452aa4
pop ecx
jmp 0x452d76
cmp dword [ebp + 0x7c], ebx
jle 0x452b2d
mov ebx, dword [ebp + 0x7c]
call fcn.0045ae36
mov dword [ebp - 0x2ac], edx
mov edx, dword [ebp + 0x78]
mov dword [ebp - 0x2b0], eax
and dword [ebp - 0xa0], 0
and dword [ebp - 0x1a4], 0
or ecx, 0xffffffff
cmp edi, 0xffffffff
je 0x452b60
xor eax, eax
inc eax
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa0], eax
mov ecx, edi
cmp esi, 0xffffffff
je 0x452bcb
mov edi, dword [ebp - 0x1a4]
xor eax, eax
test edi, edi
je 0x452b7f
cmp dword [ebp + eax*4 - 0x1a0], esi
je 0x452b7f
inc eax
cmp eax, edi
jb 0x452b71
cmp eax, edi
jne 0x452b95
cmp edi, 0x40
jae 0x452b95
mov dword [ebp + eax*4 - 0x1a0], esi
inc dword [ebp - 0x1a4]
mov edi, dword [ebp - 0xa0]
xor eax, eax
test edi, edi
je 0x452baf
cmp dword [ebp + eax*4 - 0x9c], esi
je 0x452baf
inc eax
cmp eax, edi
jb 0x452ba1
cmp eax, edi
jne 0x452bc5
cmp edi, 0x40
jae 0x452bc5
mov dword [ebp + eax*4 - 0x9c], esi
inc dword [ebp - 0xa0]
cmp esi, ecx
jbe 0x452bcb
mov ecx, esi
and dword [ebp - 0x2a8], 0
cmp edx, 0xffffffff
je 0x452c1d
mov esi, dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a8], 1
test esi, esi
je 0x452c01
cmp dword [ebp + eax*4 - 0x9c], edx
je 0x452c01
inc eax
cmp eax, esi
jb 0x452bf3
cmp eax, esi
jne 0x452c17
cmp esi, 0x40
jae 0x452c17
mov dword [ebp + eax*4 - 0x9c], edx
inc dword [ebp - 0xa0]
cmp edx, ecx
jbe 0x452c1d
mov ecx, edx
cmp dword [ebp + 0x7c], 0
jge 0x452c27
xor esi, esi
jmp 0x452c2d
lea esi, [ebp - 0x2b8]
lea edi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x452c4f
mov eax, ebx
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x2b4], edx
jmp 0x452c57
jne 0x452c5d
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b8], eax
push esi
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x1a4]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x452cc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x452c99
cmp dword [0x4e1d54], 0
jne 0x452ccd
cmp eax, 0x2714
jne 0x452ccd
cmp dword [ebp + 0x7c], 0
jle 0x452c30
push dword [ebp - 0x2ac]
push dword [ebp - 0x2b0]
call fcn.0045ae36
push edx
push eax
call fcn.0045ae4c
mov ebx, dword [ebp + 0x7c]
sub ebx, eax
add esp, 0x10
test ebx, ebx
jg 0x452c30
xor eax, eax
test eax, eax
jns 0x452cd5
or eax, 0xffffffff
jmp 0x452d76
jne 0x452cde
xor eax, eax
jmp 0x452d76
xor esi, esi
cmp dword [ebp + 0x70], 0xffffffff
je 0x452d10
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp + 0x70]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x452cfa
inc esi
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 0x70]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x452d10
or esi, 4
cmp dword [ebp + 0x74], 0xffffffff
je 0x452d42
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x452d2c
or esi, 8
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x452d42
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x452d74
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x452d5e
or esi, 2
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x452d74
or esi, 4
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x68
leave
ret