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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019933b
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x4d0], eax
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x4c], ecx
push str.Enter...
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x3c], 0x6c5
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.BRom_MT6276::BRom_WriteEfuseCommon
call fcn.1007b500
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call fcn.100635a0
xor eax, eax
mov dword [esp + 0x4f0], eax
cmp dword [esi], 0xa59914b3
jne 0x100204b4
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.10023bc0
cmp dword [esi + 4], 0xa59914b3
jne 0x100204d2
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 1
call fcn.10023bc0
cmp dword [esi + 8], 0xa59914b3
jne 0x100204f0
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 3
call fcn.10023bc0
cmp dword [esi + 0x1c], 0xa59914b3
jne 0x1002050e
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 6
call fcn.10023bc0
cmp dword [esi + 0x14], 0xa59914b3
jne 0x1002053d
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 4
call fcn.10023bc0
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 5
call fcn.10023bc0
cmp dword [esi + 0xc], 0xa59914b3
jne 0x1002055b
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 2
call fcn.10023bc0
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x60], esp
push edx
lea ecx, [esp + 0x34]
call fcn.10023ac0
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [eax + 0x130]
call edx
test al, al
jne 0x100205e9
push str.Efuse_common_register_is_not_match
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x3c], 0x6e1
mov byte [esp + 0x40], 0xff
mov dword [esp + 0x44], str._ERROR:
mov dword [esp + 0x48], str.BRom_MT6276::BRom_WriteEfuseCommon
call fcn.1007b500
mov eax, dword [esp + 0x28]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x100205c9
push eax
call fcn.1016d679
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.1016d679
add esp, 4
mov eax, 0x7f5
jmp 0x1002064b
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
xor edi, edi
push 0x40c
sub ebx, esi
lea ecx, [esp + 0xd4]
push edi
sar ebx, 2
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0xd8], edi
call fcn.10173270
add esp, 0xc
mov dword [esp + 0x14], edi
test ebx, ebx
jg 0x10020675
test esi, esi
je 0x1002062e
push esi
call fcn.1016d679
add esp, 4
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
push eax
call fcn.1016d679
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d0]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, ecx
sub edx, esi
sar edx, 2
cmp edi, edx
jb 0x10020691
call fcn.1016d669
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + edi*4]
cmp eax, 6
ja case.default.0x1002069d
jmp dword [eax*4 + 0x10020a4c]
xor edi, edi
xor ebx, ebx
jmp 0x100207f0
mov edi, dword [esp + 0x30]
add edi, 0x18
mov ebx, 2
jmp 0x100207f0
mov edi, dword [esp + 0x30]
add edi, 0x1a
mov ebx, 2
jmp 0x100207f0
mov edi, str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov esi, str._DEBUG:
mov ebx, str.BRom_MT6276::BRom_WriteEfuseCommon
push str.SPARE_handle_begin
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x700
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
call fcn.1007b500
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x34]
add esp, 4
test eax, eax
je 0x1002084d
push eax
lea ecx, [esp + 0xd0]
call fcn.100798f0
test eax, eax
jne 0x10020860
lea ecx, [esp + 0xdc]
test ecx, ecx
je 0x100208b4
xor edi, edi
lea ecx, [ecx]
movzx edx, byte [esp + edi + 0xdc]
mov eax, dword [esp + 0xcc]
push edx
push eax
push edi
push str.Spare_Data_m_len___d___d___0x_02X
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x7c], 0x714
mov byte [esp + 0x80], 0
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ebx
call fcn.1007b500
inc edi
add esp, 0x10
cmp edi, 6
jb 0x10020740
mov eax, dword [esp + 0xcc]
cmp eax, 6
jne 0x10020907
push str.SPARE_handle_done
lea ecx, [esp + 0xbc]
lea edi, [esp + 0xe0]
mov ebx, eax
mov dword [esp + 0xbc], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0xc0], 0x722
mov byte [esp + 0xc4], 0
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], str.BRom_MT6276::BRom_WriteEfuseCommon
call fcn.1007b500
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [esp + 0x28]
sub eax, esi
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x10020808
call fcn.1016d669
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov eax, dword [esi + eax*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 + 0x70]
push eax
call edx
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x1002094d
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
jl 0x10020671
jmp 0x10020621
lea esi, [esp + 0x18]
call fcn.100eea50
mov eax, 0x3ea
jmp 0x1002064b
push eax
push str.Octect_string_key_to_integer_primitive_transform_error___d_
lea ecx, [esp + 0xac]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], 0x709
mov byte [esp + 0xb4], 0xff
mov dword [esp + 0xb8], str._ERROR:
mov dword [esp + 0xbc], ebx
call fcn.1007b500
add esp, 8
lea esi, [esp + 0x18]
call fcn.100eea50
mov eax, 0x7f7
jmp 0x1002064b
push str.Spare_data_integer_primitive_buffer_is_NULL
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], 0x70f
mov byte [esp + 0x9c], 0xff
mov dword [esp + 0xa0], str._ERROR:
mov dword [esp + 0xa4], ebx
call fcn.1007b500
add esp, 4
lea esi, [esp + 0x18]
call fcn.100eea50
mov eax, 0x7f7
jmp 0x1002064b
push eax
push str.Spare_data_length_invalid_:__d_byte__6_byte_is_correct_
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x5c], 0x71b
mov byte [esp + 0x60], 0xff
mov dword [esp + 0x64], str._ERROR:
mov dword [esp + 0x68], ebx
call fcn.1007b500
add esp, 8
lea esi, [esp + 0x18]
call fcn.100eea50
mov eax, 0x7f5
jmp 0x1002064b
push edi
push str.BRom_WriteEfuse_Failed___d_
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x5c], 0x72d
mov byte [esp + 0x60], 0xff
mov dword [esp + 0x64], str._ERROR:
mov dword [esp + 0x68], str.BRom_MT6276::BRom_WriteEfuseCommon
call fcn.1007b500
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, esi
je 0x10020995
push eax
call fcn.1016d679
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.1016d679
add esp, 4
mov eax, edi
jmp 0x1002064b
sub ecx, esi
sar ecx, 2
cmp edi, ecx
jb 0x100209c7
call fcn.1016d669
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + edi*4]
push ecx
push str.Unknown_Efuse_setting___d_
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov dword [esp + 0x88], 0x725
mov byte [esp + 0x8c], 0xff
mov dword [esp + 0x90], str._ERROR:
mov dword [esp + 0x94], str.BRom_MT6276::BRom_WriteEfuseCommon
call fcn.1007b500
mov eax, dword [esp + 0x2c]
xor esi, esi
add esp, 8
cmp eax, esi
je 0x10020a26
push eax
call fcn.1016d679
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.1016d679
add esp, 4
mov eax, 0x7f5
jmp 0x1002064b