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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019adcb
mov eax, dword fs:[0]
push eax
sub esp, 0xd60
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0xd58], eax
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xd70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x1c], ebx
call fcn.100635a0
mov dword [esp + 0xd78], 0
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
push str.Enter...
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x742
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.BRom_MT6276::BRom_WriteEfuseSecure
call fcn.1007b500
mov esi, 0xa59914b3
add esp, 4
cmp dword [ebx + 0x1c], esi
jne 0x10020b36
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0xe
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 0x30], esi
jne 0x10020b59
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0xf
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx], esi
jne 0x10020b7b
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 7
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 8], esi
jne 0x10020b9e
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 8
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 0xc], esi
jne 0x10020bc1
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 9
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 0x10], esi
jne 0x10020be4
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0xa
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 4], esi
jne 0x10020c07
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0xb
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 0x14], esi
jne 0x10020c2a
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0xd
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 0x18], esi
jne 0x10020c4d
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0xc
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
cmp dword [ebx + 0x90], esi
jne 0x10020c73
lea ebx, [esp + 0x14]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0x16
call fcn.10023bc0
mov ebx, dword [esp + 0x18]
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
lea ecx, [esp + 0x38]
call fcn.10023ac0
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [eax + 0x130]
call edx
test al, al
jne 0x10020d00
push str.Efuse_common_register_is_not_match
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x767
mov byte [esp + 0x44], 0xff
mov dword [esp + 0x48], str._ERROR:
mov dword [esp + 0x4c], str.BRom_MT6276::BRom_WriteEfuseSecure
call fcn.1007b500
mov eax, dword [esp + 0x2c]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x10020cdd
push eax
call fcn.1016d679
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.1016d679
add esp, 4
mov eax, 0x7f5
jmp 0x10020def
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
push 0x40c
lea ecx, [esp + 0xfc]
sar eax, 2
push 0
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x100], 0
call fcn.10173270
add esp, 0xc
push 0x3f
lea edx, [esp + 0xd29]
push 0
push edx
mov byte [esp + 0xd30], 0
call fcn.10173270
add esp, 0xc
mov esi, str.BRom_MT6276::BRom_WriteEfuseSecure
push str.Check_Efuse_Setting_:_Done
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x771
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], esi
call fcn.1007b500
add esp, 4
cmp dword [esp + 0x14], 0
mov dword [esp + 0x34], 0
jg 0x10020e19
push str.Done
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x7dd
mov byte [esp + 0x5c], 0xff
mov dword [esp + 0x60], str._ERROR:
mov dword [esp + 0x64], esi
call fcn.1007b500
mov eax, dword [esp + 0x2c]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x10020dd4
push eax
call fcn.1016d679
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.1016d679
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd58]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov ecx, eax
sub ecx, dword [esp + 0x28]
sar ecx, 2
cmp dword [esp + 0x34], ecx
jb 0x10020e35
call fcn.1016d669
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov ecx, dword [edx + ecx*4]
add ecx, 0xfffffff9
cmp ecx, 0xf
ja case.0x10020e53.16
movzx edx, byte [ecx + 0x100212f4]
jmp dword [edx*4 + 0x100212e4]
xor edi, edi
xor ebx, ebx
jmp 0x10020fa3
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10021001
push eax
lea ecx, [esp + 0xf8]
call fcn.100798f0
test eax, eax
jne 0x10021014
lea eax, [esp + 0x104]
test eax, eax
je 0x10021068
mov eax, dword [esp + 0xf4]
cmp eax, 0x10
jne 0x100210bb
lea edi, [esp + 0x104]
mov ebx, eax
jmp 0x10020f9f
push str.SBC_Key_handle_begin
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x7a7
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], esi
call fcn.1007b500
mov eax, dword [ebx + 0x3c]
add esp, 4
test eax, eax
je 0x1002122d
cmp dword [ebx + 0x44], 0
je 0x1002122d
push eax
lea ecx, [esp + 0x508]
call fcn.100798f0
test eax, eax
jne 0x100211f5
mov ecx, dword [ebx + 0x44]
push ecx
lea ecx, [esp + 0x918]
call fcn.100798f0
test eax, eax
jne 0x100211f5
lea edx, [esp + 0x924]
test edx, edx
je 0x100211a2
lea eax, [esp + 0x514]
test eax, eax
je 0x100211a2
lea ebx, [esp + 0xd24]
lea ecx, [esp + 0x504]
call fcn.10079d00
test eax, eax
jne 0x1002110f
push str.SBC_Key_handle_done
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], 0x7ca
mov byte [esp + 0x9c], al
mov dword [esp + 0xa0], str._DEBUG:
mov dword [esp + 0xa4], esi
call fcn.1007b500
mov edi, ebx
add esp, 4
mov ebx, 0x20
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
sar eax, 2
cmp esi, eax
jb 0x10020fb7
call fcn.1016d669
mov eax, dword [esp + 0x28]
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push ebx
push edi
push eax
mov eax, dword [esp + 0x84]
push eax
call edx
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1002113b
inc esi
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x34], esi
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov esi, str.BRom_MT6276::BRom_WriteEfuseSecure
jl 0x10020e15
jmp 0x10020d93
lea esi, [esp + 0x1c]
call fcn.100eea50
mov eax, 0x3ea
jmp 0x10020def
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], 0x790
mov byte [esp + 0xe8], 0xff
mov dword [esp + 0xec], str._ERROR:
mov dword [esp + 0xf0], esi
lea ecx, [esp + 0xe0]
push eax
push str.Octet_string_key_to_integer_primitive_transform_error___d_
call fcn.1007b500
add esp, 8
lea esi, [esp + 0x1c]
call fcn.100eea50
mov eax, 0x7f7
jmp 0x10020def
push str.AC_Key_integer_primitive_buffer_is_NULL
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0x797
mov byte [esp + 0x88], 0xff
mov dword [esp + 0x8c], str._ERROR:
mov dword [esp + 0x90], esi
call fcn.1007b500
add esp, 4
lea esi, [esp + 0x1c]
call fcn.100eea50
mov eax, 0x7f7
jmp 0x10020def
push eax
push str.AC_Key_length_invalid_:__d_byte__16_byte_is_correct_
lea ecx, [esp + 0xac]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], 0x79d
mov byte [esp + 0xb4], 0xff
mov dword [esp + 0xb8], str._ERROR:
mov dword [esp + 0xbc], esi
call fcn.1007b500
add esp, 8
lea esi, [esp + 0x1c]
call fcn.100eea50
mov eax, 0x7f5
jmp 0x10020def
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], 0x7c6
mov byte [esp + 0x70], 0xff
mov dword [esp + 0x74], str._ERROR:
mov dword [esp + 0x78], esi
push str.Generate_SBC_public_key_hash_error___d_
lea ecx, [esp + 0x6c]
jmp 0x1002104d
push str.BRom_WriteEfuse_Failed
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x6c], 0x7d7
mov byte [esp + 0x70], 0xff
mov dword [esp + 0x74], str._ERROR:
mov dword [esp + 0x78], str.BRom_MT6276::BRom_WriteEfuseSecure
call fcn.1007b500
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
je 0x10021182
push eax
call fcn.1016d679
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.1016d679
add esp, 4
mov eax, edi
jmp 0x10020def
push str.SBC_Key_integer_primitive_buffer_is_NULL
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], 0x7bb
mov byte [esp + 0xc4], 0xff
mov dword [esp + 0xc8], str._ERROR:
mov dword [esp + 0xcc], esi
call fcn.1007b500
add esp, 4
lea esi, [esp + 0x1c]
call fcn.100eea50
mov eax, 0x7f7
jmp 0x10020def
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], 0x7b4
mov byte [esp + 0xd4], 0xff
mov dword [esp + 0xd8], str._ERROR:
mov dword [esp + 0xdc], esi
lea ecx, [esp + 0xcc]
jmp 0x10021047
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002123e
push eax
call fcn.1016d679
add esp, 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.1016d679
add esp, 4
mov eax, 0x3ea
jmp 0x10020def
sub eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
sar eax, 2
cmp ebx, eax
jb 0x10021277
call fcn.1016d669
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebx*4]
push eax
push str.Unknown_Efuse_setting___d_
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0x7d0
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], str._DEBUG:
mov dword [esp + 0x68], esi
call fcn.1007b500
mov eax, dword [esp + 0x30]
xor esi, esi
add esp, 8
cmp eax, esi
je 0x100212c0
push eax
call fcn.1016d679
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.1016d679
add esp, 4
mov eax, 0x7f5
jmp 0x10020def