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

Disassembly:
push 0xffffffffffffffff
push 0x4bb782
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0xc18374]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebp
push esi
push edi
mov eax, dword [0xc18374]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
xor ebp, ebp
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x6c], 1
call fcn.00401070
push eax
call sub.Flashtoollib.dll_Ordinal_197
mov esi, eax
cmp esi, ebp
je 0x468aaa
push esi
lea eax, [esp + 0x1c]
push str.FlashTool_ReadPartitionCount_failed__d_
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], str.APCore::AutoFormatArg::QueryPartLayout
mov dword [esp + 0x2c], str....._flashtoolArgAutoFormatArg.cpp
mov dword [esp + 0x30], 0x2c
call fcn.0040b750
add esp, 0xc
push 0x2d
push str....._flashtoolArgAutoFormatArg.cpp
push str.APCore::AutoFormatArg::QueryPartLayout
push ebp
push esi
lea ecx, [esp + 0x2c]
call fcn.004102a0
push 0xbe9358
lea ecx, [esp + 0x1c]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x58
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ac922
mov ecx, dword [edi]
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
push ebp
call fcn.00401070
push eax
call sub.Flashtoollib.dll_Ordinal_196
mov esi, eax
test esi, esi
je 0x468b49
push esi
lea ecx, [esp + 0x1c]
push str.FlashTool_ReadPartitionInfo_failed__d_
push ecx
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], str.APCore::AutoFormatArg::QueryPartLayout
mov dword [esp + 0x2c], str....._flashtoolArgAutoFormatArg.cpp
mov dword [esp + 0x30], 0x35
call fcn.0040b750
add esp, 0xc
test ebp, ebp
je 0x468b22
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x3b
push str....._flashtoolArgAutoFormatArg.cpp
push str.APCore::AutoFormatArg::QueryPartLayout
push 0
push esi
lea ecx, [esp + 0x2c]
call fcn.004102a0
push 0xbe9358
lea edx, [esp + 0x1c]
push edx
call sub.MSVCR90.dll__CxxThrowException
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x468c37
mov esi, ebp
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x40]
push ecx
push edx
push eax
push esi
push edi
lea ecx, [esp + 0x30]
push str.part__d_:__s__addr_0x_llx___len_0x_llx_
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], str.APCore::AutoFormatArg::QueryPartLayout
mov dword [esp + 0x40], str....._flashtoolArgAutoFormatArg.cpp
mov dword [esp + 0x44], 0x40
call fcn.0040b750
add esp, 0x20
push esi
lea ecx, [esp + 0x44]
call dword [0x4dc240]
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x468bb8
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push edx
push 0
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
jne 0x468be7
inc edi
add esi, 0x58
cmp edi, dword [esp + 0x14]
jb 0x468b57
jmp 0x468c37
mov ecx, dword [esp + 0x38]
imul edi, edi, 0x58
mov edx, dword [edi + ebp + 0x40]
lea eax, [edi + ebp]
mov dword [ecx], edx
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push str.NVRAM_partition_found.
push ecx
mov dword [eax], edx
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], str.APCore::AutoFormatArg::QueryPartLayout
mov dword [esp + 0x28], str....._flashtoolArgAutoFormatArg.cpp
mov dword [esp + 0x2c], 0x4c
call fcn.0040b750
add esp, 8
test ebp, ebp
je 0x468c44
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004ac9a4
add esp, 0x5c
ret 0x28