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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10199488
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
push edi
call sym.FlashToolLib.v1.dll_BBChipTypeToName
cmp edi, 0xff
je 0x10009336
mov ecx, 0x10209d00
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008f75
test dl, dl
je 0x10008f71
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008f75
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008f55
xor eax, eax
jmp 0x10008f7a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10009336
mov ecx, dword [ebp + 0x10]
mov eax, ecx
call fcn.10011db0
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ecx, 0xff
je 0x100092ef
mov ecx, 0x10209d00
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008fc3
test dl, dl
je 0x10008fbf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008fc3
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008fa3
xor eax, eax
jmp 0x10008fc8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100092ef
push str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x426
lea esi, [esp + 0x24]
call fcn.10111280
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
push edi
push edi
mov dword [esp + 0x90], 2
call sym.FlashToolLib.v1.dll_BBChipTypeToName
mov ebx, dword [ebp + 8]
mov ecx, dword [0x103b321c]
push eax
push ebx
push str._s__:__s__d____s__d_.
push ecx
push esi
call fcn.10111350
mov esi, dword [ebp + 0x1c]
add esp, 0x20
mov dword [esp + 0x80], 0xffffffff
test esi, esi
je 0x10009049
push 0x7c
push 0
push esi
call fcn.10173270
add esp, 0xc
mov dword [esi], 0xff
mov dword [esi + 0x2c], 0xff
mov edx, dword [ebp + 0x24]
mov dword [edx], 0
cmp edi, 0xfe
jne 0x10009295
push 0x7c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1000908c
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x20]
push ecx
push edx
call fcn.1000c9e0
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x10009098
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x80], 3
test edi, edi
jne 0x100090fc
push str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x435
lea esi, [esp + 0x24]
call fcn.10111280
push ebx
mov byte [esp + 0x84], 4
mov ecx, dword [0x103b321c]
push str._s__:_not_enough_memory_to_create_BRom_AutoBoot_object_
push ecx
push eax
call fcn.10111350
add esp, 0x10
mov eax, 0x3f4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], esi
mov edx, dword [edi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x28]
push 0
push eax
mov ecx, edi
call edx
test eax, eax
je 0x1000914b
mov esi, eax
cmp eax, 0x3e8
jae 0x10009120
mov esi, 0x7d5
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push 1
mov ecx, edi
call edx
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov esi, dword [edi + 0x34]
push eax
mov eax, dword [edi]
push ecx
push edx
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
push eax
mov ebx, esi
call fcn.10011280
mov ecx, dword [ebp + 0x24]
add esp, 0x10
mov dword [ecx], eax
test eax, eax
jne 0x100091ed
push str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x441
lea esi, [esp + 0x24]
call fcn.10111280
mov esi, eax
push 0xfe
mov byte [esp + 0x84], 5
call sym.FlashToolLib.v1.dll_BBChipTypeToName
mov edx, dword [ebp + 8]
push eax
mov eax, dword [0x103b321c]
push edx
push str._s__:_not_enough_memory_to_create_Brom__s_object_
push eax
push esi
call fcn.10111350
mov dword [esp + 0x94], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
add esp, 0x14
push 1
mov ecx, edi
call eax
mov eax, 0x3f4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea esi, [esp + 0x4c]
call fcn.10006350
mov esi, dword [ebp + 0x24]
mov ecx, eax
mov eax, dword [esi]
add eax, 8
call fcn.10001a80
mov eax, dword [edi + 0x40]
mov ecx, dword [esi]
mov dword [ecx + 0x40], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0xec]
lea eax, [ebp + 0xc]
push eax
call edx
test eax, eax
je 0x10009261
mov eax, dword [esp + 0x18]
push eax
push str.__s__Init___failed.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov dword [esp + 0x2c], 0x448
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
mov dword [esp + 0x38], str.CreateBromObject_Internal
call fcn.10017c90
mov edi, dword [esp + 0x1c]
add esp, 8
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push 1
mov ecx, edi
mov dword [esp + 0x20], 0
call eax
mov eax, dword [ebp + 0xc]
mov esi, dword [esi]
test eax, eax
je 0x100092da
mov dword [esi + 0x6c], eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x44e
lea esi, [esp + 0x38]
call fcn.10111280
mov esi, eax
push edi
mov dword [esp + 0x84], 6
call sym.FlashToolLib.v1.dll_BBChipTypeToName
mov ecx, dword [0x103b321c]
push eax
push ebx
push str._s__:_manual_boot_is_not_supported_in___s_
push ecx
push esi
call fcn.10111350
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x422
lea esi, [esp + 0x24]
call fcn.10111280
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edx
push ecx
mov dword [esp + 0x88], 1
mov edx, dword [0x103b321c]
push str._s__:_invalid_external_clock_rate__m_ext_clock__d_.
push edx
push eax
call fcn.10111350
mov eax, 0x3ec
jmp 0x10009378
push str.FlashToolLib_sv5_common_interface_src_brom.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x41b
lea esi, [esp + 0x24]
call fcn.10111280
mov ecx, dword [ebp + 8]
push edi
push ecx
mov dword [esp + 0x88], 0
mov edx, dword [0x103b321c]
push str._s__:_invalid_bbchip_type__m_bbchip_type__d_.
push edx
push eax
call fcn.10111350
mov eax, 0x3eb
add esp, 0x14
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret