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

Disassembly:
push 0xffffffffffffffff
push 0x100d9f52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push esi
xor esi, esi
mov dword [esp + 4], esi
test byte [0x1012228c], 1
mov dword [esp + 0x38], ecx
jne 0x10038032
or dword [0x1012228c], 1
mov dword [esp + 0xe0], esi
call fcn.10029600
mov byte [0x10122288], al
mov dword [esp + 0xe0], 0xffffffff
mov al, byte [0x10122288]
test al, al
jne 0x10038055
xor al, al
pop esi
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
add esp, 0xe0
ret 4
push ebx
mov ebx, dword [esp + 0xec]
mov al, byte [ebx + 0x175]
test al, al
je 0x1003806e
xor al, al
jmp 0x1003851f
cmp dword [ebx + 0x1a8], esi
je 0x10038067
mov ecx, ebx
call dword [sym.imp.OgreMain.dll_public:_bool___thiscall_Ogre::Entity::hasVertexAnimation_void_const]
test al, al
jne 0x10038067
push ebp
push edi
push str._hlsl
lea ecx, [esp + 0x50]
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__]
xor ebp, ebp
mov dword [esp + 0xec], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov ecx, ebx
mov byte [esp + 0xec], 2
mov dword [esp + 0x30], esi
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Entity::getNumSubEntities_void_const]
test eax, eax
jbe 0x100384a2
jmp 0x100380d0
push esi
mov ecx, ebx
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SubEntity____thiscall_Ogre::Entity::getSubEntity_unsigned_int_const]
mov esi, eax
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SubMesh____thiscall_Ogre::SubEntity::getSubMesh_void_]
mov ebp, eax
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
mov edi, eax
mov eax, dword [edi]
mov ecx, esi
mov dword [esp + 0x48], 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::SubEntity::getMaterialName_void_const]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x50]
mov ecx, edi
call dword [eax + 0x44]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xf0], 3
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x40]
test eax, eax
mov byte [esp + 0xec], 5
mov dword [esp + 0x38], 0x100ec508
je 0x1003814b
dec dword [eax]
mov ecx, dword [esp + 0x40]
cmp dword [ecx], 0
jne 0x1003814b
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x38]
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10038546
call dword [sym.imp.OgreMain.dll_public:_unsigned_short_int___thiscall_Ogre::Material::getNumTechniques_void_const]
cmp ax, 1
jne 0x10038546
mov ecx, dword [esp + 0x18]
push 0
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Technique____thiscall_Ogre::Material::getTechnique_unsigned_short_int_]
mov esi, eax
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_unsigned_short_int___thiscall_Ogre::Technique::getNumPasses_void_const]
cmp ax, 1
jne 0x10038546
push 0
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Pass____thiscall_Ogre::Technique::getPass_unsigned_short_int_]
mov esi, eax
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x100381de
mov edi, dword [sym.imp.OgreMain.dll_public:_class_Ogre::GpuProgramPtr_const____thiscall_Ogre::Pass::getVertexProgram_void_const]
mov ecx, esi
call edi
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x60]
test al, al
je 0x10038546
mov ecx, esi
call edi
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
call dword [edx + 0x54]
test al, al
je 0x10038546
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.10036820
jmp 0x1003846e
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::ColourValue_const_Ogre::ColourValue::Black]
push ecx
mov ecx, esi
mov byte [esp + 0x38], 1
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::ColourValue_const____thiscall_Ogre::Pass::getSpecular_void_const]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_bool___thiscall_Ogre::ColourValue::operator_class_Ogre::ColourValue_const__const]
test al, al
je 0x10038203
mov byte [esp + 0x34], 0
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Pass::getNumTextureUnitStates_void_const]
cmp eax, 1
jne 0x10038546
cmp byte [ebp], 0
je 0x1003822b
mov ebp, dword [ebp + 0x30]
mov eax, dword [ebp + 0x148]
lea edi, [ebp + 0x14c]
jmp 0x10038231
mov eax, dword [ebp + 8]
lea edi, [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0
push 2
call dword [edx + 0x1c]
test eax, eax
je 0x10038546
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.OgreMain.dll_public:_static_unsigned_short_int___cdecl_Ogre::VertexElement::getTypeCount_enum_Ogre::VertexElementType_]
add esp, 4
mov ecx, edi
movzx esi, ax
call fcn.10025ae0
push str._VS_1_1
lea ecx, [esp + 0x78]
mov edi, eax
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__]
cmp edi, 0x19
mov byte [esp + 0xec], 6
jbe 0x10038311
push str.vs_2_0
lea ecx, [esp + 0xb0]
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__]
mov ebp, dword [esp + 0x10]
or ebp, 1
mov byte [esp + 0xec], 7
mov dword [esp + 0x10], ebp
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::GpuProgramManager____cdecl_Ogre::GpuProgramManager::getSingleton_void_]
mov edx, dword [eax]
lea ecx, [esp + 0xac]
push ecx
mov ecx, eax
call dword [edx + 0x88]
test al, al
je 0x100382c7
cmp edi, 0x4b
jae 0x100382c7
mov bl, 1
jmp 0x100382c9
xor bl, bl
test byte [esp + 0x10], 1
mov dword [esp + 0xec], 6
je 0x100382f3
mov eax, dword [esp + 0x10]
and eax, 0xfffffffe
lea ecx, [esp + 0xac]
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
lea ecx, [esp + 0x74]
je 0x10038538
push str._VS_2_0
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ebx, dword [esp + 0xf4]
push str.Character_HardwareSkinning
lea ecx, [esp + 0x94]
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__]
test byte [0x1012228c], 2
mov byte [esp + 0xec], 8
jne 0x100383b0
or dword [0x1012228c], 2
push str._OneWeight
mov ecx, 0x10122218
mov byte [esp + 0xf0], 9
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 str._TwoWeight
mov ecx, 0x10122234
mov byte [esp + 0xf0], 0xa
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 str._ThreeWeight
mov ecx, 0x10122250
mov byte [esp + 0xf0], 0xb
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 str._FourWeight
mov ecx, 0x1012226c
mov byte [esp + 0xf0], 0xc
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 0x100e67b0
call fcn.100d57d6
add esp, 4
mov byte [esp + 0xec], 8
imul esi, esi, 0x1c
lea edx, [esp + 0x74]
push edx
lea eax, [esi + 0x101221fc]
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.10001400
add esp, 0xc
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0xf0], 0xd
call dword [0x100e80ec]
lea ecx, [esp + 0xc8]
mov byte [esp + 0xec], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x78]
push edx
call fcn.10029100
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xf0], 0xe
call fcn.10036820
lea ecx, [esp + 0x68]
mov byte [esp + 0xec], 8
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
lea ecx, [esp + 0x90]
mov byte [esp + 0xec], 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 + 0x74]
mov byte [esp + 0xec], 5
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]
mov byte [esp + 0xec], 2
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
mov eax, dword [esp + 0x30]
inc eax
mov ecx, ebx
mov dword [esp + 0x30], eax
movzx esi, ax
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Entity::getNumSubEntities_void_const]
cmp esi, eax
jb 0x100380d0
mov ebp, dword [esp + 0x24]
xor esi, esi
mov ecx, ebx
xor edi, edi
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Entity::getNumSubEntities_void_const]
test eax, eax
jbe 0x100384f5
mov ebx, dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::SubEntity::setMaterialName_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
xor esi, esi
jmp 0x100384c0
mov ecx, dword [esp + 0xf4]
push esi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SubEntity____thiscall_Ogre::Entity::getSubEntity_unsigned_int_const]
lea ecx, [esi + esi*2]
lea ecx, [ebp + ecx*4]
mov ecx, dword [ecx + 4]
add ecx, 0xc
push ecx
mov ecx, eax
call ebx
mov ecx, dword [esp + 0xf4]
inc edi
movzx esi, di
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Entity::getNumSubEntities_void_const]
cmp esi, eax
jb 0x100384c0
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 1
call fcn.10033e30
lea ecx, [esp + 0x4c]
mov dword [esp + 0xec], 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_]
mov al, 1
pop edi
pop ebp
mov ecx, dword [esp + 0xdc]
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0xe0
ret 4
mov byte [esp + 0xec], 5
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]
mov byte [esp + 0xec], 2
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 1
call fcn.10033e30
lea ecx, [esp + 0x4c]
mov dword [esp + 0xec], 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_]
xor al, al
jmp 0x1003851d