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

Disassembly:
push 0xffffffffffffffff
push 0x1019c5f9
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
movzx ebp, word [esp + 0xd0]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x50], 0
cmp ebp, eax
jb 0x100598ef
call fcn.1016d669
lea ebx, [ebp + ebp*2]
shl ebx, 5
add ebx, dword [esi + 0xc]
cmp byte [ebx + 0x48], 0
mov dword [esp + 0x48], ebx
jne 0x1005990d
mov eax, 1
jmp 0x1005a84e
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
add ecx, eax
push ecx
push eax
push str.page__d___spare__d_
lea edi, [esp + 0x64]
mov dword [esp + 0x60], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x64], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x68], 0x143f
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], str._DEBUG:
mov dword [esp + 0x74], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov esi, dword [esi + 0x18]
mov ecx, dword [esp + 0x84]
add esp, 0xc
cmp esi, ecx
jae 0x1005996e
mov edi, ecx
mov dword [esp + 0x30], ecx
jmp 0x1005997f
xor edx, edx
mov eax, esi
div dword [esp + 0x54]
mov edi, eax
imul edi, ecx
mov dword [esp + 0x30], edi
mov eax, edi
lea esi, [esp + 0x58]
call fcn.100634f0
xor eax, eax
mov dword [esp + 0xc0], eax
cmp dword [esp + 0x5c], eax
jne 0x100599da
push edi
push str.not_enough_memory__request__u_bytes_buffer_fail.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x144e
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 8
mov eax, 2
jmp 0x1005a84e
mov ecx, dword [esp + 0x54]
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x30]
push eax
push ecx
push edi
push esi
call fcn.1018cdb0
test eax, eax
jne 0x100599f5
test edx, edx
je 0x10059a46
mov edx, dword [esp + 0x54]
push edx
push edi
push esi
push ebp
push str.rb_handle__m_rb_list__d_.m_readback_addr_0x_08X__is_not__d_pagesize_alignment_
lea edi, [esp + 0x30]
mov dword [esp + 0x30], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x34], 0x1454
mov byte [esp + 0x38], 0xff
mov dword [esp + 0x3c], str._ERROR:
mov dword [esp + 0x40], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 0x14
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0xfb0
jmp 0x1005a84e
mov esi, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
xor eax, eax
push eax
mov eax, dword [esp + 0x58]
push eax
push esi
push edi
call fcn.1018cdb0
test eax, eax
jne 0x10059a63
cmp edx, eax
je 0x10059ab4
mov ecx, dword [esp + 0x54]
push ecx
push esi
push edi
push ebp
push str.rb_handle__m_rb_list__d_.m_readback_len_0x_08X__is_not__d_pagesize_alignment_
lea edi, [esp + 0x30]
mov dword [esp + 0x30], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x34], 0x145a
mov byte [esp + 0x38], 0xff
mov dword [esp + 0x3c], str._ERROR:
mov dword [esp + 0x40], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 0x14
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0xfb1
jmp 0x1005a84e
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0xc0], 1
cmp dword [ebx], eax
jne 0x10059b17
push 0x50
call fcn.1016d7a5
add esp, 4
mov dword [esp + 0x74], eax
mov byte [esp + 0xc0], 2
test eax, eax
je 0x10059b08
cmp dword [ebx + 0x1c], 0x10
jb 0x10059af8
mov ecx, dword [ebx + 8]
push 0x102243a0
push eax
call fcn.1013d1c0
jmp 0x10059b0a
push 0x102243a0
lea ecx, [ebx + 8]
push eax
call fcn.1013d1c0
jmp 0x10059b0a
xor eax, eax
mov byte [esp + 0xc0], 3
jmp 0x10059bb8
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
cmp esi, eax
jb 0x10059b86
ja 0x10059b27
cmp edi, ecx
jbe 0x10059b86
push eax
push ecx
push esi
push edi
push ebp
push str.rb_handle__m_rb_list__d_:_m_readback_len_0x_08X____m_buf_len_0x_08X_.
lea edi, [esp + 0x34]
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x38], 0x1473
mov byte [esp + 0x3c], 0xff
mov dword [esp + 0x40], str._ERROR:
mov dword [esp + 0x44], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 0x18
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0x3f2
jmp 0x1005a84e
push 0x20
call fcn.1016d7a5
add esp, 4
mov dword [esp + 0x74], eax
mov byte [esp + 0xc0], 4
test eax, eax
je 0x10059bae
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x20]
push eax
call fcn.1013dd10
jmp 0x10059bb0
xor eax, eax
mov byte [esp + 0xc0], 5
push ecx
mov ecx, esp
lea esi, [esp + 0x38]
mov dword [esp + 0x40], esp
mov dword [esp + 0x78], 0
mov dword [ecx], eax
call fcn.10064810
mov byte [esp + 0xc0], 1
mov edi, dword [esp + 0x34]
call fcn.1013d140
test al, al
jne 0x10059c08
mov byte [esp + 0xc0], al
mov eax, esi
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 3
jmp 0x1005a84e
mov esi, dword [esp + 0xd8]
test esi, esi
je 0x10059cb9
push esi
push str.CALLBACK_READBACK_PROGRESS_INIT_0x_08X_:_enter_...
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x1482
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 8
cmp dword [ebx], 0
jne 0x10059c63
cmp dword [ebx + 0x1c], 0x10
jb 0x10059c5e
mov eax, dword [ebx + 8]
jmp 0x10059c65
lea eax, [ebx + 8]
jmp 0x10059c65
xor eax, eax
mov edx, dword [esp + 0xdc]
mov ecx, dword [ebx + 0x38]
push edx
mov edx, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x30]
push ecx
push edx
push eax
push 1
call esi
push esi
push str.CALLBACK_READBACK_PROGRESS_INIT_0x_08X_:_OK.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x1484
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 8
mov esi, dword [esp + 0x5c]
push 0xdf
push ebp
push str.RB__d_:_send_DA_NAND_READPAGE_CMD_0x_02X_.
lea edi, [esp + 0x28]
mov byte [esi], 0xdf
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], 0x1489
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov ecx, dword [esp + 0xd8]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0xd4]
add esp, 0xc
push 1
push 1
push esi
push eax
push edx
mov ebx, 1
call fcn.1004a550
test eax, eax
je 0x10059d44
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
lea eax, [ebx + 3]
jmp 0x1005a84e
mov eax, dword [esp + 0x48]
mov al, byte [eax + 0x44]
movzx ecx, al
push ecx
mov byte [esi], al
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x1490
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_NAND_ReadBack
call sym.FlashToolLib.v1.dll_ReadFlagToString
push eax
push ecx
push ebp
push str.RB__d_:_send_READ_FLAG_0x_02X___s_.
lea edi, [esp + 0x2c]
call fcn.10017c90
mov ecx, dword [esp + 0xdc]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0xd8]
add esp, 0x10
push 1
push 1
push esi
push eax
push edx
call fcn.1004a550
test eax, eax
je 0x10059dd4
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 5
jmp 0x1005a84e
mov eax, dword [esp + 0x48]
mov al, byte [eax + 0x5c]
movzx ecx, al
push ecx
mov byte [esi], al
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x1496
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_NAND_ReadBack
call sym.FlashToolLib.v1.dll_AddrTypeFlagToString
push eax
push ecx
push ebp
push str.RB__d_:_send_ADDR_FLAG_0x_02X___s_.
lea edi, [esp + 0x2c]
call fcn.10017c90
mov ecx, dword [esp + 0xdc]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0xd8]
add esp, 0x10
push 1
push 1
push esi
push eax
push edx
call fcn.1004a550
test eax, eax
jne 0x10059db0
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebx + 0x30]
mov byte [esp + 0x24], al
mov eax, dword [ebx + 0x34]
push eax
push ecx
push ebp
push str._32___64__RB__d_:_send_READBACK_ADDR_0x_016I64X_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0x149c
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov eax, dword [ebx + 0x34]
mov edx, dword [esp + 0xdc]
mov ecx, dword [ebx + 0x30]
mov edi, dword [edx + 8]
mov esi, dword [esp + 0xd8]
add esp, 0x10
push eax
push ecx
call fcn.1004ac10
test eax, eax
je 0x10059ecc
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 6
jmp 0x1005a84e
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
push edx
push eax
push ebp
push str.RB__d_:_send_READBACK_LENGTH_0x_016I64X_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0x14a1
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov edx, dword [ebx + 0x3c]
mov ecx, dword [esp + 0xdc]
mov eax, dword [ebx + 0x38]
mov edi, dword [ecx + 8]
add esp, 0x10
push edx
push eax
call fcn.1004ac10
test eax, eax
je 0x10059f4a
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 7
jmp 0x1005a84e
mov ecx, dword [ebx + 0x58]
push ecx
push ebp
push str.RB__d_:_send_CONTAINER_LENGTH_0x_08X_.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], 0x14a7
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov edx, dword [esp + 0xd8]
mov eax, dword [edx + 8]
add esp, 0xc
push eax
mov eax, dword [ebx + 0x58]
push esi
call fcn.1004ab60
test eax, eax
je 0x10059fc1
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 8
jmp 0x1005a84e
push str.wait_for_addr_and_length_check_...
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x14ae
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov esi, dword [esp + 0xd0]
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x60]
add esp, 4
push 1
push 0x2710
push 1
push edi
push eax
mov eax, dword [esp + 0xdc]
push eax
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x10059f9d
cmp byte [edi], 0x5a
je 0x1005a101
mov esi, dword [esi + 8]
mov edx, dword [esp + 0xc8]
push ebx
push 0x2710
push ebx
lea ecx, [esp + 0x50]
push ecx
push esi
push edx
lea ebx, [eax + 4]
call fcn.1004a830
xor ebx, ebx
cmp eax, ebx
jne 0x1005a0de
mov eax, dword [esp + 0x44]
movzx ecx, byte [esp + 0x46]
movzx edx, byte [esp + 0x47]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
shl esi, 8
or esi, ecx
shl esi, 8
or esi, edx
push esi
push esi
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x14b6
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.DA_cmd::CMD_NAND_ReadBack
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push 0x10223800
lea edi, [esp + 0x28]
call fcn.10017c90
add esp, 0xc
mov byte [esp + 0xc0], bl
lea eax, [esp + 0x34]
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, esi
jmp 0x1005a84e
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], bl
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 9
jmp 0x1005a84e
push str.check_is_done_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x14b9
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0xcc]
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
push eax
mov al, 1
push ebx
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x10059f9d
mov eax, dword [esi + 8]
lea edx, [esp + 0x44]
push edx
push eax
mov al, 1
push ebx
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x10059f9d
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x44]
push eax
push ecx
push ebp
push str.RB__d_:_get_PageSize_0x_08X__and_SpaeSize_0x_08X_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0x14c2
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov eax, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x78]
push edx
push eax
mov al, 1
push ebx
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x10059f9d
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x78]
push eax
push ebp
push str.RB__d_:_get_Unit_of_Page_Read_0x_08X_.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], 0x14c9
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
add ecx, edx
xor edx, edx
div ecx
add esp, 0xc
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x20], 0x14cd
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.DA_cmd::CMD_NAND_ReadBack
push eax
push ebp
push str.RB__d_:_send_Pages_of_Packet_0x_08X_.
mov dword [esp + 0x94], eax
call fcn.10017c90
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x94]
add esp, 0xc
push esi
push ebx
call fcn.1004ab60
test eax, eax
je 0x1005a2a3
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0xb
jmp 0x1005a84e
mov ebx, str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
push str.wait_for_total_readback_length_...
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x14d3
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov eax, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
mov edx, dword [eax + 8]
add esp, 4
push 1
lea esi, [esp + 0x70]
mov ecx, ebp
call fcn.1004aca0
test eax, eax
je 0x1005a320
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0xc
jmp 0x1005a84e
mov esi, dword [esp + 0x70]
push esi
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x70]
push ebx
push esi
push ebx
push str.TOTAL_READBACK_LENGTH_0x_016I64X__lu.
lea edi, [esp + 0x30]
mov dword [esp + 0x34], 0x14d7
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], str._DEBUG:
mov dword [esp + 0x40], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
mov eax, dword [esp + 0xe8]
xor edi, edi
add esp, 0x14
cmp eax, edi
jne 0x1005a374
push esi
push ebx
mov eax, ebp
call fcn.1004a500
xor ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x4c], edi
cmp esi, edi
jb 0x1005a76b
ja 0x1005a397
cmp ebx, edi
jbe 0x1005a76b
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x48]
cmp dword [ecx + 0x58], 0
setne al
test al, al
je 0x1005a3eb
mov esi, dword [esp + 0xcc]
mov eax, dword [esi + 8]
push 0
push 0x2710
push 1
lea edx, [esp + 0x27]
push edx
push eax
mov eax, dword [esp + 0xdc]
push eax
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x1005a86a
cmp byte [esp + 0x1b], 0xa5
je 0x1005a874
mov esi, dword [esp + 0x88]
imul esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
sub ecx, ebp
sbb eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
xor edx, edx
cmp eax, edx
ja 0x1005a427
jb 0x1005a421
cmp ecx, esi
jae 0x1005a427
mov esi, dword [esp + 0x6c]
sub esi, ebp
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x5c]
mov eax, dword [ecx + 8]
push 0
push 0x4e20
push 1
push edx
push eax
mov eax, dword [esp + 0xdc]
push eax
mov ebx, esi
call fcn.1004a830
test eax, eax
jne 0x1005a4e9
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x54]
push eax
push ecx
xor al, al
call fcn.1004ab10
test eax, eax
jne 0x1005a4e9
test esi, esi
je 0x1005a700
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov cx, ax
cmp esi, eax
jbe 0x1005a49d
movzx bx, byte [edx + eax]
inc eax
add cx, bx
cmp eax, esi
jb 0x1005a490
mov ax, word [esp + 0x54]
cmp cx, ax
je 0x1005a58c
movzx edx, ax
movzx eax, cx
push edx
push eax
push str.checksum_fail:_buf_checksum_0x_04X____packet_checksum_0x_04X_.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], 0x1530
mov byte [esp + 0x30], 0xd2
mov dword [esp + 0x34], str._WARN:
mov dword [esp + 0x38], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 0xc
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], str.DA_cmd::CMD_NAND_ReadBack
lea edi, [esp + 0x1c]
cmp eax, 3
jae 0x1005a90b
mov ecx, dword [esp + 0x80]
push ecx
inc eax
push ebp
push eax
push str.Retry__u_:_re_transmission_this_frame__offset__lu_.
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], 0x1538
mov byte [esp + 0x34], 0xd2
mov dword [esp + 0x38], str._WARN:
call fcn.10017c90
mov edx, dword [esp + 0xdc]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0xd8]
add esp, 0x10
push 0
push 1
lea ecx, [esp + 0x23]
push ecx
push eax
push edx
mov ebx, 1
mov byte [esp + 0x2f], 0x69
call fcn.1004a550
test eax, eax
jne 0x1005a901
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x3c]
jmp 0x1005a415
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
lea ebx, [esp + 0x74]
push ebx
push esi
push edx
mov edx, dword [eax + 8]
call edx
test eax, eax
mov eax, dword [esp + 0x74]
jne 0x1005a9df
cmp esi, eax
jne 0x1005a9df
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
xor ebx, ebx
add ebp, esi
adc edi, ebx
mov dword [eax + 0x50], ebp
mov dword [eax + 0x54], edi
mov eax, edx
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x80], edi
test eax, eax
jge 0x1005a5e5
fadd qword [0x1024b9f8]
mov esi, dword [esp + 0x70]
fnstcw word [esp + 0x30]
mov eax, edi
mov ecx, edi
and eax, 0x7fffffff
mov dword [esp + 0xa0], eax
and ecx, 0x80000000
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ebp
fild qword [esp + 0x9c]
mov dword [esp + 0x94], ebx
fild qword [esp + 0x94]
mov ebx, dword [esp + 0x6c]
mov eax, esi
mov ecx, esi
fchs
and eax, 0x7fffffff
faddp st(1)
mov dword [esp + 0xb0], eax
and ecx, 0x80000000
mov dword [esp + 0xac], ebx
fild qword [esp + 0xac]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa4], 0
fild qword [esp + 0xa4]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fchs
faddp st(1)
fdivp st(1)
fmul st(1)
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x30]
cmp edx, eax
jae 0x1005a697
mov eax, edx
mov ecx, eax
sub ecx, dword [esp + 0x4c]
je 0x1005a6fe
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x1005a6fe
mov edx, dword [esp + 0xe4]
push edx
push esi
push ebx
push edi
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
push ebp
test eax, eax
jge 0x1005a6cc
fadd qword [0x1024b9f8]
fdivrp st(1)
fmul qword [0x1024b9e0]
fnstcw word [esp + 0x44]
movzx eax, word [esp + 0x44]
or eax, 0xc00
mov dword [esp + 0x50], eax
fldcw word [esp + 0x50]
fistp dword [esp + 0x50]
mov al, byte [esp + 0x50]
movzx edx, al
push edx
fldcw word [esp + 0x48]
call ecx
jmp 0x1005a700
fstp st(0)
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 4]
test eax, eax
je 0x1005a71a
cmp dword [eax], 0x2694
je 0x1005a968
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx + 8]
push 0
push 1
lea edx, [esp + 0x23]
push edx
push eax
mov eax, dword [esp + 0xd8]
push eax
mov ebx, 1
mov byte [esp + 0x2f], 0x5a
call fcn.1004a550
test eax, eax
jne 0x1005a9bb
cmp edi, dword [esp + 0x70]
jb 0x1005a39e
ja 0x1005a763
cmp ebp, dword [esp + 0x6c]
jb 0x1005a39e
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x80]
fild dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
push esi
push ebx
push eax
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], 0x157e
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.DA_cmd::CMD_NAND_ReadBack
push ebp
test ecx, ecx
jge 0x1005a7ad
fadd dword [0x1024b9e8]
mov edx, dword [esp + 0x54]
fild dword [esp + 0x54]
test edx, edx
jge 0x1005a7bf
fadd dword [0x1024b9e8]
fdivp st(1)
lea edi, [esp + 0x2c]
fmul qword [0x1024b9e0]
fnstcw word [esp + 0x40]
movzx eax, word [esp + 0x40]
or eax, 0xc00
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
fistp dword [esp + 0x4c]
mov ax, word [esp + 0x4c]
movzx ecx, ax
push ecx
fldcw word [esp + 0x44]
push str.__u___:__lu__lu_bytes_read.
call fcn.10017c90
push 0x102135a4
lea edi, [esp + 0x38]
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x3c], 0x1580
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 0x1c
lea eax, [esp + 0x34]
mov byte [esp + 0xc0], 0
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 0x20
mov esi, 0xe
jmp 0x1005aa21
mov eax, dword [esi + 8]
mov edx, dword [esp + 0xc8]
push 0
push 0x2710
push 1
lea ecx, [esp + 0x54]
push ecx
push eax
push edx
mov ebx, 4
call fcn.1004a830
test eax, eax
jne 0x1005a86a
mov eax, dword [esp + 0x48]
movzx ecx, byte [esp + 0x4a]
movzx edx, byte [esp + 0x4b]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
shl esi, 8
or esi, ecx
shl esi, 8
or esi, edx
push esi
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x14fe
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DA_cmd::CMD_NAND_ReadBack
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str.__s_
lea edi, [esp + 0x24]
call fcn.10017c90
add esp, 8
jmp 0x1005aa21
mov esi, 0x15
jmp 0x1005aa21
push eax
push eax
push str.Retry__u_:_stop_to_re_transmit__retry__u_times_fail_
mov dword [esp + 0x2c], 0x1545
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
call fcn.10017c90
mov eax, dword [esp + 0xd8]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0xd4]
add esp, 0xc
push 0
push 1
lea ecx, [esp + 0x23]
push ecx
push eax
push edx
mov ebx, 1
mov byte [esp + 0x2f], 0xa5
call fcn.1004a550
mov esi, eax
neg esi
sbb esi, esi
add esi, 0x17
jmp 0x1005aa21
mov eax, dword [esp + 0xcc]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0xc8]
push 0
push 1
lea ecx, [esp + 0x23]
push ecx
push eax
push edx
mov ebx, 1
mov byte [esp + 0x2f], 0x96
call fcn.1004a550
test eax, eax
mov byte [esp + 0xc0], 0
lea eax, [esp + 0x34]
jne 0x1005a9c7
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0x3e8
jmp 0x1005a84e
mov byte [esp + 0xc0], 0
lea eax, [esp + 0x34]
call fcn.101008e0
lea ecx, [esp + 0x58]
call fcn.10063540
mov eax, 0x19
jmp 0x1005a84e
push esi
push eax
mov eax, dword [esp + 0x58]
push eax
push str.Retry__u_:_fwrite__lu__lu__fail_
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0x1557
mov byte [esp + 0x34], 0xff
mov dword [esp + 0x38], str._ERROR:
mov dword [esp + 0x3c], str.DA_cmd::CMD_NAND_ReadBack
call fcn.10017c90
add esp, 0x10
mov esi, 0x18
mov ecx, dword [esp + 0x70]
fild dword [esp + 0x4c]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov ebx, str.DA_cmd::CMD_NAND_ReadBack
push eax
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x2c], 0x1584
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
mov dword [esp + 0x38], ebx
push ebp
test ecx, ecx
jge 0x1005aa6c
fadd dword [0x1024b9e8]
mov edx, dword [esp + 0x54]
fild dword [esp + 0x54]
test edx, edx
jge 0x1005aa7e
fadd dword [0x1024b9e8]
fdivp st(1)
mov edx, dword [esp + 0x60]
lea edi, [esp + 0x2c]
fmul qword [0x1024b9e0]
fnstcw word [esp + 0x40]
movzx eax, word [esp + 0x40]
or eax, 0xc00
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
fistp dword [esp + 0x4c]
mov ax, word [esp + 0x4c]
movzx ecx, ax
push ecx
fldcw word [esp + 0x44]
push edx
push str.Retry__u_:___u___:__lu__lu_bytes_read.
call fcn.10017c90
add esp, 0x1c
push esi
push str.Error___d
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x1585
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], ebx
call fcn.10017c90
add esp, 8
mov byte [esp + 0xc0], 0
jmp 0x1005a0c5