Function at 0x10131b90
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1019cc56
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov ebp, str.FlashToolLib_source_security_src_secure_da_cmd.cpp
push str.Enter_...
lea edi, [esp + 0x1c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x5b2
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 4
push 0x3c
lea eax, [esp + 0xbc]
push ebx
push eax
mov dword [esp + 0xc0], ebx
call fcn.10173270
add esp, 0xc
cmp byte [esi + 0x43d], 1
jne 0x10131cd3
push str.The_image_is_been_encrypted
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x5bb
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 4
mov esi, 0x80
jmp 0x10131cd5
xor esi, esi
mov ecx, dword [esp + 0x2c]
push 0x40
mov edx, ebx
push edx
add ecx, 0x3f8
push esi
lea edx, [esp + 0xc0]
mov dword [esp + 0x7c], ebx
call fcn.100da5d0
test al, al
jne 0x10131d31
push str.Fail_to_get_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x5c4
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, 0x17a0
jmp 0x1013319c
cmp dword [esp + 0xb4], 0x46424642
jne 0x10131de1
push str.By_pass_FB_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x5ce
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
add esp, 4
add esi, 0x4000
adc eax, ebx
push 0x40
push eax
push esi
lea edx, [esp + 0xc0]
add ecx, 0x3f8
mov dword [esp + 0x44], 0x4000
mov dword [esp + 0x7c], eax
call fcn.100da5d0
test al, al
jne 0x10131de1
push str.Fail_to_get_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x5d4
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, 0x17a0
jmp 0x1013319c
mov edx, dword [esp + 0xb4]
mov ecx, dword [0x1027a1e4]
push edx
push str.sign_header.magic_________0x_x_
lea edi, [esp + 0x20]
dec ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x5de
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, dword [0x1027a1e4]
dec eax
add esp, 8
cmp eax, 3
ja case.default.0x10131e2c
jmp dword [eax*4 + 0x101331c8]
lea eax, [esp + 0xb8]
jmp 0x10131e3e
xor eax, eax
push eax
push str.sign_header.cust_name__________s_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x5df
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, dword [0x1027a1e4]
dec eax
add esp, 8
cmp eax, 3
ja case.default.0x10131e7b
jmp dword [eax*4 + 0x101331d8]
mov eax, dword [esp + 0xc8]
jmp 0x10131e96
mov eax, dword [esp + 0xd8]
jmp 0x10131e96
xor eax, eax
push eax
push str.sign_header.image_version_____0x_x_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x5e0
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
lea eax, [esp + 0xbc]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x5e1
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.101374d0
push edx
push eax
push str.sign_header.image_length______0x_llx_
lea edi, [esp + 0x2c]
call fcn.10017c90
add esp, 0x14
cmp dword [esp + 0xb4], 0x53535353
je 0x10131fd8
push ebp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x5e5
lea esi, [esp + 0x1c]
call fcn.10111280
mov dword [esp + 0x100], ebx
mov ecx, dword [0x103b321c]
push str._______________________________________________________________________________________________
push ecx
push eax
call fcn.10111350
mov dword [esp + 0x10c], 0xffffffff
mov eax, dword [esp + 0xc0]
add esp, 0xc
push 0x53535353
push eax
push str.SEC_IMG_MAGIC_NOT_CORRECT__0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x5e6
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 0xc
push ebp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x5e7
lea esi, [esp + 0x1c]
call fcn.10111280
mov dword [esp + 0x100], 1
mov ecx, dword [0x103b321c]
push str._______________________________________________________________________________________________
push ecx
push eax
call fcn.10111350
mov edx, dword [esp + 0x38]
add esp, 0xc
mov eax, 0x179d
mov byte [edx + 0x61], 1
jmp 0x1013319f
lea eax, [esp + 0xb4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x5f2
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.101374d0
push edx
push eax
push edx
push eax
push str.image_len_is__llu__0x_llx_
lea edi, [esp + 0x2c]
call fcn.10017c90
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x420]
mov ecx, dword [ecx + 0x424]
add esp, 0x14
push ecx
push eax
push ecx
push eax
push str.total_file_len_is__llu__0x_llx_
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x5f3
mov byte [esp + 0x34], bl
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 0x14
lea ecx, [esp + 0xb4]
call fcn.10137560
add eax, 0x40
mov edi, eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, ecx
call fcn.101374d0
mov ebp, dword [esp + 0x70]
add edi, eax
mov eax, dword [esp + 0x5c]
adc eax, edx
add esi, edi
adc ebp, eax
push ebp
push esi
push ebp
push esi
push str.offset_is__llu__0x_llx_
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x30], 0x5fa
mov byte [esp + 0x34], bl
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov ecx, dword [esp + 0x40]
add esp, 0x14
push 0xc
push ebp
push esi
lea edx, [esp + 0x88]
add ecx, 0x3f8
call fcn.100da5d0
test al, al
jne 0x1013211f
push str.Fail_to_get_crypto_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x5fe
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, 0x17a0
jmp 0x1013319c
mov edi, 0x45454545
cmp dword [esp + 0x7c], edi
je 0x101321db
mov esi, str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov ebp, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x604
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], ebp
call fcn.10017c90
mov eax, dword [esp + 0x80]
add esp, 4
push 0x45454545
push eax
push str.SEC_EXTENSION_HEADER_MAGIC_NOT_CORRECT___crypto_0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x605
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], ebp
call fcn.10017c90
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x606
mov dword [esp + 0x34], ebp
add esp, 0xc
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x28], str._DEBUG:
mov byte [esp + 0x24], bl
call fcn.10017c90
mov ecx, dword [esp + 0x30]
mov eax, 0x179d
mov byte [ecx + 0x61], 1
jmp 0x1013319c
mov ecx, dword [esp + 0x2c]
add esi, 0xc
adc ebp, ebx
push 0x10
push ebp
push esi
lea edx, [esp + 0x94]
add ecx, 0x3f8
call fcn.100da5d0
test al, al
jne 0x1013223a
push str.Fail_to_get_fragment_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x617
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov eax, 0x17a0
jmp 0x1013319c
cmp dword [esp + 0x88], edi
je 0x101322ca
mov ebp, str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov esi, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x61d
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov edx, dword [esp + 0x8c]
add esp, 4
push 0x45454545
push edx
push str.SEC_EXTENSION_HEADER_MAGIC_NOT_CORRECT___frag_0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x61e
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], esi
call fcn.10017c90
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x61f
mov dword [esp + 0x34], esi
jmp 0x101321ac
movzx edx, byte [esp + 0x84]
mov edi, dword [edx*4 + 0x1027a1b4]
mov ecx, dword [esp + 0x94]
add esi, 0x10
adc ebp, ebx
xor eax, eax
cmp dword [0x1027a1e4], 3
mov dword [esp + 0x48], edi
sete al
mov dword [esp + 0x44], ecx
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x20
add eax, edi
mov edi, eax
mov eax, ecx
imul eax, edi
push eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x34], eax
call fcn.1016f23d
add esp, 4
mov dword [esp + 0x78], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x44], ebx
jbe 0x10132398
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push edi
push ebp
push esi
add ecx, 0x3f8
call fcn.100da5d0
test al, al
je 0x10132400
mov ecx, dword [0x1027a1e4]
mov eax, dword [esp + 0x34]
cmp ecx, 3
jne 0x1013236a
mov dword [esp + 0x4c], eax
jmp 0x10132373
mov dword [esp + 0x50], eax
cmp ecx, 4
jne 0x1013237f
cmp dword [eax], 0x45454545
jne 0x10132444
add eax, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
add esi, edi
adc ebp, ebx
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x44]
jb 0x10132337
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 8
add ecx, 0x1c
push ebp
mov dword [esp + 0x3c], ecx
add edi, 0x3f8
push esi
lea edx, [esp + 0x60]
mov ecx, edi
call fcn.100da5d0
test al, al
jne 0x10132501
push str.Fail_to_get_end_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x661
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov esi, 0x17a0
jmp 0x1013318d
mov eax, dword [esp + 0x40]
push eax
push str.Fail_to_get_hash_header__d_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x24], 0x63d
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 8
mov esi, 0x17a0
jmp 0x10133190
mov esi, str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov ebp, str._DEBUG:
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x64d
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 4
cmp dword [0x1027a1e4], 3
jne 0x1013248c
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
jmp 0x10132492
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
push 0x45454545
push eax
push str.SEC_EXTENSION_HEADER_MAGIC_NOT_CORRECT__hash_0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x64e
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x64f
mov dword [esp + 0x34], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
add esp, 0xc
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x24], bl
call fcn.10017c90
mov eax, dword [esp + 0x30]
mov esi, 0x179d
mov byte [eax + 0x61], 1
jmp 0x1013318d
cmp dword [esp + 0x54], 0x45454545
je 0x10132593
mov ebp, str._DEBUG:
mov esi, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x669
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov edx, dword [esp + 0x58]
add esp, 4
push 0x45454545
push edx
push str.SEC_EXTENSION_HEADER_MAGIC_NOT_CORRECT___sparse_or_end_0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x28], 0x66a
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
call fcn.10017c90
mov dword [esp + 0x24], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x28], 0x66b
mov dword [esp + 0x34], esi
jmp 0x101324d6
cmp dword [esp + 0x58], 5
jne 0x10132764
push 0x18
push ebp
push esi
lea edx, [esp + 0xa8]
mov ecx, edi
call fcn.100da5d0
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov byte [esp + 0x20], bl
lea edi, [esp + 0x18]
test al, al
jne 0x101325f0
push str.Fail_to_get_sparse_header
mov dword [esp + 0x20], 0x679
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov esi, 0x17a0
jmp 0x1013318d
cmp dword [esp + 0x9c], 0x45454545
je 0x1013269e
mov ebp, str._DEBUG:
mov esi, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str._______________________________________________________________________________________________
mov dword [esp + 0x20], 0x680
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov ecx, dword [esp + 0xa0]
add esp, 4
push 0x45454545
push ecx
push str.SEC_EXTENSION_HEADER_MAGIC_NOT_CORRECT___sparse_0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x28], 0x681
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
call fcn.10017c90
add esp, 0xc
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x682
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov edx, dword [esp + 0x30]
mov esi, 0x179d
mov byte [edx + 0x61], 1
jmp 0x1013318d
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
add eax, ecx
add eax, dword [esp + 0xa8]
push 0x18
add eax, dword [esp + 0xa8]
mov dword [esp + 0x20], 0x68d
push eax
push str.sparse_data_length_is__d__sparse_header_size_is__d
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov edi, dword [esp + 0x48]
add esp, 0xc
add esi, 0x18
push edi
adc ebp, ebx
call fcn.1016f23d
mov ecx, dword [esp + 0x30]
add esp, 4
push edi
push ebp
push esi
mov edx, eax
add ecx, 0x3f8
mov dword [esp + 0x70], eax
call fcn.100da5d0
test al, al
jne 0x10132752
push str.Fail_to_get_sparse_data
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x693
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov esi, 0x17a0
jmp 0x1013317a
mov edx, dword [esp + 0x34]
mov eax, edi
add esi, eax
lea eax, [edx + eax + 0x18]
adc ebp, ebx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
push 8
push ebp
push esi
lea edx, [esp + 0x60]
add ecx, 0x3f8
call fcn.100da5d0
test al, al
jne 0x101327bb
push str.Fail_to_get_end_header
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x6a1
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov esi, 0x17a0
jmp 0x1013317a
cmp dword [esp + 0x54], 0x45454545
je 0x10132873
mov ebp, str._DEBUG:
mov esi, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x6a8
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov ecx, dword [esp + 0x58]
add esp, 4
push 0x45454545
push ecx
push str.SEC_EXTENSION_HEADER_MAGIC_NOT_CORRECT___end_0x_x___0x_x_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x28], 0x6a9
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
call fcn.10017c90
add esp, 0xc
push str._______________________________________________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x6aa
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov edx, dword [esp + 0x30]
mov esi, 0x179d
mov byte [edx + 0x61], 1
jmp 0x1013317a
mov esi, dword [esp + 0x30]
add dword [esp + 0x34], 8
push esi
call fcn.1016f23d
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x78]
push esi
push eax
push ebp
mov dword [esp + 0x68], ebp
call fcn.10173370
mov ecx, dword [esp + 0x50]
add esp, 0xc
push ecx
push str.total_ext_hash_count_is__d
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x24], 0x6ce
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 8
xor esi, esi
cmp dword [esp + 0x44], ebx
jbe 0x10132a0a
lea edi, [ebp + 8]
mov ebp, dword [esp + 0x2c]
cmp dword [0x1027a1e4], 3
jne 0x10132979
movzx ecx, byte [ebp + 0x43d]
mov edx, dword [esp + 0x90]
neg ecx
sbb ecx, ecx
push edx
mov edx, dword [edi + 4]
and ecx, 0x80
add ecx, dword [esp + 0x3c]
lea eax, [edi + 0xc]
push eax
lea eax, [ecx + edx + 0x40]
mov ecx, dword [edi + 8]
push eax
lea eax, [ebp + 0x3f8]
push eax
mov eax, dword [edi]
call fcn.10131790
add esp, 0x10
test eax, eax
je 0x101329b9
push esi
push str.Fail_to_calculate_hash__d_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x24], 0x6d8
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 8
mov esi, 0x179f
jmp 0x10133170
movzx eax, byte [ebp + 0x43d]
mov ecx, dword [esp + 0x90]
neg eax
sbb eax, eax
push ecx
mov ecx, dword [esp + 0x3c]
and eax, 0x80
add eax, dword [edi + 8]
lea edx, [edi + 0x18]
push edx
lea edx, [eax + ecx + 0x40]
mov ecx, dword [edi + 0x10]
push edx
lea eax, [ebp + 0x3f8]
push eax
mov eax, dword [edi]
call fcn.10131790
add esp, 0x10
test eax, eax
jne 0x101329ca
add edi, dword [esp + 0x60]
inc esi
cmp esi, dword [esp + 0x44]
jb 0x101328e7
jmp 0x10132a0e
push esi
push str.Fail_to_calculate_hash__d_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x24], 0x6e4
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 8
mov esi, 0x179f
jmp 0x10133170
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
lea esi, [eax + ecx + 0x40]
push esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], esi
call fcn.1016f23d
add esp, 4
push esi
mov edi, eax
push ebx
push edi
mov dword [esp + 0x38], edi
call fcn.10173270
mov ecx, 0x10
lea esi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x54]
add esp, 0xc
add edi, 0x40
cmp dword [esp + 0x44], ebx
jbe 0x10132ab5
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
add edx, 0x20
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], eax
cmp dword [0x1027a1e4], 3
push esi
jne 0x10132a90
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
add ecx, 0xfffffff4
push ecx
push edx
jmp 0x10132a9a
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.10173370
mov edx, dword [esp + 0x6c]
add dword [esp + 0x58], edx
add dword [esp + 0x4c], esi
add esp, 0xc
sub dword [esp + 0x50], 1
jne 0x10132a77
mov eax, dword [esp + 0x7c]
add edi, dword [esp + 0x6c]
mov dword [edi], eax
mov ecx, dword [esp + 0x80]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x84]
mov dword [edi + 8], edx
mov eax, dword [esp + 0x88]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x8c]
add edi, 0xc
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x30]
mov dword [edi + 8], edx
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x78]
push ecx
mov dword [edi + 0xc], eax
push edx
add edi, 0x10
push edi
call fcn.10173370
add edi, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x3c], ebx
je 0x10132b73
mov eax, dword [esp + 0x9c]
mov dword [edi], eax
mov ecx, dword [esp + 0xa0]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0xa4]
mov dword [edi + 8], edx
mov eax, dword [esp + 0xa8]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x64]
push eax
mov dword [edi + 0x14], edx
push ecx
add edi, 0x18
push edi
call fcn.10173370
add esp, 0xc
add edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov dword [edi], edx
mov eax, dword [esp + 0x58]
push esi
mov dword [edi + 4], eax
call fcn.1016f23d
add esp, 4
push esi
mov edi, eax
push ebx
push edi
mov dword [esp + 0x6c], edi
call fcn.10173270
add esp, 0xc
cmp byte [0x103b3218], bl
jne 0x10132ba9
call fcn.100010a0
jmp 0x10132bbd
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
push esi
push edi
push ecx
push edx
call sym.FlashToolLib.v1.dll_sec_hash
add esp, 0x10
cmp eax, ebx
je 0x10132bfd
push str.Hash_Fail
lea edi, [esp + 0x1c]
mov esi, 0x179f
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x74f
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
jmp 0x10133153
movzx eax, byte [esp + 0x85]
mov esi, dword [eax*4 + 0x1027a1c8]
push esi
call fcn.1016f23d
add esp, 4
push esi
push ebx
push eax
mov dword [esp + 0x54], eax
call fcn.10173270
add esp, 0xc
lea eax, [esp + 0xb4]
call fcn.101375a0
mov ecx, eax
movzx eax, byte [ebp + 0x43d]
neg eax
sbb eax, eax
and eax, 0x80
mov edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov eax, ebx
push esi
adc edi, eax
push edi
push ecx
lea ecx, [ebp + 0x3f8]
call fcn.100da5d0
test al, al
jne 0x10132ca3
push str.Fail_to_get_signature
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x767
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov esi, 0x17a0
jmp 0x10133146
cmp byte [0x103b3218], bl
jne 0x10132cb2
call fcn.100010f0
jmp 0x10132cca
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x2c]
push esi
push ecx
push edx
push eax
call sym.FlashToolLib.v1.dll_sec_verify
add esp, 0x10
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
lea edi, [esp + 0x18]
cmp eax, ebx
je 0x10132d71
mov ebp, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str.___________________________________________________________
mov esi, 0x179e
mov dword [esp + 0x20], 0x784
mov dword [esp + 0x2c], ebp
call fcn.10017c90
add esp, 4
push str.IMAGE_AUTH_FAIL___
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x785
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], ebp
call fcn.10017c90
add esp, 4
push str.___________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x786
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], ebp
call fcn.10017c90
jmp 0x10133146
mov esi, dword [esp + 0x38]
lea eax, [esi + 0x40]
push eax
push str.image_start_offset_is__d
mov dword [esp + 0x24], 0x78d
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
lea ecx, [esp + 0xbc]
call fcn.10137560
add eax, dword [esp + 0x3c]
lea edi, [esp + 0x20]
lea esi, [eax + esi + 0x40]
push esi
push str.image_extra_length_is__d
mov dword [esp + 0x28], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x2c], 0x78f
mov byte [esp + 0x30], bl
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 0x10
cmp byte [ebp + 0x43d], 1
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
lea edi, [esp + 0x18]
jne 0x10132e30
push str.cipher_header_exist
mov dword [esp + 0x20], 0x795
call fcn.10017c90
mov ecx, dword [esp + 0x3c]
add ecx, 0xc0
add esp, 4
mov dword [ebp + 0x594], ecx
sub esi, 0xffffff80
jmp 0x10132e52
push str.no_cipher_header
mov dword [esp + 0x20], 0x79b
call fcn.10017c90
mov eax, dword [esp + 0x3c]
add esp, 4
add eax, 0x40
mov dword [ebp + 0x594], eax
cmp byte [ebp + 0x61], 1
mov dword [ebp + 0x598], esi
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
lea edi, [esp + 0x18]
jne 0x10132ea1
sub dword [ebp + 0x48], esi
push str.First_Loaded
mov dword [esp + 0x20], 0x7b0
sbb dword [ebp + 0x4c], ebx
call fcn.10017c90
mov byte [ebp + 0x61], bl
mov byte [ebp + 0x59c], bl
jmp 0x10132eb3
push str.Already_Loaded
mov dword [esp + 0x20], 0x7b7
call fcn.10017c90
mov eax, dword [ebp + 0x42c]
add esp, 4
cmp eax, ebx
je 0x10132ed5
push eax
call fcn.1016cefd
add esp, 4
mov dword [ebp + 0x42c], ebx
mov dword [ebp + 0x430], ebx
mov edi, dword [esp + 0x3c]
cmp edi, ebx
je 0x10132ee7
mov dword [ebp + 0x430], edi
mov esi, edi
jmp 0x10132f0d
cmp byte [ebp + 0x43d], 1
jne 0x10132f01
mov edx, esi
sub edx, dword [esp + 0x38]
add edx, 0xffffff80
mov dword [ebp + 0x430], edx
jmp 0x10132f0d
mov eax, esi
sub eax, dword [esp + 0x38]
mov dword [ebp + 0x430], eax
push esi
call fcn.1016f23d
mov ecx, dword [ebp + 0x430]
add esp, 4
push ecx
push ebx
push eax
mov dword [ebp + 0x42c], eax
call fcn.10173270
mov eax, dword [ebp + 0x42c]
add esp, 0xc
mov dword [esp + 0x30], eax
cmp edi, ebx
je 0x10132fcc
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x64]
push edx
push ecx
push eax
call fcn.10173370
add esp, 0xc
mov esi, str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov ebp, str._DEBUG:
push str.___________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x7e2
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
add esp, 4
push str.IMAGE_AUTH_PASS__SPARSE____
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x7e3
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x7e4
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
jmp 0x1013312b
mov eax, dword [esp + 0x30]
mov edi, eax
add eax, 0x40
mov dword [esp + 0x30], eax
mov ecx, 0x10
lea esi, [esp + 0xb4]
lea eax, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
call fcn.101375a0
mov esi, eax
movzx eax, byte [ebp + 0x43d]
neg eax
sbb eax, eax
and eax, 0x80
mov edi, edx
cdq
add esi, eax
adc edi, edx
add esi, dword [esp + 0x38]
mov eax, ebx
lea ecx, [esp + 0xb4]
adc edi, eax
call fcn.10137560
mov edx, dword [esp + 0x30]
push eax
push edi
push esi
lea ecx, [ebp + 0x3f8]
mov dword [esp + 0x74], eax
call fcn.100da5d0
test al, al
jne 0x10133091
push str.Fail_to_get_signature
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x7f2
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
call fcn.10017c90
mov edx, dword [ebp + 0x42c]
add esp, 4
push edx
mov esi, 0x17a0
call fcn.1016cefd
mov dword [ebp + 0x42c], ebx
mov dword [ebp + 0x430], ebx
jmp 0x10133146
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
push eax
lea eax, [ecx + edx + 0x40]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
push eax
add ecx, edx
push ecx
call fcn.10173370
add esp, 0xc
mov ebp, str._DEBUG:
mov esi, str.SECURE_DA_Cmd::Secure_USB_Authenticate_v3
push str.___________________________________________________________
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x7fc
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
add esp, 4
push str.IMAGE_AUTH_PASS__NORMAL____
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x7fd
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x7fe
mov dword [esp + 0x2c], esi
add esp, 4
push str.___________________________________________________________
lea edi, [esp + 0x1c]
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebp
call fcn.10017c90
mov esi, ebx
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
call fcn.1016cefd
mov ecx, dword [esp + 0x64]
add esp, 4
push ecx
call fcn.1016cefd
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call fcn.1016cefd
add esp, 4
mov eax, dword [esp + 0x5c]
push eax
call fcn.1016cefd
add esp, 4
cmp dword [esp + 0x3c], ebx
je 0x10133190
mov ecx, dword [esp + 0x64]
push ecx
call fcn.1016cefd
add esp, 4
mov edx, dword [esp + 0x78]
push edx
call fcn.1016cefd
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.1016cb16
add esp, 0xf0
ret