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

Disassembly:
sub esp, 0x334
push ebx
mov ebx, dword [esp + 0x33c]
push ebp
push esi
push edi
mov edi, eax
xor eax, eax
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x24], eax
cmp ebx, 0xffffffff
jne 0x41db82
cmp dword [esp + 0x34c], ebx
jne 0x41db82
cmp edi, eax
je 0x41dd97
jge 0x41db6e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
cmp edi, eax
jle 0x41dbb0
mov esi, edi
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 ebp, edx
mov dword [esp + 0x24], ecx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x130], eax
cmp ebx, 0xffffffff
je 0x41dbe4
mov ecx, 1
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
mov edx, ebx
mov ebx, dword [esp + 0x34c]
mov dword [esp + 0x238], eax
cmp ebx, 0xffffffff
je 0x41dc3b
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], 1
test ecx, ecx
jbe 0x41dc22
lea ecx, [ecx]
mov ebx, dword [esp + 0x34c]
cmp dword [esp + eax*4 + 0x2c], ebx
je 0x41dc22
inc eax
cmp eax, ecx
jb 0x41dc10
cmp eax, ecx
jne 0x41dc33
cmp ecx, 0x40
jae 0x41dc33
mov dword [esp + eax*4 + 0x2c], ebx
inc dword [esp + 0x28]
xor eax, eax
cmp ebx, edx
jbe 0x41dc3b
mov edx, ebx
xor ecx, ecx
cmp edi, eax
setl cl
lea ebx, [esp + 0x10]
dec ecx
and ecx, ebx
inc edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x41dc56
xor eax, eax
cmp edi, eax
jle 0x41dc85
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x14], edx
jmp 0x41dc8f
jne 0x41dc8f
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41dd1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41dccc
cmp eax, 0x2714
jne 0x41dd1d
test edi, edi
jle 0x41dc54
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
sub ecx, dword [esp + 0x24]
mov esi, ebp
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, edi
test esi, esi
jg 0x41dc54
test ebx, ebx
jl 0x41db60
je 0x41db75
mov edi, dword [esp + 0x348]
xor esi, esi
cmp edi, 0xffffffff
je 0x41dd62
lea edx, [esp + 0x130]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41dd50
mov esi, 1
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41dd62
or esi, 4
mov edi, dword [esp + 0x34c]
cmp edi, 0xffffffff
je 0x41dd95
lea ecx, [esp + 0x238]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41dd83
or esi, 2
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41dd95
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret