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

Disassembly:
push 0xffffffffffffffff
push 0x100dc9b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebp
push esi
mov esi, dword [esp + 0xe8]
mov eax, dword [esi + 0x14]
test eax, eax
mov ebp, ecx
mov dword [esp + 0x10], ebp
je 0x1005a9be
push ebx
mov ebx, dword [esp + 0xf0]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1005a9bd
push esi
call fcn.10058a30
mov edx, eax
test edx, edx
mov dword [esp + 0xc], edx
jne 0x1005a57c
push esi
lea eax, [esp + 0xc4]
push str.Cannot_find_required_Logic_Model_template_
push eax
call fcn.10001480
push 0x100e9424
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xfc], 0
call fcn.10001500
add esp, 0x18
push 0x44f
push str..ModelSystemFairyLogicModelManager.cpp
push str.LogicModelManager::loadModelResource
push eax
push 7
mov byte [esp + 0xf8], 1
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::Exception::_throw_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const___char_const___long_int_]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
cmp eax, ecx
push edi
mov dword [esp + 0x14], eax
je 0x1005a8f1
mov ebp, dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
lea esi, [eax + 0x28]
push esi
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esi, 0x1c
push esi
lea ecx, [esp + 0x68]
mov dword [esp + 0xec], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x78]
test eax, eax
mov byte [esp + 0xe8], 3
je 0x1005a796
push 1
push 0
push 0x100edc6c
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x1005a723
push 0x100edc6c
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0xf8], 4
call dword [sym.imp.OgreMain.dll_public:_static_class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_______cdecl_Ogre::StringUtil::split_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_]
add esp, 0x10
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe8], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor edi, edi
xor esi, esi
jmp 0x1005a650
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1005a70d
mov ecx, dword [esp + 0x94]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1005a70d
call ebp
mov ecx, dword [esp + 0x90]
mov edx, dword [eax]
add ecx, esi
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xec], 7
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x30]
test eax, eax
mov byte [esp + 0xe8], 9
mov dword [esp + 0x28], 0x100ec508
je 0x1005a6df
dec dword [eax]
mov edx, dword [esp + 0x30]
cmp dword [edx], 0
jne 0x1005a6df
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
call dword [eax + 4]
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x1005a6ef
mov edx, dword [ecx]
call dword [edx + 0x20]
lea ecx, [esp + 0x80]
mov byte [esp + 0xe8], 6
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
inc edi
add esi, 0x1c
jmp 0x1005a650
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe8], 3
call fcn.100038b0
jmp 0x1005a796
call ebp
mov edx, dword [eax]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xec], 0xa
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0xe8], 0xc
mov dword [esp + 0x1c], 0x100ec508
je 0x1005a777
dec dword [eax]
mov edx, dword [esp + 0x24]
cmp dword [edx], 0
jne 0x1005a777
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
call dword [eax + 4]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x1005a784
mov edx, dword [ecx]
call dword [edx + 0x20]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe8], 3
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x1005a8a7
push 1
push 1
push 5
push 5
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MeshManager____cdecl_Ogre::MeshManager::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MeshPtr___thiscall_Ogre::MeshManager::load_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_Ogre::HardwareBuffer::Usage__enum_Ogre::HardwareBuffer::Usage__bool__bool_]
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov byte [esp + 0xe8], 0xd
je 0x1005a895
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x1005a895
call dword [sym.imp.OgreMain.dll_public:_unsigned_short_int___thiscall_Ogre::Mesh::getNumSubMeshes_void_const]
xor edi, edi
mov ebx, eax
test bx, bx
jbe 0x1005a88e
lea esp, [esp]
mov ecx, dword [esp + 0x44]
push edi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SubMesh____thiscall_Ogre::Mesh::getSubMesh_unsigned_short_int_const]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Ogre::SubMesh::getMaterialName_void_const]
mov esi, eax
call ebp
mov edx, dword [eax]
push esi
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xec], 0xe
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x3c]
test eax, eax
mov byte [esp + 0xe8], 0x10
mov dword [esp + 0x34], 0x100ec508
je 0x1005a865
dec dword [eax]
mov edx, dword [esp + 0x3c]
cmp dword [edx], 0
jne 0x1005a865
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
call dword [eax + 4]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x1005a872
mov edx, dword [ecx]
call dword [edx + 0x20]
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 0xd
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
inc edi
cmp di, bx
jb 0x1005a800
mov ebx, dword [esp + 0xf4]
lea ecx, [esp + 0x40]
mov byte [esp + 0xe8], 3
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MeshPtr::destructor_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0xe8], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa8]
mov dword [esp + 0xe8], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
call fcn.100286c0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x1c]
jne 0x1005a594
mov ebp, dword [esp + 0x18]
mov edx, ecx
mov eax, dword [edx + 0x34]
mov edi, dword [eax]
cmp edi, eax
je 0x1005a9bc
mov edi, edi
mov eax, dword [edi + 0x68]
mov esi, dword [eax]
cmp esi, eax
je 0x1005a96c
lea esp, [esp]
push ebx
lea edx, [esi + 0x28]
push edx
mov ecx, ebp
call fcn.1005a4d0
mov al, byte [esi + 0x49]
test al, al
jne 0x1005a963
mov eax, dword [esi + 8]
mov cl, byte [eax + 0x49]
test cl, cl
jne 0x1005a945
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x49]
test cl, cl
jne 0x1005a963
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x49]
test cl, cl
je 0x1005a938
jmp 0x1005a963
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x49]
test cl, cl
jne 0x1005a961
nop
cmp esi, dword [eax + 8]
jne 0x1005a961
mov esi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x49]
test cl, cl
je 0x1005a950
mov esi, eax
cmp esi, dword [edi + 0x68]
jne 0x1005a910
mov edx, dword [esp + 0x10]
mov al, byte [edi + 0x75]
test al, al
jne 0x1005a9b3
mov ecx, dword [edi + 8]
mov al, byte [ecx + 0x75]
test al, al
jne 0x1005a993
mov eax, dword [ecx]
cmp byte [eax + 0x75], 0
jne 0x1005a98f
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x75], 0
je 0x1005a985
mov edi, ecx
jmp 0x1005a9b3
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x75]
test cl, cl
jne 0x1005a9b1
lea ecx, [ecx]
cmp edi, dword [eax + 8]
jne 0x1005a9b1
mov edi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x75]
test cl, cl
je 0x1005a9a0
mov edi, eax
cmp edi, dword [edx + 0x34]
jne 0x1005a900
pop edi
pop ebx
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xdc
ret 8