Function at 0x515c450
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x522e117
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x328]
mov dword fs:[0], eax
mov esi, dword [esp + 0x338]
mov edi, dword [esp + 0x33c]
mov ebx, dword [esp + 0x340]
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.050674e0
test al, al
jne 0x515c518
push str._ERROR:
push 0xff
push 0x8ed
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov dword [esp + 0x330], 0
mov ecx, dword [0x56bc0f0]
push 0x529a59c
push esi
push str.__d___s__:_invalid_handle_
push ecx
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0xd
jmp 0x515dcf4
test ebx, ebx
je 0x515dc85
test edi, edi
je 0x515dc85
mov eax, dword [edi + 4]
test eax, eax
je 0x515dc85
cmp byte [eax], 0
je 0x515dc85
mov eax, dword [edi]
test eax, eax
je 0x515dc85
cmp byte [eax], 0
je 0x515dc85
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x515c5af
push str._ERROR:
push 0xff
push 0x8fd
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [edi]
mov eax, dword [eax + 8]
push edx
push 0x529a59c
push esi
push str.__d___s__:_Ini_File___s__does_not_exist
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
jmp 0x515dcdb
mov eax, dword [edi + 4]
push eax
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd3b8
call dword [0x523a2ec]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebp, dword [ecx]
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
push 1
add eax, 0xd3b8
push ebp
push 0x529230c
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
push esi
mov ecx, 0x53f4cc8
mov ebp, eax
call fcn.05065960
add eax, 0xd3b8
mov eax, dword [eax + 0x14]
dec eax
cmp ebp, eax
je 0x515c62c
push 0x529230c
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd3b8
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, dword [edi + 4]
push edx
push esi
call fcn.05194ec0
add esp, 8
mov ebp, eax
push 0x52c722a
test ebp, ebp
je 0x515c6d1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd3b8
call dword [0x523a2ec]
push str._ERROR:
push 0xff
push 0x90f
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 3
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [edi + 4]
mov eax, dword [eax + 8]
push ebp
push ecx
push 0x529a59c
push esi
push str.__d___s__:_Backup_Folder_Empty_Checking_Fail__s___ret_code__d_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x1c
mov dword [esp + 0x330], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x3d
jmp 0x515dcf4
push 1
push 0x91a
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
mov dword [ebx], 0
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 4
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_0:_Check_Basic_Arguments_pass_
push eax
push edi
call fcn.051ae2d0
or ebp, 0xffffffff
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 0x5272ee4
push 0x1388
push esi
call sym.META_DLL.dll_META_QueryIfFunctionSupportedByTarget_r
test eax, eax
jne 0x515c753
lea edx, [esp + 0x18]
push edx
push 0x1388
push esi
call sym.META_DLL.dll_META_Util_QueryTargetLimitedStateIndicator_r
lea eax, [esp + 0x2c]
push eax
push 0x1388
push esi
call sym.META_DLL.dll_META_MISC_GetIMEILocation_r
mov ebx, eax
test ebx, ebx
je 0x515c831
push str._ERROR:
lea ecx, [esp + 0x34]
push 0xff
cmp ebx, 0xb
jne 0x515c7d7
push 0x92c
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 5
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_query_IMEI_Location_fail__so_load_need_to_be_patched.
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
lea eax, [ebx + 0x29]
jmp 0x515dcf4
push 0x931
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 6
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push ebx
push 0x529a59c
push esi
push str.__d___s__:_query_IMEI_Location_fail__please_check_why__mr_d_.
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 1
jmp 0x515dcf4
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.05194b30
add esp, 8
test al, al
je 0x515c84d
mov eax, 0x3b
jmp 0x515dcf4
push 0x52c722a
push 1
push 0x93d
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 7
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_1:_Check_Load_New_Old_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
cmp dword [esp + 0x2c], 0
lea ecx, [esp + 0x17]
sete dl
xor eax, eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
push eax
push ecx
push 0x1388
push esi
mov byte [esp + 0x27], dl
call fcn.051546a0
test eax, eax
je 0x515c949
push str._ERROR:
push 0xff
push 0x94c
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 8
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movzx edx, word [esp + 0x24]
movzx ecx, word [esp + 0x26]
mov eax, dword [eax + 8]
push edx
push ecx
push 0x529a59c
push str._s__:_Check_the_correctness_of_customer_NVRAM_settings._lid_num___d___stop_enum_value__d_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x3c
jmp 0x515dcf4
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.05194b30
add esp, 8
test al, al
jne 0x515c843
push 0x52c722a
push 1
push 0x958
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 9
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_2:_Check_Target_NVRAM_Attribute_Completeness_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
lea eax, [esp + 0xb8]
push eax
push 0x1388
push esi
call fcn.05154650
test eax, eax
je 0x515ca37
push str._ERROR:
push 0xff
push 0x963
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0xa
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_query_NVRAM_folder_fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x39
jmp 0x515dcf4
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd500
call fcn.0506eef0
push 0x5299ee4
push sym.META_DLL.dll_META_MISC_QueryNVRAMFolderAmount_r
push 0x1388
push esi
call fcn.05165130
push esi
mov ecx, 0x53f4cc8
test eax, eax
jne 0x515cbcb
call fcn.05065960
add eax, 0xd518
push eax
push 0x1388
push esi
call sym.META_DLL.dll_META_MISC_QueryNVRAMFolderAmount_r
test eax, eax
jne 0x515cb64
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x34]
xor edi, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x330], 0xb
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x1c], edi
call fcn.05065960
cmp byte [eax + 0xd518], 0
jbe 0x515cc71
jmp 0x515cad0
push 1
push edi
push 0x529080c
lea ecx, [esp + 0x3c]
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 ebx, eax
mov edx, ebx
sub edx, edi
push edx
push edi
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x330], 0xc
lea ecx, [esp + 0x9c]
push ecx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd500
call fcn.05012550
lea edi, [ebx + 1]
mov byte [esp + 0x330], 0xb
lea ecx, [esp + 0x9c]
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 ebx, dword [esp + 0x18]
inc ebx
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x1c], ebx
call fcn.05065960
movzx edx, byte [eax + 0xd518]
cmp ebx, edx
jl 0x515cad0
jmp 0x515cc71
push str._ERROR:
push 0xff
push 0x97b
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0xd
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_query_NVRAM_folder_amount_fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x55
jmp 0x515dcf4
call fcn.05065960
mov byte [eax + 0xd518], 1
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ebx, 0xe
mov dword [esp + 0x330], ebx
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx]
push 1
push eax
push 0x529230c
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [esp + 0x44]
dec ecx
cmp eax, ecx
jne 0x515cc54
push ecx
push 0
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x330], 0xf
push eax
lea ecx, [esp + 0x34]
call dword [0x523a2b0]
mov byte [esp + 0x330], bl
lea ecx, [esp + 0x9c]
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 eax, [esp + 0x30]
push eax
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd500
call fcn.05012550
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
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 ebx, dword [esp + 0x20]
push ebx
push esi
call fcn.05194b30
add esp, 8
test al, al
jne 0x515c843
push 0x52c722a
push 1
push 0x991
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x10
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_3:_Get_Target_NVRAM_Folder_Base_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push 0
push 1
push edx
push esi
call fcn.051a7bc0
mov edi, eax
add esp, 0x10
lea ecx, [esp + 0x30]
test edi, edi
je 0x515d034
push str._ERROR:
push 0xff
push 0x99d
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 0x11
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push 0x529a59c
push esi
push str.__d___s__:_Parse_INI_file_fail__please_check_why._err_code__d_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push str._ERROR:
lea ecx, [esp + 0x34]
push 0xff
cmp edi, 0xfffffffe
jne 0x515cde1
push 0x9a0
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x12
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [str.Target_NVRAM_Backup_and_Restore_List]
mov eax, dword [eax + 8]
push ecx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x4c
jmp 0x515dcf4
cmp edi, 0xfffffffd
jne 0x515ce46
push 0x9a6
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x13
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [str.Target_Backup_and_Restore_List]
mov eax, dword [eax + 8]
push edx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x4d
jmp 0x515dcf4
cmp edi, 0xfffffffc
jne 0x515ceab
push 0x9ac
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x14
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [str.Upload_PC_files_to_Target_List]
mov eax, dword [eax + 8]
push ecx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x4e
jmp 0x515dcf4
cmp edi, 0xfffffff5
jne 0x515cf10
push 0x9b2
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x15
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [str.Upload_PC_folder_to_Target_List]
mov eax, dword [eax + 8]
push edx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x68
jmp 0x515dcf4
cmp edi, 0xfffffff8
jne 0x515cf75
push 0x9b8
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x16
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [str.Backup_Restore_File_Prefix_MORE]
push ecx
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x52
jmp 0x515dcf4
cmp edi, 0xfffffff7
jne 0x515cfda
push 0x9be
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x17
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [str.Backup_Restore_File_Prefix_DELETE]
push edx
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x53
jmp 0x515dcf4
push 0x9c6
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 0x18
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_settings:_others_code__d_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x35
jmp 0x515dcf4
push 0x52c722a
push 1
push 0x9cc
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x19
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_4:_Parse_INI_settings_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 1
push 1
push esi
call fcn.05198460
mov edi, eax
add esp, 0xc
test edi, edi
je 0x515d2e8
push str._ERROR:
push 0xff
push 0x9d2
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 0x1a
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push 0x529a59c
push esi
push str.__d___s__:_Check_INI_file_fail__please_check_why._err_code__d_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
cmp edi, 0xfffffffe
jne 0x515d172
push str._ERROR:
push 0xff
push 0x9d5
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x1b
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [str.Target_NVRAM_Backup_and_Restore_List]
mov eax, dword [eax + 8]
push ecx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x4c
jmp 0x515dcf4
cmp edi, 0xfffffffd
jne 0x515d1e5
push str._ERROR:
push 0xff
push 0x9db
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x1c
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [str.Target_Backup_and_Restore_List]
mov eax, dword [eax + 8]
push edx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x4d
jmp 0x515dcf4
cmp edi, 0xfffffffc
jne 0x515d258
push str._ERROR:
push 0xff
push 0x9e1
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x1d
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [str.Upload_PC_files_to_Target_List]
mov eax, dword [eax + 8]
push ecx
push 0x529a59c
push esi
push str.__d___s__:_Error_occurred_in_INI_section___s_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x4e
jmp 0x515dcf4
cmp edi, 0xfffffff8
jne 0x515d29e
push str._ERROR:
push 0xff
push 0x9e7
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x1e
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [str.Backup_Restore_File_Prefix_MORE]
push edx
jmp 0x515cf43
cmp edi, 0xfffffff7
jne 0x515d02a
push str._ERROR:
push 0xff
push 0x9ed
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x1f
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [str.Backup_Restore_File_Prefix_DELETE]
push ecx
jmp 0x515cfa8
push ebx
push esi
call fcn.05194b30
add esp, 8
test al, al
jne 0x515c843
push 0x52c722a
push 1
push 0x9fd
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x20
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_5:_Check_INI_settings_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 0x529a59c
push esi
call fcn.051a1be0
mov edi, eax
add esp, 8
test edi, edi
je 0x515d3d0
push str._ERROR:
push 0xff
push 0xa06
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 0x21
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push 0x529a59c
push esi
push str.__d___s__:_collect_target_calibration_file_prefix_fail._err_code__d_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x3a
jmp 0x515dcf4
push ebx
push esi
call fcn.05194b30
add esp, 8
test al, al
jne 0x515c843
push 0x52c722a
push 1
push 0xa10
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x22
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_6:_Collect_Target_NVRAM_Backup_List_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xd500
push eax
push esi
call fcn.051a22a0
mov edi, eax
add esp, 8
test edi, edi
je 0x515d4c4
push str._ERROR:
push 0xff
push 0xa16
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 0x23
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push 0x529a59c
push esi
push str.__d___s__:_collect_all_file_information_in_nvram_folder_fail__err_code__d_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x57
jmp 0x515dcf4
push 1
push esi
call fcn.0519e6a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x515d53d
push str._ERROR:
push 0xff
push 0xa1e
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x24
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push ebx
push 0x529a59c
push esi
push str.__d___s__:_check_all_file_information_in_nvram_folder_fail__err_code__d_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x54
jmp 0x515dcf4
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.05194b30
add esp, 8
test al, al
jne 0x515c843
push 0x52c722a
push 1
push 0xa28
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x25
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_7:_Check_NVRAM_folder_has_all_files_we_need_to_take_care_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 1
lea eax, [esp + 0x88]
push eax
push 0x1388
push esi
call fcn.05153a80
lea ecx, [esp + 0x30]
test eax, eax
je 0x515d62d
push str._ERROR:
push 0xff
push 0xa30
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x26
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Get_NVRAM_backup_list_fail
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0x36
jmp 0x515dcf4
push 0x52c722a
push 1
push 0xa35
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x27
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_8:_Get_IMEI_Value_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 1
push esi
call fcn.05196fb0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x30]
test edi, edi
jne 0x515d6ea
push str._ERROR:
push 0xff
push 0xa42
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x28
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Error__it_is_impossible_that_no_files_need_to_be_backup_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
jmp 0x515c817
push 0x52c722a
push 1
push 0xa47
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x330], 0x29
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push 0x529a59c
push esi
push str.__d___s__:__d_files_need_to_be_backup_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0xa4a
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x330], 0x2a
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_Step_9:_Calculate_Number_of_Need_Backup_Files_pass_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push esi
lea ecx, [esp + 0x1c0]
push str._meta_backup_res__d.txt
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xd3b8
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x330], 0x2b
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x515d7f9
lea eax, [esp + 0x50]
push 0x529954c
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x515d885
push str._ERROR:
push 0xff
push 0xa5a
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x330], 0x2c
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push 0x529a59c
push esi
push str.__d___s__:_Error__can_not_open__meta_backup_result__d.txt_for_writing_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x330], 0x2b
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov dword [esp + 0x330], ebp
lea ecx, [esp + 0x4c]
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 eax, 0x38
jmp 0x515dcf4
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xd3b8
push eax
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x330], 0x2d
push 0x529080c
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x529a128
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x80], 0x10
mov eax, dword [esp + 0x6c]
jae 0x515d8d8
lea eax, [esp + 0x6c]
mov ebx, dword [sym.imp.MSVCR90.dll_fputs]
push edi
push eax
call ebx
push edi
call dword [sym.imp.MSVCR90.dll_fflush]
push 0x168
lea eax, [esp + 0x1cc]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [eax + 0x334]
push ecx
lea edx, [esp + 0x1c0]
push 0x52987cc
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x1c8]
push edi
push eax
call ebx
push edi
call dword [sym.imp.MSVCR90.dll_fflush]
push 0x168
lea ecx, [esp + 0x1d8]
push 0
push ecx
call sub.MSVCR90.dll_memset
xor ebx, ebx
add esp, 0x24
cmp byte [esp + 0x98], bl
jbe 0x515d9bb
lea esp, [esp]
push 0x168
lea edx, [esp + 0x1c0]
push 0
push edx
call sub.MSVCR90.dll_memset
movzx eax, byte [esp + ebx + 0x90]
push 0x529080c
push eax
lea ecx, [esp + 0x1d0]
push str._d_s
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea edx, [esp + 0x1d8]
push edi
push edx
call dword [sym.imp.MSVCR90.dll_fputs]
push edi
call dword [sym.imp.MSVCR90.dll_fflush]
movzx eax, byte [esp + 0xc0]
inc ebx
add esp, 0x28
cmp ebx, eax
jl 0x515d960
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c0]
push 0x52987cc
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x1c8]
push edi
push eax
call dword [sym.imp.MSVCR90.dll_fputs]
push edi
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x18
push 0x52c722a
push 1
push 0xa85
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebx, eax
mov byte [esp + 0x330], 0x2e
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 8]
push ecx
push 0x529a59c
push esi
push str.__d___s:___Start_to_Download__Goal:__d_files___
push eax
push ebx
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x330], 0x2d
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edi
push edx
push eax
push ecx
push 1
push esi
call fcn.05154710
mov ebx, eax
lea ecx, [esp + 0x30]
test ebx, ebx
je 0x515db1e
push str._ERROR:
push 0xff
push 0xa8b
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov dword [esp + 0x1c], eax
mov byte [esp + 0x330], 0x2f
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x1c]
push 0x529a59c
push esi
push str.__d___s__:_META_BackupCalibrationData_EX_Fail_
push eax
push edx
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x330], 0x2d
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push 0x52c722a
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xd3b8
call dword [0x523a2ec]
mov byte [esp + 0x330], 0x2b
lea ecx, [esp + 0x68]
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 dword [esp + 0x330], ebp
lea ecx, [esp + 0x4c]
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 eax, ebx
jmp 0x515dcf4
push 0x52c722a
push 1
push 0xa8f
push str..FunctionPlatformMETA_misc.cpp
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x330], 0x30
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:___Step_Final_:_Display_Result_File___
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x330], 0x2d
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, dword [esp + 0x50]
mov ebx, 0x10
cmp dword [esp + 0x64], ebx
jae 0x515db85
lea eax, [esp + 0x50]
push eax
push esi
call fcn.051951a0
mov edi, eax
add esp, 8
test edi, edi
je 0x515dc06
push str._ERROR:
push 0xff
push 0xa95
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov dword [esp + 0x1c], eax
mov byte [esp + 0x330], 0x31
cmp dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x50]
jae 0x515dbcc
lea ebx, [esp + 0x50]
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push edi
push ebx
push 0x529a59c
push esi
push str.__d___s__:_can_not_display_file_content_of__s__ret_code:_d_
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x330], 0x2d
lea ecx, [esp + 0x30]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0xa9a
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x330], 0x32
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x529a59c
push esi
push str.__d___s__:_OK
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x330], 0x2d
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov byte [esp + 0x330], 0x2b
lea ecx, [esp + 0x68]
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 dword [esp + 0x330], ebp
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x515dcf4
push str._ERROR:
push 0xff
push 0x8f5
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x40]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x330], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
push edx
push ebx
push edi
push 0x529a59c
push esi
push str.__d___s__:_invalid_arguments____req_0x_08X___p_backupstop_0x_08X___req__m_pBackupFolderPath_0x_08X__req__m_pIniFilePath_0x_08X_
push eax
push ebp
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x330], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.051ae2c0
mov eax, 0xa
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0520b902
add esp, 0x320
ret 0xc