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

Disassembly:
push 0xffffffffffffffff
push 0x100e3799
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x178]
mov ecx, dword [eax + 0x28]
mov ebx, dword [edi + 0x144]
mov esi, dword [edi + 0x130]
mov eax, 0xaaaaaaab
mul ecx
mov ebp, edx
shr ebp, 1
xor ecx, ecx
cmp ebx, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebx
jl 0x100a7a59
lea edx, [ebx - 4]
shr edx, 2
inc edx
lea ecx, [edx*4]
lea eax, [esi + 0x14]
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
mov ebp, dword [ecx]
mov dword [eax - 0x14], ebp
mov ebp, dword [ecx + 4]
mov dword [eax - 0x10], ebp
mov ecx, dword [ecx + 8]
mov dword [eax - 0xc], ecx
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
mov ebp, dword [ecx]
mov dword [eax - 8], ebp
mov ebp, dword [ecx + 4]
mov dword [eax - 4], ebp
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
mov ebp, dword [ecx]
mov dword [eax + 4], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 8], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
mov ebp, dword [ecx]
mov dword [eax + 0x10], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0x14], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 0x18], ecx
add eax, 0x30
dec edx
jne 0x100a79f0
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp ecx, ebx
jae 0x100a7a90
lea edx, [ecx + ecx*2]
lea eax, [esi + edx*4 + 8]
mov edx, ebx
sub edx, ecx
jmp 0x100a7a70
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
mov ebp, dword [ecx]
mov dword [eax - 8], ebp
mov ebp, dword [ecx + 4]
mov dword [eax - 4], ebp
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
add eax, 0xc
dec edx
jne 0x100a7a70
mov ebp, dword [esp + 0x10]
mov ecx, dword [edi + 0x178]
push 2
call dword [sym.imp.OgreMain.dll_public:_void____thiscall_Ogre::HardwareBuffer::lock_enum_Ogre::HardwareBuffer::LockOptions_]
test ebp, ebp
mov ecx, dword [edi + 0x12c]
mov dword [esp + 0x18], ecx
jbe 0x100a7bcf
add eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jmp 0x100a7ac5
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
movzx edi, word [eax - 4]
movzx ebx, word [eax - 2]
movzx ebp, word [eax]
lea edi, [edi + edi*2]
shl edi, 2
lea ebx, [ebx + ebx*2]
shl ebx, 2
fld dword [edi + ecx + 8]
lea ebp, [ebp + ebp*2]
fld dword [edi + ecx + 4]
shl ebp, 2
fld dword [edi + ecx]
lea edx, [esp + 0x3c]
fstp dword [esp + 0x54]
push edx
lea eax, [esp + 0x4c]
fstp dword [esp + 0x5c]
push eax
lea edx, [esp + 0x2c]
fstp dword [esp + 0x64]
fld dword [ebx + ecx + 8]
fld dword [ebx + ecx + 4]
fld dword [ebx + ecx]
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
fstp dword [esp + 0x58]
fld dword [ecx + ebp + 8]
fld dword [ecx + ebp + 4]
fld dword [ecx + ebp]
lea ecx, [esp + 0x5c]
fstp dword [esp + 0x44]
push ecx
push edx
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::Vector3___cdecl_Ogre::Math::calculateBasicFaceNormalWithoutNormalize_class_Ogre::Vector3_const___class_Ogre::Vector3_const___class_Ogre::Vector3_const__]
fld dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
fadd dword [edi + esi]
mov eax, dword [esp + 0x24]
add ecx, 6
add esp, 0x10
fstp dword [edi + esi]
dec eax
fld dword [esp + 0x28]
mov dword [esp + 0x10], ecx
fadd dword [edi + esi + 4]
mov dword [esp + 0x14], eax
fstp dword [edi + esi + 4]
lea edi, [edi + esi + 8]
fld dword [esp + 0x2c]
fadd dword [edi]
fstp dword [edi]
fld dword [esp + 0x24]
fadd dword [ebx + esi]
fstp dword [ebx + esi]
fld dword [esp + 0x28]
fadd dword [ebx + esi + 4]
fstp dword [ebx + esi + 4]
lea ebx, [ebx + esi + 8]
fld dword [esp + 0x2c]
fadd dword [ebx]
fstp dword [ebx]
fld dword [esp + 0x24]
fadd dword [esi + ebp]
fstp dword [esi + ebp]
fld dword [esp + 0x28]
fadd dword [esi + ebp + 4]
fstp dword [esi + ebp + 4]
lea ebp, [esi + ebp + 8]
fld dword [esp + 0x2c]
fadd dword [ebp]
fstp dword [ebp]
jne 0x100a7abd
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [edi + 0x178]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0x170]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
push 1
call dword [edx + 0x14]
push eax
lea ecx, [esp + 0x64]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::HardwareVertexBufferSharedPtr::constructor_class_Ogre::HardwareVertexBufferSharedPtr_const__]
mov ecx, dword [esp + 0x64]
push 1
mov dword [esp + 0x78], 0
call dword [sym.imp.OgreMain.dll_public:_void____thiscall_Ogre::HardwareBuffer::lock_enum_Ogre::HardwareBuffer::LockOptions_]
test ebx, ebx
mov edi, eax
jbe 0x100a7c53
add esi, 8
mov ecx, dword [esi - 4]
mov eax, dword [esi - 8]
mov edx, dword [esi]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edx
call dword [sym.imp.OgreMain.dll_public:_float___thiscall_Ogre::Vector3::normalise_void_]
fstp st(0)
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [edi], eax
add edi, 4
mov dword [edi], ecx
add edi, 4
mov dword [edi], edx
add edi, 4
add esi, 0xc
dec ebx
jne 0x100a7c12
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::HardwareVertexBufferSharedPtr::destructor_void_]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret