Function at 0x1004ad90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1019c930
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, 1
jl 0x1004b712
cmp eax, 0xd
ja 0x1004b712
mov cl, byte [esp + 0x6c]
mov byte [esp + 0x5e], cl
movzx ecx, cl
mov byte [esp + 0x5d], al
push ecx
movzx eax, al
push eax
push 0xd2
mov esi, str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
push str.send_DA_SPEED_CMD_0x_02X___BaudrateId_0x_02X___FULL_SYNC_CNT_0x_02X_.
lea edi, [esp + 0x30]
mov byte [esp + 0x6c], 0xd2
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x194
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], str._DEBUG:
mov dword [esp + 0x40], str.DA_cmd::CMD_ChangeUartSpeed
mov dword [esp + 0x24], ecx
call fcn.10017c90
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x68]
add esp, 0x10
push 1
push 1
lea ecx, [esp + 0x64]
push ecx
push eax
push edx
mov ebx, 3
call fcn.1004a550
test eax, eax
je 0x1004ae52
lea eax, [ebx - 1]
jmp 0x1004b74e
push str.wait_for_ACK.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x19e
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x5c]
add esp, 4
push 1
push 0x2710
push 1
lea ecx, [esp + 0x68]
push ecx
push eax
push edx
mov ebx, 1
call fcn.1004a830
test eax, eax
je 0x1004aeb1
lea eax, [ebx + 2]
jmp 0x1004b74e
mov al, byte [esp + 0x5c]
cmp al, 0x5a
je 0x1004aef6
movzx eax, al
push eax
push str.non_ACK_0x_02X__return.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x1a4
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
mov dword [esp + 0x38], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov eax, 4
jmp 0x1004b74b
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
test eax, eax
je 0x1004b0d6
cmp ebx, 4
jge 0x1004b0d6
push eax
push str.CALLBACK_SET_HIGHSPEED_BAUDRATE_0x_08X_:_enter_...
lea edi, [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x1ac
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x6c]
add esp, 8
push ecx
push ebx
push eax
call edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], str.DA_cmd::CMD_ChangeUartSpeed
test eax, eax
je 0x1004af94
push eax
push edi
push str.CALLBACK_SET_HIGHSPEED_BAUDRATE_0x_08X_:_ERROR:_ret__d_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x30], 0x1ae
mov byte [esp + 0x34], 0xff
mov dword [esp + 0x38], str._ERROR:
call fcn.10017c90
add esp, 0xc
mov eax, 5
jmp 0x1004b74e
push edi
push str.CALLBACK_SET_HIGHSPEED_BAUDRATE_0x_08X_:_OK.
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], 0x1b1
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
call fcn.10017c90
add esp, 8
mov edx, dword [esp + 0x58]
push ebx
push str.Change_PC_side_baudrate_to_BaudrateId__u__successfully.
lea edi, [esp + 0x28]
mov dword [edx + 8], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x1bf
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
add esp, 8
push 0x64
call sub.KERNEL32.dll_Sleep
mov dword [esp + 0x1c], ebp
mov byte [ebp + 0x2e], 0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x54], 0
lea eax, [esp + 0x28]
mov esi, ebp
mov dword [esp + 0x2c], ebp
call fcn.1003db60
mov esi, dword [esp + 0x28]
push 0x64
mov eax, 0x64
call fcn.1003d940
mov byte [esp + 0x50], 1
mov dword [esp + 0x68], 0
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x58]
push 1
push 0
lea ecx, [esp + 0x6c]
push ecx
push eax
push esi
mov ebx, 1
mov byte [esp + 0x78], 0xc0
call fcn.1004a550
test eax, eax
jne 0x1004b14d
mov eax, dword [ebp + 8]
push ebx
push 0x64
push 0
lea edx, [esp + 0x70]
push edx
push eax
push esi
call fcn.1004a830
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], str._DEBUG:
mov dword [esp + 0x44], str.DA_cmd::CMD_ChangeUartSpeed
lea edi, [esp + 0x34]
test eax, eax
jne 0x1004b12c
mov al, byte [esp + 0x64]
cmp al, 0xc0
je 0x1004b165
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx*4 + 0x102074a8]
movzx eax, al
push eax
push edx
push str.SYNC__lu_:_non_SYNC_CHAR_0x_02X__received__keep_on_sync.
mov dword [esp + 0x44], 0x1dd
call fcn.10017c90
add esp, 0xc
jmp 0x1004b14d
mov edi, dword [ebx*4 + 0x102074a8]
push edi
mov ecx, ebp
call fcn.1003dd60
test eax, eax
je 0x1004afbb
push edi
push ebx
push eax
push str.com_sentry::ChangeBaudRate__:_fail___Err__u___BaudrateId__u__lu.
lea edi, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x1b9
mov byte [esp + 0x38], 0xff
mov dword [esp + 0x3c], str._ERROR:
mov dword [esp + 0x40], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
add esp, 0x10
mov eax, 6
jmp 0x1004b74e
mov eax, dword [esp + 0x60]
mov ecx, dword [eax*4 + 0x102074a8]
push ecx
push str.SYNC__lu_:_sync_timeout__keep_on_sync.
mov dword [esp + 0x40], 0x1e2
call fcn.10017c90
add esp, 8
mov eax, dword [esp + 0x68]
inc eax
cmp eax, 0x32
mov dword [esp + 0x68], eax
jl 0x1004b03d
mov ebx, dword [esp + 0x60]
jmp 0x1004b192
mov ebx, dword [esp + 0x60]
mov edx, dword [ebx*4 + 0x102074a8]
push 0xc0
push edx
push str.SYNC__lu_:_SYNC_CHAR_0x_02X__received_
mov dword [esp + 0x44], 0x1d8
call fcn.10017c90
add esp, 0xc
cmp dword [esp + 0x68], 0x32
jl 0x1004b1fa
mov eax, dword [esp + 0x68]
mov ecx, dword [ebx*4 + 0x102074a8]
push eax
push ecx
push str.SYNC__lu_:_retry__d_times_and_sync_fail_
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], 0x1e8
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
mov dword [esp + 0x50], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov byte [esp + 0x5c], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add esp, 0xc
push edx
call fcn.1003d940
mov byte [ebp + 0x2e], 1
mov eax, 7
jmp 0x1004b74e
push 0x32
call sub.KERNEL32.dll_Sleep
mov eax, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call edx
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], str.DA_cmd::CMD_ChangeUartSpeed
lea edi, [esp + 0x34]
test eax, eax
jne 0x1004b27f
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx*4 + 0x102074a8]
push eax
push ecx
push str.SYNC__lu_:_PurgeCommData___fail____Err__u_.
mov dword [esp + 0x44], 0x1f3
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
call fcn.10017c90
mov byte [esp + 0x5c], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add esp, 0xc
push edx
call fcn.1003d940
mov byte [ebp + 0x2e], 1
mov eax, 8
jmp 0x1004b74e
mov eax, dword [ebx*4 + 0x102074a8]
push eax
push str.SYNC__lu_:_send_PC_side_TX__RX_purge_ok_ACK.
mov byte [esp + 0x6c], 0x5a
mov dword [esp + 0x40], 0x1fb
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
call fcn.10017c90
mov eax, dword [ebp + 8]
add esp, 8
push 1
push 1
lea ecx, [esp + 0x6c]
push ecx
push eax
push esi
mov ebx, 1
call fcn.1004a550
test eax, eax
je 0x1004b2ec
mov byte [esp + 0x50], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push edx
call fcn.1003d940
mov byte [ebp + 0x2e], bl
lea eax, [ebx + 8]
jmp 0x1004b74e
mov eax, dword [esp + 0x60]
mov ecx, dword [eax*4 + 0x102074a8]
push ecx
push str.SYNC__lu_:_wait_for_target_side_TX__RX_purge_ok_ACK.
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x201
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov eax, dword [ebp + 8]
add esp, 8
push 1
push 0x1388
push 0
lea edx, [esp + 0x70]
push edx
push eax
push esi
call fcn.1004a830
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], str.DA_cmd::CMD_ChangeUartSpeed
lea edi, [esp + 0x34]
test eax, eax
jne 0x1004b6c2
mov al, byte [esp + 0x64]
cmp al, 0x5a
je 0x1004b3c0
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx*4 + 0x102074a8]
movzx eax, al
push eax
push edx
push str.SYNC__lu_:_non_ACK_0x_02X__received_
mov dword [esp + 0x44], 0x204
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
call fcn.10017c90
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
add esp, 0xc
push eax
mov eax, dword [esp + 0x28]
call fcn.1003d940
mov byte [ebp + 0x2e], bl
mov eax, 0xa
jmp 0x1004b74e
mov ebx, dword [esp + 0x60]
mov ecx, dword [ebx*4 + 0x102074a8]
push 0x5a
push ecx
push str.SYNC__lu_:_ACK_0x_02X__received__sync_ok_
mov dword [esp + 0x44], 0x20c
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], str._DEBUG:
call fcn.10017c90
add esp, 0xc
cmp byte [esp + 0x6c], 0
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], str.DA_cmd::CMD_ChangeUartSpeed
lea edi, [esp + 0x34]
jbe 0x1004b638
mov edx, dword [ebx*4 + 0x102074a8]
push edx
push str.FULL_SYNC__lu_:_full_sync_all_char_to_observe_if_baudrate_is_stable.
mov dword [esp + 0x40], 0x210
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
call fcn.10017c90
add esp, 8
mov byte [esp + 0x6c], 0
mov edi, edi
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x1004b4a6
mov al, byte [esp + 0x6c]
push 1
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], al
mov eax, dword [ebp + 8]
push ecx
push eax
push esi
mov ebx, 1
call fcn.1004a550
test eax, eax
jne 0x1004b4b7
mov eax, dword [ebp + 8]
push ebx
push 0x2710
push 0
lea edx, [esp + 0x70]
push edx
push eax
push esi
call fcn.1004a830
test eax, eax
jne 0x1004b593
mov al, byte [esp + 0x64]
mov cl, byte [esp + 0x6c]
cmp cl, al
jne 0x1004b524
inc edi
cmp edi, dword [esp + 0x14]
jl 0x1004b448
mov ebx, dword [esp + 0x60]
cmp byte [esp + 0x6c], 0xff
jae 0x1004b600
inc byte [esp + 0x6c]
jmp 0x1004b440
movzx eax, byte [esp + 0x6c]
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx*4 + 0x102074a8]
push eax
push edi
push edx
push str.FULL_SYNC__lu___u_:_cant_write_KEEP_SYNC_CHAR_0x_02X__to_target__full_sync_fail__baudrate_is_not_stable__
lea edi, [esp + 0x44]
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x21c
mov byte [esp + 0x4c], 0xff
mov dword [esp + 0x50], str._ERROR:
mov dword [esp + 0x54], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
add esp, 0x10
push eax
mov eax, dword [esp + 0x28]
call fcn.1003d940
mov byte [ebp + 0x2e], bl
mov eax, 0xc
jmp 0x1004b74e
movzx edx, al
push edx
movzx eax, cl
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx*4 + 0x102074a8]
push eax
push edi
push edx
push str.FULL_SYNC__lu___u_:_expect_KEEP_SYNC_CHAR_0x_02X___but_receive_0x_02X__full_sync_fail__baudrate_is_not_stable__
lea edi, [esp + 0x48]
mov dword [esp + 0x48], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x4c], 0x224
mov byte [esp + 0x50], 0xff
mov dword [esp + 0x54], str._ERROR:
mov dword [esp + 0x58], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
add esp, 0x14
push eax
mov eax, dword [esp + 0x28]
call fcn.1003d940
mov byte [ebp + 0x2e], bl
mov eax, 0xd
jmp 0x1004b74e
movzx ecx, byte [esp + 0x6c]
mov edx, dword [esp + 0x60]
mov eax, dword [edx*4 + 0x102074a8]
push ecx
push edi
push eax
push str.FULL_SYNC__lu___u_:_wait_for_KEEP_SYNC_CHAR_0x_02X__timeout__full_sync_fail__baudrate_is_not_stable__
lea edi, [esp + 0x44]
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x22a
mov byte [esp + 0x4c], 0xff
mov dword [esp + 0x50], str._ERROR:
mov dword [esp + 0x54], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov byte [esp + 0x60], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esp, 0x10
push ecx
call fcn.1003d940
mov byte [ebp + 0x2e], bl
mov eax, 0xe
jmp 0x1004b74e
mov edx, dword [ebx*4 + 0x102074a8]
push edx
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x3c], 0x237
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.DA_cmd::CMD_ChangeUartSpeed
push str.FULL_SYNC__lu_:_successful_
lea edi, [esp + 0x3c]
jmp 0x1004b65a
mov eax, dword [ebx*4 + 0x102074a8]
push eax
mov dword [esp + 0x3c], 0x23a
mov byte [esp + 0x40], 0xd2
mov dword [esp + 0x44], str._WARN:
push str.skip_FULL_SYNC__lu__procedure_after_baudrate_changed.
call fcn.10017c90
mov byte [esp + 0x58], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
add esp, 8
push ecx
call fcn.1003d940
mov dword [esp + 0x50], 0xffffffff
push 0x102135a4
lea edi, [esp + 0x38]
mov byte [ebp + 0x2e], 1
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x3c], 0x23e
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
add esp, 4
xor eax, eax
jmp 0x1004b74e
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx*4 + 0x102074a8]
push eax
push str.SYNC__lu_:_ReadData__:_fail__Err__d_.
mov dword [esp + 0x44], 0x209
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
call fcn.10017c90
mov byte [esp + 0x5c], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add esp, 0xc
push ecx
call fcn.1003d940
mov byte [ebp + 0x2e], bl
mov eax, 0xb
jmp 0x1004b74e
push eax
push str.BaudrateId_0x_02X__is_invalid_
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x18b
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_ChangeUartSpeed
call fcn.10017c90
mov eax, 1
add esp, 8
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18