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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018e663
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x101ebb68]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x198], ebx
call fcn.10087270
test al, al
jne 0x100878b6
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x10088152
mov ebx, dword [esp + 0x28]
mov edi, esi
cmp esi, ebx
je 0x10088148
nop
mov eax, dword [edi]
mov edx, dword [eax]
push 0
mov ecx, edi
call edx
add edi, 0x48
cmp edi, ebx
jne 0x100878a0
jmp 0x10088148
push 0x40
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1002ae60
push 0x40
mov byte [esp + 0x19c], 1
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [edx], 0x20
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
mov eax, dword [esp + 0x20]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
add esp, 0xc
mov dword [eax + 4], edi
mov dword [esp + 0x4c], edi
cmp dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], ebx
jne 0x10087973
mov ecx, sym.MGEngine.dll_class_MGStaticMutex_MGSingleton_class_PhoneProxy__1_::m_mutex
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGStaticMutex::lock_void_const]
cmp dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], ebx
jne 0x10087968
test byte [sym.MGEngine.dll____B_7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_57], 1
jne 0x1008795e
or dword [sym.MGEngine.dll____B_7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_57], 1
mov ecx, sym.MGEngine.dll__t__7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_4V3_A
call sym.MGEngine.dll_private:_void___thiscall_PhoneProxy::constructor_void_
push 0x10195fe0
call fcn.10178b2f
add esp, 4
mov dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], sym.MGEngine.dll__t__7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_4V3_A
mov ecx, sym.MGEngine.dll_class_MGStaticMutex_MGSingleton_class_PhoneProxy__1_::m_mutex
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGStaticMutex::unlock_void_const]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance]
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_class_MGLogicInterface::MusicMgrI____thiscall_PhoneProxy::getMusicMgr_void_
xor eax, eax
mov byte [esp + 0x198], 2
cmp edi, ebx
jbe 0x100880ad
add esi, 0x14
mov dword [esp + 0x1c], esi
lea esp, [esp]
mov edx, dword [esp + 0x10]
cmp eax, dword [edx + 0x5c]
jae 0x100880a9
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x10], 0
mov edx, dword [esp + 0x14]
inc eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], eax
mov dword [edx + 8], eax
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::constructor_void_]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x198], 3
mov edi, dword [eax]
mov eax, dword [edi + 0x10]
cmp eax, 1
jb 0x10087a34
dec eax
cmp eax, 0xffffffff
jbe 0x100879ea
or eax, 0xffffffff
mov esi, dword [edi + 0x14]
cmp esi, 0x10
jb 0x100879f6
mov ebx, dword [edi]
jmp 0x100879f8
mov ebx, edi
add ebx, eax
lea ebx, [ebx]
cmp byte [ebx], 0x2f
jne 0x10087a15
movzx eax, byte [ebx]
sub eax, 0x2f
je 0x10087a23
sar eax, 0x1f
or eax, 1
je 0x10087a23
mov ecx, edi
call fcn.1000c310
cmp ebx, eax
je 0x10087a34
dec ebx
jmp 0x10087a00
cmp esi, 0x10
jb 0x10087a2e
mov eax, dword [edi]
sub ebx, eax
jmp 0x10087a37
mov eax, edi
sub ebx, eax
jmp 0x10087a37
or ebx, 0xffffffff
push 0xffffffffffffffff
inc ebx
push ebx
lea ecx, [esp + 0x120]
push ecx
mov ecx, edi
call fcn.10025fb0
push 0
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x104]
push eax
mov byte [esp + 0x1a4], 4
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 edi, dword [esp + 0x10]
push 0x101a37bc
add edi, 0x40
lea ecx, [esp + 0x138]
push edi
push ecx
mov byte [esp + 0x1a4], 5
call fcn.100101c0
add esp, 0xc
mov ecx, eax
lea eax, [esp + 0xfc]
lea ebx, [esp + 0x16c]
mov byte [esp + 0x198], 6
call fcn.10008020
xor esi, esi
push esi
push eax
lea edx, [esp + 0xe8]
mov byte [esp + 0x1a0], 7
mov ebx, 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_]
push edx
call ebx
add esp, 0xc
cmp dword [esp + 0x180], 8
jb 0x10087ae9
mov eax, dword [esp + 0x16c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x180], 7
mov dword [esp + 0x17c], esi
mov word [esp + 0x16c], cx
mov byte [esp + 0x198], 0xa
cmp dword [esp + 0x148], 8
jb 0x10087b28
mov edx, dword [esp + 0x134]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [esp + 0xf4], 0x10
mov word [esp + 0x134], ax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], esi
jae 0x10087b5c
lea eax, [esp + 0xe0]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
cmp dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], esi
jne 0x10087bba
mov ecx, sym.MGEngine.dll_class_MGStaticMutex_MGSingleton_class_PhoneProxy__1_::m_mutex
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGStaticMutex::lock_void_const]
cmp dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], esi
jne 0x10087baf
test byte [sym.MGEngine.dll____B_7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_57], 1
jne 0x10087ba5
or dword [sym.MGEngine.dll____B_7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_57], 1
mov ecx, sym.MGEngine.dll__t__7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_4V3_A
call sym.MGEngine.dll_private:_void___thiscall_PhoneProxy::constructor_void_
push 0x10195fe0
call fcn.10178b2f
add esp, 4
mov dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], sym.MGEngine.dll__t__7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_4V3_A
mov ecx, sym.MGEngine.dll_class_MGStaticMutex_MGSingleton_class_PhoneProxy__1_::m_mutex
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGStaticMutex::unlock_void_const]
mov ecx, dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance]
lea edx, [esp + 0x38]
push edx
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_class_MGLogicInterface::MusicMgrI____thiscall_PhoneProxy::getMusicMgr_void_
mov byte [esp + 0x198], 0xb
cmp dword [esp + 0x38], esi
je 0x10087eb7
lea ecx, [esp + 0x80]
mov dword [esp + 0x7c], vtable.MGMonitor_class_MGMutex_.0
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGTCV::constructor_void_]
lea eax, [esp + 0xb8]
xor esi, esi
push eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], vtable.MGMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x7c]
push edx
mov dword [esp + 0x70], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0xb0], esi
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x10]
add eax, 0xc
mov dword [esp + 0x54], eax
add eax, 4
push eax
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x10]
add eax, 0x38
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x1a8], 0xe
call fcn.10089240
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov dword [eax], esi
mov dword [eax + 4], esi
push 0
lea eax, [esp + 0x164]
push edi
mov byte [esp + 0x1b0], 0x10
mov esi, dword [esp + 0x50]
push eax
call ebx
add esp, 0x1c
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x198], 0x11
mov ecx, dword [edx - 0xc]
mov edx, dword [edx - 8]
mov edi, dword [esi]
lea ebx, [esp + 0x44]
push ebx
push 0
push eax
push edx
mov edx, dword [edi + 0x50]
push ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call edx
lea esi, [esp + 0xd8]
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x198], 0x12
cmp esi, eax
je 0x10087cfa
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [eax]
mov dword [eax], 0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x2c]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x28], edx
test edi, edi
je 0x10087d34
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10087d34
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10087d34
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [esp + 0x198], 0x11
mov esi, dword [esp + 0x68]
test esi, esi
je 0x10087d6d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10087d6d
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 0x10087d6d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [esp + 0x164], 0x10
jb 0x10087d88
mov eax, dword [esp + 0x150]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x198], 0xf
mov edi, dword [esp + 0x48]
mov dword [esp + 0x164], 0xf
mov dword [esp + 0x160], 0
mov byte [esp + 0x150], 0
test edi, edi
je 0x10087ddf
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10087ddf
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10087ddf
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [esp + 0x198], 0xe
mov edi, dword [esp + 0x78]
test edi, edi
je 0x10087e18
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10087e18
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10087e18
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x198], 0xd
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ecx
call edi
lea edx, [esp + 0x7c]
push edx
call fcn.10044270
mov byte [esp + 0x198], 0xc
mov eax, dword [esp + 0xb0]
mov ebx, eax
test eax, eax
je 0x10087e72
cmp eax, 0xffffffff
jne 0x10087e60
lea ecx, [esp + 0x80]
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGTCV::broadcast_void_]
jmp 0x10087e72
mov esi, dword [sym.imp.MGCore.dll_public:_void___thiscall_MGTCV::signal_void_]
lea ecx, [esp + 0x80]
call esi
dec ebx
jne 0x10087e66
lea eax, [esp + 0xb8]
push eax
call edi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x198], 0xb
push ecx
mov dword [esp + 0x80], vtable.MGMonitor_class_MGMutex_.0
mov dword [esp + 0xb8], vtable.MGMutex.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x80]
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGTCV::destructor_void_]
xor esi, esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
call fcn.10035020
mov byte [esp + 0x198], 0xa
mov edi, dword [esp + 0x3c]
test al, al
jne 0x10087fca
cmp edi, esi
je 0x10087f06
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10087f06
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10087f06
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
cmp dword [esp + 0xf4], 0x10
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10087f23
mov eax, dword [esp + 0xe0]
push eax
call edi
add esp, 4
cmp dword [esp + 0x110], 8
mov ebx, 0xf
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], esi
mov byte [esp + 0xe0], 0
jb 0x10087f55
mov ecx, dword [esp + 0xfc]
push ecx
call edi
add esp, 4
xor edx, edx
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], esi
mov word [esp + 0xfc], dx
jb 0x10087f88
mov eax, dword [esp + 0x118]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], esi
mov byte [esp + 0x118], 0
mov byte [esp + 0x198], 2
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::destructor_void_]
mov eax, dword [esp + 0x40]
add dword [esp + 0x1c], 0x48
xor ebx, ebx
cmp eax, dword [esp + 0x4c]
jb 0x100879a0
jmp 0x100880a9
cmp edi, esi
je 0x10087ff7
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10087ff7
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10087ff7
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ebx, 0x10
cmp dword [esp + 0xf4], ebx
jb 0x10088018
mov ecx, dword [esp + 0xe0]
push ecx
call edi
add esp, 4
cmp dword [esp + 0x110], 8
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], esi
mov byte [esp + 0xe0], 0
jb 0x10088049
mov edx, dword [esp + 0xfc]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], esi
mov word [esp + 0xfc], ax
cmp dword [esp + 0x12c], ebx
jb 0x1008807b
mov ecx, dword [esp + 0x118]
push ecx
call edi
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], esi
mov byte [esp + 0x118], 0
mov byte [esp + 0x198], 2
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::destructor_void_]
xor ebx, ebx
mov esi, dword [esp + 0x24]
mov byte [esp + 0x198], 1
mov edi, dword [esp + 0x60]
cmp edi, ebx
je 0x100880e6
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x100880e6
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100880e6
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [esp + 0x198], 0
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x1008811f
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1008811f
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1008811f
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov dword [esp + 0x198], 0xffffffff
cmp esi, ebx
je 0x10088152
mov edi, esi
cmp esi, dword [esp + 0x28]
je 0x10088148
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
mov ecx, edi
call edx
add edi, 0x48
cmp edi, dword [esp + 0x28]
jne 0x10088136
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push eax
call fcn.10034c70
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.10178946
mov esp, ebp
pop ebp
ret