Function at 0x10f828
Capabilities:
Get socket status
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x10fc97
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dword [ebp - 0x128], 1
imul eax, dword [ebp - 8], 0x50e
mov eax, dword [eax*8 + 0x2c2b90]
mov dword [ebp - 0x124], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xa
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x128]
push eax
push 0
push 0
call sub.wsock32.dll_select
mov ebx, eax
test ebx, ebx
jle 0x10fc79
inc ebx
je 0x10fc79
imul ebx, dword [ebp - 8], 0x50e
cmp dword [ebx*8 + 0x2c53dc], 0
jle 0x10f9ca
cmp dword [ebx*8 + 0x2c2b90], 0xffffffff
je 0x10f94f
xor edx, edx
push ebp
push 0x10f923
push dword fs:[edx]
mov dword fs:[edx], esp
imul eax, dword [ebp - 8], 0x50e
mov ecx, dword [eax*8 + 0x2c53dc]
mov edx, dword [ebx*8 + 0x2c53cc]
mov eax, dword [ebx*8 + 0x2c2b94]
call fcn.00108ed8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x10f952
or ebx, 0xffffffff
test ebx, ebx
jle 0x10f99c
mov byte [ebp - 9], 1
imul esi, dword [ebp - 8], 0x50e
sub dword [esi*8 + 0x2c53dc], ebx
mov eax, dword [esi*8 + 0x2c53cc]
add eax, ebx
mov ecx, dword [esi*8 + 0x2c53dc]
imul edx, dword [ebp - 8], 0x50e
mov edx, dword [edx*8 + 0x2c53cc]
call fcn.0001291c
call sub.kernel32.dll_GetTickCount
mov dword [esi*8 + 0x2c2ba0], eax
jmp 0x10fc79
imul eax, dword [ebp - 8], 0x50e
cmp byte [eax*8 + 0x2c53fc], 0
je 0x10fc79
push 0x12
mov edx, dword [eax*8 + 0x2c2b90]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0010db30
jmp 0x10fc79
cmp dword [ebx*8 + 0x2c53d4], 0
jle 0x10fc79
call fcn.0010b7a4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10f9ed
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [0x250c8c]
xor edx, edx
call fcn.00016d76
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.000271f0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebx*8 + 0x2c53d0]
call fcn.0001416c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10fa60
cmp dword [ebx*8 + 0x2c53d8], 0
jle 0x10fa60
push 0
push 0
imul eax, dword [ebp - 8], 0x50e
mov eax, dword [eax*8 + 0x2c53d8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10fa7d
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x20], 0
jbe 0x10fba7
mov eax, dword [ebp - 0x20]
add dword [ebx*8 + 0x2c53d8], eax
mov eax, dword [ebx*8 + 0x2c53dc]
mov edx, dword [ebx*8 + 0x2c53cc]
add edx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.0001291c
mov eax, dword [ebp - 0x20]
add dword [ebx*8 + 0x2c53dc], eax
mov eax, dword [ebx*8 + 0x2c53d8]
cmp eax, dword [ebx*8 + 0x2c53d4]
jl 0x10faec
xor eax, eax
mov dword [ebx*8 + 0x2c53d8], eax
xor eax, eax
mov dword [ebx*8 + 0x2c53d4], eax
lea eax, [ebx*8 + 0x2c53d0]
call fcn.00013d18
mov byte [ebx*8 + 0x2c53e0], 0
cmp dword [ebx*8 + 0x2c2b90], 0xffffffff
je 0x10fb56
xor edx, edx
push ebp
push 0x10fb2a
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebx*8 + 0x2c53dc]
mov edx, dword [ebx*8 + 0x2c53cc]
mov eax, dword [ebx*8 + 0x2c2b94]
call fcn.00108ed8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x10fb59
or ebx, 0xffffffff
test ebx, ebx
jle 0x10fc65
mov byte [ebp - 9], 1
imul esi, dword [ebp - 8], 0x50e
sub dword [esi*8 + 0x2c53dc], ebx
mov eax, dword [esi*8 + 0x2c53cc]
add eax, ebx
mov ecx, dword [esi*8 + 0x2c53dc]
imul edx, dword [ebp - 8], 0x50e
mov edx, dword [edx*8 + 0x2c53cc]
call fcn.0001291c
call sub.kernel32.dll_GetTickCount
mov dword [esi*8 + 0x2c2ba0], eax
jmp 0x10fc65
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x10fc3f
push 0x10fcd8
push dword [ebx*8 + 0x2c53d0]
push 0x10fcf8
lea edx, [ebp - 0x13c]
mov eax, dword [ebx*8 + 0x2c53d8]
call fcn.0003006c
push dword [ebp - 0x13c]
push 0x10fd04
lea edx, [ebp - 0x140]
mov eax, dword [ebx*8 + 0x2c53d4]
call fcn.0003006c
push dword [ebp - 0x140]
push 0x10fd04
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x10]
call fcn.0003006c
push dword [ebp - 0x144]
push 0x10fd10
lea eax, [ebp - 0x138]
mov edx, 9
call fcn.00014068
mov edx, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov eax, esi
call fcn.0004a880
xor eax, eax
mov dword [ebx*8 + 0x2c53d8], eax
xor eax, eax
mov dword [ebx*8 + 0x2c53d4], eax
lea eax, [ebx*8 + 0x2c53d0]
call fcn.00013d18
mov byte [ebx*8 + 0x2c53e0], 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00027218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10fc9e
lea eax, [ebp - 0x144]
mov edx, 7
call fcn.00013d3c
ret