Function at 0x488844
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x488c10
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x10], 0
je 0x488bca
cmp dword [ebx + 0xc], 0
je 0x488bca
cmp byte [ebx + 0x18], 0
je 0x488bca
mov eax, ebx
call fcn.00488d78
mov eax, dword [ebx + 0xc]
xor edx, edx
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xc]
xor edx, edx
call fcn.004061b8
cmp edx, dword [ebp + 0xc]
jne 0x4888bd
cmp eax, dword [ebp + 8]
jbe 0x4888c3
jmp 0x488bca
jg 0x488bca
push 0
push 0x60000000
push 3
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404030
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x488bca
mov byte [ebx + 0x58], 0
mov byte [ebx + 0x59], 1
mov esi, dword [ebx + 0x10]
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.004061fe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
push esi
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x487bcc]
call fcn.00405324
add esp, 4
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x488800]
call fcn.00405324
add esp, 4
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4887ec]
call fcn.00405324
add esp, 4
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x488814]
call fcn.00405324
add esp, 4
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x48882c]
call fcn.00405324
add esp, 4
xor eax, eax
mov al, byte [ebx + 0x18]
mov edx, eax
shl edx, 2
lea edx, [edx + edx*4]
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.00402bcc
movzx edi, byte [ebx + 0x18]
dec edi
test edi, edi
jl 0x4889f0
inc edi
xor esi, esi
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 0xc]
mov dword [edx + esi*4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
lea edx, [esi + esi*4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 0x10], eax
mov eax, dword [ebx + 0xc]
call fcn.00402714
mov edx, dword [ebp - 0x10]
mov dword [edx + esi*4], eax
inc esi
dec edi
jne 0x4889bb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
movzx edi, byte [ebx + 0x18]
dec edi
test edi, edi
jl 0x488b8a
inc edi
xor esi, esi
lea eax, [esi + esi*4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4 + 8]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [esi + esi*4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
inc esi
dec edi
jne 0x488a0e
jmp 0x488b8a
push 0x5dc0
push 0
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
call sub.kernel32.dll_WaitForMultipleObjects
mov esi, eax
cmp esi, 0xffffffff
je 0x488b96
xor eax, eax
mov al, byte [ebx + 0x18]
cmp esi, eax
jae 0x488b96
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebx + 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 8]
lea edi, [edx + eax*8]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + esi*8 + 4]
mov eax, dword [eax + esi*8]
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fild qword [ebx + 0x20]
fdivp st(1)
fstp qword [ebp - 0x40]
wait
lea eax, [esi + esi*4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4 + 8]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
fld qword [ebp - 0x40]
fmul dword [0x488c20]
fmul dword [0x488c20]
call fcn.00402a24
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
fild qword [ebp - 0x48]
fdiv qword [ebp - 0x40]
fstp qword [edi + 0x10]
wait
inc dword [ebx + 0x14]
xor eax, eax
mov al, byte [ebx + 0x18]
cmp esi, eax
jae 0x488b74
lea eax, [esi + esi*4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4 + 8]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [esi + esi*4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
cmp dword [ebx + 0x60], 0
je 0x488b84
mov ecx, edi
mov edx, ebx
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
cmp byte [ebx + 0x58], 0
jne 0x488b96
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x10]
jb 0x488a66
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
movzx edi, byte [ebx + 0x18]
dec edi
test edi, edi
jl 0x488bc6
inc edi
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
call fcn.0040272c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push eax
call sub.kernel32.dll_CloseHandle_1
inc esi
dec edi
jne 0x488bab
mov byte [ebx + 0x59], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488c17
lea eax, [ebp - 0x14]
mov edx, dword [0x48882c]
call fcn.00405330
lea eax, [ebp - 0x10]
mov edx, dword [0x488814]
call fcn.00405330
lea eax, [ebp - 0xc]
mov edx, dword [0x488800]
call fcn.00405330
lea eax, [ebp - 8]
mov edx, dword [0x4887ec]
call fcn.00405330
ret