Function at 0x10040420
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x100dac9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.10029c80
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.1002a470
mov dword [edi + 4], eax
mov byte [eax + 0x61], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea ebp, [esi + 0x18]
mov ecx, ebp
mov byte [esp + 0x24], 1
call fcn.1002a430
mov dword [ebp + 4], eax
mov byte [eax + 0xbd], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], ebx
lea ecx, [esi + 0x24]
mov byte [esp + 0x24], 2
call fcn.1002a470
mov dword [esi + 0x28], eax
mov byte [eax + 0x61], 1
mov eax, dword [esi + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x28]
mov dword [eax], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 8], eax
mov dword [esi + 0x2c], ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x24], 3
call fcn.1002a4f0
mov dword [esi + 0x34], eax
mov byte [eax + 0x75], 1
mov eax, dword [esi + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x34]
mov dword [eax], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 8], eax
mov dword [esi + 0x38], ebx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x24], 4
call fcn.1002a4b0
mov dword [esi + 0x40], eax
mov byte [eax + 0xb9], 1
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 8], eax
mov dword [esi + 0x44], ebx
lea ecx, [esi + 0x48]
mov byte [esp + 0x24], 5
call fcn.1002a4f0
mov dword [esi + 0x4c], eax
mov byte [eax + 0x75], 1
mov eax, dword [esi + 0x4c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x4c]
mov dword [eax], eax
mov eax, dword [esi + 0x4c]
mov dword [eax + 8], eax
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x54]
mov byte [esp + 0x24], 6
call fcn.10010fe0
mov dword [esi + 0x58], eax
mov byte [eax + 0x71], 1
mov eax, dword [esi + 0x58]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x58]
mov dword [eax], eax
mov eax, dword [esi + 0x58]
mov dword [eax + 8], eax
mov dword [esi + 0x5c], ebx
lea ecx, [esi + 0x60]
mov byte [esp + 0x24], 7
call fcn.1002a4b0
mov dword [esi + 0x64], eax
mov byte [eax + 0xb9], 1
mov eax, dword [esi + 0x64]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x64]
mov dword [eax], eax
mov eax, dword [esi + 0x64]
mov dword [eax + 8], eax
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [esp + 0x24], 8
call fcn.1000acb0
mov dword [esi + 0x70], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x70]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x70]
mov dword [eax], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 8], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea ecx, [esi + 0x98]
mov byte [esp + 0x24], 0xb
call fcn.10029d10
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], ebx
lea ecx, [esi + 0xa4]
mov byte [esp + 0x24], 0xc
call fcn.10007470
mov dword [esi + 0xa8], eax
mov byte [eax + 0x31], 1
mov eax, dword [esi + 0xa8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xa8]
mov dword [eax], eax
mov eax, dword [esi + 0xa8]
mov dword [eax + 8], eax
mov dword [esi + 0xac], ebx
lea ecx, [esi + 0xb0]
mov byte [esp + 0x24], 0xd
call fcn.1002a530
mov dword [esi + 0xb4], eax
mov byte [eax + 0x6d], 1
mov eax, dword [esi + 0xb4]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xb4]
mov dword [eax], eax
mov eax, dword [esi + 0xb4]
mov dword [eax + 8], eax
mov dword [esi + 0xb8], ebx
lea ecx, [esi + 0xbc]
mov byte [esp + 0x24], 0xe
call fcn.10029c80
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], ebx
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], 0x100ee99c
mov dword [esi + 0xd0], ebx
mov eax, 0x3f800000
push 0x100e94aa
lea ecx, [esi + 0x108]
mov byte [esp + 0x28], 0x10
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov byte [esi + 0xec], bl
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], ebx
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__]
lea ecx, [esi + 0x128]
mov byte [esp + 0x24], 0x11
mov byte [esi + 0x124], bl
call fcn.10029ca0
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], ebx
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esi + 0x144]
mov byte [esp + 0x28], 0x12
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov byte [esi + 0x140], bl
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 byte [esi + 0x160], bl
mov edx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
push edx
lea ecx, [esi + 0x164]
mov byte [esp + 0x28], 0x13
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
mov eax, dword [sym.imp.OgreMain.dll_class_Ogre::Quaternion_const_Ogre::Quaternion::IDENTITY]
push eax
lea ecx, [esi + 0x170]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Quaternion::constructor_class_Ogre::Quaternion_const__]
lea ecx, [esi + 0x180]
call fcn.10057b00
mov dword [esi + 0x184], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x184]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x184]
mov dword [eax], eax
mov eax, dword [esi + 0x184]
mov dword [eax + 8], eax
mov dword [esi + 0x188], ebx
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Quaternion_const_Ogre::Quaternion::IDENTITY]
push ecx
mov byte [esp + 0x28], 0x14
lea ecx, [esi + 0x18c]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Quaternion::constructor_class_Ogre::Quaternion_const__]
mov edx, dword [sym.imp.OgreMain.dll_class_Ogre::Quaternion_const_Ogre::Quaternion::IDENTITY]
push edx
lea ecx, [esi + 0x19c]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Quaternion::constructor_class_Ogre::Quaternion_const__]
push 0x100e94aa
lea ecx, [esi + 0x1c8]
mov byte [esi + 0x1ac], bl
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1b8], ebx
mov byte [esi + 0x1c0], bl
mov dword [esi + 0x1c4], ebx
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 ecx, dword [sym.imp.OgreMain.dll_class_Ogre::ColourValue_const_Ogre::ColourValue::Black]
mov edx, dword [ecx]
lea eax, [esi + 0x1e4]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
push 0x100e94aa
lea ecx, [esi + 0x204]
mov byte [esp + 0x28], 0x15
mov byte [esi + 0x1f4], bl
mov byte [esi + 0x1f5], bl
mov byte [esi + 0x1f6], bl
mov dword [esi + 0x1f8], ebx
mov byte [esi + 0x1fc], bl
mov dword [esi + 0x200], ebx
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 edx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::UNIT_SCALE]
push edx
lea ecx, [esi + 0x220]
mov byte [esp + 0x28], 0x16
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
mov dword [esi + 0x22c], ebx
mov eax, dword [sym.imp.OgreMain.dll_float_const_Ogre::Math::POS_INFINITY]
mov ecx, dword [eax]
mov dword [esi + 0x230], ecx
mov dword [esi + 0x234], 0xfffffff8
mov byte [esi + 0x238], 1
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x250], ebx
mov byte [esi + 0x254], 1
mov byte [esi + 0x255], 1
mov byte [esi + 0x256], 1
mov dword [esi + 0x258], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov byte [esi + 0x268], bl
mov byte [esi + 0x269], bl
mov edx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
push edx
lea ecx, [esi + 0x26c]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
mov eax, dword [sym.imp.OgreMain.dll_class_Ogre::Quaternion_const_Ogre::Quaternion::IDENTITY]
push eax
lea ecx, [esi + 0x278]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Quaternion::constructor_class_Ogre::Quaternion_const__]
mov dword [esi + 0x288], ebx
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
push ecx
lea ecx, [esi + 0x28c]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
mov edx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
push edx
lea ecx, [esi + 0x298]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
mov dword [esi + 0x2a4], ebx
mov dword [esp + 0x14], 0x100ee99c
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0xd0]
cmp ecx, ebx
mov byte [esp + 0x24], 0x17
mov dword [esi + 0xd0], ebx
je 0x1004099b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
mov byte [esp + 0x28], 0x16
call fcn.10030800
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebp
call fcn.1003e1e0
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov dword [eax], eax
mov ebp, dword [ebp + 4]
mov dword [ebp + 8], ebp
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 4]
lea edi, [esi + 0x30]
push eax
mov ecx, edi
call fcn.1003e230
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 4]
lea edi, [esi + 0x3c]
push edx
mov ecx, edi
call fcn.10030880
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 4]
lea edi, [esi + 0x48]
push ecx
mov ecx, edi
call fcn.100308d0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov edx, dword [esi + 0x184]
mov eax, dword [edx + 4]
lea edi, [esi + 0x180]
push eax
mov ecx, edi
call fcn.10029d30
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
lea ecx, [esi + 0xbc]
mov dword [edi + 8], edi
call fcn.1001dba0
lea ecx, [esi + 0x98]
call fcn.100301c0
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 4]
lea edi, [esi + 0x24]
push edx
mov ecx, edi
call fcn.10030840
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov eax, dword [esi + 0xa8]
mov ecx, dword [eax + 4]
lea edi, [esi + 0xa4]
push ecx
mov ecx, edi
call fcn.10030990
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + 4]
lea edi, [esi + 0xb0]
push eax
mov ecx, edi
call fcn.100309d0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
lea ecx, [esi + 0x128]
mov dword [edi + 8], edi
call fcn.1002fee0
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
lea edi, [esi + 0x54]
push edx
mov ecx, edi
call fcn.1003b320
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 4]
lea edi, [esi + 0x60]
push ecx
mov ecx, edi
call fcn.10030910
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov edx, dword [esi + 0x70]
mov eax, dword [edx + 4]
lea edi, [esi + 0x6c]
push eax
mov ecx, edi
call fcn.1000b300
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
lea ecx, [esi + 0x78]
call fcn.10033e30
lea ecx, [esi + 0x88]
call fcn.10033e30
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8