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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf1c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 0xd], 1
call fcn.0044d57b
fldz
add esp, 4
fstp dword [ebp - 0x24]
test byte [0x51a6f4], 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0xe], 0
jne 0x49d7ac
or dword [0x51a6f4], 1
mov byte [ebp - 4], 1
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 0x24]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], esp
cmp eax, esi
je 0x49d7d2
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [ebp - 0x90]
push edx
call fcn.0041ec40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x49d85e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0x20]
lea esi, [ebp - 0x14]
call fcn.004018f0
mov byte [ebp - 4], 3
mov eax, dword [eax]
push eax
push ebx
push str.GetVolumeHandle___failed_with_error_code:_0x_08x__volume:__s_
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x4e75b0
mov dword [ebp - 0x64], 0x19a
mov dword [ebp - 0x60], 1
call fcn.00409be0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d853
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0xd], 0
mov ebx, dword [ebp + 0x20]
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00401920
mov edi, dword [ebp - 0xb4]
test edi, edi
jne 0x49d885
mov ebx, dword [ebp - 0xb8]
cmp ebx, 0x500000
jb 0x49d88c
mov ebx, 0x500000
xor edi, edi
lea esi, [ebp - 0xd0]
call fcn.00401a10
mov esi, dword [ebp + 8]
mov eax, esi
cdq
push edx
push eax
push edi
push ebx
call fcn.00464cd0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], esi
test eax, eax
jne 0x49d8ba
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], 1
push 0
call fcn.00457d1e
add esp, 4
push eax
call fcn.00457ceb
add esp, 4
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fld qword [ebp + 0x30]
cmp dword [ebp + 0xc], 0
fld qword [ebp + 0x28]
fsub st(1), st(0)
mov dword [ebp + 0x34], 0
fild dword [ebp + 0xc]
fdivp st(2)
fxch st(1)
fstp qword [ebp - 0x68]
fstp qword [ebp - 0x38]
fldz
fstp qword [ebp - 0x50]
jle 0x49dcd9
cmp byte [ebp - 0xd], 0
je 0x49dcd9
mov eax, dword [0x51a630]
test eax, eax
jne 0x49d942
push 0x4e013c
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], str.COperationTimeCalculator::Start
mov dword [ebp - 0x80], 0x18a
mov dword [ebp - 0x7c], 2
call fcn.00409c10
add esp, 4
jmp 0x49d949
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
mov eax, dword [ebp + 0x34]
xor edx, edx
div dword [ebp - 0x2c]
mov edi, dword [ebp - 0x54]
push 0
push 0
imul edx, dword [ebp - 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49d9fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0x20]
lea esi, [ebp - 0x58]
call fcn.004018f0
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
push ebx
push str.SetFilePointer_failed_with_error_code:_0x_08x__volume:__s_
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x4e7620
mov dword [ebp - 0x98], 0x1be
mov dword [ebp - 0x94], 1
call fcn.00409be0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
push 0
lea edx, [ebp + 0x2c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [ebp - 0x78]
mov esi, eax
call fcn.00423ef0
fstp dword [ebp - 0x28]
fld qword [ebp - 0x38]
mov edi, dword [ebp + 0x18]
fadd qword [ebp - 0x68]
xor ebx, ebx
fst qword [ebp - 0x38]
cmp edi, ebx
je 0x49db3c
fsub qword [ebp - 0x50]
fcomp qword [0x4f64b0]
fnstsw ax
test ah, 1
jne 0x49db3e
test byte [0x51a6f4], 1
jne 0x49da82
or dword [0x51a6f4], 1
mov byte [ebp - 4], 5
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x51a5f0
call fcn.00490570
test byte [0x51a6f4], 1
jne 0x49dab6
or dword [0x51a6f4], 1
mov byte [ebp - 4], 6
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov byte [ebp - 4], 2
push ecx
mov edx, esp
mov dword [ebp - 0x4c], esp
push edx
mov ecx, 0x51a5f0
call fcn.00490760
fld qword [ebp - 0x38]
push ebx
sub esp, 8
fstp qword [esp]
push 2
push 0xa
lea eax, [ebp - 0xc8]
push eax
call fcn.0042d760
push eax
push edi
mov byte [ebp - 4], 7
call fcn.0041e710
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49db12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49db34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld qword [ebp - 0x38]
fstp qword [ebp - 0x50]
jmp 0x49db3e
fstp st(0)
cmp esi, ebx
je 0x49dbe9
mov ecx, dword [ebp + 0x2c]
fld dword [ebp - 0x28]
add dword [ebp - 0x20], ecx
fadd dword [ebp - 0x24]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x70], ebx
adc dword [ebp - 0x1c], ebx
fstp dword [ebp - 0x24]
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
lea edx, [ebp - 0x70]
push edx
mov edx, dword [eax + 0x14]
push 1
call edx
mov ebx, eax
call fcn.004ab480
add esp, 8
test al, al
sete al
mov ecx, 2
mov byte [ebp - 4], cl
test al, al
jne 0x49dbe0
mov ebx, dword [0x51a630]
test ebx, ebx
jne 0x49dbba
push str.operationWatch___NULL
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], str.COperationTimeCalculator::Stop
mov dword [ebp - 0x44], 0x197
mov dword [ebp - 0x40], ecx
call fcn.00409c10
add esp, 4
jmp 0x49dbcb
call fcn.00423ef0
fadd dword [0x51a660]
fstp dword [0x51a660]
mov eax, dword [ebp + 0x34]
inc eax
mov dword [ebp + 0x34], eax
cmp eax, dword [ebp + 0xc]
jl 0x49d902
jmp 0x49dcd9
mov byte [ebp - 0xe], 1
jmp 0x49dcd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0x20]
lea esi, [ebp + 8]
call fcn.004018f0
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
push ebx
push str.ReadFile_failed_with_error_code:_0x_08x__volume:__s_
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], str.CDiskPerformanceMonitor::MeasureDiskReadSpeed
mov dword [ebp - 0x44], 0x1db
mov dword [ebp - 0x40], 1
call fcn.00409be0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dc4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push ecx
mov ecx, 0x4e540c
call fcn.0041b050
fld qword [ebp - 0x38]
push 0
sub esp, 8
fstp qword [esp]
push 8
push 0xa
lea edx, [ebp - 0xc8]
push edx
call fcn.0042d760
push eax
mov eax, dword [ebp + 0x18]
push eax
mov byte [ebp - 4], 9
call fcn.0041e710
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dcb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dcd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49dceb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49dcf7
fld dword [ebp - 0x24]
fstp dword [eax]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x49dd03
mov cl, byte [ebp - 0xe]
mov byte [eax], cl
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00454014
add esp, 4
mov eax, dword [ebp - 0x90]
mov esi, dword [eax + 0x294]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or edi, 0xffffffff
add dword [esi + 0x24], edi
cmp dword [esi + 0x24], 0
jg 0x49dd43
mov eax, dword [esi + 0x18]
test eax, eax
je 0x49dd43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x49dd80
lea ecx, [esi + 4]
mov edx, edi
lock xadd dword [ecx], edx
jne 0x49dd80
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x49dd80
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x49ddb0
lea ecx, [esi + 4]
mov edx, edi
lock xadd dword [ecx], edx
jne 0x49ddb0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
lock xadd dword [eax], edi
jne 0x49ddb0
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30