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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10190d7c
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
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.CONTACT_DEL_IMPL
push str.ContactDelImpl::procCacheBEGIN_____
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__]
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10046fba
or ecx, 0xffffffff
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov byte [eax + 8], bl
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], bl
jmp 0x10046fbc
xor eax, eax
push eax
lea eax, [ebp - 0xf8]
push eax
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
call fcn.10048310
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xf8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
lea ecx, [ebp - 0x80]
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.10047440
cmp dword [ebp - 0x70], ebx
jne 0x1004702b
push str.CONTACT_DEL_IMPL
push str.Contact_Thumbnail_Path_is_NULL__not_need_to_pull_the_file_
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::warning_char_const___char_const__]
mov edi, 0x10
jmp 0x10047302
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
push ebx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
mov esi, 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_]
push ecx
call esi
add esp, 0xc
lea edx, [ebp - 0xfc]
push edx
push eax
mov edi, 1
mov dword [ebp - 0xfc], 0x2f
call fcn.10014750
cmp dword [ebp - 0xdc], 8
mov edi, eax
jb 0x10047096
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], cx
cmp edi, 0xffffffff
je 0x10047130
push ebx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x2c]
push eax
call esi
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [edi + 1]
lea esi, [ebp - 0x48]
mov edx, eax
mov byte [ebp - 4], 3
call fcn.100143f0
mov edi, eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.1000ae80
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x100470fd
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov edi, 7
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], esi
jb 0x10047124
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov eax, dword [0x101feda4]
cmp eax, ebx
jne 0x1004713e
call fcn.10006d40
lea edx, [ebp - 0xb8]
mov ecx, eax
call fcn.10062280
push eax
mov eax, 0x101a37bc
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.1003b0c0
add esp, 4
mov ecx, eax
lea eax, [ebp - 0x9c]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.10008020
mov esi, 8
cmp dword [ebp - 0xc0], esi
jb 0x10047194
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 7
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
mov byte [ebp - 4], 9
cmp dword [ebp - 0xa4], esi
jb 0x100471cc
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x64]
xor edx, edx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0x50], esi
jae 0x100471ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1004742b
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x10047207
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
cmp eax, 1
jne 0x10047391
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
mov edi, 0x10
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], edi
jb 0x10047239
mov eax, dword [eax]
push eax
push str.Delete_the_local_Thumbnail_Successful_____ThumnailPath___s
lea esi, [ebp - 0x2c]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], edi
jb 0x10047255
mov eax, dword [eax]
push str.CONTACT_DEL_IMPL
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__]
cmp dword [ebp - 0x18], edi
jb 0x1004727b
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], edi
jb 0x1004729f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x100472b6
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ebx, 7
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x88], esi
jb 0x100472e7
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], dx
xor ebx, ebx
push str.CONTACT_DEL_IMPL
push str.ContactDelImpl::procCacheEND_____
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__]
cmp dword [ebp - 0x6c], edi
jb 0x1004732c
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0xf4]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp esi, ebx
je 0x10047373
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10047373
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10047373
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
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 8
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
mov ebx, 0x10
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], ebx
jb 0x100473b2
mov eax, dword [eax]
push eax
push str.Delete_the_local_Thumbnail_Failed_____ThumnailPath___s
lea esi, [ebp - 0x2c]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], ebx
jb 0x100473ce
mov eax, dword [eax]
push str.CONTACT_DEL_IMPL
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__]
cmp dword [ebp - 0x18], ebx
jb 0x100473f4
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x10047417
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x48], 0
mov edi, 0x10
jmp 0x1004729f
mov edi, 0x10
jmp 0x100472a4