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

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x34]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
cmp eax, esi
je 0x1004aa54
cmp ebx, esi
jbe 0x1004aa54
push ebx
push esi
push eax
call fcn.10173270
mov eax, 0xfffffff
add esp, 0xc
cmp dword [esp + 0x48], eax
jb 0x1004a86e
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
xor ebp, ebp
jmp 0x1004a884
xor esi, esi
cmp byte [esp + 0x4c], 0
mov ecx, dword [esp + 0x38]
je 0x1004a8a2
mov eax, dword [ecx + 4]
cmp eax, esi
je 0x1004a8a2
cmp dword [eax], 0x2694
je 0x1004a967
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x14], esi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x48]
mov esi, ebx
sub esi, ebp
push esi
add edx, ebp
push edx
mov edx, dword [esp + 0x4c]
push edx
call eax
test eax, eax
je 0x1004a9b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x1004a8e0
add ebp, ecx
cmp ecx, esi
jne 0x1004a933
cmp esi, ebx
je 0x1004a954
cmp byte [esp + 0x44], 0
je 0x1004a954
push ebx
push ebp
push esi
push ecx
movzx ecx, di
push ecx
push str.Retry__u_:_ReadComm__lu__lu_:_re_read_completely___total__lu__lu_.
lea edi, [esp + 0x38]
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x3c], 0xfa
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.DA_cmd::ReadData
call fcn.10017c90
mov edi, dword [esp + 0x2c]
add esp, 0x18
jmp 0x1004a954
test ecx, ecx
jne 0x1004a93c
inc edi
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x48]
cmp edx, 0xfffffff
je 0x1004a954
sub eax, dword [esp + 0x1c]
cmp eax, edx
jae 0x1004aa06
cmp ebp, ebx
jb 0x1004a882
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x28
ret 0x18
mov ecx, eax
mov edx, dword [ecx]
push edx
push ecx
push str.m_p_stopflag_0x_08X__lu__force_to_stop_
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0xe1
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.DA_cmd::ReadData
call fcn.10017c90
mov eax, 0x3e8
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x28
ret 0x18
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push eax
push esi
movzx edx, di
push ecx
push edx
push str.Retry__u_:_ReadComm__lu__lu_:_Err__u___total__lu__lu_.
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0xe9
mov byte [esp + 0x44], 0xff
mov dword [esp + 0x48], str._ERROR:
mov dword [esp + 0x4c], str.DA_cmd::ReadData
call fcn.10017c90
add esp, 0x1c
mov eax, 3
pop edi
pop esi
pop ebp
add esp, 0x28
ret 0x18
push ebx
movzx eax, di
push ebp
push eax
push edx
push esi
push ecx
push eax
push str.Retry__u_:_ReadComm__lu__lu_:_exceed_timeout__u_ms__retry__u_times_fail___total__lu__lu_.
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], 0x110
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
mov dword [esp + 0x50], str.DA_cmd::ReadData
call fcn.10017c90
add esp, 0x20
mov eax, 0x63
pop edi
pop esi
pop ebp
add esp, 0x28
ret 0x18
push ebx
push eax
push str.invalid_arguments__read_buf_0x_08X___read_len__lu_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0xcc
mov byte [esp + 0x34], 0xff
mov dword [esp + 0x38], str._ERROR:
mov dword [esp + 0x3c], str.DA_cmd::ReadData
call fcn.10017c90
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 0x18