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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018fda3
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
mov eax, ecx
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call fcn.10035020
test al, al
jne 0x101141c9
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x198], edi
call fcn.10113550
test al, al
jne 0x10113a97
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x24]
cmp esi, edi
je 0x101141c9
mov ebx, dword [esp + 0x28]
mov edi, esi
cmp esi, ebx
je 0x10113a91
nop
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
add edi, 0x50
cmp edi, ebx
jne 0x10113a80
push esi
jmp 0x101141c0
push 0x40
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.1002ae60
push 0x40
mov byte [esp + 0x19c], 1
mov edx, dword [esp + 0x18]
push edi
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [eax], 0x10
sub ecx, ebx
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x20]
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
mov dword [esp + 0x54], esi
mov dword [ecx + 4], esi
call sym.MGEngine.dll_protected:_static_class_PhoneProxy____cdecl_MGSingleton_class_PhoneProxy__1_::createInstance_struct_Int2Type_1__
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_class_MGLogicInterface::VideoMgrI____thiscall_PhoneProxy::getVideoMgr_void_
mov byte [esp + 0x198], 2
test esi, esi
je 0x10114123
lea esi, [ebx + 0x14]
mov dword [esp + 0x10], esi
jmp 0x10113b38
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 0x5c]
jae 0x10114123
lea edx, [esp + 0x20]
push edx
call fcn.10035020
test al, al
jne 0x10114123
mov eax, dword [esp + 0x14]
mov byte [eax + 0x10], 0
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ecx + 8], edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
cdq
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edi
mov dword [eax + 0x2c], edx
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::constructor_void_]
mov byte [esp + 0x198], 3
mov edi, dword [esi]
mov eax, dword [edi + 0x10]
cmp eax, 1
jb 0x10113be6
dec eax
cmp eax, 0xffffffff
jbe 0x10113ba2
or eax, 0xffffffff
mov esi, dword [edi + 0x14]
cmp esi, 0x10
jb 0x10113bae
mov ebx, dword [edi]
jmp 0x10113bb0
mov ebx, edi
add ebx, eax
cmp byte [ebx], 0x2f
jne 0x10113bc7
movzx eax, byte [ebx]
sub eax, 0x2f
je 0x10113bd5
sar eax, 0x1f
or eax, 1
je 0x10113bd5
mov ecx, edi
call fcn.1000c310
cmp ebx, eax
je 0x10113be6
dec ebx
jmp 0x10113bb2
cmp esi, 0x10
jb 0x10113be0
mov eax, dword [edi]
sub ebx, eax
jmp 0x10113be9
mov eax, edi
sub ebx, eax
jmp 0x10113be9
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 esi, dword [esp + 0x1c]
push 0x101a37bc
lea edi, [esi + 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 ebx, ebx
push ebx
push eax
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x1a4], 7
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
cmp dword [esp + 0x180], 8
jb 0x10113c99
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], ebx
mov word [esp + 0x16c], cx
mov byte [esp + 0x198], 0xa
cmp dword [esp + 0x148], 8
jb 0x10113cd8
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], ebx
jae 0x10113d0c
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], ebx
jne 0x10113d6a
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 0x10113d5f
test byte [sym.MGEngine.dll____B_7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_57], 1
jne 0x10113d55
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 + 0x44]
push edx
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_class_MGLogicInterface::VideoMgrI____thiscall_PhoneProxy::getVideoMgr_void_
mov byte [esp + 0x198], 0xb
cmp dword [esp + 0x44], ebx
je 0x10114025
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]
push eax
mov dword [esp + 0xb4], ebx
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], ebx
mov byte [esp + 0x70], 1
lea eax, [esi + 0xc]
mov dword [esp + 0x54], eax
add eax, 4
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x58], 1
add esi, 0x38
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0x1a8], 0xe
call fcn.101151e0
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x50], edx
mov dword [eax], ebx
mov dword [eax + 4], ebx
push ebx
lea eax, [esp + 0x164]
push edi
mov byte [esp + 0x1b0], 0x10
mov esi, dword [esp + 0x5c]
push eax
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, 0x1c
mov byte [esp + 0x198], 0x11
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
mov edx, dword [edx - 8]
mov edi, dword [esi]
lea ebx, [esp + 0x3c]
push ebx
xor ebx, ebx
push ebx
push edx
mov edx, dword [edi + 0x34]
push ecx
push eax
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 0x10113ea0
mov ecx, dword [eax + 4]
mov dword [eax + 4], ebx
mov edx, dword [eax]
mov dword [eax], ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x2c]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x28], edx
cmp edi, ebx
je 0x10113eda
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10113eda
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 0x10113eda
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [esp + 0x198], 0x11
mov edi, dword [esp + 0x68]
cmp edi, ebx
je 0x10113f13
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10113f13
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 0x10113f13
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
cmp dword [esp + 0x164], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10113f30
mov eax, dword [esp + 0x150]
push eax
call esi
add esp, 4
mov byte [esp + 0x198], 0xf
mov edi, dword [esp + 0x40]
mov dword [esp + 0x164], 0xf
mov dword [esp + 0x160], ebx
mov byte [esp + 0x150], bl
cmp edi, ebx
je 0x10113f82
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10113f82
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 0x10113f82
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [esp + 0x198], 0xe
mov edi, dword [esp + 0x78]
cmp edi, ebx
je 0x10113fbb
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10113fbb
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 0x10113fbb
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x4c]
push ecx
mov byte [esp + 0x19c], 0xd
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x7c]
push edx
call fcn.10044270
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x19c], 0xc
call fcn.10044ce0
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_]
jmp 0x1011402b
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov byte [esp + 0x198], 0xa
mov edi, dword [esp + 0x48]
cmp edi, ebx
je 0x10114064
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10114064
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 0x10114064
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov edi, 0x10
cmp dword [esp + 0xf4], edi
jb 0x1011407f
mov eax, dword [esp + 0xe0]
push eax
call esi
add esp, 4
cmp dword [esp + 0x110], 8
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
jb 0x101140af
mov ecx, dword [esp + 0xfc]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
cmp dword [esp + 0x12c], edi
jb 0x101140e1
mov eax, dword [esp + 0x118]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
mov byte [esp + 0x198], 2
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::destructor_void_]
mov edi, dword [esp + 0x38]
add dword [esp + 0x10], 0x50
mov ebx, dword [esp + 0x24]
cmp edi, dword [esp + 0x50]
jb 0x10113b34
mov byte [esp + 0x198], 1
mov edi, dword [esp + 0x60]
test edi, edi
je 0x1011415c
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1011415c
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 0x1011415c
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [esp + 0x198], 0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10114195
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10114195
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 0x10114195
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [esp + 0x198], 0xffffffff
test ebx, ebx
je 0x101141c9
mov esi, dword [esp + 0x28]
mov edi, ebx
cmp ebx, esi
je 0x101141bf
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
add edi, 0x50
cmp edi, esi
jne 0x101141ae
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
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