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

Disassembly:
push 0xffffffffffffffff
push 0x5d3cc2
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x632da0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x632da0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [esp + 0x258]
mov esi, ecx
mov ecx, dword [esp + 0x25c]
mov dword [esp + 0x88], eax
mov dword [esp + 0xc4], ecx
lea edx, [esp + 0x264]
push str.HeightLimit_A
push edx
mov dword [esp + 0x258], 0
call fcn.005b9b40
add esp, 8
test eax, eax
je 0x414f27
lea eax, [esp + 0x264]
push str.HeightLimit_B
push eax
call fcn.005b9b40
add esp, 8
test eax, eax
je 0x414f27
lea ecx, [esp + 0x264]
mov dword [esp + 0x250], 0xffffffff
call fcn.005b9130
mov eax, 0x8000001
jmp 0x41610d
cmp dword [esp + 0x260], 1
jne 0x415019
mov ecx, dword [esp + 0x264]
push ecx
mov ecx, dword [esi + 0x24]
call fcn.004c0df0
test eax, eax
je 0x415019
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
push eax
lea ecx, [esp + 0x7c]
call fcn.00492120
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 1
call fcn.005be570
lea ecx, [esp + 0x78]
mov byte [esp + 0x250], 2
call fcn.00492140
lea ecx, [esp + 0x78]
call fcn.00492110
test eax, eax
je 0x414fd8
nop
lea ecx, [esp + 0x78]
call fcn.00492110
mov edi, eax
mov ecx, edi
call fcn.0047c8c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
je 0x414fc2
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x24]
call fcn.005be2d0
mov dword [eax], edi
lea ecx, [esp + 0x78]
call fcn.00492170
lea ecx, [esp + 0x78]
call fcn.00492110
test eax, eax
jne 0x414f90
mov ebx, dword [esp + 0x20]
xor edi, edi
test ebx, ebx
jle 0x414ff7
mov edx, dword [esp + 0x28]
mov eax, dword [edx + edi*4]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00492710
inc edi
cmp edi, ebx
jl 0x414fe2
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 1
call fcn.005be4c0
lea ecx, [esp + 0x78]
mov byte [esp + 0x250], 0
call fcn.00481ef0
mov ecx, dword [esp + 0x88]
push 0x10
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBSheet::CountElement_unsigned_char_]
mov ebp, eax
xor edi, edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x1c], edi
test ebp, ebp
jle 0x415875
lea esp, [esp]
mov ecx, dword [esp + 0x88]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DConstraint____thiscall_BMBSheet::Get2DConstraint_int_]
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.005b8eb0
mov ecx, ebx
mov byte [esp + 0x250], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_short_int___thiscall_BMBSymbol::GetLayerNumber_void_]
mov ecx, dword [esp + 0xc4]
movzx eax, ax
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBLayer____thiscall_BMBTableLayer::ScanRecord_short_int_]
cmp byte [eax + 0xf], 8
jne 0x415857
mov eax, dword [eax + 0x14]
push eax
lea eax, [esp + 0xcc]
push eax
mov ecx, esi
call fcn.00404d20
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 4
call fcn.005b9150
lea ecx, [esp + 0xc8]
mov byte [esp + 0x250], 3
call fcn.005b9130
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x268]
push edx
call fcn.005b9750
add esp, 8
test eax, eax
jne 0x415857
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x24]
push eax
call fcn.004c0df0
test eax, eax
je 0x415857
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
mov ecx, ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x415857
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeometry____thiscall_BMBElement::Get2DShape_int_]
lea ecx, [esp + 0x50]
mov edi, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeUnit::constructor_void_]
mov cl, byte [edi + 8]
mov byte [esp + 0x33], cl
lea ecx, [esp + 0xd4]
mov byte [esp + 0x250], 5
call fcn.00513d20
movzx eax, byte [esp + 0x33]
mov byte [esp + 0x250], 6
cmp eax, 5
ja case.0x415162.2
jmp dword [eax*4 + 0x4168a4]
push 0
lea edx, [esp + 0x1ac]
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
movzx edx, byte [eax + 8]
mov byte [esp + 0x58], dl
lea ecx, [esp + 0x1a8]
fld dword [eax + 0xc]
fstp dword [esp + 0x5c]
fld dword [eax + 0x10]
fstp dword [esp + 0x60]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x60]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
fld dword [esp + 0x5c]
push ecx
mov ecx, esi
fstp dword [esp]
mov ebp, eax
call fcn.00403cb0
mov dword [esp + 0x78], eax
push 1
lea eax, [esp + 0x184]
push eax
mov ecx, edi
mov dword [esp + 0x84], ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
movzx edx, byte [eax + 8]
mov byte [esp + 0x58], dl
lea ecx, [esp + 0x180]
fld dword [eax + 0xc]
fstp dword [esp + 0x5c]
fld dword [eax + 0x10]
fstp dword [esp + 0x60]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x5c]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x178]
call fcn.004f6030
lea ecx, [esp + 0x170]
push ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0x254], 7
call fcn.00521500
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x21c]
mov byte [esp + 0x254], 8
call fcn.00514070
push 0xff
lea ecx, [esp + 0x21c]
mov byte [esp + 0x254], 9
mov dword [esp + 0x228], 0
call fcn.00515ea0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0xd8]
call fcn.00516890
lea ecx, [esp + 0x218]
mov byte [esp + 0x250], 8
call fcn.00516bd0
lea ecx, [esp + 0x90]
mov byte [esp + 0x250], 7
call fcn.00526cc0
lea ecx, [esp + 0x170]
mov byte [esp + 0x250], 6
call fcn.004f6120
jmp case.0x415162.5
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov cl, byte [eax + 8]
mov byte [esp + 0x58], cl
fld dword [eax + 0xc]
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x34]
fld dword [eax + 0x10]
fstp dword [esp + 0x60]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x60]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
fld dword [esp + 0x5c]
push ecx
mov ecx, esi
fstp dword [esp]
mov ebp, eax
call fcn.00403cb0
push 1
lea edx, [esp + 0x1c0]
push edx
mov ecx, edi
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov dl, byte [eax + 8]
mov byte [esp + 0x58], dl
fld dword [eax + 0xc]
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x1bc]
fld dword [eax + 0x10]
fstp dword [esp + 0x60]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x5c]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
fld dword [esp + 0x60]
push ecx
mov ecx, esi
fstp dword [esp]
mov ebp, eax
call fcn.00403cb0
fldz
sub esp, 8
fstp qword [esp]
push eax
push ebp
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x22c]
call fcn.004f4950
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x21c]
mov byte [esp + 0x254], 0xa
call fcn.004f4a30
push eax
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x254], 0xb
call fcn.004eede0
lea edx, [esp + 0x1f8]
push edx
lea ecx, [esp + 0x94]
mov byte [esp + 0x254], 0xc
call fcn.005213f0
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x250], 0xe
call fcn.004eee10
lea ecx, [esp + 0x160]
mov byte [esp + 0x250], 0xf
call fcn.00481ef0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x10c]
call fcn.00514070
push 0xff
lea ecx, [esp + 0x10c]
mov byte [esp + 0x254], 0x10
mov dword [esp + 0x118], 0
call fcn.00515ea0
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00516890
lea ecx, [esp + 0x108]
mov byte [esp + 0x250], 0xf
call fcn.00516bd0
lea ecx, [esp + 0x90]
mov byte [esp + 0x250], 0xa
call fcn.00526cc0
lea ecx, [esp + 0x218]
mov byte [esp + 0x250], 6
call fcn.004f4a20
jmp case.0x415162.5
lea ecx, [esp + 0x194]
call fcn.00520f90
lea edx, [esp + 0x194]
push edx
push edi
mov ecx, esi
mov byte [esp + 0x258], 0x11
call fcn.00403e40
lea eax, [esp + 0x194]
push eax
lea ecx, [esp + 0x138]
call fcn.00514070
mov ebp, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x2c]
mov byte [esp + 0x250], 0x12
jge 0x4155a9
push ebp
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeometry____thiscall_BMBElement::Get2DShape_int_]
mov edi, eax
cmp byte [edi + 8], 5
jne 0x4155a9
lea ecx, [esp + 0x64]
call fcn.00520f90
lea ecx, [esp + 0x64]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x258], 0x13
call fcn.00403e40
lea edx, [esp + 0x134]
push edx
push 0x24
call fcn.00515d00
add esp, 8
mov dword [esp + 0x8c], eax
mov byte [esp + 0x250], 0x14
test eax, eax
je 0x415576
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
call fcn.005150d0
jmp 0x415578
xor eax, eax
push eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x254], 0x13
call fcn.00515d90
lea ecx, [esp + 0x64]
mov byte [esp + 0x250], 0x12
call fcn.00526cc0
inc ebp
cmp ebp, dword [esp + 0x2c]
jl 0x415510
push 0xff
lea ecx, [esp + 0x138]
mov dword [esp + 0x144], 0
call fcn.00515ea0
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0xd8]
call fcn.00516890
lea ecx, [esp + 0x134]
mov byte [esp + 0x250], 0x11
call fcn.00516bd0
lea ecx, [esp + 0x194]
mov byte [esp + 0x250], 6
call fcn.00526cc0
lea ecx, [esp + 0xd4]
call fcn.00524310
cmp eax, 3
jl case.0x415162.2
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetStandOff_void_]
push ecx
mov ecx, ebx
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetHeight_void_]
sub esp, 0x30
lea eax, [esp + 0x108]
fstp dword [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xc0], esp
push eax
call fcn.005164a0
mov ecx, dword [esp + 0x80]
push ecx
mov ecx, esi
call fcn.00403ce0
test eax, eax
jne case.0x415162.2
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0xd4]
push edx
push eax
call fcn.00492e70
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
mov ebp, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_BMBElement::GetOwner_void_]
mov eax, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x98], esp
push eax
push edx
mov ecx, esi
mov byte [esp + 0x264], 0x15
call fcn.00404d20
push ebp
mov ecx, esi
call fcn.00405d90
lea ecx, [esp + 0x80]
mov byte [esp + 0x250], 6
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, ebx
test ebp, ebp
je 0x41571e
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetHeight_void_]
fstp dword [esp + 0x84]
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetStandOff_void_]
fstp dword [esp + 0x14]
fld dword [esp + 0x84]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
mov ecx, ebp
mov edi, eax
call fcn.004d8c00
fld dword [esp + 0x14]
push ecx
mov ecx, esi
fstp dword [esp]
mov dword [ebp + 0x68], edi
call fcn.00403cb0
mov ecx, ebp
mov edi, eax
call fcn.004d8c00
mov dword [ebp + 0x6c], edi
jmp case.0x415162.2
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_long_int___thiscall_BMBElement::GetID_void_]
push eax
push str.BDExport::Export_Data_Error_ID:
push 0x632f68
call fcn.00401320
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
push str.InternalError_Kind_LayerName_PointX_PointY
push 0x632f68
call fcn.00401320
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
lea edx, [esp + 0x94]
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov dl, byte [eax + 8]
mov byte [esp + 0x58], dl
fld dword [eax + 0xc]
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x90]
fld dword [eax + 0x10]
fstp dword [esp + 0x60]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
fld dword [esp + 0x60]
push eax
push ecx
fstp dword [esp]
push 0x5eeb1c
fld dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x274]
fstp dword [esp]
push 0x5eeb1c
push ecx
push str.ERROR_HEIGHT_LIMIT_
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.00401320
add esp, 8
push eax
call fcn.00401320
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___float_]
push eax
call fcn.00401320
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___float_]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x250], 5
call fcn.00516bd0
lea ecx, [esp + 0x50]
mov byte [esp + 0x250], 3
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
jl 0x41511c
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0
call fcn.005b9130
inc edi
cmp edi, ebp
mov dword [esp + 0x1c], edi
jl 0x415040
xor ebx, ebx
cmp dword [esp + 0x270], ebx
je 0x4160f4
mov edi, dword [esp + 0x264]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
cmp edi, ebx
je 0x4160f4
mov edx, str.HeightLimit_A
mov ecx, edi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4158c2
test al, al
je 0x4158be
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4158c2
add ecx, 2
add edx, 2
test al, al
jne 0x4158a2
xor eax, eax
jmp 0x4158c7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4158d5
mov dword [esp + 0x4c], 1
jmp 0x415915
mov ecx, str.HeightLimit_B
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415900
test dl, dl
je 0x4158fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415900
add eax, 2
add ecx, 2
test dl, dl
jne 0x4158e0
xor eax, eax
jmp 0x415905
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4160f4
mov dword [esp + 0x48], 1
lea ecx, [esp + 0xb8]
call fcn.005be570
xor ebx, ebx
push ebx
lea ecx, [esp + 0xbc]
mov byte [esp + 0x254], 0x16
call fcn.005b9bd0
lea ecx, [esp + 0xa4]
mov dword [esp + 0xb8], ebx
call fcn.005be570
push ebx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x254], 0x17
call fcn.005b9bd0
mov eax, dword [esi + 0x24]
mov dword [esp + 0xa4], ebx
cmp dword [eax + 0x3c], ebx
jle 0x415a81
mov eax, dword [eax + 0x40]
movzx edx, bx
mov ebp, dword [eax + edx*4]
lea eax, [eax + edx*4]
test ebp, ebp
je 0x415a74
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4159af
mov edi, dword [ebp + 4]
and edi, 0x7f
call fcn.004da140
mov edi, dword [eax + edi*4 - 4]
push ebp
mov ecx, edi
call fcn.004d9570
mov edi, eax
test edi, edi
je 0x415a74
lea ecx, [esp + 0x34]
call fcn.005b8eb0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
mov byte [esp + 0x250], 0x18
call eax
push eax
lea ecx, [esp + 0x38]
call fcn.005b9840
mov edi, 1
cmp dword [esp + 0x4c], edi
jne 0x415a1b
mov eax, dword [esp + 0x34]
test eax, eax
je 0x415a1f
push 0x11
push str.BM_HeightLimit_A_
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x415a1b
mov ecx, dword [esp + 0xb8]
push ecx
lea ecx, [esp + 0xbc]
call fcn.005b9bd0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push ecx
jmp 0x415a5c
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jne 0x415a63
test eax, eax
je 0x415a63
push 0x11
push str.BM_HeightLimit_B_
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x415a63
mov edx, dword [esp + 0xa4]
push edx
lea ecx, [esp + 0xa8]
call fcn.005b9bd0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, eax
call fcn.005b9150
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 0x17
call fcn.005b9130
mov eax, dword [esi + 0x24]
inc ebx
cmp ebx, dword [eax + 0x3c]
jl 0x415973
xor eax, eax
cmp dword [esp + 0xb8], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
jle 0x415c6d
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx]
mov ecx, dword [esi + 0x24]
push eax
call fcn.004c0df0
mov edi, eax
test edi, edi
je 0x415c52
lea ecx, [esp + 0x34]
call fcn.005b8eb0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
mov byte [esp + 0x250], 0x19
call eax
push eax
lea ecx, [esp + 0x38]
call fcn.005b9840
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov ebx, eax
test ebx, ebx
je 0x415c41
mov ecx, edi
call fcn.004c2100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
mov ecx, edi
mov ebp, eax
call fcn.004909b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x415b59
push eax
mov ecx, esi
call fcn.0040f6b0
test eax, eax
jne 0x415b59
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
lea edx, [esp + 0x38]
push edx
push str.BDExport::Export_Delete_layer_prim_Error_LayerName::
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.005b9ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test ebp, ebp
je 0x415b97
push ebp
mov ecx, esi
call fcn.0040f6b0
test eax, eax
jne 0x415b97
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
lea ecx, [esp + 0x38]
push ecx
push str.BDExport::Export_Delete_layer_prim_Error_LayerName::
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.005b9ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebx
mov ecx, esi
call fcn.0040f6b0
test eax, eax
jne 0x415bd2
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
lea eax, [esp + 0x38]
push eax
push str.BDExport::Export_Delete_layer_prim_Error_LayerName::
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.005b9ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x5eeb66
lea ecx, [esp + 0x24]
call fcn.005b99d0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x250], 0x1a
xor ebp, ebp
mov edi, edi
push str.BM_HeightLimit_A_NotUse_tmp
lea ecx, [esp + 0x24]
call fcn.005b9840
push ebx
lea ecx, [esp + 0x24]
call fcn.005b99c0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x24]
inc ebx
call fcn.004c0df0
test eax, eax
je 0x415c20
inc ebp
cmp ebp, 0x64
jl 0x415bf0
mov edx, dword [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.004c2330
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0x19
call fcn.005b9130
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 0x17
call fcn.005b9130
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0xc
inc eax
cmp eax, dword [esp + 0xb8]
mov dword [esp + 0x1c], eax
jl 0x415aa0
xor eax, eax
cmp dword [esp + 0xa4], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
jle 0x415e5d
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx]
mov ecx, dword [esi + 0x24]
push eax
call fcn.004c0df0
mov edi, eax
test edi, edi
je 0x415e42
lea ecx, [esp + 0x34]
call fcn.005b8eb0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
mov byte [esp + 0x250], 0x1b
call eax
push eax
lea ecx, [esp + 0x38]
call fcn.005b9840
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov ebx, eax
test ebx, ebx
je 0x415e31
mov ecx, edi
call fcn.004c2100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
mov ecx, edi
mov ebp, eax
call fcn.004909b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x415d45
push eax
mov ecx, esi
call fcn.0040f6b0
test eax, eax
jne 0x415d45
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
lea edx, [esp + 0x38]
push edx
push str.BDExport::Export_Delete_layer_prim_Error_LayerName::
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.005b9ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test ebp, ebp
je 0x415d83
push ebp
mov ecx, esi
call fcn.0040f6b0
test eax, eax
jne 0x415d83
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
lea ecx, [esp + 0x38]
push ecx
push str.BDExport::Export_Delete_layer_prim_Error_LayerName::
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.005b9ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebx
mov ecx, esi
call fcn.0040f6b0
test eax, eax
jne 0x415dbe
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
lea eax, [esp + 0x38]
push eax
push str.BDExport::Export_Delete_layer_prim_Error_LayerName::
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.005b9ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x5eeb66
lea ecx, [esp + 0x24]
call fcn.005b99d0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x250], 0x1c
xor ebp, ebp
lea ebx, [ebx]
push str.BM_HeightLimit_B_NotUse_tmp
lea ecx, [esp + 0x24]
call fcn.005b9840
push ebx
lea ecx, [esp + 0x24]
call fcn.005b99c0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x24]
inc ebx
call fcn.004c0df0
test eax, eax
je 0x415e10
inc ebp
cmp ebp, 0x64
jl 0x415de0
mov edx, dword [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.004c2330
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0x1b
call fcn.005b9130
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 0x17
call fcn.005b9130
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0xc
inc eax
cmp eax, dword [esp + 0xa4]
mov dword [esp + 0x1c], eax
jl 0x415c8c
mov ecx, dword [esp + 0x88]
push 0x10
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBSheet::CountElement_unsigned_char_]
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x4160c0
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_long_int___thiscall_BMBElement::GetElementColor_void_]
jmp 0x415e90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
mov edi, dword [sym.imp.BMB_NX_C9.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_BMB2DConstraint::GetRank_int_]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DConstraint____thiscall_BMBSheet::Get2DConstraint_int_]
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.005b8eb0
mov ecx, ebp
mov byte [esp + 0x250], 0x1d
call dword [sym.imp.BMB_NX_C9.dll_public:_short_int___thiscall_BMBSymbol::GetLayerNumber_void_]
mov ecx, dword [esp + 0xc4]
movzx eax, ax
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBLayer____thiscall_BMBTableLayer::ScanRecord_short_int_]
cmp byte [eax + 0xf], 8
jne 0x41609c
mov eax, dword [eax + 0x14]
push eax
lea ecx, [esp + 0x198]
push ecx
mov ecx, esi
call fcn.00404d20
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 0x1e
call fcn.005b9150
lea ecx, [esp + 0x194]
mov byte [esp + 0x250], 0x1d
call fcn.005b9130
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x268]
push eax
call fcn.005b9750
add esp, 8
test eax, eax
jne 0x41609c
push 0x5ef48c
lea ecx, [esp + 0x38]
call fcn.005b99d0
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x254], 0x1f
call fcn.005b9880
push 0x5ef488
lea ecx, [esp + 0x38]
call fcn.005b9880
push 0
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call edi
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0x258], 0x20
call edi
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
mov byte [esp + 0x250], 0x21
je 0x416077
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x416077
push eax
call dword [sym.imp.MSVCR90.dll_atof]
fldz
fucompp
add esp, 4
lea ecx, [esp + 0x34]
fnstsw ax
test ah, 0x44
jp 0x415fce
mov edx, dword [esp + 0x14]
push edx
jmp 0x415fef
mov eax, dword [esp + 0x2c]
push eax
call fcn.005b9880
push 0x5ef488
lea ecx, [esp + 0x38]
call fcn.005b9880
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
call fcn.005b9880
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x24]
push edx
call fcn.004c0df0
test eax, eax
jne 0x416137
mov edi, dword [esp + 0x34]
mov ecx, ebp
call ebx
push eax
push edi
mov ecx, esi
call fcn.00406a20
test eax, eax
jne 0x416137
mov edi, dword [esp + 0x34]
mov ecx, ebp
call ebx
push eax
push edi
mov ecx, esi
call fcn.00412030
test eax, eax
jne 0x416137
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [esp + 0x34]
push eax
push str._layer_is_not_create_in_Board_Designer.
push ecx
push str.BDExport::warning_
push 0x632f68
call fcn.00401320
add esp, 8
push eax
call fcn.00401320
add esp, 8
push eax
call fcn.00401320
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 0x1d
call fcn.005b9130
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0x17
call fcn.005b9130
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jl 0x415e90
mov edx, dword [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00406d30
lea ecx, [esp + 0xa4]
mov byte [esp + 0x250], 0x16
call fcn.005b9ba0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x250], 0
call fcn.005b9ba0
lea ecx, [esp + 0x264]
mov dword [esp + 0x250], 0xffffffff
call fcn.005b9130
xor eax, eax
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005bf276
add esp, 0x240
ret 0x1c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
mov ecx, ebp
mov dword [esp + 0x8c], eax
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
mov dword [esp + 0x80], eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x416860
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeometry____thiscall_BMBElement::Get2DShape_int_]
lea ecx, [esp + 0x64]
mov edi, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeUnit::constructor_void_]
mov bl, byte [edi + 8]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x250], 0x22
call fcn.00513d20
movzx eax, bl
mov byte [esp + 0x250], 0x23
cmp eax, 5
ja case.0x4161aa.2
jmp dword [eax*4 + 0x4168bc]
push 0
lea edx, [esp + 0x1c0]
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], ecx
movzx edx, byte [eax + 8]
mov byte [esp + 0x6c], dl
lea ecx, [esp + 0x1bc]
fld dword [eax + 0xc]
fstp dword [esp + 0x70]
fld dword [eax + 0x10]
fstp dword [esp + 0x74]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x74]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
fld dword [esp + 0x70]
push ecx
mov ecx, esi
fstp dword [esp]
mov ebx, eax
call fcn.00403cb0
mov dword [esp + 0xb0], eax
push 1
lea eax, [esp + 0x1e8]
push eax
mov ecx, edi
mov dword [esp + 0xbc], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], ecx
movzx edx, byte [eax + 8]
mov byte [esp + 0x6c], dl
lea ecx, [esp + 0x1e4]
fld dword [eax + 0xc]
fstp dword [esp + 0x70]
fld dword [eax + 0x10]
fstp dword [esp + 0x74]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x70]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x168]
call fcn.004f6030
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0x254], 0x24
call fcn.00521500
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x10c]
mov byte [esp + 0x254], 0x25
call fcn.00514070
push 0xff
lea ecx, [esp + 0x10c]
mov byte [esp + 0x254], 0x26
mov dword [esp + 0x118], 0
call fcn.00515ea0
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xd8]
call fcn.00516890
lea ecx, [esp + 0x108]
mov byte [esp + 0x250], 0x25
call fcn.00516bd0
lea ecx, [esp + 0x90]
mov byte [esp + 0x250], 0x24
call fcn.00526cc0
lea ecx, [esp + 0x160]
mov byte [esp + 0x250], 0x23
call fcn.004f6120
jmp case.0x4161aa.5
push 0
lea ecx, [esp + 0x1d4]
push ecx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov cl, byte [eax + 8]
mov byte [esp + 0x6c], cl
fld dword [eax + 0xc]
fstp dword [esp + 0x70]
lea ecx, [esp + 0x1d0]
fld dword [eax + 0x10]
fstp dword [esp + 0x74]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x74]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
fld dword [esp + 0x70]
push ecx
mov ecx, esi
fstp dword [esp]
mov ebx, eax
call fcn.00403cb0
push 1
lea edx, [esp + 0x21c]
push edx
mov ecx, edi
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeUnit___thiscall_BMB2DGeometry::GetGeUnit_int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov dl, byte [eax + 8]
mov byte [esp + 0x6c], dl
fld dword [eax + 0xc]
fstp dword [esp + 0x70]
lea ecx, [esp + 0x218]
fld dword [eax + 0x10]
fstp dword [esp + 0x74]
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
fld dword [esp + 0x70]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.00403cb0
fld dword [esp + 0x74]
push ecx
mov ecx, esi
fstp dword [esp]
mov edi, eax
call fcn.00403cb0
fldz
sub esp, 8
fstp qword [esp]
push eax
push edi
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x20c]
call fcn.004f4950
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x254], 0x27
call fcn.004f4a30
push eax
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x254], 0x28
call fcn.004eede0
lea edx, [esp + 0x1a8]
push edx
lea ecx, [esp + 0x94]
mov byte [esp + 0x254], 0x29
call fcn.005213f0
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x250], 0x2b
call fcn.004eee10
lea ecx, [esp + 0x50]
mov byte [esp + 0x250], 0x2c
call fcn.00481ef0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x10c]
call fcn.00514070
push 0xff
lea ecx, [esp + 0x10c]
mov byte [esp + 0x254], 0x2d
mov dword [esp + 0x118], 0
call fcn.00515ea0
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00516890
lea ecx, [esp + 0x108]
mov byte [esp + 0x250], 0x2c
call fcn.00516bd0
lea ecx, [esp + 0x90]
mov byte [esp + 0x250], 0x27
call fcn.00526cc0
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x250], 0x23
call fcn.004f4a20
jmp case.0x4161aa.5
lea ecx, [esp + 0x90]
call fcn.00520f90
lea edx, [esp + 0x90]
push edx
push edi
mov ecx, esi
mov byte [esp + 0x258], 0x2e
call fcn.00403e40
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x138]
call fcn.00514070
mov edi, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x80]
mov byte [esp + 0x250], 0x2f
jge 0x416606
push edi
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMB2DGeometry____thiscall_BMBElement::Get2DShape_int_]
mov ebx, eax
cmp byte [ebx + 8], 5
jne 0x416606
lea ecx, [esp + 0x1f8]
call fcn.00520f90
lea ecx, [esp + 0x1f8]
push ecx
push ebx
mov ecx, esi
mov byte [esp + 0x258], 0x30
call fcn.00403e40
lea edx, [esp + 0x134]
push edx
push 0x24
call fcn.00515d00
add esp, 8
mov dword [esp + 0x78], eax
mov byte [esp + 0x250], 0x31
test eax, eax
je 0x4165cd
lea ecx, [esp + 0x1f8]
push ecx
mov ecx, eax
call fcn.005150d0
jmp 0x4165cf
xor eax, eax
push eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x254], 0x30
call fcn.00515d90
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x250], 0x2f
call fcn.00526cc0
inc edi
cmp edi, dword [esp + 0x80]
jl 0x416561
push 0xff
lea ecx, [esp + 0x138]
mov dword [esp + 0x144], 0
call fcn.00515ea0
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0xd8]
call fcn.00516890
lea ecx, [esp + 0x134]
mov byte [esp + 0x250], 0x2e
call fcn.00516bd0
lea ecx, [esp + 0x90]
mov byte [esp + 0x250], 0x23
call fcn.00526cc0
lea ecx, [esp + 0xd4]
call fcn.00524310
cmp eax, 3
jl case.0x4161aa.2
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetStandOff_void_]
push ecx
mov ecx, ebp
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetHeight_void_]
sub esp, 0x30
lea eax, [esp + 0x108]
fstp dword [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xac], esp
push eax
call fcn.005164a0
mov edi, dword [esp + 0xc0]
push edi
mov ecx, esi
call fcn.00403ce0
test eax, eax
jne case.0x4161aa.2
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [esi + 0x20]
push edi
call fcn.00493290
mov edi, eax
test edi, edi
je 0x4167f2
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetHeight_void_]
fstp st(0)
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetStandOff_void_]
fstp st(0)
lea ecx, [esp + 0xc8]
call fcn.005b8eb0
lea ecx, [esp + 0x180]
mov byte [esp + 0x250], 0x32
call fcn.005b8eb0
push str.BM_Height
lea ecx, [esp + 0xcc]
mov byte [esp + 0x254], 0x33
call fcn.005b9840
lea ecx, [esp + 0x84]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebp
mov byte [esp + 0x250], 0x34
call dword [sym.imp.BMB_NX_C9.dll_public:_float___thiscall_BMB2DConstraint::GetHeight_void_]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x8c]
push 0x5eedf8
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov eax, dword [esp + 0x94]
add esp, 0x10
push eax
lea ecx, [esp + 0x174]
push ecx
mov ecx, esi
call fcn.00404d20
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x188]
mov byte [esp + 0x258], 0x35
call fcn.005b9150
lea ecx, [esp + 0x170]
mov byte [esp + 0x250], 0x34
call fcn.005b9130
mov edx, dword [esp + 0x180]
mov eax, dword [esp + 0xc8]
push 1
push edx
push eax
mov ecx, edi
call fcn.004d3530
lea ecx, [esp + 0x84]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x180]
mov byte [esp + 0x250], 0x32
call fcn.005b9130
lea ecx, [esp + 0xc8]
mov byte [esp + 0x250], 0x23
call fcn.005b9130
jmp case.0x4161aa.2
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_long_int___thiscall_BMBElement::GetID_void_]
push eax
push str.BDExport::Export_Data_Error_ID:
push 0x632f68
call fcn.00401320
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x250], 0x22
call fcn.00516bd0
lea ecx, [esp + 0x64]
mov byte [esp + 0x250], 0x21
call dword [sym.imp.BMB_NX_C9.dll_public_virtual:_void___thiscall_BMB2DGeUnit::destructor_void_]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
jl 0x416166
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 0x1d
call fcn.005b9130
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0x17
call fcn.005b9130
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_long_int___thiscall_BMBElement::GetElementColor_void_]
jmp 0x4160ad