Function at 0x493120
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62afc1
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x8d600c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x9c], edi
push 0
push 0
push 0xb2c
push str.HPXS::CeSCLDevice::UseImagePipeLine
push 0x129b5f0
push dword [0x12992f8]
lea ecx, [ebp - 0x94]
call fcn.0041f881
mov dword [ebp - 4], 0
mov dword [ebp - 0xc0], 0
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 0x95], cl
cmp byte [esi + 0xc], 1
jne 0x493206
mov dword [ebp - 0x8c], ecx
push ebx
push 0xff
push dword [ebp - 0xb4]
call fcn.005b9760
add esp, 0xc
mov dword [edi], ebx
push ebx
push str.CeSCLDevice::UseImagePipeLine__m_IP_DONEreached_faking_white_data__d
push 0xb3b
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x14
jmp 0x4932d4
test ebx, ebx
jne 0x493230
mov dword [ebp - 0x8c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041f95a
mov eax, 0x80004005
jmp 0x4932ee
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [eax + eax]
inc eax
mov dword [ebp - 0xc4], eax
cmp byte [esi + 0xb], 0
jne 0x493425
cmp dword [esi + 0x34], 0
jne 0x493425
push str._______CeSCLDevice::UseImagePipeLine_Get_another_buffer_from_device_
push 0xb4d
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x10
mov eax, 0xcccccccd
mul ebx
shr edx, 2
mov ecx, ebx
cmp edx, 1
cmovae ecx, edx
mov dword [ebp - 0xa0], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 4], 1
push ecx
call fcn.005261a0
add esp, 4
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00493040
test eax, eax
je 0x49330c
mov dword [ebp - 0x8c], 0x80004005
mov edi, dword [ebp - 0x9c]
mov dword [edi], 0
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041f95a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00525a3e
mov esp, ebp
pop ebp
ret 0xc
call edi
mov edi, eax
mov edx, dword [esi + 0x114]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + 8]
add edx, 4
add ecx, edx
mov edx, dword [ecx]
lea eax, [esi + 0x18]
push eax
push dword [ebp - 0xa0]
push dword [esi + 0x34]
call dword [edx + 0xcc]
mov dword [ebp - 0x8c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
sub eax, edi
push dword [ebp - 0x8c]
push dword [esi + 0x18]
push eax
lea ecx, [eax + 0x1f4]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.TIME4A_J1__CeSCLDevice::UseImagePipeLine_m_pIScanJob__ReadScan__ld_secs__ld_m_ulInBufferBytes__ld_HR_0x_08X
push 0xb69
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x20
mov eax, dword [ebp - 0x8c]
test eax, eax
jns 0x4933e5
cmp eax, 0x83e8ebfc
jne 0x4933a0
push eax
push str.CeSCLDevice::UseImagePipeLine:_m_pIScanJob__ReadScan_returned_E_SCAN_CANCELLED_0x_08X
push 0xb6e
jmp 0x4933ab
push eax
push str.CeSCLDevice::UseImagePipeLine:_m_pIScanJob__ReadScan_failed_0x_08X
push 0xb71
push 0x80
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x14
mov byte [esi + 0xb], 1
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4933d3
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xa4]
jmp 0x49385c
jne 0x4933fa
cmp dword [esi + 0x18], 0
jne 0x49341f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x493811
cmp eax, 1
jne 0x49341f
cmp dword [esi + 0x18], 0
jne 0x49341f
mov byte [esi + 0xb], al
mov eax, dword [esi + 0x34]
test eax, eax
je 0x493418
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esi + 0xd], 0
je 0x4934ef
push str.HPXS::CeSCLDevice::UseImagePipeLine
push str._s:_m_bPCCancel_is_true_so_set_HRE_SCAN_CANCELLED
push 0xb87
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x14
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add ecx, 4
add ecx, eax
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0x95]
push edx
call dword [eax + 0xc8]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x493487
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
mov dword [ebp - 0x8c], 0x83e8ebfc
jmp 0x4932c8
call edi
mov dword [ebp - 0xb0], eax
mov edi, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, edi
je 0x493508
mov ecx, dword [esi + 0x34]
add ecx, edi
jmp 0x49350a
xor ecx, ecx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xa8]
push eax
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xb4]
add eax, edi
push eax
mov eax, ebx
sub eax, edi
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xac]
push eax
push ecx
push edx
mov ecx, dword [esi + 0xfc]
call fcn.004b84d6
movzx eax, ax
mov dword [ebp - 0xa0], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
sub eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa0]
movzx ecx, cx
push dword [ebp - 0x8c]
push ecx
push dword [ebp - 0xa8]
push eax
lea ecx, [eax + 0x1f4]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str._TIME4A_J2__CEsclScan::UseImagePipeLine__ipConvert_took__ld_secs__ld_dwOutUsed__ld_wResult__ld_HR_0x_08X__r_n
push 0xb9c
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x24
mov eax, dword [ebp - 0xac]
add dword [esi + 0x14], eax
add edi, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], edi
cmp dword [ebp - 0x8c], 1
jne 0x493689
push str.CeSCLDevice::HR__S_FALSE___done_reading_from_device_switch_HR_to_S_OK
push 0xba3
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x10
mov byte [esi + 0xb], 1
mov dword [ebp - 0x8c], 0
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add ecx, 4
add ecx, eax
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0x95]
push edx
call dword [eax + 0xc8]
mov ecx, eax
mov dword [ebp - 0x8c], ecx
cmp ecx, 0x83e8ebfc
jne 0x49365d
push str.HPXS::CeSCLDevice::UseImagePipeLine
push str._s:_StopScan_returned_HRE_SCAN_CANCELLED
push 0xbaa
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x14
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4938bb
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
jmp 0x4932d4
movzx eax, byte [ebp - 0x95]
push eax
movzx eax, byte [esi + 0xb]
push eax
push ecx
push dword [esi + 0x18]
push str.CeSCLDevice::UseImagePipeLine_pIScanJob__ReadScan_2_END_OF_DATA_REACHED_m_ulInBufferBytes__ld_HR_0x_08X_m_ReadDone__d__Called_CJobStopScan_bFPCancel______d
push 0xbaf
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x20
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov eax, edx
sub eax, ecx
push eax
push dword [ebp - 0xac]
push ecx
push edx
push str.CeSCLDevice::UseImagePipeLine_After_IPConvert:_m_ulInBufferBytes__ld__m_ulInBufferOffset__ld__dwInUsed__ld__inRemaining__ld
push 0xbb3
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
mov ecx, dword [ebp - 0xa0]
movzx eax, cx
push eax
push dword [ebp - 0xa8]
push edi
push ebx
push str.CeSCLDevice::UseImagePipeLine_After_IPConvert:_ulBytes__ld_ulOutBufferOffset__ld__dwOutUsed__ld_wResult__ld
push 0xbb5
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x40
mov ecx, dword [ebp - 0xa0]
test cl, 0x30
je 0x493735
movzx eax, cx
push eax
push str.CeSCLDevice::UseImagePipeLine:_ipConvert_problem.__x_returning_E_FAIL
push 0xbb9
push 0x80
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x14
mov eax, dword [esi + 0x34]
test eax, eax
je 0x49371e
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
mov dword [ebp - 0x8c], 0x80004005
mov ecx, dword [ebp - 0xa0]
test ecx, 0x200
je 0x493809
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xb0], eax
xor edx, edx
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax + 0x44]
sub ecx, dword [eax + 0x40]
sar ecx, 2
test ecx, ecx
jne 0x493767
lea edi, [edx + 0x20]
jmp 0x4937a4
mov eax, dword [eax + 0x44]
mov eax, dword [eax - 4]
cmp dword [eax + 8], 1
jg 0x49377a
mov edi, 0x20
jmp 0x4937a4
movups xmm0, xmmword [eax + 0x5c]
movups xmmword [ebp - 0xec], xmm0
movups xmm0, xmmword [eax + 0x6c]
movups xmmword [ebp - 0xdc], xmm0
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xcc], eax
mov edi, 0x200
mov edx, dword [ebp - 0xd8]
push edx
push edi
push str.CeSCLDevice::UseImagePipeLine_ipGetImageTraits__d_outTraits.lNumRows__d
push 0xbc4
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xb0]
push dword [ebp - 0x8c]
push edi
push eax
lea ecx, [eax + 0x1f4]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str._TIME4A_J3__CeSCLDevice::UseImagePipeLine_ipGetImageTraits_took__ld_secs__ld_wResult__ld_HR_0x_08X__r_n
push 0xbc7
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x20
mov byte [esi + 0xc], 1
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jne 0x493828
mov eax, dword [esi + 0x34]
test eax, eax
je 0x493821
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xa4]
cmp ecx, ebx
jae 0x49385c
mov eax, dword [ebp - 0x8c]
cmp eax, 0x80004005
je 0x49385c
cmp byte [esi + 0xc], 0
jne 0x49385c
cmp eax, 0x83e8ebfc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0xc4]
jne 0x493240
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x8c]
test eax, eax
js 0x4932c8
mov dword [edx], ecx
cmp byte [esi + 0xc], 0
je 0x4932d4
mov edx, 1
cmp ecx, ebx
cmovne eax, edx
mov dword [ebp - 0x8c], eax
push str.CeSCLDevice::UseImagePipeLine_m_IP_DONEreached_at_end_of_func
push 0xbde
push 0x11
lea eax, [ebp - 0x94]
push eax
call fcn.0041fc07
add esp, 0x10
mov byte [esi + 0xb], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4938bb
push eax
call fcn.00529880
add esp, 4
mov dword [esi + 0x34], 0
jmp 0x4932d4