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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad278
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
xor edi, edi
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], edi
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x43b9c1
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0x18]
xor edx, edx
mov ecx, 0x200
mov eax, esi
div ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], edx
fild dword [ebp - 0x28]
mov ecx, eax
test edx, edx
jge 0x43ba00
fadd dword [0x4c56f8]
fcomp dword [0x4d2464]
fnstsw ax
test ah, 0x44
jnp 0x43ba18
lea eax, [ecx + 1]
shl eax, 9
mov dword [ebp - 0x28], eax
jmp 0x43ba1b
mov dword [ebp - 0x28], esi
movsx edx, byte [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push str.._C:
push eax
call fcn.00402d80
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push edi
push 0x28000000
push 3
push edi
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x43bc7b
mov dword [ebp + 8], edi
lea ebx, [ebx]
cmp dword [ebp + 8], 1
jg 0x43bc7b
mov ecx, dword [ebp + 0x14]
mov eax, 0x200
push ecx
mov ecx, dword [ebp + 0x10]
movzx eax, ax
cdq
push ecx
push edx
push eax
call fcn.00491af0
mov ebx, eax
mov dword [ebp - 0x3c], edx
cmp edi, 3
jge 0x43badd
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test al, al
jne 0x43badd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
push 0x2455
push str.CAsmtUSBDev::vReadSectors
push 0x4c5688
call fcn.0044b720
add esp, 0x14
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x43ba87
cmp byte [ebp + 0x1c], 0
je 0x43baf0
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ecx]
lea eax, [esi - 0x2000000]
mov dword [ebp - 0x24], eax
cmp esi, 0x2000000
jbe 0x43bb06
mov esi, 0x2000000
push esi
call fcn.00490201
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x2c], edi
call fcn.0048f850
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
push 0
lea edx, [ebp - 0x44]
push edx
push ebx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp + 0x1c], 0
je 0x43bb4d
cmp dword [ebp + 8], 1
jne 0x43bb4d
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x20]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebp - 0x11], al
test al, al
je 0x43bc34
cmp dword [ebp - 0x20], esi
jne 0x43bc34
cmp byte [ebp + 0x1c], 0
je 0x43bbff
cmp dword [ebp + 8], 1
jne 0x43bbff
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild dword [ebp + 0x18]
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
test ecx, ecx
jge 0x43bbb3
fadd qword [0x4bba90]
fild qword [ebp - 0x60]
mov eax, dword [ebp - 0x34]
fild qword [ebp - 0x68]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
sub esp, 8
fdivp st(1)
fld qword [0x4c5680]
fmul st(1), st(0)
fmulp st(1)
fdivp st(1)
fadd qword [eax + 0x728]
fst qword [eax + 0x728]
mov eax, dword [ebp + 0x10]
fstp qword [esp]
push edx
push eax
push ecx
push 0x2481
push str.CAsmtUSBDev::vReadSectors
push str._s:_d:_vReadSectors:_COUNTING_ucpReadBuffer_:__x___dwlReadLocationSector_:__lld___m_fsdif_R:__f
call fcn.0044b650
add esp, 0x20
mov edx, dword [ebp + 0xc]
push esi
push edi
push edx
call fcn.00491570
add ebx, esi
adc dword [ebp - 0x3c], 0
mov esi, dword [ebp - 0x24]
push edi
call fcn.00490330
add esp, 0x10
test esi, esi
jg 0x43baf0
inc dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 0x18]
xor edi, edi
jmp 0x43ba60
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
push 0x2474
push str.CAsmtUSBDev::vReadSectors
push str._s:_d:_ReadFile__Error__uiReadLogicalSector__d____dwRpt__d____dwErrorCode___d_
call fcn.0044b7f0
add esp, 0x18
test edi, edi
je 0x43bc6b
push edi
call fcn.00490330
add esp, 4
inc dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 0x18]
xor edi, edi
jmp 0x43ba60
cmp eax, edi
je 0x43bc86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43bcac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18