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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0xfcf584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x31c], edi
cmp esi, 0xffffffff
jne 0xf0fd1b
cmp ebx, esi
jne 0xf0fd1b
cmp dword [ebp + 0x10], esi
jne 0xf0fd1b
push eax
call fcn.00f0fc90
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
cmp eax, edi
jle 0xf0fd32
mov edi, eax
call fcn.00f0b4c0
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], edx
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x314], 0xffffffff
mov dword [ebp - 0x20c], edx
cmp esi, 0xffffffff
je 0xf0fd76
mov edx, 1
mov ecx, edx
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x314], esi
cmp ebx, 0xffffffff
je 0xf0fde9
xor eax, eax
test edx, edx
je 0xf0fd8f
cmp dword [ebp + eax*4 - 0x208], ebx
je 0xf0fd8f
inc eax
cmp eax, edx
jb 0xf0fd81
cmp eax, edx
jne 0xf0fda5
cmp edx, 0x40
jae 0xf0fda5
mov dword [ebp + eax*4 - 0x208], ebx
inc dword [ebp - 0x20c]
xor eax, eax
test ecx, ecx
je 0xf0fdbe
jmp 0xf0fdb0
cmp dword [ebp + eax*4 - 0x104], ebx
je 0xf0fdbe
inc eax
cmp eax, ecx
jb 0xf0fdb0
cmp eax, ecx
jne 0xf0fddb
cmp ecx, 0x40
jae 0xf0fddb
mov dword [ebp + eax*4 - 0x104], ebx
mov ecx, dword [ebp - 0x108]
inc ecx
mov dword [ebp - 0x108], ecx
cmp ebx, dword [ebp - 0x314]
jbe 0xf0fde9
mov dword [ebp - 0x314], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x310], 0
cmp eax, 0xffffffff
je 0xf0fe4b
mov dword [ebp - 0x30c], eax
xor eax, eax
mov dword [ebp - 0x310], 1
test ecx, ecx
je 0xf0fe24
mov edx, dword [ebp + 0x10]
cmp dword [ebp + eax*4 - 0x104], edx
je 0xf0fe27
inc eax
cmp eax, ecx
jb 0xf0fe11
jmp 0xf0fe27
mov edx, dword [ebp + 0x10]
cmp eax, ecx
jne 0xf0fe3d
cmp ecx, 0x40
jae 0xf0fe3d
mov dword [ebp + eax*4 - 0x104], edx
inc dword [ebp - 0x108]
cmp edx, dword [ebp - 0x314]
jbe 0xf0fe4b
mov dword [ebp - 0x314], edx
mov ebx, dword [ebp - 0x314]
xor eax, eax
cmp dword [ebp - 0x318], eax
lea ecx, [ebp - 0x328]
setl al
lea esi, [eax - 1]
and esi, ecx
inc ebx
jmp 0xf0fe70
mov eax, dword [ebp - 0x318]
xor ecx, ecx
cmp eax, ecx
jle 0xf0feab
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x328], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x324], edx
jmp 0xf0feb9
jne 0xf0feb9
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x324], ecx
push esi
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0xf0ff39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0xf0feec
cmp eax, 0x2714
jne 0xf0ff3d
cmp dword [ebp - 0x318], 0
jle 0xf0fe70
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x320]
push eax
push ecx
call fcn.00f0b4c0
push edx
push eax
call fcn.00f0b4f0
mov edi, dword [ebp - 0x318]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0xf0fe70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
test eax, eax
jns 0xf0ff51
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
jne 0xf0ff66
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0xf0ff9a
lea edx, [ebp - 0x20c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0xf0ff86
mov esi, 1
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0xf0ff9a
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0xf0ffca
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0xf0ffb6
or esi, 8
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0xf0ffca
or esi, 4
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
je 0xf0fffa
lea eax, [ebp - 0x310]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0xf0ffe6
or esi, 2
lea ecx, [ebp - 0x108]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0xf0fffa
or esi, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f32239
mov esp, ebp
pop ebp
ret