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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101938b8
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x101ebb68]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
cmp dword [sym.MGEngine.dll_class_PhoneProxy__MGSingleton_class_PhoneProxy__1_::m_instance], ebx
jne 0x1002a633
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 0x1002a628
test byte [sym.MGEngine.dll____B_7__createInstance___MGSingleton_VPhoneProxy___00__KAPAVPhoneProxy__U__Int2Type__00___Z_57], 1
jne 0x1002a61e
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 eax, [esp + 0x38]
push eax
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_class_MGLogicInterface::ApplicationMgrI____thiscall_PhoneProxy::getApplicationMgr_void_
mov dword [esp + 0x188], ebx
cmp dword [esp + 0x38], ebx
jne 0x1002a65d
mov dword [esp + 0x30], 3
jmp 0x1002aa42
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x18c], 1
mov ecx, dword [esi + 4]
push 4
call fcn.1000c8e0
test eax, eax
jne 0x1002a710
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 2
cmp eax, ebx
je 0x1002a6b7
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
push ecx
call fcn.10011850
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x188], 0xffffffff
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp esi, ebx
je 0x1002aa7e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002aa7e
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 0x1002aa7e
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x1002aa7e
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 + 0x18c], 2
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x20]
mov dword [edx], 4
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x20]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0xc
xor edi, edi
add eax, edx
je 0x1002a9b4
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
call fcn.10035020
test al, al
jne 0x1002a9b4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x74]
mov byte [edx + 0x10], bl
push eax
mov byte [esp + 0x17], bl
call fcn.1000b370
mov eax, dword [esp + 0x34]
mov byte [esp + 0x188], 3
add eax, dword [esp + 0x1c]
push ebx
push eax
lea eax, [esp + 0x60]
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, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0x188], 4
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.1002ad40
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x194], 5
call fcn.1002ac90
add esp, 0xc
mov edx, dword [eax]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x18c], 7
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
call edx
mov byte [esp + 0x188], 6
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x1002a88e
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002a88e
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 0x1002a88e
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x188], 5
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x1002a8c7
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002a8c7
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 0x1002a8c7
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x188], 4
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x1002a900
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002a900
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 0x1002a900
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov byte [eax + 0x10], 1
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ecx + 8], edi
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp dword [esp + 0x6c], esi
jae 0x1002a923
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x1c], 0x101a4104
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
mov eax, dword [esp + 0x2c]
mov byte [ecx + 0x38], dl
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
call edx
cmp dword [esp + 0x6c], esi
jb 0x1002a96b
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x188], 2
call fcn.10009a40
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
add dword [esp + 0x34], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x1002a799
mov byte [esp + 0x188], 1
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x1002a9ed
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1002a9ed
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 0x1002a9ed
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x1002aa36
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x1002aa2c
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x1002aa12
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x1002aa00
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x188], 0xffffffff
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x1002aa7e
or edx, 0xffffffff
lea ecx, [esi + 4]
lock xadd dword [ecx], edx
jne 0x1002aa7e
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 0x1002aa7e
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.10034c70
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.10178946
mov esp, ebp
pop ebp
ret