Function at 0x55e35c
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 0x55e3aa
cmp edi, eax
jne 0x55e3aa
cmp dword [ebp + 0x10], eax
jne 0x55e3aa
push dword [ebp + 0x14]
call fcn.0055e6ba
pop ecx
jmp 0x55e6ab
cmp dword [ebp + 0x18], esi
jl 0x55e3d3
jg 0x55e3b6
cmp dword [ebp + 0x14], esi
jbe 0x55e3d3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x318], eax
call fcn.005561fb
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 0x55e3f6
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 0x55e495
mov eax, esi
test ecx, ecx
je 0x55e426
cmp dword [ebp + eax*4 - 0x208], edi
je 0x55e426
inc eax
cmp eax, ecx
jb 0x55e418
cmp eax, ecx
jne 0x55e443
cmp ecx, 0x40
jae 0x55e443
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 0x55e45d
cmp dword [ebp + ebx*4 - 0x104], edi
je 0x55e45d
inc ebx
cmp ebx, eax
jb 0x55e44f
mov dword [ebp - 0x108], eax
cmp ebx, dword [ebp - 0x314]
jne 0x55e490
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x108], eax
cmp eax, 0x40
jae 0x55e490
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 0x55e4fb
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], 1
mov dword [ebp - 0x314], esi
test eax, eax
je 0x55e4d6
mov edi, esi
cmp dword [ebp + edi*4 - 0x104], ebx
je 0x55e4cd
inc edi
cmp edi, eax
jb 0x55e4bf
mov dword [ebp - 0x314], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x314], eax
jne 0x55e4f6
cmp eax, 0x40
jae 0x55e4f6
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 0x55e50f
jl 0x55e507
cmp dword [ebp + 0x14], esi
jae 0x55e50f
mov dword [ebp - 0x314], esi
jmp 0x55e51b
lea eax, [ebp - 0x328]
mov dword [ebp - 0x314], eax
lea eax, [edx + 1]
mov dword [ebp - 0x330], eax
cmp dword [ebp + 0x18], esi
jl 0x55e55b
jg 0x55e530
cmp dword [ebp + 0x14], esi
jbe 0x55e55b
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 0x55e56f
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x55e56f
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 0x55e607
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x55e5c4
cmp dword [0x62cb18], esi
jne 0x55e60b
cmp eax, 0x2714
jne 0x55e60b
cmp dword [ebp + 0x18], esi
jl 0x55e5fa
jg 0x55e5d0
cmp dword [ebp + 0x14], esi
jbe 0x55e5fa
push dword [ebp - 0x31c]
push dword [ebp - 0x320]
call fcn.005561fb
push edx
push eax
call fcn.00556174
mov ecx, dword [ebp + 0x14]
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x318], ecx
test ecx, ecx
jle 0x55e605
mov ecx, dword [ebp - 0x20c]
jmp 0x55e524
mov eax, esi
test eax, eax
jns 0x55e613
or eax, 0xffffffff
jmp 0x55e6ab
jne 0x55e61c
xor eax, eax
jmp 0x55e6ab
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x55e64f
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 0x55e64f
or esi, 4
cmp edi, 0xffffffff
je 0x55e67c
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e668
or esi, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e67c
or esi, 4
cmp ebx, 0xffffffff
je 0x55e6a9
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e695
or esi, 2
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55e6a9
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f3d2
leave
ret