Function at 0x49ddd0
Capabilities:
Check for time delay via queryperformancecounter
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4cf223
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push eax
mov esi, 1
push str.Measure_read_speed_for_file__s
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x4e6fe4
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x54], esi
call fcn.00409c10
push 0x4000
mov byte [esp + 0x4e], 1
call fcn.0044d57b
fldz
xor ebx, ebx
fstp dword [esp + 0x64]
add esp, 0xc
test byte [0x51a6f4], 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x43], bl
jne 0x49de8f
or dword [0x51a6f4], esi
mov dword [esp + 0x140], ebx
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [edi]
push ebx
push 0x20000000
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x68], eax
cmp eax, 0xffffffff
jne 0x49def1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov esi, eax
push ecx
push esi
push str.CreateFile_failed_with_error_code:_0x_08x__path:__s_
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x4e72f0
mov dword [esp + 0x54], 0x114
mov dword [esp + 0x58], 1
call fcn.00409c10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0x42], 0
xor esi, esi
cmp byte [esp + 0x42], 0
je 0x49df50
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x49df48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
push ecx
push eax
push str.GetFileSizeEx_failed_with_error_code:_0x_08x__path:__s_
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x4e738c
mov dword [esp + 0x54], 0x121
mov dword [esp + 0x58], 1
call fcn.00409c10
add esp, 0xc
mov byte [esp + 0x42], 0
jmp 0x49df50
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov eax, ebx
shrd eax, esi, 0xe
shr esi, 0xe
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0x4000
test eax, eax
jne 0x49df75
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 1
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call fcn.00457d1e
add esp, 4
push eax
call fcn.00457ceb
fld qword [ebp + 0x24]
fld qword [ebp + 0x1c]
add esp, 4
fsub st(1), st(0)
mov dword [esp + 0x88], 0
fxch st(1)
fdiv qword [0x4f64d0]
fstp qword [esp + 0x44]
fstp qword [esp + 0x5c]
fldz
fstp qword [esp + 0x94]
cmp byte [esp + 0x42], 0
je 0x49e3de
mov eax, dword [0x51a630]
test eax, eax
jne 0x49e00d
push 0x4e013c
lea eax, [esp + 0xb0]
mov dword [esp + 0xb0], str.COperationTimeCalculator::Start
mov dword [esp + 0xb4], 0x18a
mov dword [esp + 0xb8], 2
call fcn.00409c10
add esp, 4
jmp 0x49e014
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fld qword [0x51a658]
sub esp, 8
fadd qword [0x4f64a0]
mov esi, 0x51a5f0
fstp qword [esp]
call fcn.004905d0
call fcn.00457cfd
xor edx, edx
div dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
push 0
push 0
imul edx, dword [esp + 0x80]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49e0a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [edi]
push eax
push esi
push str.SetFilePointer_failed_with_error_code:_0x_08x__path:__s_
lea eax, [esp + 0xdc]
mov dword [esp + 0xdc], 0x4e7468
mov dword [esp + 0xe0], 0x142
mov dword [esp + 0xe4], 1
call fcn.00409c10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0x84], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x84]
push 0
lea edx, [esp + 0x84]
push edx
push 0x4000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [esp + 0x9c]
mov dword [esp + 0x90], eax
call fcn.00423ef0
fstp dword [esp + 0x8c]
fld qword [esp + 0x5c]
mov esi, dword [ebp + 0x14]
fadd qword [esp + 0x44]
xor edx, edx
fst qword [esp + 0x5c]
cmp esi, edx
je 0x49e293
fsub qword [esp + 0x94]
fcomp qword [0x4f64b0]
fnstsw ax
test ah, 1
jne 0x49e295
test byte [0x51a6f4], 1
jne 0x49e15a
mov eax, 1
or dword [0x51a6f4], eax
mov dword [esp + 0x140], eax
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov dword [esp + 0x140], 0xffffffff
cmp byte [0x51a668], 0
je 0x49e1b6
mov ebx, dword [0x51a638]
test ebx, ebx
je 0x49e1b6
call fcn.00423ef0
call fcn.004c8600
cmp eax, 0xf
jl 0x49e1b6
fld qword [0x4f64b0]
fcomp qword [0x51a688]
fnstsw ax
test ah, 5
jp 0x49e1b6
mov ecx, dword [0x51a638]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, 0x51a5f0
call fcn.00490450
fstp dword [0x51a64c]
mov esi, dword [ebp + 0x14]
mov byte [0x51a648], 1
test byte [0x51a6f4], 1
jne 0x49e1ee
or dword [0x51a6f4], 1
mov dword [esp + 0x140], 2
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov dword [esp + 0x140], 0xffffffff
push ecx
mov edx, esp
mov dword [esp + 0x98], esp
push edx
mov ecx, 0x51a5f0
call fcn.00490760
fld qword [esp + 0x60]
mov eax, dword [edi]
push eax
sub esp, 8
fstp qword [esp]
push 2
push 0xa
lea eax, [esp + 0xf4]
push eax
call fcn.0042d760
push eax
push esi
mov dword [esp + 0x148], 3
call fcn.0041e710
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0xfc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xf8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld qword [esp + 0x5c]
xor edx, edx
fstp qword [esp + 0x94]
jmp 0x49e295
fstp st(0)
cmp dword [esp + 0x90], edx
je 0x49e370
mov ecx, dword [esp + 0x80]
fld dword [esp + 0x8c]
add dword [esp + 0x6c], ecx
fadd dword [esp + 0x58]
mov ecx, dword [esi + 0x14]
mov byte [esp + 0x42], 1
adc dword [esp + 0x70], edx
fstp dword [esp + 0x58]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x140], 4
mov eax, dword [ecx]
lea edx, [esp + 0xa4]
push edx
mov edx, dword [eax + 0x14]
push 1
call edx
mov ebx, eax
mov edi, esi
call fcn.004ab480
add esp, 8
test al, al
sete al
mov dword [esp + 0x140], 0xffffffff
test al, al
jne 0x49e3d9
mov ebx, dword [0x51a630]
test ebx, ebx
jne 0x49e35a
push str.operationWatch___NULL
lea eax, [esp + 0xbc]
mov dword [esp + 0xbc], str.COperationTimeCalculator::Stop
mov dword [esp + 0xc0], 0x197
mov dword [esp + 0xc4], 2
call fcn.00409c10
mov edi, dword [ebp + 8]
add esp, 4
jmp 0x49e3bd
call fcn.00423ef0
fadd dword [0x51a660]
mov edi, dword [ebp + 8]
fstp dword [0x51a660]
jmp 0x49e3bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [edi]
push eax
push esi
push str.ReadFile_failed_with_error_code:_0x_08x__path:__s_
lea eax, [esp + 0xd0]
mov dword [esp + 0xd0], str.CDiskPerformanceMonitor::MeasureFileReadSpeed
mov dword [esp + 0xd4], 0x160
mov dword [esp + 0xd8], 1
call fcn.00409c10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0x42], 0
mov eax, dword [esp + 0x88]
inc eax
mov dword [esp + 0x88], eax
cmp eax, 0x3e8
jl 0x49dfc2
jmp 0x49e3de
mov byte [esp + 0x43], 1
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x49e3ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49e402
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49e40f
fld dword [esp + 0x58]
fstp dword [eax]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x49e41c
mov cl, byte [esp + 0x43]
mov byte [eax], cl
mov edx, dword [esp + 0x84]
push edx
call fcn.00454014
mov al, byte [esp + 0x46]
add esp, 4
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24