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

Disassembly:
sub esp, 0x330
mov ecx, dword [esp + 0x334]
push ebx
push ebp
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp ecx, edi
je 0x4338bb
mov edx, dword [esp + 0x348]
xor eax, eax
cmp edx, edi
jbe 0x4338bb
mov edi, edi
cmp dword [ecx + eax*8], 0xffffffff
jne 0x4338f5
inc eax
cmp eax, edx
jb 0x4338b0
mov eax, dword [esp + 0x34c]
cmp eax, edi
je 0x4338e8
jge 0x4338e1
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x330
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x330
ret
mov eax, dword [esp + 0x34c]
cmp eax, edi
jle 0x43392c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x130], ebp
mov dword [esp + 0x238], ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], edi
mov edi, edi
mov eax, dword [esp + 0x344]
xor ecx, ecx
mov word [eax + edi*8 + 6], cx
mov ecx, dword [eax + edi*8]
cmp ecx, 0xffffffff
je 0x433a2d
movzx edx, word [eax + edi*8 + 4]
test dl, 7
je 0x433a2d
cmp ecx, dword [esp + 0x10]
jbe 0x433982
mov dword [esp + 0x10], ecx
test dl, 1
je 0x4339b1
mov edi, dword [esp + 0x28]
xor eax, eax
test edi, edi
jbe 0x43399c
cmp dword [esp + eax*4 + 0x2c], ecx
je 0x43399c
inc eax
cmp eax, edi
jb 0x433991
cmp eax, edi
jne 0x4339ad
cmp edi, 0x40
jae 0x4339ad
mov dword [esp + eax*4 + 0x2c], ecx
inc dword [esp + 0x28]
mov edi, dword [esp + 0x14]
test dl, 4
je 0x4339ed
xor eax, eax
test ebp, ebp
jbe 0x4339ce
lea esp, [esp]
cmp dword [esp + eax*4 + 0x134], ecx
je 0x4339ce
inc eax
cmp eax, ebp
jb 0x4339c0
cmp eax, ebp
jne 0x4339ed
cmp ebp, 0x40
jae 0x4339ed
mov dword [esp + eax*4 + 0x134], ecx
mov ebp, dword [esp + 0x130]
inc ebp
mov dword [esp + 0x130], ebp
test dl, 2
je 0x433a2d
xor eax, eax
test ebx, ebx
jbe 0x433a0e
jmp 0x433a00
cmp dword [esp + eax*4 + 0x23c], ecx
je 0x433a0e
inc eax
cmp eax, ebx
jb 0x433a00
cmp eax, ebx
jne 0x433a2d
cmp ebx, 0x40
jae 0x433a2d
mov dword [esp + eax*4 + 0x23c], ecx
mov ebx, dword [esp + 0x238]
inc ebx
mov dword [esp + 0x238], ebx
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x348]
jb 0x433950
mov eax, dword [esp + 0x34c]
mov ebp, dword [esp + 0x10]
xor ebx, ebx
xor ecx, ecx
cmp eax, ecx
setl bl
lea edx, [esp + 0x20]
dec ebx
and ebx, edx
inc ebp
jmp 0x433a69
mov eax, dword [esp + 0x34c]
xor ecx, ecx
cmp eax, ecx
jle 0x433a94
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x433a9a
jne 0x433a9e
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push ebx
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x433b42
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x433ae0
cmp dword [0x4cbda8], 0
jne 0x433b42
cmp eax, 0x2714
jne 0x433b42
cmp dword [esp + 0x34c], 0
jle 0x433a60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov esi, dword [esp + 0x18]
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
sub ecx, dword [esp + 0x1c]
sub esi, edx
mov eax, 0x10624dd3
imul esi, esi, 0x3e8
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
add esi, dword [esp + 0x34c]
test esi, esi
jg 0x433a60
test edi, edi
jl 0x4338d3
je 0x4338e8
mov esi, dword [esp + 0x344]
mov edi, dword [esp + 0x348]
xor ebx, ebx
add esi, 6
mov eax, dword [esi - 6]
xor edx, edx
mov word [esi], dx
cmp eax, 0xffffffff
je 0x433bbc
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x433b83
or word [esi], 1
mov eax, dword [esi - 6]
lea edx, [esp + 0x130]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x433b9c
or word [esi], 4
mov edx, dword [esi - 6]
lea ecx, [esp + 0x238]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x433bb5
or word [esi], 2
cmp word [esi], 0
je 0x433bbc
inc ebx
add esi, 8
sub edi, 1
jne 0x433b63
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x330
ret