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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101932c8
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x101ebb68]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x20]
mov esi, ecx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
call sym.MGEngine.dll_protected:_static_class_PhoneProxy____cdecl_MGSingleton_class_PhoneProxy__1_::createInstance_struct_Int2Type_1__
add esp, 4
lea ecx, [esp + 0x58]
push ecx
mov ecx, eax
call sym.MGEngine.dll_public:_class_std::tr1::shared_ptr_class_MGLogicInterface::ImageMgrI____thiscall_PhoneProxy::getImageMgr_void_
mov dword [esp + 0x160], ebx
cmp dword [esp + 0x58], ebx
jne 0x10066763
mov dword [esp + 0x34], 3
jmp 0x10066b1a
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x164], 1
mov ecx, dword [esi + 4]
push 8
call fcn.1000c8e0
test eax, eax
jne 0x100667c0
mov byte [esp + 0x160], bl
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], 2
cmp eax, ebx
je 0x10066b0e
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
push ecx
call fcn.10011850
mov edx, dword [esp + 0x28]
add esp, 4
push edx
jmp 0x10066b05
push 0x40
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.1002ae60
push 0x40
mov byte [esp + 0x164], 2
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x24]
mov dword [edx], 8
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x24]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0xc
xor esi, esi
add eax, edx
je 0x10066a86
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x34]
push ecx
call fcn.10035020
test al, al
jne 0x10066a86
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x84]
mov byte [edx + 0x10], bl
push eax
mov byte [esp + 0x1b], bl
call fcn.100674d0
mov byte [esp + 0x160], 3
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
push ebx
push eax
lea eax, [esp + 0x70]
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
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x164], 5
call fcn.10006800
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.10067040
add esp, 0xc
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
push 0x1d4c0
mov byte [esp + 0x164], 7
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x54]
push eax
push 2
lea eax, [esp + 0x4c]
push eax
call edx
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x10066944
mov edi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10066944
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 0x10066944
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [esp + 0x160], 5
mov edi, dword [esp + 0x64]
cmp edi, ebx
je 0x1006697d
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1006697d
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 0x1006697d
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, dword [esp + 0x18]
mov byte [eax + 0x10], 1
mov ecx, dword [esp + 0x18]
lea edi, [esi + 1]
mov dword [ecx + 8], edi
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], edi
jae 0x100669a2
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x17]
mov edx, dword [esp + 0x38]
mov byte [eax + 0x38], cl
mov ecx, dword [edx + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x1c]
push edx
call eax
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x10066a17
mov edi, dword [esp + 0x44]
cmp esi, edi
je 0x10066a09
mov edi, edi
cmp dword [esi + 0x14], 0x10
jb 0x100669f2
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x100669e0
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
jb 0x10066a38
mov ecx, dword [esp + 0x68]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea esi, [esp + 0x84]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov byte [esp + 0x160], 2
call fcn.1001cf10
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
add dword [esp + 0x20], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
mov esi, edi
add eax, edx
cmp esi, eax
jb 0x10066849
mov byte [esp + 0x160], 1
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x10066abf
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10066abf
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 0x10066abf
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0x160], bl
cmp dword [esp + 0x24], ebx
je 0x10066b0e
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, edi
je 0x10066b04
cmp dword [esi + 0x14], 8
jb 0x10066aea
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x10066ad8
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push edx
call fcn.10034c70
mov dword [esp + 0x160], 0xffffffff
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x10066b64
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10066b64
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 0x10066b64
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.10178946
mov esp, ebp
pop ebp
ret