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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
or eax, 0xffffffff
push esi
xor esi, esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, eax
jne 0x55e52a
cmp edi, eax
jne 0x55e52a
cmp dword [ebp + 0x10], eax
jne 0x55e52a
push dword [ebp + 0x14]
call fcn.0055e83a
pop ecx
jmp 0x55e82b
cmp dword [ebp + 0x18], esi
jl 0x55e553
jg 0x55e536
cmp dword [ebp + 0x14], esi
jbe 0x55e553
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x318], eax
call fcn.0055637b
mov dword [ebp - 0x320], eax
or eax, 0xffffffff
mov dword [ebp - 0x31c], edx
mov ecx, esi
xor edx, edx
mov dword [ebp - 0x20c], ecx
cmp ebx, eax
je 0x55e576
lea ecx, [edx + 1]
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x104], ebx
mov edx, ebx
cmove edx, eax
mov eax, ecx
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x108], eax
cmp edi, 0xffffffff
je 0x55e615
mov eax, esi
test ecx, ecx
je 0x55e5a6
cmp dword [ebp + eax*4 - 0x208], edi
je 0x55e5a6
inc eax
cmp eax, ecx
jb 0x55e598
cmp eax, ecx
jne 0x55e5c3
cmp ecx, 0x40
jae 0x55e5c3
mov dword [ebp + eax*4 - 0x208], edi
mov ecx, dword [ebp - 0x20c]
inc ecx
mov dword [ebp - 0x20c], ecx
mov eax, dword [ebp - 0x314]
mov ebx, esi
test eax, eax
je 0x55e5dd
cmp dword [ebp + ebx*4 - 0x104], edi
je 0x55e5dd
inc ebx
cmp ebx, eax
jb 0x55e5cf
mov dword [ebp - 0x108], eax
cmp ebx, dword [ebp - 0x314]
jne 0x55e610
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x108], eax
cmp eax, 0x40
jae 0x55e610
mov dword [ebp + ebx*4 - 0x104], edi
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp edi, edx
cmova edx, edi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x310], esi
cmp ebx, 0xffffffff
je 0x55e67b
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], 1
mov dword [ebp - 0x314], esi
test eax, eax
je 0x55e656
mov edi, esi
cmp dword [ebp + edi*4 - 0x104], ebx
je 0x55e64d
inc edi
cmp edi, eax
jb 0x55e63f
mov dword [ebp - 0x314], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x314], eax
jne 0x55e676
cmp eax, 0x40
jae 0x55e676
mov eax, dword [ebp - 0x314]
mov dword [ebp + eax*4 - 0x104], ebx
inc dword [ebp - 0x108]
cmp ebx, edx
cmova edx, ebx
cmp dword [ebp + 0x18], esi
jg 0x55e68f
jl 0x55e687
cmp dword [ebp + 0x14], esi
jae 0x55e68f
mov dword [ebp - 0x314], esi
jmp 0x55e69b
lea eax, [ebp - 0x328]
mov dword [ebp - 0x314], eax
lea eax, [edx + 1]
mov dword [ebp - 0x330], eax
cmp dword [ebp + 0x18], esi
jl 0x55e6db
jg 0x55e6b0
cmp dword [ebp + 0x14], esi
jbe 0x55e6db
mov eax, dword [ebp - 0x318]
cdq
mov dword [ebp - 0x32c], 0x3e8
idiv dword [ebp - 0x32c]
mov dword [ebp - 0x328], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x324], eax
jmp 0x55e6ef
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x55e6ef
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x324], esi
push dword [ebp - 0x314]
xor edx, edx
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x310], edx
push eax
lea eax, [ebp - 0x310]
cmove eax, edx
test ecx, ecx
push eax
lea eax, [ebp - 0x20c]
cmove eax, edx
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x55e787
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x55e744
cmp dword [0x62cb18], esi
jne 0x55e78b
cmp eax, 0x2714
jne 0x55e78b
cmp dword [ebp + 0x18], esi
jl 0x55e77a
jg 0x55e750
cmp dword [ebp + 0x14], esi
jbe 0x55e77a
push dword [ebp - 0x31c]
push dword [ebp - 0x320]
call fcn.0055637b
push edx
push eax
call fcn.005562f4
mov ecx, dword [ebp + 0x14]
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x318], ecx
test ecx, ecx
jle 0x55e785
mov ecx, dword [ebp - 0x20c]
jmp 0x55e6a4
mov eax, esi
test eax, eax
jns 0x55e793
or eax, 0xffffffff
jmp 0x55e82b
jne 0x55e79c
xor eax, eax
jmp 0x55e82b
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x55e7cf
lea ecx, [ebp - 0x20c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
push 1
test eax, eax
pop eax
cmovne esi, eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e7cf
or esi, 4
cmp edi, 0xffffffff
je 0x55e7fc
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e7e8
or esi, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e7fc
or esi, 4
cmp ebx, 0xffffffff
je 0x55e829
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e815
or esi, 2
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e829
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret