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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019fb6a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x60], eax
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 eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 0x694]
push esi
push str.FlashTool_Format_0x_08X_:
mov ebx, edx
mov edx, dword [esi + 0x698]
push 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 8]
lea ecx, [esi + 0x64c]
push 0
push ecx
lea edi, [esp + 0x60]
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], eax
call fcn.10115880
add esp, 0x14
mov dword [esp + 0x80], 0
call fcn.100bef40
cmp dword [eax + 0x40], 0
je 0x100cb107
mov esi, eax
call fcn.101360a0
mov esi, eax
test esi, esi
je 0x100cb107
mov edx, edi
push edx
mov dword [esp + 0x84], 0xffffffff
call fcn.10115b60
mov eax, esi
jmp 0x100cb5d6
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edx
test edi, edi
jne 0x100cb187
mov esi, dword [esp + 0x10]
add esi, 0x3c8
cmp dword [esi + 0x38], edi
je 0x100cb3e5
mov ecx, dword [esp + 0x10]
push ecx
mov ebx, str._ERROR:
push str._0x_08X_:_NOR_flash_detection_failure_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1124
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
mov esi, dword [esi + 0x38]
add esp, 8
jmp 0x100cb4d1
cmp edi, 1
jne 0x100cb1e4
mov esi, dword [esp + 0x10]
add esi, 0x3c8
cmp dword [esi + 0x5c], 0
je 0x100cb38e
mov edx, dword [esp + 0x10]
push edx
mov ebx, str._ERROR:
push str._0x_08X_:_NAND_flash_detection_failure_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x112a
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
mov esi, dword [esi + 0x5c]
add esp, 8
jmp 0x100cb4d1
cmp edi, 2
jne 0x100cb247
mov esi, dword [esp + 0x10]
add esi, 0x3c8
cmp dword [esi + 0x11c], 0
je 0x100cb2b3
mov eax, dword [esp + 0x10]
push eax
mov ebx, str._ERROR:
push str._0x_08X_:_EMMC_flash_detection_failure_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1130
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
mov esi, dword [esi + 0x11c]
add esp, 8
jmp 0x100cb4d1
cmp edi, 3
jne 0x100cb38e
mov eax, dword [esp + 0x10]
add eax, 0x3c8
cmp dword [eax + 0x178], 0
je 0x100cb38e
mov esi, dword [esp + 0x10]
push esi
mov ebx, str._ERROR:
push str._0x_08X_:_EMMC_flash_detection_failure_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1136
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
lea eax, [esi + 0x3c8]
mov esi, dword [eax + 0x178]
add esp, 8
jmp 0x100cb4d1
cmp eax, 3
jne 0x100cb2f7
mov ecx, dword [esi + 0x130]
or ecx, dword [esi + 0x134]
je 0x100cb330
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
call fcn.1005ab10
mov esi, eax
test esi, esi
je 0x100cb38e
mov edx, dword [esp + 0x10]
push esi
push edx
mov dword [esp + 0x20], 0x1148
push str._0x_08X_:_da_cmd.CMD_SDMMC_SwitchPartition__:_fail__ret__d_.
jmp 0x100cb49a
cmp eax, 1
jne 0x100cb30a
mov edx, dword [esi + 0x120]
or edx, dword [esi + 0x124]
jmp 0x100cb2c4
cmp eax, 2
jne 0x100cb31d
mov ecx, dword [esi + 0x128]
or ecx, dword [esi + 0x12c]
jmp 0x100cb2c4
cmp eax, 8
jne 0x100cb2c6
mov edx, dword [esi + 0x158]
or edx, dword [esi + 0x15c]
jne 0x100cb2c6
push eax
push str.format_part_id:__d_not_exist.
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1141
mov byte [esp + 0x24], 0xd2
mov dword [esp + 0x28], str._WARN:
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
add esp, 8
push str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x1142
lea esi, [esp + 0x18]
call fcn.10111280
mov byte [esp + 0x80], 1
jmp 0x100cb5a5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add eax, 0x3c8
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.10061ea0
test eax, eax
je 0x100cb3e5
push eax
push str.da_cmd.CMD_ReadBMT__:_fail__d_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1152
mov byte [esp + 0x24], 0xd2
mov dword [esp + 0x28], str._WARN:
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
mov edi, dword [esp + 0x48]
add esp, 8
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x3c]
cmp dword [ebx + 0xc], 0
push ecx
mov ecx, dword [ebx + 0x38]
push edx
mov edx, dword [ebx + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
mov ecx, dword [ebx + 0x28]
setne dl
movzx eax, dl
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [ebx + 0x2c]
push edi
push edx
mov edx, dword [ebx + 0x30]
push eax
call fcn.1004c780
mov esi, eax
cmp esi, 0x3e8
jne 0x100cb47f
mov ecx, dword [esp + 0x10]
push ecx
mov ebx, str._ERROR:
push str._0x_08X_:_da_cmd.CMD_FormatFlash__:_STOP.
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1164
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
add esp, 8
jmp 0x100cb4d1
test esi, esi
je 0x100cb52c
mov edx, dword [esp + 0x10]
push esi
push edx
mov dword [esp + 0x20], 0x1167
push str._0x_08X_:_da_cmd.CMD_FormatFlash__:_fail__ret__d_.
mov ebx, str._ERROR:
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], str.FlashTool_Format_Internal
call fcn.10017c90
add esp, 0xc
cmp esi, 0x3e8
jae 0x100cb4d1
mov esi, 0xfaa
push esi
push esi
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1179
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call sym.FlashToolLib.v1.dll_StatusToString
push eax
mov eax, dword [esp + 0x18]
push eax
push 0x1023460c
lea edi, [esp + 0x24]
call fcn.10017c90
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x84], 0xffffffff
call fcn.10115b60
mov eax, esi
jmp 0x100cb5d6
test edi, edi
je 0x100cb583
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, 0x3c8
push eax
push edx
call fcn.10061ea0
test eax, eax
je 0x100cb583
push eax
push str.da_cmd.CMD_ReadBMT__:_fail__d_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1171
mov byte [esp + 0x24], 0xd2
mov dword [esp + 0x28], str._WARN:
mov dword [esp + 0x2c], str.FlashTool_Format_Internal
call fcn.10017c90
add esp, 8
push str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x1175
lea esi, [esp + 0x18]
call fcn.10111280
mov byte [esp + 0x80], 2
mov ecx, dword [esp + 0x10]
mov edx, dword [0x103b321c]
push ecx
push str.FlashTool_Format_0x_08X_:_OK.
push edx
push eax
call fcn.10111350
add esp, 0x10
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x84], 0xffffffff
call fcn.10115b60
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret