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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019e248
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], eax
xor eax, eax
push str.detect_NAND_Flash_...
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x54], al
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov word [esp + 0x71], ax
mov byte [esp + 0x73], al
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x44], 0x2f
mov byte [esp + 0x48], al
mov dword [esp + 0x4c], str._DEBUG:
mov dword [esp + 0x50], str.DACmdV3::SyncWithDA
call fcn.10017c90
add esp, 4
push 1
push 0x2710
push 1
lea ecx, [esp + 0x5c]
push ecx
push esi
push ebx
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x10065b09
cmp byte [esp + 0x50], 0x5a
jne 0x10065b10
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x64]
mov edx, dword [eax + 0x3848]
mov eax, dword [ebp + 0x14]
movzx ecx, word [eax + 0x2a]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov cx, word [eax + 0x2c]
call fcn.1006e7c0
xor ebx, ebx
mov dword [esp + 0x80], ebx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
push 2
call edx
mov edi, eax
cmp edi, ebx
je 0x100658c8
lea eax, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.101008e0
mov eax, edi
jmp 0x10065b48
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x3c]
push esi
mov al, 1
push ebx
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x10065af5
xor edx, edx
mov eax, edi
div dword [esp + 0x2c]
push esi
push ebx
mov dword [esp + 0x2c], eax
call fcn.1004ab60
test eax, eax
jne 0x10065af5
push 1
push 0x2710
push 1
lea edx, [esp + 0x5c]
push edx
push esi
push ebx
lea ebx, [eax + 1]
call fcn.1004a830
test eax, eax
jne 0x10065af5
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x18], al
movzx eax, byte [esp + 0x50]
push eax
push ecx
push edx
push edi
mov ebx, 0x5a
push str.send_the_number_of_NAND_flash_entry___d__d_d__0x_x__..._
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.DACmdV3::SyncWithDA
call fcn.10017c90
add esp, 0x14
cmp byte [esp + 0x50], bl
jne 0x10065af5
push str.send_the_number_of_NAND_flash_entry_done_..._
lea edi, [esp + 0x14]
mov dword [esp + 0x14], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x18], 0x62
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], str._DEBUG:
mov dword [esp + 0x24], str.DACmdV3::SyncWithDA
call fcn.10017c90
xor edi, edi
add esp, 4
cmp dword [esp + 0x24], edi
jbe 0x10065a30
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
push 1
push 1
push ecx
push esi
push edx
call fcn.1004a550
test eax, eax
jne 0x10065af5
mov ecx, dword [esp + 0x38]
push 1
push 0xbb8
push 1
lea eax, [esp + 0x5c]
push eax
push esi
push ecx
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x10065af5
mov al, byte [esp + 0x50]
cmp al, 0x5a
je 0x10065a7f
cmp al, 0x69
jne 0x10065abb
mov edx, dword [esp + 0x2c]
add dword [esp + 0x28], edx
inc edi
cmp edi, dword [esp + 0x24]
jb 0x100659cb
push str.detect_NAND_Flash_Done_
lea edi, [esp + 0x14]
mov dword [esp + 0x14], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x18], 0x80
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], str._DEBUG:
mov dword [esp + 0x24], str.DACmdV3::SyncWithDA
call fcn.10017c90
add esp, 4
lea eax, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.101008e0
jmp 0x10065b46
push edi
push str.Times__d_:_Find_the_NAND_device..._
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x1c], 0x73
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.DACmdV3::SyncWithDA
call fcn.10017c90
add esp, 8
jmp 0x10065a30
movzx eax, al
push eax
push str.detect_NAND_Flash_fail__Response__0x_02X_
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x1c], 0x7c
mov byte [esp + 0x20], 0xff
mov dword [esp + 0x24], str._ERROR:
mov dword [esp + 0x28], str.DACmdV3::SyncWithDA
call fcn.10017c90
add esp, 8
lea eax, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.101008e0
mov eax, 0xfa4
jmp 0x10065b48
push str.NFI_not_supported_
lea edi, [esp + 0x14]
mov dword [esp + 0x14], str.FlashToolLib_sv5_common_interface_src_da_cmd_base.cpp
mov dword [esp + 0x18], 0x84
mov byte [esp + 0x1c], 0xff
mov dword [esp + 0x20], str._ERROR:
mov dword [esp + 0x24], str.DACmdV3::SyncWithDA
call fcn.10017c90
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0x10