Function at 0x10085be0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b428
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.MG_MTP_TRANSFER_MRG
push str._Caller_cancel_the_MTP_Transfer_
mov esi, ecx
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov edi, dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
mov ecx, eax
call edi
mov eax, dword [esi + 0x58]
cmp dword [eax + 0x24], 0
je 0x10085c3b
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov eax, dword [esi + 0x48]
mov byte [esi + 0x4c], 1
cmp eax, 1
je 0x10085da9
cmp eax, 2
jne 0x10085da9
cmp dword [esi + 0x44], 5
je 0x10085da9
push str.MG_MTP_TRANSFER_MGR
push str.Caller_cancel_the_acquring__We_will_delete_the_local_file___
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call edi
push 0
lea edi, [esi + 0xc]
lea eax, [ebp - 0x2c]
push edi
push eax
call dword [sym.imp.MGCore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MGStringUtil::convertANSIToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10085c98
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x10085d52
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x10
cmp dword [edi + 0x14], ebx
jb 0x10085cc1
mov eax, dword [edi]
jmp 0x10085cc3
mov eax, edi
push eax
push str.File_indeed_exsit____LocalPath___s
lea esi, [ebp - 0x48]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x10085cdf
mov eax, dword [eax]
push str.MG_MTP_TRANSFER_MGR
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.1000c240
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10085d0b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10085d34
cmp dword [edi + 0x14], ebx
jb 0x10085d1d
mov edi, dword [edi]
push edi
push str.We_delete_the_Local_File_Failed____LocalPath___s
lea esi, [ebp - 0x48]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 2
jmp 0x10085d73
cmp dword [edi + 0x14], ebx
jb 0x10085d3b
mov edi, dword [edi]
push edi
push str.We_delete_the_Local_File_Successful____LocalPath___s
lea esi, [ebp - 0x48]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 3
jmp 0x10085d73
mov ebx, 0x10
cmp dword [edi + 0x14], ebx
jb 0x10085d5e
mov edi, dword [edi]
push edi
push str.Can_not_check_the_File_exsit_in_local__localPath___s
lea esi, [ebp - 0x48]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], ebx
jb 0x10085d7a
mov eax, dword [eax]
push str.MG_MTP_TRANSFER_MGR
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
lea ecx, [ebp - 0x48]
call fcn.1000c240
cmp dword [ebp - 0x18], 8
jb 0x10085da9
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret