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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10190049
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x101ebb68]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, ecx
push str.MG_MTP_TRANSFER_MGR
push str.MGCheckSapceBegin___
mov dword [esp + 0x30], ebx
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 byte [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push eax
call sym.MGEngine.dll_protected:_static_class_PhoneProxy____cdecl_MGSingleton_class_PhoneProxy__1_::createInstance_struct_Int2Type_1__
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_struct_PhoneBaseInfo____thiscall_PhoneProxy::getPhoneBaseInfo_void_
xor ecx, ecx
mov dword [esp + 0xd0], ecx
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x100852a5
mov dword [esp + 0xd0], 0xffffffff
mov esi, dword [esp + 0x18]
cmp esi, ecx
je 0x1008529b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1008529b
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 0x1008529b
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, 1
jmp 0x100856ee
cmp byte [eax + 0x11], cl
je 0x10085699
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x2c]
mov byte [esp + 0xd0], 1
mov esi, dword [ebx + 0x58]
push eax
call fcn.100017a0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub eax, esi
sar eax, 4
cmp eax, 1
jne 0x100853a2
lea edi, [ebx + 0x60]
mov eax, esi
call fcn.10003a40
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x10085337
push str.MG_MTP_TRANSFER_MGR
push str.We_detect_a_MTP_Device__but_we_did_not_get_the_device_name_____Then_we_give_the_result_:_not_support_MTP
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 esi, [esp + 0x2c]
call fcn.10003780
lea eax, [esp + 0x14]
mov dword [esp + 0xd0], 0xffffffff
call fcn.100089e0
mov eax, 1
jmp 0x100856ee
jns 0x10085343
push 0x80070057
call fcn.100045e0
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10085364
cmp eax, 1
jge 0x1008535d
push 0x80070057
call fcn.100045e0
cmp word [edi + 2], 0x5c
je 0x1008537b
test eax, eax
jns 0x10085372
push 0x80070057
call fcn.100045e0
cmp edx, 0x5c
jne 0x100854e6
lea esi, [esp + 0x2c]
call fcn.10003780
lea eax, [esp + 0x14]
mov dword [esp + 0xd0], 0xffffffff
call fcn.100089e0
mov eax, 2
jmp 0x100856ee
test eax, eax
je 0x10085310
cmp eax, 1
jbe 0x100854e6
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x68], 0
je 0x100853dc
push 0
add eax, 0x58
lea ecx, [ebx + 0x28]
push eax
call fcn.10060eb0
cmp eax, 0xffffffff
mov eax, dword [esp + 0x14]
je 0x100853dc
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
jmp 0x10085434
cmp dword [eax + 0xc8], 0
je 0x1008540c
push 0
add eax, 0xb8
lea ecx, [ebx + 0x28]
push eax
call fcn.10060eb0
cmp eax, 0xffffffff
mov eax, dword [esp + 0x14]
je 0x1008540c
mov ecx, dword [eax + 0xa8]
mov edx, dword [eax + 0xac]
jmp 0x10085434
cmp dword [eax + 0x98], 0
je 0x10085444
push 0
add eax, 0x88
lea ecx, [ebx + 0x28]
push eax
call fcn.10060eb0
cmp eax, 0xffffffff
je 0x10085444
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
test ecx, ecx
jne 0x1008544e
test edx, edx
jne 0x1008544e
lea esi, [ebx + 0x60]
call fcn.100040b0
jmp 0x100854c2
xor edi, edi
mov dword [esp + 0x3c], 0x989680
mov ebx, esi
cmp esi, dword [esp + 0x30]
je 0x100854b8
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push 0
push 0x400
push eax
push ecx
call fcn.10178f90
mov esi, eax
sub esi, dword [esp + 0x1c]
mov eax, edx
sbb eax, dword [esp + 0x20]
cdq
xor eax, edx
xor esi, edx
sub esi, edx
sbb eax, edx
mov dword [esp + 0x48], eax
cmp eax, edi
jg 0x100854af
jl 0x10085499
cmp esi, dword [esp + 0x3c]
jae 0x100854af
mov edi, dword [esp + 0x28]
add edi, 0x60
mov eax, ebx
call fcn.10003a40
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], esi
add ebx, 0x10
cmp ebx, dword [esp + 0x30]
jne 0x10085460
mov edi, dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx + 0x60]
cmp dword [edx - 0xc], 0
push str.MG_MTP_TRANSFER_MGR
jne 0x100854d7
push str.MGCheckSapce_Volume_acquire_failed___
jmp 0x100854dc
push str.MGCheckSapce_Volume_acquire_successfully___
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call edi
lea esi, [esp + 0x2c]
mov byte [esp + 0xd0], 0
call fcn.10003780
mov eax, dword [0x101feda4]
test eax, eax
jne 0x10085505
call fcn.10006d40
lea esi, [esp + 0x50]
mov ecx, eax
call fcn.10062590
mov byte [esp + 0xd0], 2
mov eax, dword [ebx + 0x60]
mov edi, 0x10
sub eax, edi
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x1008553b
xor eax, eax
lea ecx, [ebx + 0x60]
call fcn.100041d0
mov eax, dword [ebx + 0x60]
lea ecx, [esp + 0x6c]
call fcn.1000ba40
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xac]
push ecx
mov byte [esp + 0xdc], 3
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
add ebx, 0x28
mov byte [esp + 0xd0], 4
cmp dword [ebx + 0x14], edi
jb 0x10085579
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], edi
jae 0x10085587
lea ecx, [esp + 0x50]
cmp dword [eax + 0x14], edi
jb 0x1008558e
mov eax, dword [eax]
push ebx
push ecx
push eax
push str.MGCheckSapce_Successful____VolumeName___s__Default_SD_Path___s__The_Music_Save_Path___s
lea esi, [esp + 0x98]
call fcn.1000c270
add esp, 0x10
mov byte [esp + 0xd0], 5
cmp dword [eax + 0x14], edi
jb 0x100855b4
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__]
cmp dword [esp + 0x9c], edi
jb 0x100855e2
mov edx, dword [esp + 0x88]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
mov ebx, 0xf
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], esi
mov byte [esp + 0x88], 0
cmp dword [esp + 0xb8], edi
jb 0x10085619
mov eax, dword [esp + 0xa4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], esi
mov byte [esp + 0xa4], 0
jb 0x10085647
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], dx
cmp dword [esp + 0x64], edi
jb 0x10085671
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
mov dword [esp + 0xd0], 0xffffffff
call fcn.100089e0
mov eax, 4
jmp 0x100856ee
push str.MG_MTP_TRANSFER_MGR
push str.MGCheckSapce_No_SDCard___
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call edi
mov dword [esp + 0xd0], 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100856e9
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100856e9
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 0x100856e9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, 3
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.10178946
mov esp, ebp
pop ebp
ret