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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x10035448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x31c], esi
cmp ebx, esi
je 0x1001dca8
xor eax, eax
cmp dword [ebp + 0xc], esi
jbe 0x1001dca8
cmp dword [ebx + eax*8], 0xffffffff
jne 0x1001dcb6
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x1001dc9c
push dword [ebp + 0x10]
call fcn.1001d8e9
pop ecx
jmp 0x1001df92
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x1001dcd4
mov dword [ebp - 0x31c], eax
call fcn.10026de2
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edx
push edi
xor ecx, ecx
xor edi, edi
or dword [ebp - 0x320], 0xffffffff
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x314], esi
mov eax, dword [ebp - 0x314]
shl eax, 3
xor edx, edx
mov dword [ebp - 0x318], eax
lea eax, [eax + ebx + 4]
mov word [eax + 2], dx
mov edx, dword [ebp - 0x318]
mov edx, dword [edx + ebx]
cmp edx, 0xffffffff
je 0x1001dde5
movzx ebx, word [eax]
test bl, 7
je 0x1001dddf
cmp edx, dword [ebp - 0x320]
jbe 0x1001dd3d
mov dword [ebp - 0x320], edx
test bl, 1
je 0x1001dd73
xor eax, eax
test ecx, ecx
je 0x1001dd56
cmp dword [ebp + eax*4 - 0x30c], edx
je 0x1001dd56
inc eax
cmp eax, ecx
jb 0x1001dd48
cmp eax, ecx
jne 0x1001dd73
cmp ecx, 0x40
jae 0x1001dd73
mov dword [ebp + eax*4 - 0x30c], edx
mov ecx, dword [ebp - 0x310]
inc ecx
mov dword [ebp - 0x310], ecx
test bl, 4
je 0x1001dda9
xor eax, eax
test esi, esi
je 0x1001dd8c
cmp dword [ebp + eax*4 - 0x208], edx
je 0x1001dd8c
inc eax
cmp eax, esi
jb 0x1001dd7e
cmp eax, esi
jne 0x1001dda9
cmp esi, 0x40
jae 0x1001dda9
mov dword [ebp + eax*4 - 0x208], edx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
test bl, 2
je 0x1001dddf
xor eax, eax
test edi, edi
je 0x1001ddc2
cmp dword [ebp + eax*4 - 0x104], edx
je 0x1001ddc2
inc eax
cmp eax, edi
jb 0x1001ddb4
cmp eax, edi
jne 0x1001dddf
cmp edi, 0x40
jae 0x1001dddf
mov dword [ebp + eax*4 - 0x104], edx
mov edi, dword [ebp - 0x108]
inc edi
mov dword [ebp - 0x108], edi
mov ebx, dword [ebp - 0x32c]
inc dword [ebp - 0x314]
mov eax, dword [ebp - 0x314]
cmp eax, dword [ebp + 0xc]
jb 0x1001dcf8
xor ebx, ebx
cmp ecx, ebx
jne 0x1001de16
cmp esi, ebx
jne 0x1001de16
cmp edi, ebx
jne 0x1001de16
push dword [ebp + 0x10]
call fcn.1001d8e9
pop ecx
jmp 0x1001df91
cmp dword [ebp + 0x10], ebx
jge 0x1001de23
mov dword [ebp - 0x314], ebx
jmp 0x1001de2f
lea eax, [ebp - 0x334]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x320]
inc eax
mov dword [ebp - 0x318], eax
jmp 0x1001de50
mov ecx, dword [ebp - 0x310]
mov esi, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x108]
cmp dword [ebp + 0x10], ebx
jle 0x1001de79
mov eax, dword [ebp - 0x31c]
cdq
mov ebx, 0x3e8
idiv ebx
imul edx, edx, 0x3e8
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x330], edx
xor ebx, ebx
jmp 0x1001de87
jne 0x1001de87
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
push dword [ebp - 0x314]
neg edi
sbb edi, edi
lea eax, [ebp - 0x108]
and edi, eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x20c]
and esi, eax
neg ecx
push edi
sbb ecx, ecx
lea eax, [ebp - 0x310]
push esi
and ecx, eax
push ecx
push dword [ebp - 0x318]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1001df17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebx
je 0x1001dede
cmp dword [0x10040030], ebx
jne 0x1001df1b
cmp eax, 0x2714
jne 0x1001df1b
cmp dword [ebp + 0x10], ebx
jle 0x1001de3e
push dword [ebp - 0x324]
push dword [ebp - 0x328]
call fcn.10026de2
push edx
push eax
call fcn.10026df8
mov ecx, dword [ebp + 0x10]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x31c], ecx
cmp ecx, ebx
jg 0x1001de3e
xor eax, eax
cmp eax, ebx
jge 0x1001df20
or eax, 0xffffffff
jmp 0x1001df91
jne 0x1001df26
xor eax, eax
jmp 0x1001df91
mov esi, dword [ebp - 0x32c]
mov edi, dword [ebp + 0xc]
add esi, 6
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x1001df89
lea ecx, [ebp - 0x310]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001df54
or word [esi], 1
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001df6b
or word [esi], 4
lea eax, [ebp - 0x108]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001df82
or word [esi], 2
cmp word [esi], 0
je 0x1001df89
inc ebx
add esi, 8
dec edi
jne 0x1001df32
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10033b66
leave
ret