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

Disassembly:
push 0xffffffffffffffff
push 0x420680
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43845c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x328], esi
je 0x4069ce
or ebp, 0xffffffff
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ebp
jmp 0x406950
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 0x31c]
call fcn.00408fc0
mov ebx, dword [esp + 0x1c]
cmp ebx, esi
je 0x4069c8
mov eax, dword [ebx + 8]
dec eax
cmp eax, ebp
je 0x4069c8
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
push ecx
push eax
lea edx, [esp + 0x20]
push 0x10d
push edx
mov dword [esp + 0xcc], esi
call dword [sym.imp.mfc90.dll_Ordinal_2538]
add esp, 0x10
push esi
push esi
push 1
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00410490
lea ecx, [esp + 0x18]
mov dword [esp + 0xbc], ebp
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp dword [esp + 0x14], esi
jne 0x406950
mov eax, dword [edi + 0x30c]
neg eax
sbb eax, eax
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], vtable.CArray_int__int_.0
mov dword [esp + 0x68], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov ebx, dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBCell::NewDimensionedObject_class_CCellDBDimensionedObject__]
mov dword [esp + 0xbc], 1
cmp eax, esi
je 0x406dbb
nop
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0x300]
mov dword [esp + 0x58], esi
call fcn.00408fc0
mov ebp, dword [esp + 0x4c]
mov ecx, dword [ebp]
mov esi, ecx
shr esi, 4
xor edx, edx
mov eax, esi
div dword [edi + 0x340]
mov eax, dword [edi + 0x33c]
test eax, eax
je case.default.0x406b0b
mov eax, dword [eax + edx*4]
test eax, eax
je case.default.0x406b0b
lea ecx, [ecx]
cmp dword [eax + 0xc], esi
jne 0x406a70
xor edx, edx
cmp dword [eax], ecx
sete dl
test edx, edx
jne 0x406a7c
mov eax, dword [eax + 8]
test eax, eax
jne 0x406a60
jmp case.default.0x406b0b
mov ecx, dword [edi + 0xb4]
mov eax, dword [eax + 4]
mov edx, dword [edi + 0xb0]
push ecx
lea esi, [edi + 0xb0]
push eax
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_class_ICellDB___int__int_]
mov ecx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimension::vftable]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov edx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], edx
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov eax, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x90], eax
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::GetFromDimensionedObject_class_CCellDBDimensionedObject__]
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::GetToDimensionedObject_class_CCellDBDimensionedObject__]
mov eax, dword [ebp + 4]
cmp eax, 3
ja case.default.0x406b0b
jmp dword [eax*4 + 0x40729c]
cmp dword [esp + 0xa8], 0
jle 0x406b98
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x10e
push edx
mov byte [esp + 0xcc], 2
call dword [sym.imp.mfc90.dll_Ordinal_2538]
add esp, 0x10
push 0
push 0
push 1
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.004104f0
mov esi, dword [esp + 0x6c]
test esi, esi
jl 0x406fc6
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x6c]
call fcn.004090a0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x18]
mov dword [eax + esi*4], edx
mov byte [esp + 0xbc], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp case.default.0x406b0b
mov eax, dword [edi + 0xb4]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi]
push eax
push ecx
push esi
lea ecx, [esp + 0x5c]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_class_ICellDB___int__int_]
mov edx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edx
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::SetFromDimensionedObject_class_CCellDBDimensionedObject__]
jmp case.default.0x406b0b
cmp dword [esp + 0x94], 0
jle 0x406d7a
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp]
push ecx
push edx
lea eax, [esp + 0x24]
push 0x10e
push eax
mov byte [esp + 0xcc], 3
call dword [sym.imp.mfc90.dll_Ordinal_2538]
add esp, 0x10
push 0
push 0
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.004104f0
mov esi, dword [esp + 0x6c]
test esi, esi
jl 0x406fc6
push 0xffffffffffffffff
lea edx, [esi + 1]
push edx
lea ecx, [esp + 0x6c]
call fcn.004090a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov dword [ecx + esi*4], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp case.default.0x406b0b
mov edx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
or ebp, 0xffffffff
push eax
mov ecx, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edx
call ebx
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetStartPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetEndPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetCenterPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionPoint_class_CPoint_]
push 2
lea ecx, [esp + 0x28]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionedObjectType_int_]
push 3
lea ecx, [esp + 0x28]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxType_int_]
push ebp
jmp 0x406d61
mov edx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
or eax, 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], edx
call ebx
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetStartPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetEndPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetCenterPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionPoint_class_CPoint_]
push 2
lea ecx, [esp + 0x28]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionedObjectType_int_]
push 0xb
lea ecx, [esp + 0x28]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxType_int_]
push 0xfffffffffffffffe
lea ecx, [esp + 0x28]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxIndex_int_]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::SetFromDimensionedObject_class_CCellDBDimensionedObject__]
mov eax, dword [edi + 0xb4]
mov edx, dword [esp + 0x14]
mov esi, dword [esi]
push eax
push edx
push esi
lea ecx, [esp + 0x5c]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_class_ICellDB___int__int_]
mov eax, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], eax
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::SetToDimensionedObject_class_CCellDBDimensionedObject__]
xor esi, esi
cmp dword [esp + 0x20], esi
jne 0x406a10
mov ebp, dword [esp + 0x6c]
test ebp, ebp
jle 0x406e15
test esi, esi
jl 0x406fc6
cmp esi, ebp
jge 0x406fc6
mov eax, dword [edi + 0xb0]
mov edx, dword [esp + 0x68]
mov edx, dword [edx + esi*4]
lea ecx, [edi + 0xb0]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov eax, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x3c], eax
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBCell::DeleteDimensionedObject_class_CCellDBDimensionedObject__]
inc esi
cmp esi, ebp
jl 0x406dbf
mov eax, dword [esp + 0x68]
test eax, eax
je 0x406e2e
push eax
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov dword [esp + 0x68], 0
xor eax, eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov eax, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimension::vftable]
xor ebp, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x24], vtable.CArray_int__int_.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
push 1
lea ecx, [esp + 0x7c]
lea esi, [edi + 0xb0]
push ecx
mov ecx, esi
mov byte [esp + 0xc4], 4
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBCell::GetNextDimension_class_CCellDBDimension___int_]
test eax, eax
jne 0x407194
lea ebx, [ebx]
lea ecx, [esp + 0x8c]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov edx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x8c], edx
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov eax, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa4], eax
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::GetFromDimensionedObject_class_CCellDBDimensionedObject__]
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x7c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::GetToDimensionedObject_class_CCellDBDimensionedObject__]
mov eax, 0xffffff9d
cmp dword [esp + 0x94], eax
je 0x406f02
cmp dword [esp + 0xa8], eax
jne 0x40717d
mov eax, dword [edi + 0x344]
xor ecx, ecx
neg eax
sbb eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp eax, ecx
je 0x40714c
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x1c]
je 0x406f50
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0x338]
call fcn.00408fc0
cmp dword [esp + 0x20], 0
jne 0x406f22
cmp dword [esp + 0x1c], 0
je 0x40714c
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov eax, 0xffffff9d
mov byte [esp + 0xbc], 5
cmp dword [esp + 0x94], eax
jne 0x40710f
cmp dword [esp + 0xa8], eax
jne 0x4070fd
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x7c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::GetType_int__]
mov eax, dword [esp + 0x4c]
cmp eax, 7
je 0x406fcb
cmp eax, 8
je 0x406fcb
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 0x10f
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2538]
add esp, 0xc
jmp 0x407128
call sub.mfc90.dll_Ordinal_1252
lea ecx, [esp + 0x50]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov ecx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea edx, [esp + 0x50]
mov dword [esp + 0x50], ecx
push edx
mov ecx, esi
call ebx
mov ebp, dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetStartPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call ebp
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetEndPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetCenterPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionPoint_class_CPoint_]
push 2
lea ecx, [esp + 0x54]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionedObjectType_int_]
push 3
lea ecx, [esp + 0x54]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxType_int_]
push 0xffffffffffffffff
lea ecx, [esp + 0x54]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxIndex_int_]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::SetToDimensionedObject_class_CCellDBDimensionedObject__]
lea ecx, [esp + 0x38]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBSubObject::constructor_void_]
mov ecx, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimensionedObject::vftable]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ecx
push edx
mov ecx, esi
call ebx
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call ebp
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetEndPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetCenterPoint_class_CPoint_]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionPoint_class_CPoint_]
push 2
lea ecx, [esp + 0x3c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetDimensionedObjectType_int_]
push 0xb
lea ecx, [esp + 0x3c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxType_int_]
push 0xfffffffffffffffe
lea ecx, [esp + 0x3c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimensionedObject::SetObjectGfxIndex_int_]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBDimension::SetFromDimensionedObject_class_CCellDBDimensionedObject__]
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x407179
mov eax, dword [esp + 0x18]
push eax
push eax
push 0x110
lea ecx, [esp + 0x20]
push ecx
jmp 0x40711f
mov eax, dword [esp + 0x18]
push eax
push eax
push 0x111
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2538]
add esp, 0x10
push 0
push 0
push 1
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004104f0
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], ecx
test ebp, ebp
jl 0x406fc6
push 0xffffffffffffffff
lea edx, [ebp + 1]
push edx
lea ecx, [esp + 0x2c]
call fcn.004090a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [eax + ebp*4], ecx
mov ebp, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x7c]
push edx
mov ecx, esi
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBCell::GetNextDimension_class_CCellDBDimension___int_]
test eax, eax
je 0x406e90
xor ebx, ebx
test ebp, ebp
jle 0x4071e8
test ebx, ebx
jl 0x406fc6
cmp ebx, ebp
jge 0x406fc6
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx*4]
mov edx, dword [edi + 0xb4]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [sym.imp.CELLDBPI.dll_const_CCellDBDimension::vftable]
push ecx
mov ecx, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x3c], eax
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBCell::DeleteDimension_class_CCellDBDimension__]
inc ebx
cmp ebx, ebp
jl 0x40719a
mov edi, dword [esp + 0x28]
test edi, edi
je 0x407205
push edi
call sub.mfc90.dll_Ordinal_266
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [0x4387a8]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
cmp ecx, eax
je 0x407261
call dword [sym.imp.TreeMemClasses.dll_public:_void____thiscall_CBaseTree::GetHead_void_]
test eax, eax
je 0x407245
mov esi, dword [sym.imp.TreeMemClasses.dll_public:_void____thiscall_CBaseTree::GetNext_void_]
lea esp, [esp]
push eax
call sub.mfc90.dll_Ordinal_800
mov ecx, dword [0x4387a8]
add esp, 4
call esi
test eax, eax
jne 0x407230
mov ecx, dword [0x4387a8]
test ecx, ecx
je 0x407257
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x4387a8], 0
test edi, edi
je 0x40726e
push edi
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40727f
push eax
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret