Function at 0x10038cf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [sym.imp.OgreMain.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const_Ogre::StringUtil::BLANK]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push 0x101225a0
push eax
push eax
lea eax, [ebp - 0x24]
mov edi, ecx
push esi
push eax
mov dword [ebp - 0x18], edi
call fcn.10070840
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Mesh::getPoseCount_void_const]
test eax, eax
je 0x10038ea9
push 0x100ecb34
lea ecx, [ebp - 0x108]
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 ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x70]
push esi
push edx
mov byte [ebp - 4], 3
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, [ebp - 0x108]
mov byte [ebp - 4], 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_]
mov ebx, dword [sym.imp.OgreMain.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_Ogre::StringConverter::toString_float__unsigned_short_int__unsigned_short_int__char__int_]
lea esp, [esp]
push 0
push 0x20
push 0
push 6
call dword [sym.imp.OgreMain.dll_public:_static_float___cdecl_Ogre::Math::UnitRandom_void_]
push ecx
lea eax, [ebp - 0x60]
fstp dword [esp]
push eax
call ebx
mov esi, eax
mov ecx, dword [ebp - 0x6c]
push str._Clone
push ecx
lea edx, [ebp - 0x8c]
push edx
mov byte [ebp - 4], 6
call fcn.10001500
push esi
push eax
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 7
call fcn.10001400
mov ecx, dword [ebp - 0x6c]
add ecx, 0x1c
push ecx
push eax
lea ecx, [ebp - 0xec]
push ecx
mov byte [ebp - 4], 8
call fcn.10001400
add esp, 0x3c
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 7
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, [ebp - 0x8c]
mov byte [ebp - 4], 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, [ebp - 0x60]
mov byte [ebp - 4], 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_]
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MeshManager____cdecl_Ogre::MeshManager::getSingleton_void_]
mov edx, dword [eax]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call dword [edx + 0x50]
test al, al
jne 0x10038db0
mov edx, dword [sym.imp.OgreMain.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const_Ogre::StringUtil::BLANK]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MeshPtr___thiscall_Ogre::Mesh::clone_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__]
lea ecx, [ebp - 0x98]
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MeshPtr::destructor_void_]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.100038b0
jmp 0x10038eb3
push esi
lea ecx, [ebp - 0x40]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [edi + 0xe0]
push 0
push 0x20
push 0
lea edx, [eax + 1]
push eax
lea eax, [ebp - 0xec]
push eax
mov dword [edi + 0xe0], edx
call dword [sym.imp.OgreMain.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_Ogre::StringConverter::toString_unsigned_long_int__unsigned_short_int__char__int_]
add esp, 0x14
mov esi, eax
mov ecx, dword [edi + 0xd4]
push str._Entity_
mov byte [ebp - 4], 0xa
call dword [sym.imp.OgreMain.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Ogre::Node::getName_void_const]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call fcn.10001500
lea edx, [ebp - 0x40]
push edx
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 0xb
call fcn.10001400
push esi
push eax
lea ecx, [ebp - 0x60]
mov bl, 0xc
push ecx
mov byte [ebp - 4], bl
call fcn.10001400
add esp, 0x24
push eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xd
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
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, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
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, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
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, [ebp - 0xec]
mov byte [ebp - 4], 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_]
mov edx, dword [edi + 0xc8]
mov ecx, dword [edx + 0x24]
mov eax, dword [ecx]
xor edx, edx
mov dl, byte [0x101215c3]
push edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0xb4]
push edx
call dword [eax + 0xc4]
mov esi, eax
mov eax, dword [esi]
lea ecx, [edi + 0xcc]
push ecx
mov ecx, esi
mov dword [ebp - 0x14], esi
call dword [eax + 0x90]
mov al, byte [0x10122291]
test al, al
jne 0x10038ff4
push str.Fairy_Hack
mov byte [0x10122291], 1
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
test eax, eax
je 0x10038feb
push str.X_Ray
push eax
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
je 0x10038feb
mov byte [0x10122290], 1
jmp 0x10038ffd
mov byte [0x10122290], 0
jmp 0x10039009
mov al, byte [0x10122290]
test al, al
je 0x10039009
mov edx, dword [esi]
push 0x3c
mov ecx, esi
call dword [edx + 0x98]
mov ecx, dword [edi + 0x234]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xb4]
mov edx, dword [esi]
xor eax, eax
mov al, byte [edi + 0x255]
mov ecx, esi
push eax
call dword [edx + 0x74]
push esi
mov ecx, edi
call fcn.10025a50
mov ecx, dword [edi + 0xd4]
mov edx, dword [ecx]
push esi
call dword [edx + 0x13c]
mov ebx, dword [sym.imp.OgreMain.dll_public:_class_Ogre::MeshPtr_const____thiscall_Ogre::Entity::getMesh_void_const]
mov ecx, esi
call ebx
mov ecx, dword [eax + 4]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SkeletonPtr_const____thiscall_Ogre::Mesh::getSkeleton_void_const]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100391de
mov eax, dword [edi + 0xdc]
test eax, eax
jne 0x1003907e
mov ecx, esi
call ebx
mov ecx, dword [eax + 4]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SkeletonPtr_const____thiscall_Ogre::Mesh::getSkeleton_void_const]
push eax
mov ecx, edi
call fcn.10025780
mov eax, dword [edi + 0xdc]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xe
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Entity::shareSkeletonInstanceWith_class_Ogre::Entity__]
jmp 0x100391de
push esi
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.10037fe0
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x10039217
mov ecx, dword [edi + 0xe4]
test ecx, ecx
jne 0x10039217
mov ecx, dword [eax + 0x1a8]
mov dword [edi + 0xe4], ecx
mov edx, dword [ecx]
push 1
call dword [edx + 0x90]
mov al, byte [edi + 0x1f4]
test al, al
je 0x10039234
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.1002acc0
test al, al
jne 0x10039234
mov al, 1
jmp 0x10039236
xor al, al
lea ecx, [ebp - 0x40]
mov byte [esi + 0x9c], al
mov byte [ebp - 4], 1
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, [ebp - 0xb4]
mov byte [ebp - 4], 0
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, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MeshPtr::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4