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

Disassembly:
sub esp, 0x324
mov eax, dword [0x456130]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x334]
push ebx
mov ebx, dword [esp + 0x32c]
push ebp
mov ebp, dword [esp + 0x334]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
cmp ebx, 0xffffffff
jne 0x425116
cmp ebp, ebx
jne 0x425116
cmp dword [esp + 0x340], ebx
jne 0x425116
cmp eax, esi
je 0x42510f
jge 0x425108
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x425381
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x425381
cmp eax, esi
jle 0x425129
mov edi, eax
call fcn.004130d0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor ecx, ecx
xor edx, edx
or esi, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], edx
cmp ebx, 0xffffffff
je 0x42515f
mov edx, 1
mov ecx, edx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov esi, ebx
cmp ebp, 0xffffffff
je 0x4251c7
xor eax, eax
test edx, edx
je 0x42517e
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x12c], ebp
je 0x42517e
inc eax
cmp eax, edx
jb 0x425170
cmp eax, edx
jne 0x425195
cmp edx, 0x40
jae 0x425195
mov dword [esp + eax*4 + 0x12c], ebp
inc dword [esp + 0x128]
xor eax, eax
test ecx, ecx
je 0x4251ab
jmp 0x4251a0
cmp dword [esp + eax*4 + 0x28], ebp
je 0x4251ab
inc eax
cmp eax, ecx
jb 0x4251a0
cmp eax, ecx
jne 0x4251c1
cmp ecx, 0x40
jae 0x4251c1
mov dword [esp + eax*4 + 0x28], ebp
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ebp, esi
jbe 0x4251c7
mov esi, ebp
mov edx, dword [esp + 0x340]
xor eax, eax
mov dword [esp + 0x22c], eax
cmp edx, 0xffffffff
je 0x425214
mov dword [esp + 0x230], edx
mov dword [esp + 0x22c], 1
test ecx, ecx
je 0x4251fd
cmp dword [esp + eax*4 + 0x28], edx
je 0x4251fd
inc eax
cmp eax, ecx
jb 0x4251f2
cmp eax, ecx
jne 0x42520e
cmp ecx, 0x40
jae 0x42520e
mov dword [esp + eax*4 + 0x28], edx
inc dword [esp + 0x24]
cmp edx, esi
jbe 0x425214
mov esi, edx
mov ebp, dword [sym.imp.WS2_32.dll_select]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
setl bl
dec ebx
and ebx, eax
inc esi
jmp 0x425230
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
jle 0x425261
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
mov ecx, edi
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x425267
jne 0x42526b
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x134]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4252d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x42529e
cmp eax, 0x2714
jne 0x425100
cmp dword [esp + 0x10], 0
jle 0x425230
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.004130d0
push edx
push eax
call fcn.00413100
mov edi, dword [esp + 0x20]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x425230
or eax, 0xffffffff
jmp 0x425381
test eax, eax
js 0x425100
je 0x42510f
mov edi, dword [esp + 0x338]
xor esi, esi
cmp edi, 0xffffffff
je 0x425319
lea ecx, [esp + 0x128]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x425307
mov esi, 1
lea edx, [esp + 0x24]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x425319
or esi, 4
mov edi, dword [esp + 0x33c]
cmp edi, 0xffffffff
je 0x42534c
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42533a
or esi, 8
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42534c
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x42537f
lea edx, [esp + 0x22c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42536d
or esi, 2
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42537f
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431acd
add esp, 0x324
ret