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

Disassembly:
push 0xffffffffffffffff
push 0x522d780
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov dword [esp + 0x210], 1
mov eax, 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 [eax]
push 1
push eax
push 0x529230c
lea ecx, [esp + 0x228]
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 + 0x230]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x228]
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 + 0x210], 2
push 0x52c722a
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__::constructor_char_const__]
mov byte [esp + 0x210], 3
mov edi, dword [esp + 0x218]
mov dword [esp + 0x18], 0
mov eax, dword [str.msml]
push eax
lea ecx, [esp + 0x68]
call dword [0x523a2ec]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0x5398708
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push 0x5298f84
lea ecx, [esp + 0x68]
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__]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x68]
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 edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov esi, eax
mov ebp, dword [esi + 0xd42c]
add esi, 0xd420
cmp ebp, dword [esi + 0x10]
jbe 0x515656c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esi]
mov dword [esp + 0x38], ebp
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov esi, eax
mov ebp, dword [esi + 0xd430]
add esi, 0xd420
cmp dword [esi + 0xc], ebp
jbe 0x5156596
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
test ebx, ebx
je 0x51565a0
cmp ebx, esi
je 0x51565a6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x38]
cmp esi, ebp
je 0x5156609
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebx, ebx
jne 0x5156601
call ebp
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x51565c3
call ebp
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x51565d2
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
push ecx
push 0
push eax
mov ecx, esi
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]
test eax, eax
jge 0x5156609
test ebx, ebx
jne 0x5156605
call ebp
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x51565f5
call ebp
add esi, 0x44
mov dword [esp + 0x38], esi
jmp 0x5156572
mov eax, dword [ebx]
jmp 0x51565bc
mov eax, dword [ebx]
jmp 0x51565ee
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov esi, eax
mov ebp, dword [esi + 0xd430]
add esi, 0xd420
cmp dword [esi + 0xc], ebp
jbe 0x515662d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
test ebx, ebx
je 0x5156637
cmp ebx, esi
je 0x515663d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x38], ebp
je 0x515665c
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0xa
mov dword [esp + 0x18], eax
jl 0x5156502
mov ebx, 0x10
jmp 0x51566c8
push 0x52c722a
push 1
push 0xc14
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x30]
call fcn.051ae270
mov esi, eax
mov byte [esp + 0x210], 4
mov ebp, dword [esp + 0x68]
mov ebx, 0x10
cmp dword [esp + 0x7c], ebx
jae 0x5156693
lea ebp, [esp + 0x68]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push ebp
push str.VerifyTempSMLFile
push edi
push str.__d___s__:_Use__s_to_store_temp_SML_file_for_NVRAM_verification
push eax
push esi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov edx, 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 [edx]
push 1
push eax
push 0x529230c
lea ecx, [esp + 0x244]
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]
inc eax
push eax
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x244]
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 + 0x210], 5
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x5156720
lea eax, [esp + 0x4c]
push 1
push eax
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
push 0x168
lea eax, [esp + 0xac]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x238]
add esp, 0x18
cmp dword [esp + 0x234], ebx
jae 0x515675c
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0xa0]
push 0x5397fdc
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x9c]
mov dword [esp + 0x40], edx
cmp dword [esp + 0x250], ebx
jb 0x5156794
mov eax, dword [esp + 0x23c]
mov dword [esp + 0x44], eax
jmp 0x515679f
lea ecx, [esp + 0x23c]
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x3c]
push edx
push edi
call sym.META_DLL.dll_META_FAT_CheckEnoughSpaceEx_r
test eax, eax
je 0x515688a
push str._ERROR:
push 0xff
push 0xc26
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x30]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x210], 6
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x51567e7
lea esi, [esp + 0x4c]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.VerifyTempSMLFile
push edi
push str.__d___s__:_Target_Disk_may_not_be_enough_for_store_a_temp_SML_file_
push eax
push ebp
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x48]
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 byte [esp + 0x210], 2
lea ecx, [esp + 0x64]
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 byte [esp + 0x210], 1
lea ecx, [esp + 0x80]
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 byte [esp + 0x210], 0
lea ecx, [esp + 0x21c]
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 + 0x210], 0xffffffff
lea ecx, [esp + 0x238]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or eax, 0xffffffff
jmp 0x5156d45
push 1
push 0
sub esp, 0x1c
lea eax, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
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 + 0x234], 7
sub esp, 0x1c
lea edx, [esp + 0x25c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
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 + 0x250], 8
push edi
mov byte [esp + 0x254], 5
call fcn.0514e110
mov esi, eax
add esp, 0x44
test esi, esi
je 0x51569de
push str._ERROR:
push 0xff
push 0xc2e
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x30]
call fcn.051ae270
mov dword [esp + 0x18], eax
mov byte [esp + 0x210], 9
cmp dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x4c]
jae 0x515691b
lea ebx, [esp + 0x4c]
cmp dword [esp + 0x234], 0x10
mov ebp, dword [esp + 0x220]
jae 0x5156933
lea ebp, [esp + 0x220]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push ebx
push ebp
push str.VerifyTempSMLFile
push edi
push str.__d___s__:_UploadFileToTargetNoProgress___s_to__s__fail__ret_code__d_
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.051ae2d0
add esp, 0x20
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x48]
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 byte [esp + 0x210], 2
lea ecx, [esp + 0x64]
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 byte [esp + 0x210], 1
lea ecx, [esp + 0x80]
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 byte [esp + 0x210], 0
lea ecx, [esp + 0x21c]
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 + 0x210], 0xffffffff
lea ecx, [esp + 0x238]
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, 0xfffffffe
jmp 0x5156d45
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x51569ec
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x17]
push ecx
push eax
push 0x7d0
push edi
call fcn.05154670
test eax, eax
je 0x5156b6d
push str._ERROR:
push 0xff
push 0xc37
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x30]
call fcn.051ae270
mov esi, eax
mov byte [esp + 0x210], 0xa
mov ebp, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x5156a3a
lea ebp, [esp + 0x4c]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0
push ebp
push str.VerifyTempSMLFile
push edi
push str.__d___s__:_META_VerifyTempSMLFile_r___s__fail__ret_code__d_
push eax
push esi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x5156a7f
lea eax, [esp + 0x4c]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
call sym.META_DLL.dll_META_FAT_Delete_r
test eax, eax
je 0x5156bf9
push str._ERROR:
push 0xff
push 0xc3e
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x30]
call fcn.051ae270
mov esi, eax
mov byte [esp + 0x210], 0xb
cmp dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x4c]
jae 0x5156ac8
lea ebx, [esp + 0x4c]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push ebx
push str.VerifyTempSMLFile
push edi
push str.__d___s__:_META_FAT_Delete_r__s__fail_
push eax
push esi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x48]
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 byte [esp + 0x210], 2
lea ecx, [esp + 0x64]
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 byte [esp + 0x210], 1
lea ecx, [esp + 0x80]
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 byte [esp + 0x210], 0
lea ecx, [esp + 0x21c]
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 + 0x210], 0xffffffff
lea ecx, [esp + 0x238]
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, 0xfffffffd
jmp 0x5156d45
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x5156b7b
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
call sym.META_DLL.dll_META_FAT_Delete_r
test eax, eax
je 0x5156c69
push str._ERROR:
push 0xff
push 0xc4b
push str..FunctionPlatformMETA_misc.cpp
lea ecx, [esp + 0x30]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x210], 0xc
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x5156bc4
lea esi, [esp + 0x4c]
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.VerifyTempSMLFile
push edi
push str.__d___s__:_META_FAT_Delete_r__s__fail_
push eax
push ebp
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x20]
call fcn.051ae2c0
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x48]
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 byte [esp + 0x210], 2
lea ecx, [esp + 0x64]
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 byte [esp + 0x210], 1
lea ecx, [esp + 0x80]
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 byte [esp + 0x210], 0
lea ecx, [esp + 0x21c]
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 + 0x210], 0xffffffff
lea ecx, [esp + 0x238]
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, 0xfffffffc
jmp 0x5156d45
cmp byte [esp + 0x17], 0
jne 0x5156cdd
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x48]
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 byte [esp + 0x210], 2
lea ecx, [esp + 0x64]
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 byte [esp + 0x210], 1
lea ecx, [esp + 0x80]
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 byte [esp + 0x210], 0
lea ecx, [esp + 0x21c]
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 + 0x210], 0xffffffff
lea ecx, [esp + 0x238]
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, 0xfffffffb
jmp 0x5156d45
mov byte [esp + 0x210], 3
lea ecx, [esp + 0x48]
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 byte [esp + 0x210], 2
lea ecx, [esp + 0x64]
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 byte [esp + 0x210], 1
lea ecx, [esp + 0x80]
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 byte [esp + 0x210], 0
lea ecx, [esp + 0x21c]
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 + 0x210], 0xffffffff
lea ecx, [esp + 0x238]
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
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0520b902
add esp, 0x200
ret