Function at 0x1006f820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100de3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, dword [esp + 0x78]
mov dword [esp + 4], 0
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x1006f868
push 0x11f
push str..CoreFairyUtils.cpp
push str.createProjectiveMaterial
push str.You_must_give_a_material_template_name_for_create_projective_material.
push 4
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::Exception::_throw_int__char_const___char_const___char_const___long_int_]
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
mov edx, dword [eax]
push esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x70], 1
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x6c], 3
mov dword [esp + 0x14], 0x100ec508
je 0x1006f8b9
dec dword [eax]
mov edx, dword [esp + 0x1c]
cmp dword [edx], 0
jne 0x1006f8b9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1006f90c
push esi
lea ecx, [esp + 0x4c]
push str.Cant_found_material_with_name
push ecx
call fcn.10001480
push str.Have_you_forgotten_to_define_it_in_a__.material_script_
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x84], 4
call fcn.10001500
add esp, 0x18
push 0x129
push str..CoreFairyUtils.cpp
push str.createProjectiveMaterial
push eax
push 7
mov byte [esp + 0x80], 5
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_]
push edi
add eax, 0xc
push str._Projectived_
push eax
lea eax, [esp + 0x54]
push eax
call fcn.10001500
add esp, 0xc
mov edi, eax
mov esi, dword [esp + 0x80]
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x70], 6
call dword [edx + 0x40]
push eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.10001400
add esp, 0xc
mov ecx, dword [sym.imp.OgreMain.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const_Ogre::StringUtil::BLANK]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x80], 7
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MaterialPtr___thiscall_Ogre::Material::clone_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 8
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MaterialPtr____thiscall_Ogre::MaterialPtr::operator_class_Ogre::MaterialPtr_const__]
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 7
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 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_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 3
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 eax, [esp + 0xc]
push esi
push eax
call fcn.1006f5a0
mov esi, dword [esp + 0x80]
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::MaterialPtr_const__]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x70], 0
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
mov ecx, dword [esp + 0x68]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret