Function at 0x10056c10
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100dc5b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10053610
mov ecx, esi
call fcn.10056020
mov ecx, esi
call fcn.10053660
lea ecx, [esi + 0xa4]
call fcn.10054f30
lea ebx, [esi + 0xb4]
mov ecx, ebx
call fcn.10054870
mov ecx, dword [esi + 4]
call fcn.10047270
mov edi, eax
push edi
lea ecx, [esp + 0x68]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x74]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Vector3::constructor_class_Ogre::Vector3_const__]
mov cl, byte [edi + 0x18]
lea edx, [esp + 0x34]
mov byte [esp + 0x7c], cl
push edx
lea ecx, [esp + 0x68]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3___thiscall_Ogre::AxisAlignedBox::getCenter_void_]
fld dword [esp + 0x78]
fsub dword [esp + 0x3c]
fld dword [esp + 0x74]
fsub dword [esp + 0x38]
fld dword [esp + 0x70]
fsub dword [esp + 0x34]
fstp dword [esp + 0x50]
fxch st(1)
fmul dword [0x100f0dd4]
fstp dword [esp + 0x10]
fmul dword [0x100f0dd4]
fld dword [esp + 0x50]
fmul dword [0x100f0dd4]
fld dword [esp + 0x3c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x38]
fadd st(2)
fstp dword [esp + 0x18]
fadd dword [esp + 0x34]
fstp dword [esp + 0x50]
fstp st(0)
fld dword [esp + 0x10]
fadd dword [0x100f0dd0]
fld dword [esp + 0x18]
fadd dword [0x100ed0ac]
fld dword [esp + 0x50]
fadd dword [0x100f0dd0]
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
fstp dword [esp + 0x58]
fld dword [esp + 0x6c]
fsub dword [esp + 0x3c]
fld dword [esp + 0x68]
fsub dword [esp + 0x38]
fld dword [esp + 0x64]
fsub dword [esp + 0x34]
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [0x100f0dd4]
fstp dword [esp + 0x10]
fmul dword [0x100f0dd4]
fld dword [esp + 0x28]
fmul dword [0x100f0dd4]
fld dword [esp + 0x3c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x38]
fadd st(2)
fstp dword [esp + 0x18]
fadd dword [esp + 0x34]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
fstp dword [esp + 0x2c]
mov byte [esp + 0x80], 0
fstp st(0)
fld dword [esp + 0x14]
fsub dword [0x100f0dd0]
fld dword [esp + 0x1c]
fsub dword [0x100ed0ac]
fld dword [esp + 0x2c]
fsub dword [0x100f0dd0]
fstp dword [esp + 0x2c]
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3____thiscall_Ogre::Vector3::operator_class_Ogre::Vector3_const__]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x74]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3____thiscall_Ogre::Vector3::operator_class_Ogre::Vector3_const__]
push str.Size
lea ecx, [esp + 0x88]
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 [esp + 0xb0]
mov ecx, dword [edx + 0x198]
mov eax, dword [ecx]
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x88]
xor ebp, ebp
push edx
mov dword [esp + 0xb0], ebp
call dword [eax + 0x158]
lea ecx, [esp + 0x84]
mov dword [esp + 0xa8], 0xffffffff
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 al, byte [esp + 0xb4]
mov byte [esi + 0xa0], al
mov eax, dword [esi + 4]
cmp dword [eax], ebp
je 0x10057151
cmp dword [eax + 4], ebp
je 0x10057151
mov edx, dword [eax + 0x94]
cmp edx, ebp
je 0x10056e6d
mov ecx, dword [eax + 0x98]
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x10056e6d
lea ebx, [ebx]
push ebp
mov ecx, esi
call fcn.100561f0
inc ebp
cmp ebp, edi
jb 0x10056e60
mov ecx, esi
call fcn.10054c50
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebp, dword [eax + 8]
mov edi, dword [eax + 0x50]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 0x4c]
mov al, byte [esi + 0xa0]
test al, al
mov dword [esp + 0x5c], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ecx
je 0x10056f61
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x58], esp
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_void_]
push 2
mov ecx, ebx
call fcn.10054f80
mov ecx, dword [esi + 0xb8]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::SharedPtr_class_Ogre::Material_::setNull_void_]
push str.FairyEditor_GridType
lea ecx, [esp + 0x88]
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 dword [esp + 0xa8], 1
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
mov edx, dword [eax]
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x44]
mov ecx, dword [esi + 0xb8]
add ecx, 0xc
push eax
mov byte [esp + 0xac], 2
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MaterialPtr____thiscall_Ogre::MaterialPtr::operator_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x30]
test eax, eax
mov byte [esp + 0xa8], 1
mov dword [esp + 0x28], 0x100ec508
je 0x10056f47
dec dword [eax]
mov edx, dword [esp + 0x30]
cmp dword [edx], 0
jne 0x10056f47
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
call dword [eax + 4]
lea ecx, [esp + 0x84]
mov dword [esp + 0xa8], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10056f6e
mov ecx, ebp
imul ecx, ebp
push ecx
mov ecx, esi
call fcn.10052100
mov ebx, dword [esp + 0x18]
mov edx, edi
imul edx, ebx
lea ecx, [esi + 8]
push edx
call fcn.10053e60
xor ecx, ecx
cmp edi, ecx
jle 0x10057151
mov eax, ebp
neg eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], edi
mov edi, edi
cmp ebx, ecx
jle 0x1005712e
mov eax, ebp
neg eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
jmp 0x10056fc6
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
cmp ebp, eax
lea eax, [esp + 0x1c]
jl 0x10056fd6
lea eax, [esp + 0x14]
mov ebp, dword [eax]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x14], eax
cmp ebx, eax
lea eax, [esp + 0x1c]
jl 0x10056ff9
lea eax, [esp + 0x14]
mov edi, dword [eax]
mov al, byte [esi + 0xa0]
test al, al
je 0x10057043
push 0x10c
call fcn.100d56bc
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xa8], 3
je 0x10057081
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edi
push ebp
push edx
mov edx, dword [esp + 0xbc]
push ecx
push esi
push edx
mov ecx, eax
call fcn.10096100
jmp 0x10057083
push 0xfc
call fcn.100d56bc
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xa8], 4
je 0x10057081
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push edi
push ebp
push ecx
mov ecx, dword [esp + 0xbc]
push edx
push esi
push ecx
mov ecx, eax
call fcn.10094ab0
jmp 0x10057083
xor eax, eax
mov edx, dword [esp + 0xb0]
mov ecx, dword [edx + 0x198]
mov edi, eax
mov eax, dword [ecx]
mov ebp, dword [edi]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x14], edi
call dword [eax + 0x240]
mov ecx, edi
push eax
call dword [ebp + 0x98]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea ebp, [esi + 8]
jne 0x100570c2
xor edx, edx
jmp 0x100570ca
mov edx, dword [ebp + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x100570e7
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x100570e7
mov eax, dword [ebp + 8]
mov dword [eax], edi
add eax, 4
mov dword [ebp + 8], eax
jmp 0x100570f9
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.10052de0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
add edx, ebx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x60]
add ecx, edx
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
jne 0x10056fc2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
add edx, ebp
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
add edi, eax
dec edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], edx
jne 0x10056fa0
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret 8