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

Disassembly:
push 0xffffffffffffffff
push 0x1019c508
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov bl, byte [esp + 0x84]
mov ebp, dword [esp + 0x74]
mov esi, ecx
push 0xf
xor edi, edi
push str.DA_OTP_READ_CMD
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], eax
mov byte [esp + 0x40], bl
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
call fcn.10004620
mov dword [esp + 0x6c], edi
cmp bl, 0x9b
jne 0x1005d55e
push 0x14
push str.DA_EMMC_OTP_READ_CMD
lea ecx, [esp + 0x4c]
call fcn.10004620
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x1005d56d
lea eax, [esp + 0x48]
movzx ecx, byte [esp + 0x38]
push ecx
push eax
push str.send__s_0x_02X_.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x192c
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.DA_cmd::CMD_OTP_Read
call fcn.10017c90
add esp, 0xc
push 1
push 1
lea edx, [esp + 0x40]
push edx
push esi
push ebp
mov ebx, 1
call fcn.1004a550
test eax, eax
je 0x1005d5de
cmp dword [esp + 0x5c], 0x10
jb 0x1005d5d7
mov eax, dword [esp + 0x48]
push eax
call fcn.1016d679
add esp, 4
mov eax, ebx
jmp 0x1005d888
mov ebx, dword [esp + 0x78]
push ebx
push str.send_OTP_OFFSET_0x_08X_.
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x1932
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_OTP_Read
call fcn.10017c90
add esp, 8
push esi
push ebp
mov eax, ebx
call fcn.1004ab60
test eax, eax
je 0x1005d644
cmp dword [esp + 0x5c], 0x10
jb 0x1005d63a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.1016d679
add esp, 4
mov eax, 2
jmp 0x1005d888
mov ebx, dword [esp + 0x7c]
push ebx
push str.send_OTP_LENGTH_0x_08X_.
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x1938
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::CMD_OTP_Read
call fcn.10017c90
add esp, 8
push esi
push ebp
mov eax, ebx
call fcn.1004ab60
test eax, eax
je 0x1005d6aa
cmp dword [esp + 0x5c], 0x10
jb 0x1005d6a0
mov edx, dword [esp + 0x48]
push edx
call fcn.1016d679
add esp, 4
mov eax, 3
jmp 0x1005d888
cmp byte [esp + 0x84], 0x9b
mov dword [esp + 0x30], 2
jne 0x1005d6f4
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push eax
mov edi, esi
push ecx
mov esi, ebp
mov dword [esp + 0x38], 1
call fcn.1004ac10
test eax, eax
je 0x1005d6f4
lea ecx, [esp + 0x44]
call fcn.100045c0
mov eax, 4
jmp 0x1005d888
mov dword [esp + 0x34], 0
test ebx, ebx
jbe 0x1005d83c
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
sub eax, esi
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x40]
push 1
push 0x2710
push 1
lea edx, [esp + 0x38]
push edx
push edi
push ebp
mov ebx, 4
call fcn.1004a830
test eax, eax
jne 0x1005d8a9
mov ecx, dword [esp + 0x2c]
movzx edx, byte [esp + 0x2e]
movzx eax, cl
shl eax, 8
movzx ecx, ch
or eax, ecx
movzx ecx, byte [esp + 0x2f]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jne 0x1005d902
mov eax, 1
cmp dword [esp + 0x30], eax
jne 0x1005d7d0
push eax
push 0x2710
push eax
push esi
push edi
push ebp
mov ebx, eax
call fcn.1004a830
test eax, eax
je 0x1005d7e1
push eax
push eax
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x1954
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DA_cmd::CMD_OTP_Read
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str.ReadData__:_fail__error_code:___s___d_.
lea edi, [esp + 0x24]
call fcn.10017c90
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.100045c0
lea eax, [ebx + 6]
jmp 0x1005d888
push esi
push ebp
mov edx, edi
call fcn.1004ab10
test eax, eax
jne 0x1005d95e
movzx edx, word [esi]
mov eax, dword [esp + 0x3c]
push edx
add eax, esi
push eax
push str.__0x_08X___Read_Data_is_0x_04X.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0x195f
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.DA_cmd::CMD_OTP_Read
call fcn.10017c90
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add eax, ecx
add esp, 0xc
add esi, ecx
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x7c]
jb 0x1005d712
push 0x10213464
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x20], 0x1962
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.DA_cmd::CMD_OTP_Read
call fcn.10017c90
add esp, 4
cmp dword [esp + 0x5c], 0x10
jb 0x1005d886
mov eax, dword [esp + 0x48]
push eax
call fcn.1016d679
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1016cb16
add esp, 0x5c
ret 0x1c
push eax
push eax
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x1947
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DA_cmd::CMD_OTP_Read
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str.ReadData__:_fail__error_code:___s___d_.
lea edi, [esp + 0x24]
call fcn.10017c90
add esp, 0xc
cmp dword [esp + 0x5c], 0x10
jb 0x1005d8fb
mov ecx, dword [esp + 0x48]
push ecx
call fcn.1016d679
add esp, 4
mov eax, 5
jmp 0x1005d888
push eax
push eax
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x194d
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DA_cmd::CMD_OTP_Read
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str.fail_error_code:__s___d__
lea edi, [esp + 0x24]
call fcn.10017c90
add esp, 0xc
cmp dword [esp + 0x5c], 0x10
jb 0x1005d954
mov edx, dword [esp + 0x48]
push edx
call fcn.1016d679
add esp, 4
mov eax, 6
jmp 0x1005d888
push eax
push eax
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x195a
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DA_cmd::CMD_OTP_Read
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str.ReadData__:_fail__error_code:___s___d_.
lea edi, [esp + 0x24]
call fcn.10017c90
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.100045c0
mov eax, 8
jmp 0x1005d888