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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ddfe9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x3c0]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x8c], ebp
je 0x1006b2a0
cmp dword [ebp + 0x3c4], edi
je 0x1006b2a0
mov eax, dword [ebp + 0x3f4]
cmp eax, edi
lea ebx, [ebp + 0x3f0]
jne 0x1006aa9e
xor eax, eax
jmp 0x1006aab3
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp + 0x3c8]
jae 0x1006b2a0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x4c]
mov eax, dword [eax + 0x198]
mov dword [esp + 0x38], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov edx, dword [eax]
push 0xffffffffffffffff
lea ecx, [esp + 0xbc]
push ecx
mov ecx, eax
mov dword [esp + 0x29c], edi
call dword [edx + 0x258]
mov esi, eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x294], 0xffffffff
call fcn.1006a690
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x9c]
mov dword [esp + 0x294], 1
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::PlaneBoundedVolume::constructor_void_]
mov al, byte [ebp + 0x440]
test al, al
mov byte [esp + 0x294], 2
lea ecx, [esp + 0x9c]
je 0x1006ab5f
push 0xc
jmp 0x1006ab61
push 6
call fcn.10069d80
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x168]
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [eax + 0x60]
push edx
push eax
mov eax, dword [esp + 0xb0]
push eax
lea ecx, [esp + 0xac]
call fcn.10069b30
mov al, byte [ebp + 0x43e]
test al, al
je 0x1006abac
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [ebp + 0x400]
call fcn.1006a4a0
mov al, byte [ebp + 0x440]
test al, al
je 0x1006abe2
mov ecx, dword [ebp + 0x410]
mov edx, dword [ecx]
call dword [edx + 0x168]
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [eax + 0x60]
push edx
push eax
mov eax, dword [esp + 0xb0]
push eax
lea ecx, [esp + 0xac]
call fcn.10069b30
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x28]
call fcn.1006a940
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::PlaneBoundedVolumeListSceneQuery::setVolumes_class_std::vector_class_Ogre::PlaneBoundedVolume__class_std::allocator_class_Ogre::PlaneBoundedVolume___const__]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x294], 1
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::PlaneBoundedVolume::destructor_void_]
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0xffffffff
call fcn.1006a690
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x154]
mov edx, dword [ebp]
mov ecx, ebp
mov esi, eax
call dword [edx + 0x150]
push esi
lea ecx, [esp + 0x24c]
push ecx
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Matrix4___thiscall_Ogre::Matrix4::concatenate_class_Ogre::Matrix4_const__]
call fcn.100737f0
lea ecx, [esp + 0x180]
mov dword [esp + 0x94], eax
call fcn.100b5490
lea ecx, [esp + 0x12c]
mov dword [esp + 0x294], 3
call fcn.100b5350
mov dword [esp + 0x13c], edi
push sym.Render.dll_DllRelease
push 0x10057380
push 6
push 0x10
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x2a8], 4
call fcn.100d5b0c
mov ecx, dword [ebp + 0x3c0]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x298], 5
call dword [eax + 4]
mov eax, dword [ebp + 0x3c4]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov dword [esp + 0x90], eax
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x34], ecx
je 0x1006b24a
jmp 0x1006ad00
mov ecx, dword [esp + 0x34]
jmp 0x1006ad00
mov esi, dword [ecx + 8]
mov ecx, dword [ebp + 0x410]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0xb4], esi
call dword [eax + 0x60]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x7c]
test al, al
je 0x1006b219
mov eax, dword [sym.imp.OgreMain.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___Ogre::EntityFactory::FACTORY_TYPE_NAME]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x44]
push eax
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___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__]
add esp, 8
test al, al
je 0x1006b219
cmp dword [esi + 0x1a8], edi
jne 0x1006b219
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_bool___thiscall_Ogre::Entity::hasVertexAnimation_void_const]
test al, al
jne 0x1006b219
mov ecx, esi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MeshPtr_const____thiscall_Ogre::Entity::getMesh_void_const]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa0]
mov esi, eax
mov ecx, 0x10
lea edi, [esp + 0x1c8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x250]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Matrix4___thiscall_Ogre::Matrix4::concatenate_class_Ogre::Matrix4_const__]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x40]
push edx
call dword [eax + 0x10]
fld dword [esp + 0x54]
fchs
mov byte [esp + 0x294], 6
fsub dword [esp + 0x84]
fld dword [esp + 0x50]
fchs
fsub dword [esp + 0x80]
fld dword [esp + 0x4c]
fchs
fsub dword [esp + 0x7c]
fld dword [esp + 0x48]
fchs
fsub dword [esp + 0x78]
fstp dword [esp + 0xe8]
fstp dword [esp + 0xec]
fstp dword [esp + 0xf0]
fstp dword [esp + 0xf4]
fld dword [esp + 0x54]
fsub dword [esp + 0x84]
fld dword [esp + 0x50]
fsub dword [esp + 0x80]
fld dword [esp + 0x4c]
fsub dword [esp + 0x7c]
fld dword [esp + 0x48]
fsub dword [esp + 0x78]
fstp dword [esp + 0xf8]
fstp dword [esp + 0xfc]
fstp dword [esp + 0x100]
fstp dword [esp + 0x104]
fld dword [esp + 0x64]
fchs
fsub dword [esp + 0x84]
fld dword [esp + 0x60]
fchs
fsub dword [esp + 0x80]
fld dword [esp + 0x5c]
fchs
fsub dword [esp + 0x7c]
fld dword [esp + 0x58]
fchs
fsub dword [esp + 0x78]
fstp dword [esp + 0x118]
fstp dword [esp + 0x11c]
fstp dword [esp + 0x120]
fstp dword [esp + 0x124]
fld dword [esp + 0x64]
fsub dword [esp + 0x84]
fld dword [esp + 0x60]
fsub dword [esp + 0x80]
fld dword [esp + 0x5c]
fsub dword [esp + 0x7c]
fld dword [esp + 0x58]
fsub dword [esp + 0x78]
fstp dword [esp + 0x108]
fstp dword [esp + 0x10c]
fstp dword [esp + 0x110]
fstp dword [esp + 0x114]
fld dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
fchs
xor esi, esi
fsub dword [esp + 0x84]
push esi
fld dword [esp + 0x74]
fchs
fsub dword [esp + 0x84]
fld dword [esp + 0x70]
fchs
fsub dword [esp + 0x80]
fld dword [esp + 0x6c]
fchs
fsub dword [esp + 0x7c]
fstp dword [esp + 0xcc]
fstp dword [esp + 0xd0]
fstp dword [esp + 0xd4]
fstp dword [esp + 0xd8]
fld dword [esp + 0x78]
fsub dword [esp + 0x88]
fld dword [esp + 0x74]
fsub dword [esp + 0x84]
fld dword [esp + 0x70]
fsub dword [esp + 0x80]
fld dword [esp + 0x6c]
fsub dword [esp + 0x7c]
fstp dword [esp + 0xdc]
fstp dword [esp + 0xe0]
fstp dword [esp + 0xe4]
fstp dword [esp + 0xe8]
call fcn.1009f560
push eax
push 6
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x13c]
push ecx
lea ecx, [esp + 0x194]
call fcn.100b6bc0
test al, al
je 0x1006b206
mov eax, dword [esp + 0x190]
cmp eax, esi
je 0x1006afb1
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
jmp 0x1006afb5
mov dword [esp + 0x44], esi
cmp eax, esi
je 0x1006afc2
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
jmp 0x1006afc6
mov dword [esp + 0x18], esi
cmp dword [esp + 0x44], esi
je 0x1006b206
cmp dword [esp + 0x18], esi
je 0x1006b206
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x154]
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x20c]
push edx
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Matrix4___thiscall_Ogre::Matrix4::concatenate_class_Ogre::Matrix4_const__]
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x20c]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Matrix4___thiscall_Ogre::Matrix4::inverse_void_]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x184]
cmp eax, 1
jne 0x1006b050
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jmp 0x1006b07c
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x168]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x3c]
lea edx, [ebp + 0x14]
lea edi, [ebp + 4]
mov ecx, ebx
mov dword [esp + 0x98], edx
add ebp, 0x24
call fcn.100d1610
mov esi, eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + eax*2]
add ecx, eax
push ecx
mov ecx, ebx
mov dword [esp + 0xb8], esi
mov dword [esp + 0x18], 0
call fcn.100490b0
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], eax
jbe 0x1006b18b
jmp 0x1006b0d0
mov edx, dword [esp + 0x44]
fld dword [esp + 0x30]
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 4]
mov eax, ecx
shl eax, 4
fmul dword [eax + edx + 0xc]
add eax, edx
fld dword [esp + 0x2c]
fmul dword [eax + 8]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [eax + 4]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [eax]
faddp st(1)
fcomp dword [0x100ecb9c]
fnstsw ax
test ah, 0x41
jne 0x1006b176
mov eax, dword [ebp + 4]
lea esi, [ecx + ecx*2]
mov ecx, dword [edi + 4]
shl esi, 2
mov eax, dword [eax + esi]
lea edx, [eax + eax*2]
lea eax, [ecx + edx*4]
push eax
mov ecx, ebx
call fcn.10049c70
mov eax, dword [ebp + 4]
mov eax, dword [eax + esi + 4]
mov ecx, dword [edi + 4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
push eax
mov ecx, ebx
call fcn.10049c70
mov eax, dword [ebp + 4]
mov esi, dword [eax + esi + 8]
mov eax, dword [edi + 4]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*4]
push eax
mov ecx, ebx
call fcn.10049c70
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xb4]
add eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x1006b0d0
mov edi, dword [esp + 0x8c]
mov ecx, dword [edi + 0x3c8]
cmp ecx, esi
jbe 0x1006b235
mov edx, dword [esp + 0x14]
add edx, esi
cmp edx, ecx
seta al
test al, al
mov byte [esp + 0x13], al
je 0x1006b1cf
sub ecx, esi
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0x14], eax
add eax, esi
push eax
mov ecx, ebx
call fcn.1006a600
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb0]
push eax
push esi
push ecx
mov ecx, edi
call fcn.1006a870
mov al, byte [esp + 0x13]
test al, al
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], 5
jne 0x1006b241
call fcn.1000ec90
mov ebp, dword [esp + 0x8c]
jmp 0x1006b217
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], 5
call fcn.1000ec90
xor edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
cmp eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
jne 0x1006acf4
jmp 0x1006b246
mov byte [esp + 0x294], 5
lea ecx, [esp + 0x3c]
call fcn.1000ec90
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push esi
call dword [edx + 0x264]
push sym.Render.dll_DllRelease
push 6
push 0x10
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x2a4], 4
call fcn.100d5bcc
lea ecx, [esp + 0x12c]
mov byte [esp + 0x294], 3
call fcn.100b5380
lea ecx, [esp + 0x180]
mov dword [esp + 0x294], 0xffffffff
call fcn.100b6b40
mov ecx, dword [esp + 0x28c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret