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

Disassembly:
push 0xffffffffffffffff
push 0x100dc412
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
push esi
mov esi, dword [ecx + 0x94]
mov ecx, dword [ecx + 0xa4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
mov eax, dword [ebx + esi]
imul eax, eax, 0x1c
add eax, ecx
push edi
mov edi, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 0x40]
je 0x10055770
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
add eax, 0xc
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
jne 0x10055714
mov eax, dword [ebp + 0x40]
add edi, 0x18
cmp edi, eax
jne 0x100556f1
cmp edi, dword [ebp + 0x40]
je 0x10055770
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x2c]
sub edi, edx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax + 1]
mov dword [ecx + ebx], edx
mov eax, dword [ebp + 0x2c]
add ecx, ebx
mov ecx, dword [ebx + esi + 4]
mov dword [eax + ebx + 4], ecx
mov edx, dword [ebx + esi + 8]
add eax, ebx
mov eax, dword [ebp + 0x2c]
mov dword [eax + ebx + 8], edx
mov ecx, dword [ebx + esi + 0xc]
add eax, ebx
mov eax, dword [ebp + 0x2c]
add eax, ebx
mov dword [eax + 0xc], ecx
mov ebp, dword [ebp + 0x2c]
mov edx, dword [ebx + esi + 0x10]
add ebp, ebx
mov dword [ebp + 0x10], edx
jmp 0x10056004
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::TextureManager____cdecl_Ogre::TextureManager::getSingleton_void_]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x58]
push ecx
mov ecx, eax
call dword [edx + 0x44]
xor edi, edi
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x13c], edi
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::TexturePtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov byte [esp + 0x138], 2
mov dword [esp + 0x54], 0x100ec508
je 0x100557c8
dec dword [eax]
mov edx, dword [esp + 0x5c]
cmp dword [edx], edi
jne 0x100557c8
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 4]
mov ecx, dword [esp + 0x4c]
cmp ecx, edi
je 0x1005589f
mov edx, dword [ecx]
call dword [edx + 0x50]
cmp eax, dword [ebp + 0x5c]
ja 0x100557f0
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
call dword [eax + 0x4c]
cmp eax, dword [ebp + 0x5c]
jbe 0x1005589f
mov dword [esp + 0x28], 0x100f085c
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 3
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::TexturePtr::constructor_void_]
lea ecx, [esp + 0x28]
lea edi, [ebp + 0x38]
push ecx
mov ecx, edi
mov byte [esp + 0x13c], 4
call fcn.10055490
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 2
call fcn.100526f0
mov eax, dword [ebp + 0x40]
lea edx, [esp + 0x48]
push edx
lea ecx, [eax - 0xc]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::TexturePtr____thiscall_Ogre::TexturePtr::operator_class_Ogre::TexturePtr_const__]
mov eax, dword [edi + 4]
test eax, eax
je 0x10055868
mov edi, dword [edi + 8]
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + ebx], eax
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebx + esi + 4]
mov dword [eax + ebx + 4], ecx
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebx + esi + 8]
mov dword [eax + ebx + 8], edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebx + esi + 0xc]
mov dword [eax + ebx + 0xc], ecx
mov ebp, dword [ebp + 0x2c]
mov edx, dword [ebx + esi + 0x10]
mov dword [ebx + ebp + 0x10], edx
jmp 0x10055fef
lea ecx, [esp + 0x64]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Image::constructor_void_]
mov eax, dword [esp + 0x14]
push 0x10122668
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x140], 5
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Image____thiscall_Ogre::Image::load_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, [esp + 0x64]
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getWidth_void_const]
cmp eax, dword [ebp + 0x5c]
ja 0x10055ee7
lea ecx, [esp + 0x64]
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getHeight_void_const]
cmp eax, dword [ebp + 0x5c]
ja 0x10055ee7
lea ecx, [esp + 0x64]
call dword [sym.imp.OgreMain.dll_public:_bool___thiscall_Ogre::Image::getHasAlpha_void_const]
test al, al
mov byte [esp + 0x1f], al
je 0x10055906
lea ecx, [ebp + 0x50]
mov dword [esp + 0x14], ecx
jmp 0x1005590d
lea ecx, [ebp + 0x48]
mov dword [esp + 0x14], ecx
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x68]
jb 0x10055b29
mov eax, dword [ebp + 0x3c]
test eax, eax
lea edi, [ebp + 0x38]
je 0x10055939
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0
push 0x20
push 0
push eax
lea eax, [esp + 0xf0]
push eax
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_int__unsigned_short_int__char__int_]
push eax
lea ecx, [esp + 0x120]
push str._Terrain_Atlas_:
push ecx
mov byte [esp + 0x158], 9
call fcn.10001480
add esp, 0x20
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 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, [esp + 0x28]
call fcn.100526a0
push eax
mov ecx, edi
mov byte [esp + 0x13c], 0xc
call fcn.10055490
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 0xb
call fcn.100526f0
mov al, byte [esp + 0x1f]
mov edi, dword [ebp + 0x40]
neg al
push 0x2c
mov dword [esp + 0x28], edi
sbb eax, eax
and eax, 0xfffffff2
add eax, 0x1a
mov dword [esp + 0x44], eax
call fcn.100d56bc
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x138], 0xd
je 0x100559f6
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Image::constructor_void_]
mov eax, dword [esp + 0x18]
mov dword [eax], 0x100eff5c
mov dword [esp + 0x18], eax
jmp 0x100559fe
mov dword [esp + 0x18], 0
push 4
mov byte [esp + 0x13c], 0xb
call fcn.100d56bc
add esp, 4
test eax, eax
je 0x10055a1c
mov dword [eax], 1
jmp 0x10055a1e
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [edi - 0x10], eax
mov dword [edi - 0x14], ecx
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x58]
push edx
mov edx, dword [esp + 0x44]
push 1
push 1
push edx
push 1
push eax
push eax
push 0
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Image____thiscall_Ogre::Image::loadDynamicImage_unsigned_char___unsigned_int__unsigned_int__unsigned_int__enum_Ogre::PixelFormat__bool__unsigned_int__unsigned_int_]
mov edi, dword [edi - 0x14]
mov ecx, edi
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getSize_void_const]
mov ecx, edi
mov dword [esp + 0x18], eax
call dword [sym.imp.OgreMain.dll_public:_unsigned_char____thiscall_Ogre::Image::getData_void_]
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
mov edi, dword [eax - 0x14]
push ebp
push 0xe
mov ecx, edi
call dword [sym.imp.OgreMain.dll_public:_enum_Ogre::PixelFormat___thiscall_Ogre::Image::getFormat_void_]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
mov ecx, edi
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getHeight_void_const]
push eax
mov ecx, edi
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getWidth_void_const]
push eax
push 2
push 0x10122668
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::TextureManager____cdecl_Ogre::TextureManager::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::TexturePtr___thiscall_Ogre::TextureManager::createManual_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___enum_Ogre::TextureType__unsigned_int__unsigned_int__int__enum_Ogre::PixelFormat__int__class_Ogre::ManualResourceLoader__]
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0xfffffff4
mov byte [esp + 0x13c], 0xe
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::TexturePtr____thiscall_Ogre::TexturePtr::operator_class_Ogre::TexturePtr_const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 0xb
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::TexturePtr::destructor_void_]
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x10055b03
mov ecx, dword [ebp + 0x40]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], 0
lea ecx, [esp + 0x108]
mov byte [esp + 0x138], 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 ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x3c]
dec eax
lea eax, [eax + eax*2]
lea edx, [edx + eax*8]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x64]
mov dword [esp + 0x40], edx
xor edx, edx
div ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
lea edi, [eax + 1]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x5c]
mov ecx, eax
imul ecx, edi
mov dword [esp + 0x24], edx
inc edx
imul edx, eax
mov edi, eax
imul eax, dword [esp + 0x24]
imul edi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov eax, edi
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0xbc]
push eax
push 0
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 4]
push 0
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::PixelBox___thiscall_Ogre::Image::getPixelBox_unsigned_int__unsigned_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::PixelBox___thiscall_Ogre::PixelBox::getSubVolume_struct_Ogre::Box_const__]
mov edi, dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getHeight_void_const]
lea ecx, [esp + 0x64]
call edi
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x10055bd8
fadd dword [0x100e9ad0]
fmul dword [ebx + esi + 0x10]
lea ecx, [esp + 0x64]
fadd dword [0x100ec510]
fstp dword [esp + 0x20]
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getWidth_void_const]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x10055c02
fadd dword [0x100e9ad0]
fmul dword [ebx + esi + 0xc]
lea ecx, [esp + 0x64]
fadd dword [0x100ec510]
fstp dword [esp + 0x60]
call edi
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x10055c28
fadd dword [0x100e9ad0]
fmul dword [ebx + esi + 8]
lea ecx, [esp + 0x64]
fadd dword [0x100ec510]
fstp dword [esp + 0x44]
call dword [sym.imp.OgreMain.dll_public:_unsigned_int___thiscall_Ogre::Image::getWidth_void_const]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x10055c52
fadd dword [0x100e9ad0]
fmul dword [ebx + esi + 4]
lea eax, [esp + 0x20]
push eax
fadd dword [0x100ec510]
fstp dword [esp + 0x14]
call fcn.10046670
lea ecx, [esp + 0x64]
push ecx
mov esi, eax
call fcn.10046670
lea edx, [esp + 0x4c]
push edx
mov edi, eax
call fcn.10046670
mov dword [esp + 0x50], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10046670
mov ecx, dword [esp + 0x54]
add esp, 0x10
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x94]
push eax
push 0
mov dword [esp + 0x38], ecx
push 0
lea ecx, [esp + 0xf0]
mov dword [esp + 0x44], esi
push ecx
mov esi, 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], esi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::PixelBox___thiscall_Ogre::Image::getPixelBox_unsigned_int__unsigned_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::PixelBox___thiscall_Ogre::PixelBox::getSubVolume_struct_Ogre::Box_const__]
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x90]
mov eax, dword [ebp + 0x5c]
sub edx, edi
cmp edx, eax
jne 0x10055d27
mov ecx, dword [esp + 0x9c]
sub ecx, dword [esp + 0x94]
cmp ecx, eax
jne 0x10055d27
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::PixelUtil::bulkPixelConversion_class_Ogre::PixelBox_const___class_Ogre::PixelBox_const__]
add esp, 8
jmp 0x10055d42
push 2
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::Image::scale_class_Ogre::PixelBox_const___class_Ogre::PixelBox_const___enum_Ogre::Image::Filter_]
add esp, 0xc
cmp dword [ebp + 0x60], esi
mov edx, esi
mov dword [esp + 0x20], edx
jb 0x10055e24
jmp 0x10055d60
mov edx, dword [esp + 0x20]
jmp 0x10055d60
mov eax, dword [ebp + 0x5c]
mov ecx, 0xa
lea esi, [esp + 0xb8]
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov esi, eax
imul esi, ecx
mov edi, eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x18]
imul edi, esi
inc ecx
imul ecx, eax
mov dword [esp + 0x30], ecx
lea ecx, [esi + 1]
imul ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 4]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xe4]
push eax
push edx
push 0
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x40], edi
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::PixelBox___thiscall_Ogre::Image::getPixelBox_unsigned_int__unsigned_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::PixelBox___thiscall_Ogre::PixelBox::getSubVolume_struct_Ogre::Box_const__]
mov esi, eax
mov ecx, 0xa
lea edi, [esp + 0xb8]
push 2
lea eax, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::Image::scale_class_Ogre::PixelBox_const___class_Ogre::PixelBox_const___enum_Ogre::Image::Filter_]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x60]
add esp, 0xc
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jbe 0x10055d53
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0x10]
mov al, byte [ecx + 0x48]
test al, al
mov esi, dword [esp + 0x14]
je 0x10055e3b
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [esi + 4]
fild dword [esp + 0x24]
mov ecx, dword [esi]
inc eax
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [eax + ebx], ecx
fmul dword [ebp + 0x6c]
mov edx, dword [ebp + 0x58]
fild dword [ebp + 0x58]
test edx, edx
mov eax, dword [ebp + 0x2c]
jge 0x10055e64
fadd dword [0x100e9ad0]
fdivr dword [0x100ec510]
faddp st(1)
fstp dword [eax + ebx + 4]
mov ecx, dword [ebp + 0x58]
test ecx, ecx
fild dword [esp + 0x18]
mov eax, dword [ebp + 0x2c]
fmul dword [ebp + 0x6c]
fild dword [ebp + 0x58]
jge 0x10055e8a
fadd dword [0x100e9ad0]
fdivr dword [0x100ec510]
faddp st(1)
fstp dword [eax + ebx + 8]
mov eax, dword [ebp + 0x2c]
fld dword [eax + ebx + 4]
mov edx, dword [ebp + 0x58]
test edx, edx
fadd dword [ebp + 0x6c]
fild dword [ebp + 0x58]
jge 0x10055eb0
fadd dword [0x100e9ad0]
fdivr dword [0x100ec514]
fsubp st(1)
fstp dword [eax + ebx + 0xc]
mov eax, dword [ebp + 0x2c]
fld dword [eax + ebx + 8]
mov ecx, dword [ebp + 0x58]
test ecx, ecx
fadd dword [ebp + 0x6c]
fild dword [ebp + 0x58]
jge 0x10055ed6
fadd dword [0x100e9ad0]
fdivr dword [0x100ec514]
fsubp st(1)
fstp dword [eax + ebx + 0x10]
jmp 0x10055fdd
mov dword [esp + 0x28], 0x100f085c
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 6
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::TexturePtr::constructor_void_]
lea edx, [esp + 0x28]
lea edi, [ebp + 0x38]
push edx
mov ecx, edi
mov byte [esp + 0x13c], 7
call fcn.10055490
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 5
call fcn.100526f0
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x10], eax
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::TextureManager____cdecl_Ogre::TextureManager::getSingleton_void_]
mov edx, dword [eax]
push 0
push 0
push 0x3f800000
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x2c]
push 0x10122668
push ecx
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call dword [edx + 0x7c]
mov ecx, dword [esp + 0x10]
push eax
add ecx, 0xfffffff4
mov byte [esp + 0x13c], 8
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::TexturePtr____thiscall_Ogre::TexturePtr::operator_class_Ogre::TexturePtr_const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 5
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::TexturePtr::destructor_void_]
mov eax, dword [edi + 4]
test eax, eax
je 0x10055fab
mov edi, dword [edi + 8]
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + ebx], eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebx + esi + 4]
mov dword [eax + ebx + 4], edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebx + esi + 8]
mov dword [eax + ebx + 8], ecx
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebx + esi + 0xc]
mov dword [eax + ebx + 0xc], edx
mov ebp, dword [ebp + 0x2c]
mov eax, dword [ebx + esi + 0x10]
mov dword [ebx + ebp + 0x10], eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 2
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::Image::destructor_void_]
lea ecx, [esp + 0x48]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::TexturePtr::destructor_void_]
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 4