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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100be8cb
push edi
push str.invalid_arguments__p_da_report_0x_08X_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_flashtool.cpp
mov dword [esp + 0x30], 0xe8
mov byte [esp + 0x34], 0xff
mov dword [esp + 0x38], str._ERROR:
mov dword [esp + 0x3c], 0x10232fe8
call fcn.10017c90
add esp, 8
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x18]
push eax
mov esi, edi
call fcn.10075550
add esp, 4
push edi
lea ecx, [esp + 0x7c]
push ecx
call fcn.10074f70
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100be947
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jbe 0x100be947
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x40]
push eax
call edx
cmp dword [eax + 0x18], 0x10
jb 0x100be90e
mov eax, dword [eax + 4]
jmp 0x100be911
add eax, 4
push eax
push 0x10216158
push ebx
push esi
call fcn.1016da60
add esp, 0x10
cmp dword [esp + 0x58], 0x10
mov esi, eax
jb 0x100be937
mov eax, dword [esp + 0x44]
push eax
call fcn.1016d679
add esp, 4
test esi, esi
jl 0x100be93f
cmp esi, ebx
jne 0x100be947
mov ecx, dword [ebp + 0xc]
mov byte [ecx + ebx - 1], 0
cmp dword [ebp + 0x14], 0
je 0x100beb10
cmp dword [ebp + 0x18], 0
jbe 0x100beb10
mov edx, dword [esp + 0x18]
lea esi, [esp + 0x9c]
lea eax, [esp + 0x78]
mov dword [esp + 0x20], edx
call fcn.100752d0
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x100be982
mov eax, dword [eax + 4]
jmp 0x100be985
add eax, 4
mov dword [esp + 0x10], eax
lea esi, [esp + 0x40]
lea eax, [esp + 0x78]
call fcn.100752f0
cmp dword [eax + 0x18], ebx
jb 0x100be9a4
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], ecx
jmp 0x100be9ab
add eax, 4
mov dword [esp + 0xc], eax
lea edx, [esp + 0x78]
push edx
lea esi, [esp + 0x60]
call fcn.100751f0
cmp dword [eax + 0x18], ebx
jb 0x100be9c3
mov eax, dword [eax + 4]
jmp 0x100be9c6
add eax, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
call edx
cmp dword [eax + 0x18], ebx
jb 0x100be9e4
mov ebx, dword [eax + 4]
jmp 0x100be9e7
lea ebx, [eax + 4]
mov eax, dword [edi + 0x30]
call fcn.10011db0
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0xa4]
push ecx
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [edi + 0x9c]
push ecx
push eax
push eax
call sym.FlashToolLib.v1.dll_StatusToString
mov ecx, dword [edi + 0xb0]
push eax
mov eax, dword [edi + 0xb4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [edi + 0xac]
push eax
push ecx
call sym.FlashToolLib.v1.dll_HWChipSelectToString
push eax
mov eax, dword [esp + 0x34]
push eax
push edx
push edx
call sym.FlashToolLib.v1.dll_StatusToString
movzx ecx, word [edi + 0x2a]
movzx edx, word [edi + 0x28]
push eax
movzx eax, word [edi + 0x2c]
push ebx
mov ebx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push esi
add edi, 8
push edi
push str._BBCHIP:___s____s_n_CODE_0x_04X___VER_0x_04X___SW_0x_04X__n_________________________________________________________________________________n_n_s_EXT_RAM_DETECTION:___s___d__n_________________________________________________________________________________n_EXT_RAM_TYPE:___s__n_EXT_RAM_CHIP_SEL:___s__n_EXT_RAM_SIZE:__s__0x_08llX__n_n_INT_SRAM_DETECTION:___s___d__n_________________________________________________________________________________n_INT_SRAM_SIZE:__s__0x_08X_
push ebx
push ecx
call fcn.1016da60
mov edi, 0x10
add esp, 0x50
mov esi, eax
cmp dword [esp + 0x3c], edi
jb 0x100bea82
mov edx, dword [esp + 0x28]
push edx
call fcn.1016d679
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x74], edi
jb 0x100beaaa
mov eax, dword [esp + 0x60]
push eax
call fcn.1016d679
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
cmp dword [esp + 0x58], edi
jb 0x100bead2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.1016d679
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
cmp dword [esp + 0xb4], edi
jb 0x100beb00
mov edx, dword [esp + 0xa0]
push edx
call fcn.1016d679
add esp, 4
test esi, esi
jl 0x100beb08
cmp esi, ebx
jne 0x100beb10
mov eax, dword [ebp + 0x14]
mov byte [eax + ebx - 1], 0
lea ecx, [esp + 0x7c]
push ecx
call fcn.10078920
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100beb4c
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x100beb4c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100beb4c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14