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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], esi
cmp edi, esi
je 0x43cb17
xor eax, eax
cmp dword [ebp + 0xc], esi
jbe 0x43cb17
or ebx, 0xffffffff
cmp dword [edi + eax*8], ebx
jne 0x43cb25
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x43cb09
push dword [ebp + 0x10]
call fcn.0043c89e
pop ecx
jmp 0x43cd62
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x43cb43
mov dword [ebp - 0x314], eax
call fcn.0043e13e
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x108], esi
xor ecx, ecx
lea eax, [edi + esi*8 + 4]
mov word [eax + 2], cx
mov ecx, dword [edi + esi*8]
cmp ecx, 0xffffffff
je 0x43cc3a
movzx edx, word [eax]
test dl, 7
je 0x43cc3a
cmp ecx, ebx
jbe 0x43cb7d
mov ebx, ecx
test dl, 1
je 0x43cbbc
xor eax, eax
cmp eax, dword [ebp - 0x310]
jae 0x43cba4
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x43cb9e
inc eax
cmp eax, dword [ebp - 0x310]
jb 0x43cb8c
cmp eax, dword [ebp - 0x310]
jne 0x43cbbc
cmp dword [ebp - 0x310], 0x40
jae 0x43cbbc
mov dword [ebp + eax*4 - 0x30c], ecx
inc dword [ebp - 0x310]
test dl, 4
je 0x43cbfb
xor eax, eax
cmp eax, dword [ebp - 0x20c]
jae 0x43cbe3
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x43cbdd
inc eax
cmp eax, dword [ebp - 0x20c]
jb 0x43cbcb
cmp eax, dword [ebp - 0x20c]
jne 0x43cbfb
cmp dword [ebp - 0x20c], 0x40
jae 0x43cbfb
mov dword [ebp + eax*4 - 0x208], ecx
inc dword [ebp - 0x20c]
test dl, 2
je 0x43cc3a
xor eax, eax
cmp eax, dword [ebp - 0x108]
jae 0x43cc22
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x43cc1c
inc eax
cmp eax, dword [ebp - 0x108]
jb 0x43cc0a
cmp eax, dword [ebp - 0x108]
jne 0x43cc3a
cmp dword [ebp - 0x108], 0x40
jae 0x43cc3a
mov dword [ebp + eax*4 - 0x104], ecx
inc dword [ebp - 0x108]
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x43cb55
xor esi, esi
cmp dword [ebp + 0x10], esi
jl 0x43cc51
lea esi, [ebp - 0x324]
inc ebx
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x43cc75
mov eax, dword [ebp - 0x314]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x320], edx
jmp 0x43cc7d
jne 0x43cc83
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x324], eax
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x43ccec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x43ccb6
cmp eax, 0x2714
jne 0x43ccf0
cmp dword [ebp + 0x10], 0
jle 0x43cc52
push dword [ebp - 0x318]
push dword [ebp - 0x31c]
call fcn.0043e13e
push edx
push eax
call fcn.0043e154
mov ecx, dword [ebp + 0x10]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x314], ecx
test ecx, ecx
jg 0x43cc52
jmp 0x43ccf0
test eax, eax
jns 0x43ccf5
or eax, 0xffffffff
jmp 0x43cd62
jne 0x43ccfb
xor eax, eax
jmp 0x43cd62
lea esi, [edi + 6]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x43cd5a
lea ecx, [ebp - 0x310]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43cd25
or word [esi], 1
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43cd3c
or word [esi], 4
lea eax, [ebp - 0x108]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43cd53
or word [esi], 2
cmp word [esi], 0
je 0x43cd5a
inc ebx
add esi, 8
dec edi
jne 0x43cd03
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret