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

Disassembly:
sub esp, 0x324
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x334]
push ebx
mov ebx, dword [esp + 0x32c]
push ebp
mov ebp, dword [esp + 0x334]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
cmp ebx, 0xffffffff
jne 0x1004ed86
cmp ebp, ebx
jne 0x1004ed86
cmp dword [esp + 0x340], ebx
jne 0x1004ed86
cmp eax, esi
je 0x1004ed7f
jge 0x1004ed78
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x1004f001
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x1004f001
cmp eax, esi
jle 0x1004ed99
mov edi, eax
call fcn.100590a0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor ecx, ecx
xor edx, edx
or esi, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], edx
cmp ebx, 0xffffffff
je 0x1004edcf
mov edx, 1
mov ecx, edx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov esi, ebx
cmp ebp, 0xffffffff
je 0x1004ee37
xor eax, eax
test edx, edx
je 0x1004edee
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x12c], ebp
je 0x1004edee
inc eax
cmp eax, edx
jb 0x1004ede0
cmp eax, edx
jne 0x1004ee05
cmp edx, 0x40
jae 0x1004ee05
mov dword [esp + eax*4 + 0x12c], ebp
inc dword [esp + 0x128]
xor eax, eax
test ecx, ecx
je 0x1004ee1b
jmp 0x1004ee10
cmp dword [esp + eax*4 + 0x28], ebp
je 0x1004ee1b
inc eax
cmp eax, ecx
jb 0x1004ee10
cmp eax, ecx
jne 0x1004ee31
cmp ecx, 0x40
jae 0x1004ee31
mov dword [esp + eax*4 + 0x28], ebp
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ebp, esi
jbe 0x1004ee37
mov esi, ebp
mov edx, dword [esp + 0x340]
xor eax, eax
mov dword [esp + 0x22c], eax
cmp edx, 0xffffffff
je 0x1004ee84
mov dword [esp + 0x230], edx
mov dword [esp + 0x22c], 1
test ecx, ecx
je 0x1004ee6d
cmp dword [esp + eax*4 + 0x28], edx
je 0x1004ee6d
inc eax
cmp eax, ecx
jb 0x1004ee62
cmp eax, ecx
jne 0x1004ee7e
cmp ecx, 0x40
jae 0x1004ee7e
mov dword [esp + eax*4 + 0x28], edx
inc dword [esp + 0x24]
cmp edx, esi
jbe 0x1004ee84
mov esi, edx
mov ebp, dword [sym.imp.WS2_32.dll_select]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
setl bl
dec ebx
and ebx, eax
inc esi
jmp 0x1004eea0
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
jle 0x1004eed1
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
mov ecx, edi
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x1004eed7
jne 0x1004eedb
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x134]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
jne 0x1004ef54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1004ef1b
cmp dword [0x100dbf30], 0
jne 0x1004ed70
cmp eax, 0x2714
jne 0x1004ed70
cmp dword [esp + 0x10], 0
jle 0x1004eea0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.100590a0
push edx
push eax
call fcn.100590d0
mov edi, dword [esp + 0x20]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x1004eea0
xor eax, eax
jmp 0x1004f001
test eax, eax
js 0x1004ed70
je 0x1004ed7f
mov edi, dword [esp + 0x338]
xor esi, esi
cmp edi, 0xffffffff
je 0x1004ef99
lea ecx, [esp + 0x128]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004ef87
mov esi, 1
lea edx, [esp + 0x24]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004ef99
or esi, 4
mov edi, dword [esp + 0x33c]
cmp edi, 0xffffffff
je 0x1004efcc
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004efba
or esi, 8
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004efcc
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x1004efff
lea edx, [esp + 0x22c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004efed
or esi, 2
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004efff
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10088aee
add esp, 0x324
ret