Function at 0x1005c160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018bb18
mov eax, dword fs:[0]
push eax
sub esp, 0x120
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 edi, ecx
push 0x60
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x1005c1b7
call fcn.1005d2a0
jmp 0x1005c1b9
xor eax, eax
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
call fcn.1005d0b0
lea eax, [edi + 8]
push ebx
push eax
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x128], 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 byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x84], ax
push 6
mov eax, str.Ebook
lea esi, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], ebx
call fcn.1000b950
mov byte [ebp - 4], 2
xor ecx, ecx
push 0x10
mov eax, str.mobogenie_Ebook_
lea esi, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
call fcn.1000b950
lea eax, [ebp - 0xa0]
mov ecx, esi
lea ebx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.10008020
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 8
jb 0x1005c26a
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xbc]
xor eax, eax
push edx
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
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 byte [ebp - 4], 6
push 1
push 0x101a5d28
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.1000c100
mov byte [ebp - 4], 7
mov eax, dword [0x101feda4]
cmp eax, ebx
jne 0x1005c2c6
call fcn.10006d40
lea esi, [ebp - 0x4c]
mov ecx, eax
call fcn.10062590
lea ecx, [ebp - 0x68]
push ecx
push eax
lea edx, [ebp - 0xf4]
push edx
mov byte [ebp - 4], 8
call fcn.1002c560
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
push eax
lea edx, [ebp - 0x110]
push edx
mov byte [ebp - 4], 9
call fcn.1002f4c0
add esp, 0xc
push eax
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 0xa
call fcn.1000b240
mov esi, 0x10
cmp dword [ebp - 0xfc], esi
jb 0x1005c32d
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xfc], 0xf
mov dword [ebp - 0x100], ebx
mov byte [ebp - 0x110], bl
cmp dword [ebp - 0xe0], esi
jb 0x1005c35b
mov ecx, dword [ebp - 0xf4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 0xf4], bl
cmp dword [ebp - 0x38], esi
jb 0x1005c383
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], esi
jb 0x1005c3a6
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
add edi, 0x24
lea ecx, [ebp - 0x30]
push edi
push ecx
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 edx, [ebp - 0x12c]
mov ebx, 0x5c
push edx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push eax
lea edi, [ebx - 0x5b]
mov dword [ebp - 0x12c], ebx
call fcn.10014750
mov ecx, dword [ebp - 0x20]
dec ecx
cmp eax, ecx
je 0x1005c3ea
lea esi, [ebp - 0x30]
call fcn.100120e0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ebx, [ebp - 0xa0]
call fcn.1005d000
add esp, 8
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.1000ae80
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x38], 8
jb 0x1005c425
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x30]
push edx
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____]
mov ecx, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x1c], 8
jae 0x1005c43e
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x114]
push eax
call fcn.10003440
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 0xd
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 edx, dword [ebp - 0x114]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 4
or ecx, eax
jge 0x1005c486
xor eax, eax
lea ecx, [ebp - 0x114]
call fcn.100041d0
mov edx, dword [ebp - 0x114]
mov eax, edx
lea esi, [eax + 2]
jmp 0x1005c490
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005c490
sub eax, esi
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x30]
call fcn.1003b210
test eax, eax
je 0x1005c5f0
mov edx, dword [ebp - 0x120]
cmp dword [edx + 0x78], 0
je 0x1005c5f0
push str._EBookExport_result_m_isCoverage_true
lea esi, [ebp - 0x4c]
call fcn.1000c270
add esp, 4
mov ebx, 0x10
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], ebx
jb 0x1005c4e5
mov eax, dword [eax]
push str.EBOOK_EXPORT
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__]
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x38], ebx
jb 0x1005c50f
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x128]
push 0xffffffffffffffff
push 0
add ecx, 0x1c
push edx
call fcn.1000bd90
mov eax, dword [ebp - 0x11c]
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov dword [eax + 0x40], 0
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 byte [ebp - 4], 0xf
cmp dword [eax + 0x14], ebx
jb 0x1005c555
mov edx, dword [eax]
jmp 0x1005c557
mov edx, eax
mov esi, dword [ebp - 0x11c]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005c562
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x44]
call fcn.1000c100
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x38], ebx
jb 0x1005c58b
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x120]
mov byte [ecx + 0x3d], 1
mov edx, dword [ebp - 0x11c]
mov byte [edx + 0x3c], 1
mov eax, dword [ebp - 0x11c]
mov dword [eax + 0x38], 0x64
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 0x11c]
push eax
call edx
mov ecx, dword [esi]
xor edi, edi
cmp ecx, edi
je 0x1005c5d1
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1005c767
mov eax, dword [ebp - 0x114]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x1005c618
xor eax, eax
lea ecx, [ebp - 0x114]
call fcn.100041d0
mov eax, dword [ebp - 0x114]
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1005c620
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.1000b950
xor edi, edi
push edi
mov ecx, esi
push ecx
lea edx, [ebp - 0x4c]
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 ecx, dword [ebp - 0x120]
mov ebx, 0x10
push eax
add ecx, 0x40
mov byte [ebp - 4], bl
call fcn.1000b240
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x38], ebx
jb 0x1005c678
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x1005c688
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
mov eax, dword [ebp - 0x30]
jne 0x1005c6ec
cmp dword [ebp - 0x1c], esi
jae 0x1005c69f
lea eax, [ebp - 0x30]
push eax
push str.Ebook_has_exist_in_Local_path______The_Ebook_Local_Path_is__s
lea esi, [ebp - 0x4c]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], ebx
jb 0x1005c6bb
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 - 0x38], ebx
jb 0x1005c6e1
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x124]
mov byte [edx], 1
jmp 0x1005c74d
cmp dword [ebp - 0x1c], esi
jae 0x1005c6f4
lea eax, [ebp - 0x30]
push eax
push str.Ebook_not_exist_in_Local_path______The_EBook_Local_Path_is__s
lea esi, [ebp - 0x4c]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], ebx
jb 0x1005c710
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 - 0x38], ebx
jb 0x1005c736
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x4c], 0
mov byte [ecx], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005c773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x1c], 8
jb 0x1005c786
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov esi, 7
mov word [ebp - 0x30], dx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0xa8], ebx
jb 0x1005c7af
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xc4], 8
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0xf
jb 0x1005c7df
mov ecx, dword [ebp - 0xd8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
cmp dword [ebp - 0x70], 8
mov word [ebp - 0xd8], dx
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], esi
jb 0x1005c80a
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x8c], 8
mov word [ebp - 0x84], cx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], esi
jb 0x1005c832
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x8c], esi
mov esi, dword [ebp - 0x118]
xor eax, eax
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x90], edi
cmp esi, edi
je 0x1005c881
or edx, 0xffffffff
lea ecx, [esi + 4]
lock xadd dword [ecx], edx
jne 0x1005c881
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
or ecx, 0xffffffff
lea eax, [esi + 8]
lock xadd dword [eax], ecx
jne 0x1005c881
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
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