Function at 0x1008d870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018e2ac
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x94]
push ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], eax
call fcn.10088a70
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x94]
cmp dword [eax], 0
jne 0x1008d911
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x1008d90a
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1008d90a
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1008d90a
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
xor al, al
jmp 0x1008de13
lea ecx, [eax + 8]
mov dword [ebp - 0xa0], ecx
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGRecMutex::lock_void_const]
mov byte [ebp - 0x9c], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
lea edi, [eax + ecx*4]
lea esp, [esp]
cmp eax, edi
je 0x1008d96c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp edx, dword [esi]
jne 0x1008d955
cmp ecx, dword [esi + 4]
je 0x1008d95a
add eax, 4
jmp 0x1008d940
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x44]
call fcn.1000bd90
xor ecx, ecx
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], cx
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x88]
push ecx
add esi, 0x44
lea edx, [ebp - 0x30]
push esi
push edx
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
lea ecx, [ebp - 0x98]
push ecx
push eax
mov edi, 1
mov dword [ebp - 0x98], 0x2f
call fcn.10014750
mov ebx, 8
mov edi, eax
cmp dword [ebp - 0x1c], ebx
jb 0x1008d9d4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp edi, 0xffffffff
je 0x1008da49
push 0
lea eax, [ebp - 0x30]
push esi
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
push 0xffffffffffffffff
lea ecx, [edi + 1]
lea esi, [ebp - 0x68]
mov edx, eax
mov byte [ebp - 4], 3
call fcn.100143f0
mov edi, eax
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.1000ae80
cmp dword [ebp - 0x54], ebx
jb 0x1008da1f
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], dx
cmp dword [ebp - 0x1c], ebx
jb 0x1008da49
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x88]
mov eax, dword [esi + 0x18]
add esi, 8
cmp eax, 1
jb 0x1008da98
dec eax
cmp eax, 0xffffffff
jbe 0x1008da63
or eax, 0xffffffff
mov ebx, dword [esi + 0x14]
cmp ebx, 0x10
jb 0x1008da6f
mov ecx, dword [esi]
jmp 0x1008da71
mov ecx, esi
lea edi, [ecx + eax]
cmp byte [edi], 0x5c
je 0x1008da87
mov ecx, esi
call fcn.1000c310
cmp edi, eax
je 0x1008da98
dec edi
jmp 0x1008da74
cmp ebx, 0x10
jb 0x1008da92
mov eax, dword [esi]
sub edi, eax
jmp 0x1008da9b
mov eax, esi
sub edi, eax
jmp 0x1008da9b
or edi, 0xffffffff
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx + 0x18]
dec eax
cmp edi, eax
je 0x1008dab4
push 0x5c
push 1
mov ecx, esi
call fcn.1002cb30
push 0
lea edx, [ebp - 0x68]
push esi
push edx
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 ecx, eax
lea eax, [ebp - 0x84]
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10008020
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54], 8
jb 0x1008daef
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], cx
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 esi, eax
mov ebx, dword [ebp - 0x88]
lea edi, [ebx + 0x28]
cmp edi, esi
je 0x1008db76
cmp dword [edi + 0x14], 0x10
jb 0x1008db36
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
mov byte [edi], al
cmp dword [esi + 0x14], 0x10
jae 0x1008db5e
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
xor eax, eax
jmp 0x1008db64
mov ecx, dword [esi]
mov dword [edi], ecx
mov dword [esi], eax
mov edx, dword [esi + 0x10]
mov dword [edi + 0x10], edx
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov esi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], esi
jb 0x1008db91
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.MGCore.dll_public:_static_void___cdecl_FilePath::GetValidLenPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____]
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x1008dca0
cmp dword [ebp - 0x38], 8
mov ecx, dword [ebp - 0x4c]
jae 0x1008dbb4
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x88]
push edx
call fcn.10003440
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 9
call dword [sym.imp.MGCore.dll_public:_static_void___cdecl_FilePath::GetUniquePath_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
mov eax, dword [ebp - 0x88]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
add esp, 4
or edx, ecx
jge 0x1008dbfc
xor eax, eax
lea ecx, [ebp - 0x88]
call fcn.100041d0
mov eax, dword [ebp - 0x88]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1008dc01
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x4c]
call fcn.1000b950
mov eax, dword [ebp - 0x88]
cmp dword [eax - 8], 0
jl 0x1008dc96
mov dword [eax - 0xc], 0
mov edx, dword [ebp - 0x88]
xor ecx, ecx
push ecx
mov eax, esi
mov word [edx], cx
push eax
lea ecx, [ebp - 0x30]
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
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.1000b240
cmp dword [ebp - 0x1c], 0x10
jb 0x1008dc67
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1008dd7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1008dd7a
push 0x80070057
call fcn.100045e0
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x1008dcac
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1008dd11
cmp dword [edi + 0x14], esi
jb 0x1008dcbf
mov edi, dword [edi]
push edi
push str.Music_has_exist_in_Local_path______The_Music_Local_Path_is__s
lea esi, [ebp - 0x30]
call fcn.1000c270
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], esi
jb 0x1008dce0
mov eax, dword [eax]
push str.MUSIC_EXPORT_TASK_EX
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 - 0x1c], esi
jb 0x1008dd06
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x8c]
mov byte [edx], 1
jmp 0x1008dd7a
cmp dword [edi + 0x14], esi
jb 0x1008dd18
mov edi, dword [edi]
push edi
push str.Music_not_exist_in_Local_path______The_Music_Local_Path_is__s
lea esi, [ebp - 0x30]
call fcn.1000c270
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], esi
jb 0x1008dd39
mov eax, dword [eax]
push str.MUSIC_EXPORT_TASK_EX
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 - 0x1c], esi
jb 0x1008dd5f
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov byte [ecx], 0
mov ebx, 8
cmp dword [ebp - 0x38], ebx
jb 0x1008dd91
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x70], ebx
jb 0x1008ddb9
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov byte [ebp - 4], dl
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGRecMutex::unlock_void_const]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x90]
cmp esi, edi
je 0x1008de11
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1008de11
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1008de11
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret 4