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

Disassembly:
push 0xffffffffffffffff
push 0x1019f758
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
xor ebx, ebx
push 0x3c
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ebx
call fcn.10173270
xor eax, eax
add esp, 0xc
mov esi, str.SECURE_DA_Cmd::Secure_USB_Authenticate_Image
push str.Enter_...
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov word [esp + 0x85], ax
mov byte [esp + 0x87], al
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x850
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
mov edx, dword [esp + 0x30]
add esp, 4
cmp byte [edx + 4], bl
jne 0x10133425
push str.Exit.__m_bSecureUSBDL_is_FALSE_
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x860
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
add esp, 4
cmp byte [ebp + 0x43c], bl
jne 0x10133542
push str.Reload_binary_header
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x869
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
movzx eax, byte [ebp + 0x43d]
add esp, 4
neg eax
sbb eax, eax
and eax, 0x80
cdq
push 0x40
push edx
lea ecx, [ebp + 0x3f8]
push eax
lea edx, [esp + 0x40]
call fcn.100da5d0
test al, al
jne 0x101334c5
mov dword [esp + 0x18], 0x86c
push str.Fail_to_get_header
lea edi, [esp + 0x18]
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], esi
call fcn.10017c90
add esp, 4
mov eax, 0x17a0
jmp 0x10133b47
cmp dword [esp + 0x34], 0x46424642
jne 0x101339d1
push str.Reload_binary_header__by_pass_FB_header_
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x872
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
movzx eax, byte [ebp + 0x43d]
add esp, 4
neg eax
sbb eax, eax
and eax, 0x80
add eax, 0x4000
cdq
push 0x40
push edx
push eax
lea edx, [esp + 0x40]
lea ecx, [ebp + 0x3f8]
call fcn.100da5d0
test al, al
jne 0x101339d1
mov dword [esp + 0x18], 0x875
jmp 0x10133492
cmp byte [ebp + 0x43d], bl
je 0x10133921
cmp dword [ebp + 0x488], 1
jne 0x10133921
cmp byte [ebp + 0x43e], bl
jne 0x101338e8
push str.Need_to_decrypt_the_image
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x889
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
add esp, 4
push str.Image_is_encrypted_..
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x88a
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
add esp, 4
lea ecx, [ebp + 0x450]
push ecx
push str.Customer_name____s
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x88b
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov edx, dword [ebp + 0x478]
push edx
push str.Image_offset____0x_x
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x28], 0x88c
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], esi
call fcn.10017c90
mov eax, dword [ebp + 0x474]
push eax
push str.Image_length_____d
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x30], 0x88d
mov byte [esp + 0x34], bl
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], esi
call fcn.10017c90
mov ecx, dword [ebp + 0x47c]
push ecx
push str.Cipher_offset___0x_x
lea edi, [esp + 0x34]
mov dword [esp + 0x34], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x38], 0x88e
mov byte [esp + 0x3c], bl
mov dword [esp + 0x40], str._DEBUG:
mov dword [esp + 0x44], esi
call fcn.10017c90
mov edx, dword [ebp + 0x480]
push edx
push str.Cipher_length___0x_x
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x40], 0x88f
mov byte [esp + 0x44], bl
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], esi
call fcn.10017c90
mov eax, dword [ebp + 0x488]
push eax
push str.Vector_config___0x_x
lea edi, [esp + 0x44]
mov dword [esp + 0x44], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x48], 0x890
mov byte [esp + 0x4c], bl
mov dword [esp + 0x50], str._DEBUG:
mov dword [esp + 0x54], esi
call fcn.10017c90
mov dword [esp + 0x44], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x48], 0x891
mov byte [esp + 0x4c], bl
mov ecx, dword [ebp + 0x41c]
mov edx, dword [ebp + 0x418]
push ecx
push edx
push str.m_flu.m_len___0x_x
lea edi, [esp + 0x50]
mov dword [esp + 0x5c], str._DEBUG:
mov dword [esp + 0x60], esi
call fcn.10017c90
mov eax, dword [ebp + 0x414]
mov ecx, dword [eax]
add esp, 0x3c
push ecx
push str.Magic_0x_x
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x894
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov eax, dword [ebp + 0x414]
mov edx, dword [eax + 0x80]
sub eax, 0xffffff80
push edx
push str.Magic_0x_x
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x28], 0x896
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], esi
call fcn.10017c90
add esp, 0x10
lea eax, [ebp + 0x444]
push eax
mov ebx, str.CHECKSUM_LOCK
lea edi, [esp + 0x30]
call fcn.100f7d10
mov dword [esp + 0x90], 0
mov eax, dword [ebp + 0x47c]
mov ecx, dword [ebp + 0x480]
lea ebx, [eax + 0x80]
lea edx, [eax + ecx + 0x80]
cmp ebx, edx
jae 0x10133863
jmp 0x10133800
mov eax, dword [ebp + 0x488]
mov edi, dword [ebp + 0x414]
push eax
add edi, ebx
lea ecx, [esp + 0x78]
call fcn.1014e1e0
add esp, 4
test eax, eax
jne 0x10133aab
mov eax, dword [ebp + 0x414]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
add eax, ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x47c]
mov ecx, dword [ebp + 0x480]
add ebx, 0x10
lea edx, [eax + ecx + 0x80]
cmp ebx, edx
jb 0x10133800
mov al, 1
mov byte [ebp + 0x43e], al
mov byte [ebp + 0x43f], al
cmp byte [ebp + 0x589], 0
jne 0x101338a0
test al, al
je 0x101338a0
mov eax, dword [ebp + 0x424]
mov ecx, dword [ebp + 0x420]
mov edi, dword [ebp + 0x414]
push eax
push ecx
call fcn.100dbaf0
movzx edx, ax
mov dword [ebp + 0x428], edx
push str.Decryption_done_..
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x8ad
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
add esp, 4
lea edi, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.100f7da0
xor ebx, ebx
push str.Need_to_bypass_header
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x8b0
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
add esp, 4
mov dword [esp + 0x28], 0x80
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x414]
mov edx, dword [ecx + eax]
push edx
push eax
push str.offset__d__Magic_0x_x
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x24], 0x8b3
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], esi
call fcn.10017c90
mov ecx, dword [ebp + 0x414]
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [eax + ecx], 0x46424642
jne 0x1013397d
add eax, 0x4000
mov dword [esp + 0x28], eax
push eax
push str.Copy_binary_header_at_offset_0x_x
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x20], 0x8b9
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], esi
call fcn.10017c90
mov ecx, dword [ebp + 0x414]
add ecx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
mov edx, eax
add esp, 8
mov edi, 0x40
sub ecx, edx
mov dl, byte [eax + ecx]
dec edi
mov byte [eax], dl
inc eax
cmp edi, ebx
jne 0x101339c6
cmp dword [esp + 0x34], 0x53535353
je 0x10133afa
push str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x8c4
lea esi, [esp + 0x18]
call fcn.10111280
mov dword [esp + 0x90], 1
mov ecx, dword [0x103b321c]
push str._______________________________________________________________________________________________
push ecx
push eax
call fcn.10111350
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0x40]
add esp, 0xc
push 0x53535353
push eax
push str.SEC_IMG_MAGIC_NOT_CORRECT__0x_x___0x_x_
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x24], 0x8c5
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.SECURE_DA_Cmd::Secure_USB_Authenticate_Image
call fcn.10017c90
add esp, 0xc
push str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x8c6
lea esi, [esp + 0x18]
call fcn.10111280
mov dword [esp + 0x90], 2
mov ecx, dword [0x103b321c]
push str._______________________________________________________________________________________________
push ecx
push eax
call fcn.10111350
add esp, 0xc
mov eax, 0x179d
mov byte [ebp + 0x61], 1
jmp 0x10133b47
push str.AES_decryption_fail
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov dword [esp + 0x1c], 0x8a1
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], esi
call fcn.10017c90
add esp, 4
lea edi, [esp + 0x2c]
mov esi, 0x17e1
mov dword [esp + 0x90], 0xffffffff
call fcn.100f7da0
mov eax, esi
jmp 0x10133b47
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], str.FlashToolLib_source_security_src_secure_da_cmd.cpp
mov byte [esp + 0x1c], bl
mov dword [esp + 0x20], str._DEBUG:
mov dword [esp + 0x24], esi
lea edi, [esp + 0x14]
cmp eax, 0x7b797b79
jne 0x10133b6e
push str.V4_format
mov dword [esp + 0x1c], 0x8d5
call fcn.10017c90
add esp, 4
mov dword [0x1027a1e4], 4
mov ecx, ebp
call fcn.10131b90
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1016cb16
add esp, 0x80
ret 8
cmp dword [esp + 0x70], ebx
jne 0x10133b9b
push str.V1_format
mov dword [esp + 0x1c], 0x8da
call fcn.10017c90
add esp, 4
push ebp
mov dword [0x1027a1e4], 1
call fcn.10130f10
jmp 0x10133b47
cmp eax, 0x7a797a79
jne 0x10133bc6
push str.V3_format
mov dword [esp + 0x1c], 0x8df
call fcn.10017c90
add esp, 4
mov dword [0x1027a1e4], 3
jmp 0x10133b40
push str.V2_format
mov dword [esp + 0x1c], 0x8e4
call fcn.10017c90
add esp, 4
push ebp
mov dword [0x1027a1e4], 2
call fcn.10130f10
jmp 0x10133b47