Function at 0x416ec0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x61445e
mov eax, dword fs:[0]
push eax
sub esp, 0x468
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x50], ebx
call fcn.005f3af0
mov ecx, dword [0x68615c]
push ebx
mov dword [esp + 0x484], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBSheet____thiscall_BMBProduct::GetSheet_int_]
mov edi, eax
mov dword [esp + 0x58], edi
cmp edi, ebx
jne 0x416f55
lea ecx, [esp + 0xe4]
mov dword [esp + 0x480], 0xffffffff
call fcn.005f3b00
xor eax, eax
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x68615c]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBMapPad____thiscall_BMBProduct::GetMapPad_void_]
mov dword [esp + 0xc8], eax
cmp eax, ebx
je 0x416f24
mov ecx, dword [0x68615c]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBTableLayer____thiscall_BMBProduct::GetTableLayer_void_]
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBBoard____thiscall_BMBSheet::GetBoard_void_]
lea ecx, [esp + 0x108]
mov dword [esp + 0xe0], eax
call fcn.005f3af0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
mov byte [esp + 0x480], 1
mov dword [esp + 0x28], ebx
cmp eax, ebx
jbe 0x417010
xor eax, eax
mov ecx, dword [esi + 0x48]
cmp dword [ecx + 0x30], eax
jle 0x416fe2
mov ecx, dword [ecx + 0x34]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
test edi, edi
je 0x416fe2
mov eax, dword [edi + 8]
test eax, eax
jne 0x416fde
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.005018f0
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.00500ce0
mov edi, eax
jmp 0x416fe4
xor edi, edi
mov edx, dword [esp + 0x108]
push edx
lea ecx, [esp + 0x10c]
call fcn.005f3cc0
mov dword [eax], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x30]
inc eax
mov dword [esp + 0x28], eax
movzx eax, ax
cmp eax, ecx
jb 0x416fab
mov edx, dword [esi + 0x48]
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edx + 0x3c], eax
jbe 0x41707e
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x40]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
test edi, edi
je 0x417050
mov eax, dword [edi + 8]
test eax, eax
jne 0x41704c
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.005018f0
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.00500ce0
mov edi, eax
jmp 0x417052
xor edi, edi
mov edx, dword [esp + 0x108]
push edx
lea ecx, [esp + 0x10c]
call fcn.005f3cc0
mov dword [eax], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x3c]
inc eax
mov dword [esp + 0x28], eax
movzx eax, ax
cmp eax, ecx
jb 0x41701e
mov edx, dword [esi + 0x48]
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edx + 0x48], eax
jbe 0x4170ec
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x4c]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
test edi, edi
je 0x4170be
mov eax, dword [edi + 8]
test eax, eax
jne 0x4170ba
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.005018f0
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.00500ce0
mov edi, eax
jmp 0x4170c0
xor edi, edi
mov edx, dword [esp + 0x108]
push edx
lea ecx, [esp + 0x10c]
call fcn.005f3cc0
mov dword [eax], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x48]
inc eax
mov dword [esp + 0x28], eax
movzx eax, ax
cmp eax, ecx
jb 0x41708c
mov ecx, dword [esi + 0x48]
push 7
call fcn.004e2900
mov ecx, dword [esi + 0x48]
push 2
call fcn.004e2900
mov ecx, dword [esi + 0x48]
push 5
mov dword [esp + 0x308], eax
call fcn.004e2900
mov ecx, dword [esi + 0x48]
push 8
call fcn.004e2900
xor eax, eax
cmp dword [esp + 0x108], eax
mov dword [esp + 0x1a0], eax
jle 0x41b9ff
mov edx, dword [esp + 0x110]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x304]
je 0x41b9e3
push 0
push 0
lea ecx, [esp + 0xec]
push ecx
lea edi, [esi + 0x100]
push eax
mov ecx, edi
call fcn.004067f0
test eax, eax
je 0x41b9e3
mov ecx, dword [0x686158]
call fcn.00405c50
mov edx, dword [esp + 0xec]
mov ebx, dword [edx]
lea ecx, [esp + 0x12c]
call fcn.005ed1b0
lea eax, [esp + 0x12c]
push eax
push ebx
mov ecx, edi
mov byte [esp + 0x488], 2
call fcn.004071a0
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, edi
call fcn.00406a10
test eax, eax
jne 0x417276
push ebx
mov ecx, edi
call fcn.004064e0
cmp al, 5
je 0x4171da
cmp al, 9
je 0x4171da
cmp al, 6
je 0x4171da
cmp al, 7
je 0x4171da
cmp al, 8
jne 0x417276
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x417269
mov ecx, str.BendLine
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417210
test dl, dl
je 0x41720c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417210
add eax, 2
add ecx, 2
test dl, dl
jne 0x4171f0
xor eax, eax
jmp 0x417215
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417276
push 0xc
push str.FlexibleArea
push edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x417276
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x417269
mov ecx, str.BendArea
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417260
test dl, dl
je 0x41725c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417260
add eax, 2
add ecx, 2
test dl, dl
jne 0x417240
xor eax, eax
jmp 0x417265
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417276
cmp dword [esi + 0x27c], 0
je 0x41b9cf
mov edx, dword [esp + 0x74]
push edx
lea ecx, [esi + 0x100]
call fcn.00406a10
cmp dword [esi + 0x2c0], 1
mov dword [esp + 0x310], eax
jne 0x4192bf
test eax, eax
jne 0x4192bf
cmp dword [esp + 0xe4], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], eax
jle 0x4192bf
jmp 0x4172c0
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x68]
mov ebx, dword [eax + ecx*4]
push ebx
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.0040c610
mov dword [esp + 0x30], eax
test eax, eax
je 0x419292
test ebx, ebx
je 0x419292
push ebx
lea ecx, [esi + 0x100]
call fcn.00406380
test eax, eax
je 0x419292
push ebx
mov ecx, esi
call fcn.0040b5b0
cmp word [esi + 0x268], 2
mov edi, eax
mov dword [esp + 0x78], edi
jne 0x41732a
push ebx
mov ecx, esi
call fcn.0040c1d0
test eax, eax
je 0x419292
mov ecx, dword [esp + 0x12c]
test ecx, ecx
je 0x4189ae
mov eax, str.Hole
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417360
test dl, dl
je 0x41735c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417360
add eax, 2
add ecx, 2
test dl, dl
jne 0x417340
xor eax, eax
jmp 0x417365
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4189ae
cmp dword [esi + 0x2b8], eax
jne 0x4189ae
mov edi, dword [esp + 0x74]
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
mov dword [esp + 0x34], 1
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
push eax
lea ecx, [esp + 0x118]
call fcn.004bb830
lea ecx, [esp + 0x114]
mov byte [esp + 0x480], 3
call fcn.004bb850
lea ecx, [esp + 0x114]
call fcn.004f69c0
test eax, eax
je 0x418996
lea esp, [esp]
lea ecx, [esp + 0x114]
call fcn.004f69c0
mov ebx, 1
mov edi, eax
cmp dword [esi + 0x270], ebx
jne 0x417429
mov ecx, edi
call fcn.00475300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x418972
cmp dword [esi + 0x270], ebx
jne 0x417429
mov ecx, edi
call fcn.00475300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
je 0x418972
cmp dword [ebp + 0x10], ebx
jne 0x41743e
push edi
mov ecx, esi
call fcn.0040c5a0
cmp eax, ebx
je 0x418972
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x417469
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00475510
test eax, eax
jne 0x418972
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 6
je 0x41885d
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 7
je 0x41885d
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 8
je 0x41885d
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 9
jne 0x4175c4
cmp dword [esi + 0x274], 0
je 0x418972
cmp dword [esi + 0x2d8], 0
jg 0x418972
cmp dword [esi + 0x278], 2
je 0x418972
mov eax, dword [esi + 0x24]
push eax
lea ecx, [esp + 0x390]
call fcn.00432b00
push edi
lea ecx, [esp + 0x390]
mov byte [esp + 0x484], 5
call fcn.00432e10
mov ebx, eax
push ebx
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.0040c080
cmp eax, 1
jne 0x41759d
cmp byte [esi + 0x2a3], al
jne 0x41759d
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
mov byte [esp + 0x480], 6
test ebx, ebx
je 0x41755d
mov ecx, dword [0x686164]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov dword [ebx], vtable.BMBHole.1.0
mov dword [ebx + 0x70], vtable.BMBHole.0
jmp 0x41755f
xor ebx, ebx
mov edx, dword [esp + 0x28]
inc dword [0x686164]
push edx
mov ecx, ebx
mov byte [esp + 0x484], 5
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push eax
push edi
push ebx
mov ecx, esi
call fcn.004136a0
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4175ab
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x38c]
mov byte [esp + 0x480], 3
call fcn.004f2200
jmp 0x418972
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xe
je 0x4176a7
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xf
je 0x4176a7
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c080
cmp eax, ebx
jne 0x418972
cmp byte [esi + 0x2a3], bl
jne 0x418972
cmp dword [esi + 0x274], 0
je 0x418972
cmp dword [esi + 0x2d8], 0
jg 0x418972
cmp dword [esi + 0x278], 2
je 0x418972
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
mov byte [esp + 0x480], 0x1e
test ebx, ebx
je 0x417671
mov ecx, dword [0x686164]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov dword [ebx], vtable.BMBHole.1.0
mov dword [ebx + 0x70], vtable.BMBHole.0
jmp 0x417673
xor ebx, ebx
mov edx, dword [esp + 0x28]
inc dword [0x686164]
push edx
mov ecx, ebx
mov byte [esp + 0x484], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push eax
push edi
push ebx
mov ecx, esi
call fcn.004136a0
jmp 0x418967
push 0xb4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
mov byte [esp + 0x480], 7
test ebx, ebx
je 0x4176ec
mov ecx, dword [0x686164]
push 1
push 0
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::constructor_int__unsigned_char__unsigned_char_]
mov dword [ebx], vtable.BMB2DStack.1.0
mov dword [ebx + 0x70], vtable.BMB2DStack.0
mov dword [esp + 0x60], ebx
jmp 0x4176f2
xor ebx, ebx
mov dword [esp + 0x60], ebx
push 0x633c9c
lea ecx, [esp + 0x3d4]
mov byte [esp + 0x484], 3
call fcn.005edd80
inc dword [0x686164]
xor eax, eax
lea ecx, [esp + 0x228]
mov byte [esp + 0x480], 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], eax
call fcn.005f3af0
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x480], 9
call fcn.005f3af0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
mov byte [esp + 0x480], 0xa
call eax
cmp eax, 0xf
jne 0x4177a9
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x2d4]
push edx
lea eax, [esp + 0x230]
push eax
mov ecx, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], 0
call fcn.004bf130
cmp dword [esp + 0x228], 0
jle 0x417797
mov dword [esp + 0x3c], 1
cmp dword [esp + 0x2d0], 0
jle 0x4177a9
mov dword [esp + 0x2c], 1
mov ecx, edi
call fcn.00470f00
mov ecx, eax
call fcn.004b9eb0
mov ecx, dword [esi + 0x34]
push 0
push eax
call fcn.004b0b60
mov ecx, eax
call fcn.004b8050
test byte [eax + 0x20], 1
mov dword [esp + 0x70], eax
mov ecx, ebx
je 0x4177d9
push 0
jmp 0x4177db
push 1
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::PutPlated_unsigned_char_]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
push ecx
mov ecx, ebx
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::PutRotation_float_]
lea ecx, [esp + 0x3e8]
push ecx
mov ecx, edi
call fcn.00470f00
mov ecx, eax
call fcn.004ba180
push eax
lea ecx, [esp + 0x3d4]
mov byte [esp + 0x484], 0xb
call fcn.00401020
lea ecx, [esp + 0x3e8]
mov byte [esp + 0x480], 0xa
call fcn.005ed430
movzx eax, word [edi + 0x5c]
movzx edx, ax
movzx eax, word [edi + 0x5e]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x2d8]
mov dword [esp + 0x38], edx
cmp eax, 2
je 0x417860
cmp eax, 4
jne 0x417870
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
je 0x417a3a
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
test eax, eax
je 0x417a3a
mov edx, dword [edi]
mov edx, dword [edx + 0xf4]
lea eax, [esp + 0x54]
push eax
mov ecx, edi
mov dword [esp + 0x58], 0
call edx
lea ecx, [esp + 0x3a0]
call fcn.005f3af0
mov ecx, dword [esi + 0x48]
push 3
mov byte [esp + 0x484], 0xc
call fcn.004e2900
test eax, eax
je 0x417a26
push 0
push 0
lea ecx, [esp + 0x3a8]
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.004067f0
test eax, eax
je 0x417a26
mov edx, dword [esp + 0x54]
push edx
mov ecx, esi
call fcn.0040bf10
cmp eax, 1
jne 0x417a26
cmp byte [esi + 0x2a5], al
jne 0x417a26
mov eax, dword [esp + 0x3a8]
mov ecx, dword [eax]
push 0x80
mov dword [esp + 0x44], ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
mov byte [esp + 0x480], 0xd
test ebx, ebx
je 0x41794e
mov edx, dword [0x686164]
push edx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov dword [ebx], vtable.BMBHole.1.0
mov dword [ebx + 0x70], vtable.BMBHole.0
jmp 0x417950
xor ebx, ebx
inc dword [0x686164]
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
mov ecx, edi
mov byte [esp + 0x480], 0xc
call edx
fstp dword [esp + 0x30c]
xor eax, eax
push eax
lea ecx, [esp + 0x3bc]
mov dword [esp + 0x2b0], eax
mov dword [esp + 0x30c], eax
call fcn.005ed360
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x30c]
push eax
lea eax, [esp + 0x410]
push eax
mov ecx, edi
mov byte [esp + 0x488], 0xe
call edx
mov edx, dword [esp + 0x58]
push eax
lea eax, [esp + 0x2b4]
push eax
lea ecx, [esp + 0x314]
push ecx
push edx
lea eax, [esp + 0x3cc]
push eax
push ebx
mov ecx, esi
call fcn.0041cce0
lea ecx, [esp + 0x3b8]
mov byte [esp + 0x480], 0xc
call fcn.005ed430
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esi + 0x278]
cmp eax, 1
je 0x417a1b
mov ecx, dword [esp + 0x60]
cmp eax, 2
jne 0x417a11
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
test al, al
jmp 0x417a19
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
jne 0x417a26
mov ecx, dword [esp + 0x60]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::PutHole_class_BMBHole__]
lea ecx, [esp + 0x3a0]
mov byte [esp + 0x480], 0xa
call fcn.005f3b00
lea ecx, [esp + 0xb0]
call fcn.005f3af0
cmp dword [esi + 0x2c0], 0
mov byte [esp + 0x480], 0xf
jne 0x4186c9
mov eax, dword [esp + 0x38]
movzx edx, ax
cwde
cmp eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], edx
jg 0x418035
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push eax
call fcn.004070e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x74]
call fcn.004b9ee0
mov ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x41801d
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push edx
call fcn.004070e0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edi
call fcn.004b53a0
mov edx, dword [esp + 0x8c]
push 0
push 0
lea ecx, [esp + 0xb8]
push ecx
push edx
lea ecx, [esi + 0x100]
mov dword [esp + 0x74], eax
mov dword [esp + 0xa0], 0
call fcn.004068b0
test eax, eax
je 0x41801d
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x8c], eax
test eax, eax
je 0x41801d
cmp dword [esp + 0x3c], 1
jne 0x417ea5
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
push edx
mov ecx, ebx
call fcn.004c0cd0
mov ecx, dword [esp + 0x6c]
movzx eax, ax
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0xf8], eax
test eax, eax
je 0x41801d
mov ecx, eax
call fcn.004bfe00
test eax, eax
je 0x41801d
cmp dword [esp + 0x228], 0
mov dword [esp + 0x64], 0
jle 0x417ea5
lea ebx, [ebx]
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x64]
movzx eax, word [ecx + edx*2]
cmp dword [esp + 0x40], eax
jne 0x417e7d
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x94], 1
mov dword [esp + 0x58], 0
call fcn.004070e0
mov edx, dword [esi + 0x34]
mov ebx, dword [edi]
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edx
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x3c]
add ebx, 0xec
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x74]
call fcn.004efc10
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x417e7d
cmp word [eax + 4], 1
jb 0x417e7d
mov ecx, dword [esp + 0xf8]
call fcn.004bfe00
push eax
lea ecx, [esp + 0x238]
call fcn.005edd80
push 0x633ca0
lea ecx, [esp + 0x238]
mov byte [esp + 0x484], 0x10
call fcn.005edc30
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x238]
call fcn.005edd70
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x80], ebx
mov byte [esp + 0x480], 0x11
test ebx, ebx
je 0x417cd7
mov eax, dword [0x686164]
sub esp, 0xc
mov dword [esp + 0x78], eax
lea edx, [esp + 0x240]
inc eax
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov dword [0x686164], eax
call fcn.005edb30
lea eax, [esp + 0x33c]
push eax
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
mov ecx, dword [esp + 0x6c]
or dword [esp + 0x50], 1
push eax
push 0
push ecx
mov ecx, ebx
mov byte [esp + 0x48c], 0x12
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBPad::constructor_int__unsigned_char__char_const__]
mov dword [ebx], vtable.BMBPad.1.0
mov dword [ebx + 0x70], vtable.BMBPad.0
mov dword [esp + 0x6c], ebx
jmp 0x417cdf
mov dword [esp + 0x6c], 0
test byte [esp + 0x50], 1
mov dword [esp + 0x480], 0x10
je 0x417d03
and dword [esp + 0x50], 0xfffffffe
lea ecx, [esp + 0x330]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
xor ecx, ecx
xor ebx, ebx
cmp cx, ax
jae 0x417e57
fldz
fst dword [esp + 0x328]
fstp dword [esp + 0x32c]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x2bc]
mov ecx, dword [esp + 0x70]
call fcn.004ba2b0
mov ecx, dword [esp + 0x70]
movzx edx, word [ecx + 0x20]
mov ecx, dword [esp + 0x54]
shr edx, 2
mov dword [esp + 0x290], eax
and edx, 1
mov dword [esp + 0x2a4], edx
mov edx, dword [ecx + 8]
movzx eax, bx
mov eax, dword [edx + eax*4]
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x80], eax
push ecx
lea eax, [esp + 0x418]
push eax
mov ecx, edi
call edx
mov edx, dword [esp + 0x84]
push eax
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x2b0]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x248]
push eax
push ecx
mov ecx, esi
call fcn.0041cae0
lea ecx, [esp + 0x344]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov edx, dword [esp + 0x234]
push edx
lea ecx, [esp + 0x348]
mov byte [esp + 0x484], 0x14
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ax, word [esp + 0x8c]
mov ecx, dword [esp + 0x328]
mov edx, dword [esp + 0x32c]
sub esp, 0x10
mov word [esp + 0x358], ax
mov dword [esp + 0x35c], ecx
lea eax, [esp + 0x354]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov dword [esp + 0x364], edx
call fcn.0040b340
mov ecx, dword [esp + 0x70]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x344]
mov byte [esp + 0x480], 0x10
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x54]
movzx edx, word [ecx + 4]
inc ebx
movsx eax, bx
cmp eax, edx
jl 0x417d27
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0xcc]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x234]
mov byte [esp + 0x480], 0xf
call fcn.005ed430
mov eax, dword [esp + 0x64]
inc eax
cmp eax, dword [esp + 0x228]
mov dword [esp + 0x64], eax
jl 0x417b80
cmp dword [esp + 0x90], 1
je 0x41801d
mov ebx, dword [esp + 0x48]
mov edx, dword [esi + 0x34]
push 0
mov ecx, ebx
mov dword [esp + 0x4c], edx
call fcn.004c0cd0
mov ecx, dword [esp + 0x48]
movzx eax, ax
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x48], ecx
push 1
mov ecx, ebx
mov dword [esp + 0xfc], eax
call fcn.004c0cd0
mov ecx, dword [esp + 0x48]
movzx edx, ax
push edx
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
push 2
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.004c0cd0
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov edx, dword [esi + 0x34]
push 3
mov ecx, ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x4c], edx
call fcn.004c0cd0
mov ecx, dword [esp + 0x48]
movzx eax, ax
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.004070e0
cmp dword [eax + 0x34], 1
jne 0x417f69
test ebx, ebx
jne 0x417f80
mov ebx, dword [esp + 0x80]
jmp 0x417f78
mov ebx, dword [esp + 0xf8]
test ebx, ebx
jne 0x417f80
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x41801d
lea ecx, [esp + 0x364]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebx
mov byte [esp + 0x480], 0x15
call fcn.004bfe00
push eax
lea ecx, [esp + 0x368]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov dx, word [esp + 0x8c]
fst dword [esp + 0x2dc]
mov eax, dword [esp + 0x2dc]
fstp dword [esp + 0x2e0]
mov ecx, dword [esp + 0x2e0]
sub esp, 0x10
mov word [esp + 0x378], dx
mov dword [esp + 0x380], ecx
lea edx, [esp + 0x374]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov dword [esp + 0x380], eax
call fcn.0040b340
mov ecx, dword [esp + 0x70]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x364]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cwde
cmp eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
jle 0x417a75
cmp dword [esp + 0x2c], 1
jne 0x41853a
mov ecx, dword [esi + 0x48]
xor eax, eax
cmp dword [ecx + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], eax
jle 0x4186c9
movzx eax, word [esp + 0x54]
mov ecx, dword [esi + 0x48]
push eax
mov dword [esp + 0x4c], eax
call fcn.00407130
push 0
push 0
lea edx, [esp + 0xb8]
mov ebx, eax
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.004068b0
test eax, eax
je 0x418520
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x70]
movzx eax, ax
push eax
call fcn.004b9f40
test eax, eax
je 0x418520
mov ecx, dword [esi + 0x34]
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x40], eax
test eax, eax
je 0x418520
mov ecx, dword [esp + 0x2d0]
xor eax, eax
test ecx, ecx
jle 0x4180f7
mov edx, dword [esp + 0x2d8]
jmp 0x4180e0
movzx ebx, word [edx + eax*2]
cmp dword [esp + 0x54], ebx
jne 0x4180f2
mov dword [esp + 0x2c], 1
inc eax
cmp eax, ecx
jl 0x4180e0
cmp dword [esp + 0x2c], 1
jne 0x41842b
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx]
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x4c]
push eax
push edx
mov dword [esp + 0x54], 0
add ebx, 0xf0
call fcn.004efc10
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [ebx]
call eax
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x3c], 0
jle 0x418520
mov eax, dword [esp + 0x4c]
jmp 0x418150
test eax, eax
je 0x418410
cmp word [eax + 4], 1
jb 0x418410
mov ecx, dword [esp + 0x40]
call fcn.004bfe00
push eax
lea ecx, [esp + 0x220]
call fcn.005edd80
push 0x633ca0
lea ecx, [esp + 0x220]
mov byte [esp + 0x484], 0x16
call fcn.005edc30
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x220]
call fcn.005edd70
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x17
test ebx, ebx
je 0x418236
mov eax, dword [0x686164]
sub esp, 0xc
mov dword [esp + 0x54], eax
lea edx, [esp + 0x228]
inc eax
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
mov dword [0x686164], eax
call fcn.005edb30
lea eax, [esp + 0x340]
push eax
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
or dword [esp + 0x50], 2
push eax
push 0
push ecx
mov ecx, ebx
mov byte [esp + 0x48c], 0x18
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBPad::constructor_int__unsigned_char__char_const__]
mov dword [ebx], vtable.BMBPad.1.0
mov dword [ebx + 0x70], vtable.BMBPad.0
mov dword [esp + 0x6c], ebx
jmp 0x41823e
mov dword [esp + 0x6c], 0
test byte [esp + 0x50], 2
mov dword [esp + 0x480], 0x16
je 0x418262
and dword [esp + 0x50], 0xfffffffd
lea ecx, [esp + 0x334]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
xor ecx, ecx
mov dword [esp + 0x64], 0
cmp cx, ax
jae 0x4183e6
fldz
fst dword [esp + 0x278]
fstp dword [esp + 0x27c]
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x2b4]
mov ebx, dword [esp + 0x70]
mov ecx, ebx
call fcn.004ba2b0
movzx ecx, word [ebx + 0x20]
movzx edx, word [esp + 0x64]
shr ecx, 2
mov dword [esp + 0x2c8], eax
mov eax, dword [esp + 0x4c]
and ecx, 1
mov dword [esp + 0x2f8], ecx
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + edx*4]
mov eax, dword [edi]
lea edx, [esp + 0x2b4]
push edx
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x438]
push ecx
mov ecx, edi
call edx
push eax
lea eax, [esp + 0x2d0]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x304]
push ecx
push ebx
lea edx, [esp + 0x230]
push edx
push eax
mov ecx, esi
call fcn.0041cae0
lea ecx, [esp + 0x1d0]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x21c]
push ecx
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x484], 0x1a
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x3c]
mov cx, word [edx + eax*4]
mov edx, dword [esp + 0x278]
mov eax, dword [esp + 0x27c]
sub esp, 0x10
mov word [esp + 0x1e4], cx
mov ebx, esp
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x54], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x1ec], edx
mov dword [esp + 0x1f0], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x1e4]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x1e8]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x1ec]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x70]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x480], 0x16
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
inc ecx
mov dword [esp + 0x64], ecx
movsx ecx, cx
movzx edx, ax
cmp ecx, edx
jl 0x418290
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xc8]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x21c]
mov byte [esp + 0x480], 0xf
call fcn.005ed430
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
inc ecx
cmp ecx, dword [esp + 0xb0]
mov dword [esp + 0x3c], ecx
jl 0x418150
jmp 0x418520
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x3c], 0
jle 0x418520
fldz
fst dword [esp + 0x338]
fstp dword [esp + 0x33c]
lea ecx, [esp + 0x1e0]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x480], 0x1b
call fcn.004bfe00
push eax
lea ecx, [esp + 0x1e4]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x3c]
mov ax, word [ecx + edx*4]
mov ecx, dword [esp + 0x338]
mov edx, dword [esp + 0x33c]
sub esp, 0x10
mov word [esp + 0x1f4], ax
mov ebx, esp
lea eax, [esp + 0x1f0]
mov dword [esp + 0x1f8], ecx
mov dword [esp + 0x54], esp
push eax
mov ecx, ebx
mov dword [esp + 0x200], edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov cx, word [esp + 0x1f4]
mov word [ebx + 4], cx
mov edx, dword [esp + 0x1f8]
mov ecx, dword [esp + 0x70]
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x1fc]
push 0
mov dword [ebx + 0xc], eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0xb0]
mov dword [esp + 0x3c], eax
jl 0x418451
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x54], eax
jl 0x418056
jmp 0x4186c9
mov edx, dword [esi + 0x48]
cmp dword [edx + 0x3c], 0
mov dword [esp + 0x3c], 0
jle 0x4186c9
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x48]
push eax
call fcn.00407130
push 0
push 0
lea ecx, [esp + 0xb8]
push ecx
mov ebx, eax
push ebx
lea ecx, [esi + 0x100]
call fcn.004068b0
test eax, eax
je 0x4186b4
mov edx, dword [ebx]
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x74]
call fcn.004b9f40
test eax, eax
je 0x4186b4
mov ecx, dword [esi + 0x34]
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x48], eax
test eax, eax
je 0x4186b4
xor ebx, ebx
cmp dword [esp + 0xb0], ebx
jle 0x4186b4
jmp 0x4185d0
lea ecx, [esp + 0x258]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + ebx*4]
push eax
lea ecx, [esi + 0x100]
mov byte [esp + 0x484], 0x1c
call fcn.004064a0
test eax, eax
je 0x418619
mov ecx, dword [esp + 0x38]
inc ecx
cmp eax, ecx
jl 0x418691
mov edx, dword [esp + 0x7c]
inc edx
cmp eax, edx
jg 0x418691
mov ecx, dword [esp + 0x48]
call fcn.004bfe00
push eax
lea ecx, [esp + 0x25c]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov eax, dword [esp + 0xb8]
fst dword [esp + 0x284]
mov cx, word [eax + ebx*4]
fstp dword [esp + 0x288]
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x288]
sub esp, 0x10
mov dword [esp + 0x270], edx
mov word [esp + 0x26c], cx
lea edx, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov dword [esp + 0x278], eax
call fcn.0040b340
mov ecx, dword [esp + 0x70]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x258]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
inc ebx
cmp ebx, dword [esp + 0xb0]
jl 0x4185d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x3c], eax
jl 0x41854f
mov edx, dword [esi + 0x48]
mov eax, dword [edx + 0x30]
dec eax
cmp dword [esp + 0x38], 0
movzx eax, ax
jne 0x4186e9
cwde
mov byte [esp + 0x1c0], 1
cmp dword [esp + 0x7c], eax
je 0x4186f1
mov byte [esp + 0x1c0], 2
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x3fc]
push eax
mov ecx, edi
call edx
mov eax, dword [eax]
lea ecx, [esp + 0x314]
push ecx
mov ecx, esi
mov dword [esp + 0x318], eax
call fcn.0042afc0
fstp dword [esp + 0x80]
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x3f4]
push eax
mov ecx, edi
call edx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x31c]
push ecx
mov ecx, esi
mov dword [esp + 0x320], eax
call fcn.0042afc0
fstp dword [esp + 0x48]
push 0x90
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x1d
test ebx, ebx
je 0x4187a3
fld dword [esp + 0x48]
mov edx, dword [0x686164]
push 0
sub esp, 8
fstp dword [esp + 4]
mov ecx, ebx
fld dword [esp + 0x8c]
fstp dword [esp]
push edx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::constructor_int__float__float__class_BMB2DStack__]
mov dword [ebx], vtable.BMBVia.1.0
mov dword [ebx + 0x70], vtable.BMBVia.0
jmp 0x4187a5
xor ebx, ebx
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
mov byte [esp + 0x484], 0xf
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutStack_class_BMB2DStack__]
mov ecx, dword [esp + 0x1c0]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutViaType_unsigned_char_]
mov edx, dword [esp + 0x38]
inc edx
push edx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutTopLayerNumber_short_int_]
mov eax, dword [esp + 0x7c]
inc eax
push eax
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutBottomLayerNumber_short_int_]
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddVia_class_BMBVia__]
mov ecx, dword [0x686164]
push ecx
push 0
push edi
mov ecx, esi
call fcn.0040ca30
inc dword [0x686164]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x480], 0xa
call fcn.005f3b00
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x480], 9
call fcn.005f3b00
lea ecx, [esp + 0x228]
mov byte [esp + 0x480], 8
call fcn.005f3b00
lea ecx, [esp + 0x3d0]
mov byte [esp + 0x480], 3
call fcn.005ed430
jmp 0x418972
cmp dword [esi + 0x274], 0
je 0x418972
cmp dword [esi + 0x278], 2
je 0x418972
mov eax, dword [esi + 0x2d8]
test eax, eax
jle 0x41888a
cmp eax, 3
jne 0x418972
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
je 0x418972
cmp dword [esi + 0x2d8], 3
jne 0x4188c2
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 3
jne 0x418972
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c080
cmp eax, ebx
jne 0x418972
cmp byte [esi + 0x2a3], bl
jne 0x418972
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 4
test ebx, ebx
je 0x418924
mov ecx, dword [0x686164]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov dword [ebx], vtable.BMBHole.1.0
mov dword [ebx + 0x70], vtable.BMBHole.0
jmp 0x418926
xor ebx, ebx
mov edx, dword [esp + 0x28]
inc dword [0x686164]
push edx
mov ecx, ebx
mov byte [esp + 0x484], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
push ebx
push edi
mov ecx, esi
call fcn.0040cdd0
mov eax, dword [esp + 0x28]
mov edx, dword [edi]
push 0
push 0
push 0
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
push ebx
mov ecx, esi
call fcn.00412a60
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
lea ecx, [esp + 0x114]
call fcn.004bb880
lea ecx, [esp + 0x114]
call fcn.004f69c0
test eax, eax
jne 0x4173d0
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x114]
mov byte [esp + 0x480], 2
call fcn.004f2200
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4189bb
cmp edi, 4
jne 0x419292
cmp dword [esi + 0x2c0], 1
jne 0x419292
push ebx
lea ecx, [esi + 0x100]
call fcn.004064e0
cmp al, 0xb
je 0x419292
mov edi, dword [esp + 0x74]
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ebx, 1
mov ecx, edi
mov dword [esp + 0x34], ebx
call eax
test eax, eax
je 0x418a7d
mov eax, dword [edi + 0x34]
cmp eax, ebx
jne 0x418a2e
fld dword [esi + 0x2c8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x2c4]
fstp dword [esp]
push ecx
push edx
push 0x686164
push edi
push eax
mov ecx, esi
call fcn.0040fb10
jmp 0x419292
cmp eax, 2
jne 0x418a62
cmp dword [esi + 0x2c4], ebx
jne 0x418a62
fld dword [esi + 0x2c8]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
push ebx
push ecx
push 0x686164
push edi
push edx
mov ecx, esi
call fcn.0040fb10
jmp 0x419292
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.004123b0
jmp 0x419292
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
lea ecx, [esp + 0x1c4]
mov ebx, eax
call fcn.00517a80
lea ecx, [esp + 0xfc]
mov byte [esp + 0x480], 0x1f
call fcn.00517a80
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x480], 0x20
call fcn.00517ad0
lea ecx, [esp + 0x1c4]
call fcn.005f3900
lea ecx, [esp + 0xfc]
call fcn.00517ad0
mov eax, dword [esp + 0x12c]
xor edi, edi
test eax, eax
je 0x418afd
push 7
push eax
push str.Resist_
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x418afd
mov edi, 1
fld dword [esi + 0x2c8]
mov eax, dword [esi + 0x2c4]
mov edx, dword [esi + 0x24]
push edi
push ecx
fstp dword [esp]
push eax
lea ecx, [esp + 0x1d0]
push ecx
push 1
push 0
push ebx
push edx
call fcn.004047a0
push 0
lea eax, [esp + 0x1e8]
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.00540ca0
mov eax, dword [esp + 0x158]
add esp, 0x2c
test eax, eax
je 0x419116
push 7
push eax
push str.Resist_
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x419116
mov eax, 1
cmp dword [esi + 0x2c4], eax
jne 0x419116
cmp dword [esi + 0x348], eax
jne 0x418b9e
cmp dword [esp + 0xfc], 0
jne 0x418b9e
fldz
mov edx, dword [esp + 0x30]
fcomp dword [edx + 0x28]
fnstsw ax
test ah, 0x44
jnp 0x41926a
cmp dword [esi + 0x350], 0
jne 0x418c80
mov ecx, dword [esi + 0x48]
push 2
call fcn.004e2900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x418c80
push eax
lea ecx, [esp + 0xf4]
call fcn.004bb830
lea ecx, [esp + 0xf0]
mov byte [esp + 0x480], 0x21
call fcn.004bb850
lea ecx, [esp + 0xf0]
call fcn.004f69c0
test eax, eax
je 0x418c6c
jmp 0x418c00
lea ecx, [esp + 0xf0]
call fcn.004f69c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 4
jne 0x418c50
lea ecx, [esp + 0xf0]
call fcn.004f69c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x68]
call eax
mov edx, dword [esi + 0x350]
lea ecx, [esi + 0x350]
push edx
mov edi, eax
call fcn.005f3cc0
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov dword [ebx], eax
lea ecx, [esp + 0xf0]
call fcn.004bb880
lea ecx, [esp + 0xf0]
call fcn.004f69c0
test eax, eax
jne 0x418c00
lea ecx, [esp + 0xf0]
mov byte [esp + 0x480], 0x20
call fcn.004f2200
xor eax, eax
cmp dword [esi + 0x1c4], eax
je 0x418f26
cmp dword [esi + 0x350], eax
mov dword [esp + 0x64], eax
jle 0x419252
mov edi, edi
mov eax, dword [esi + 0x358]
mov ecx, dword [esp + 0x64]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x150]
call fcn.00517a80
xor ebx, ebx
push ebx
lea ecx, [esp + 0x154]
mov byte [esp + 0x484], 0x22
call fcn.005f3cc0
lea edx, [esp + 0x150]
push edx
push edi
mov ecx, esi
mov dword [esp + 0x158], ebx
call fcn.0042c4f0
cmp dword [esp + 0x150], ebx
mov dword [esp + 0x5c], ebx
jle 0x418ee0
jmp 0x418d00
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x5c]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x138]
call fcn.00517a80
xor ebx, ebx
push ebx
lea ecx, [esp + 0x13c]
mov byte [esp + 0x484], 0x23
call fcn.005f3cc0
push ebx
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x140]
push edi
push eax
mov dword [esp + 0x148], ebx
call fcn.00540fe0
add esp, 0x10
cmp dword [esp + 0x138], ebx
mov dword [esp + 0x3c], ebx
jle 0x418e9e
jmp 0x418d70
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x3c]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
push 0xff
mov ecx, edi
call edx
lea ecx, [esp + 0x15c]
call fcn.00517a80
xor ebx, ebx
push ebx
lea ecx, [esp + 0x160]
mov byte [esp + 0x484], 0x24
call fcn.005f3cc0
push 1
lea eax, [esp + 0x160]
push eax
mov ecx, edi
mov dword [esp + 0x164], ebx
call fcn.00541c40
cmp dword [esp + 0x15c], ebx
jle 0x418e5c
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x44], edi
mov byte [esp + 0x480], 0x25
test edi, edi
je 0x418e11
mov ecx, dword [0x686164]
push ecx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov dword [edi], vtable.BMBDrawing.1.0
mov dword [edi + 0x70], vtable.BMBDrawing.0
jmp 0x418e13
xor edi, edi
mov edx, dword [esp + 0x28]
inc dword [0x686164]
push edx
mov ecx, edi
mov byte [esp + 0x484], 0x24
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x164]
mov ecx, dword [eax + ebx*4]
push 0
push ecx
push edi
mov ecx, esi
call fcn.0040f310
mov ecx, dword [esp + 0x58]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebx
cmp ebx, dword [esp + 0x15c]
jl 0x418dd4
lea ecx, [esp + 0x15c]
call fcn.00517ad0
lea ecx, [esp + 0x15c]
call fcn.005f3900
lea ecx, [esp + 0x15c]
mov byte [esp + 0x480], 0x23
call fcn.00405850
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0x138]
mov dword [esp + 0x3c], eax
jl 0x418d70
lea ecx, [esp + 0x138]
call fcn.00517ad0
lea ecx, [esp + 0x138]
call fcn.005f3900
lea ecx, [esp + 0x138]
mov byte [esp + 0x480], 0x22
call fcn.00405850
mov eax, dword [esp + 0x5c]
inc eax
cmp eax, dword [esp + 0x150]
mov dword [esp + 0x5c], eax
jl 0x418d00
lea ecx, [esp + 0x150]
call fcn.00517ad0
lea ecx, [esp + 0x150]
call fcn.005f3900
lea ecx, [esp + 0x150]
mov byte [esp + 0x480], 0x20
call fcn.00405850
mov eax, dword [esp + 0x64]
inc eax
cmp eax, dword [esi + 0x350]
mov dword [esp + 0x64], eax
jl 0x418ca0
jmp 0x419252
cmp dword [esi + 0x350], eax
mov dword [esp + 0x5c], eax
jle 0x419252
jmp 0x418f40
mov edx, dword [esi + 0x358]
mov eax, dword [esp + 0x5c]
mov edi, dword [edx + eax*4]
lea ecx, [esp + 0x144]
call fcn.00517a80
xor ebx, ebx
push ebx
lea ecx, [esp + 0x148]
mov byte [esp + 0x484], 0x26
call fcn.005f3cc0
push ebx
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x14c]
push edi
push edx
mov dword [esp + 0x154], ebx
call fcn.00540fe0
add esp, 0x10
cmp dword [esp + 0x144], ebx
mov dword [esp + 0x3c], ebx
jle 0x4190d0
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x3c]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
push 0xff
mov ecx, edi
call eax
lea ecx, [esp + 0x168]
call fcn.00517a80
xor ebx, ebx
push ebx
lea ecx, [esp + 0x16c]
mov byte [esp + 0x484], 0x27
call fcn.005f3cc0
push 1
lea ecx, [esp + 0x16c]
push ecx
mov ecx, edi
mov dword [esp + 0x170], ebx
call fcn.00541c40
cmp dword [esp + 0x168], ebx
jle 0x41908e
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x44], edi
mov byte [esp + 0x480], 0x28
test edi, edi
je 0x419043
mov edx, dword [0x686164]
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov dword [edi], vtable.BMBDrawing.1.0
mov dword [edi + 0x70], vtable.BMBDrawing.0
jmp 0x419045
xor edi, edi
mov eax, dword [esp + 0x28]
inc dword [0x686164]
push eax
mov ecx, edi
mov byte [esp + 0x484], 0x27
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov ecx, dword [esp + 0x170]
mov edx, dword [ecx + ebx*4]
push 0
push edx
push edi
mov ecx, esi
call fcn.0040f310
mov ecx, dword [esp + 0x58]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebx
cmp ebx, dword [esp + 0x168]
jl 0x419006
lea ecx, [esp + 0x168]
call fcn.00517ad0
lea ecx, [esp + 0x168]
call fcn.005f3900
lea ecx, [esp + 0x168]
mov byte [esp + 0x480], 0x26
call fcn.00405850
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0x144]
mov dword [esp + 0x3c], eax
jl 0x418fa2
lea ecx, [esp + 0x144]
call fcn.00517ad0
lea ecx, [esp + 0x144]
call fcn.005f3900
lea ecx, [esp + 0x144]
mov byte [esp + 0x480], 0x20
call fcn.00405850
mov eax, dword [esp + 0x5c]
inc eax
cmp eax, dword [esi + 0x350]
mov dword [esp + 0x5c], eax
jl 0x418f40
jmp 0x419252
cmp dword [esp + 0xfc], 0
mov dword [esp + 0x3c], 0
jle 0x419252
lea esp, [esp]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x3c]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
push 0xff
mov ecx, edi
call eax
lea ecx, [esp + 0x174]
call fcn.00517a80
xor ebx, ebx
push ebx
lea ecx, [esp + 0x178]
mov byte [esp + 0x484], 0x29
call fcn.005f3cc0
push 1
lea ecx, [esp + 0x178]
push ecx
mov ecx, edi
mov dword [esp + 0x17c], ebx
call fcn.00541c40
cmp dword [esp + 0x174], ebx
jle 0x41921c
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x44], edi
mov byte [esp + 0x480], 0x2a
test edi, edi
je 0x4191d1
mov edx, dword [0x686164]
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov dword [edi], vtable.BMBDrawing.1.0
mov dword [edi + 0x70], vtable.BMBDrawing.0
jmp 0x4191d3
xor edi, edi
mov eax, dword [esp + 0x28]
inc dword [0x686164]
push eax
mov ecx, edi
mov byte [esp + 0x484], 0x29
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx + ebx*4]
push 0
push edx
push edi
mov ecx, esi
call fcn.0040f310
mov ecx, dword [esp + 0x58]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebx
cmp ebx, dword [esp + 0x174]
jl 0x419194
lea ecx, [esp + 0x174]
call fcn.00517ad0
lea ecx, [esp + 0x174]
mov byte [esp + 0x480], 0x20
call fcn.00405850
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0xfc]
mov dword [esp + 0x3c], eax
jl 0x419130
lea ecx, [esp + 0x1c4]
call fcn.00517ad0
lea ecx, [esp + 0xfc]
call fcn.00517ad0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x480], 0x1f
call fcn.00405850
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x480], 2
call fcn.00405850
mov eax, dword [esp + 0x68]
inc eax
cmp eax, dword [esp + 0xe4]
mov dword [esp + 0x68], eax
jl 0x4172c0
cmp dword [esp + 0x34], 1
jne 0x4192bf
mov ecx, dword [0x686158]
call fcn.00405ca0
jmp 0x41b9cf
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
push eax
lea ecx, [esp + 0x120]
call fcn.004bb830
lea ecx, [esp + 0x11c]
mov byte [esp + 0x480], 0x2b
call fcn.004bb850
lea ecx, [esp + 0x11c]
call fcn.004f69c0
test eax, eax
je 0x41b9bb
lea ecx, [esp + 0x11c]
call fcn.004f69c0
mov ebx, 1
mov edi, eax
cmp dword [esi + 0x270], ebx
jne 0x4193d5
cmp dword [esi + 0x2c0], 0
jne 0x4193d5
mov ecx, edi
call fcn.00475300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x41b99b
mov ecx, edi
call fcn.00475300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x41936f
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 5
jne 0x41b99b
mov ecx, edi
call fcn.00475300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x4193ea
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 5
jne 0x4193ea
cmp dword [esi + 0x270], 0
je 0x41b99b
mov ecx, edi
call fcn.00475300
mov ebx, eax
test ebx, ebx
je 0x41b99b
cmp dword [ebp + 0xc], 1
jne 0x4193c9
mov ecx, ebx
call fcn.00470f00
cmp dword [eax + 0x4c], 0
je 0x41b99b
cmp dword [ebp + 0x10], 1
jne 0x4193ea
test byte [ebx + 0x3c], 1
jmp 0x4193e4
cmp dword [ebp + 0x10], ebx
jne 0x4193ea
push edi
mov ecx, esi
call fcn.0040c5a0
cmp eax, ebx
je 0x41b99b
cmp dword [esi + 0x270], 0
jne 0x419404
push edi
mov ecx, esi
call fcn.0040c5a0
cmp eax, 1
je 0x41b99b
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x41942f
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00475510
test eax, eax
jne 0x41b99b
cmp dword [esp + 0xe4], 0
mov dword [esp + 0x64], 0
jle 0x41b99b
jmp 0x419450
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x64]
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x41b985
push ebx
lea ecx, [esi + 0x100]
call fcn.00406380
test eax, eax
je 0x41b985
push ebx
mov ecx, esi
call fcn.0040b5b0
cmp word [esi + 0x268], 2
mov dword [esp + 0x30], eax
jne 0x4194a0
push ebx
mov ecx, esi
call fcn.0040c1d0
test eax, eax
je 0x41b985
mov ecx, 1
cmp dword [esp + 0x310], ecx
jne 0x4194e7
cmp dword [esi + 0x314], ecx
je 0x4194be
cmp dword [esi + 0x318], ecx
jne 0x4194d5
mov eax, dword [esp + 0x58]
push ebx
push edi
push eax
mov ecx, esi
call fcn.0040c660
cmp eax, 1
je 0x41b985
cmp dword [esi + 0x288], 0
je 0x41b985
mov ecx, 1
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x41956d
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x41954f
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00475510
test eax, eax
je 0x41954f
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00475510
mov eax, dword [eax + 0x34]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.005edd80
mov ecx, esi
call fcn.0040b470
test eax, eax
je 0x41b985
jmp 0x41b97a
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x2c
jmp 0x41b8ec
cmp eax, ecx
jne 0x41975c
push 0xd0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x2d
test eax, eax
je 0x4195bf
mov edx, dword [0x686164]
push 0x633c9c
push 1
push edx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::constructor_int__unsigned_char__char_const__]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x70], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x4195c7
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 9
jne 0x41969c
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x419631
mov eax, dword [eax + 8]
test eax, eax
jne 0x41962b
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.005018f0
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [esp + 0x2c]
push edx
mov ecx, eax
call fcn.00500ce0
mov dword [esp + 0x38], eax
jmp 0x419639
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
cmp eax, 2
jne 0x419717
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x68]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.0042afc0
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x6c]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.0042afc0
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4196f1
fstp dword [esp + 0x34]
jmp 0x4196f3
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 2
jne 0x419717
mov eax, dword [edi + 0x68]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.0042afc0
fstp dword [esp + 0x2c]
mov edx, dword [edi + 0x68]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.0042afc0
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4196f1
fstp dword [esp + 0x34]
jmp 0x4196f3
fstp st(0)
fld dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
fld dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutStandOff_float_]
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push ebx
push edi
push ecx
mov ecx, esi
call fcn.004136a0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::Add2DConstraint_class_BMB2DConstraint__]
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_short_int___thiscall_BMBSymbol::GetLayerNumber_void_]
movzx edx, ax
push edx
mov ecx, esi
call fcn.0040c610
test eax, eax
je 0x41b97a
mov ecx, ebx
jmp 0x41b971
cmp eax, 2
jne 0x419828
push 0xd0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x2e
test eax, eax
je 0x4197af
mov edx, dword [0x686164]
push 0x633c9c
push 1
push edx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::constructor_int__unsigned_char__char_const__]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x70], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x4197b7
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 9
jne 0x41969c
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x419631
mov eax, dword [eax + 8]
test eax, eax
jne 0x41981f
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.005018f0
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [esp + 0x2c]
push edx
mov ecx, eax
call fcn.00500ce0
mov dword [esp + 0x38], eax
jmp 0x419639
cmp eax, 3
jne 0x41ae20
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 6
je 0x41acf7
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 7
je 0x41acf7
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 8
je 0x41acf7
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 9
jne 0x419995
cmp dword [esi + 0x274], 0
je 0x41b985
cmp dword [esi + 0x278], 2
je 0x41b985
cmp dword [esi + 0x2d8], 0
jg 0x41b985
mov eax, dword [esi + 0x24]
push eax
lea ecx, [esp + 0x388]
call fcn.00432b00
push edi
lea ecx, [esp + 0x388]
mov byte [esp + 0x484], 0x30
call fcn.00432e10
push eax
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.0040c080
cmp eax, 1
jne 0x419969
cmp byte [esi + 0x2a3], al
jne 0x419969
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x31
test eax, eax
je 0x419929
mov ecx, dword [0x686164]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMBHole.1.0
mov dword [eax + 0x70], vtable.BMBHole.0
mov dword [esp + 0x34], eax
jmp 0x419931
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x30
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
push 0
push 0
push 0
push ebx
mov ebx, dword [esp + 0x44]
push edi
push ebx
mov ecx, esi
call fcn.004136a0
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
cmp dword [esp + 0x40], 0
je 0x41997c
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x384]
mov byte [esp + 0x480], 0x2b
call fcn.004f2200
jmp 0x41b97a
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xe
je 0x419a8e
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xf
je 0x419a8e
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c080
cmp eax, 1
jne 0x41b97a
cmp byte [esi + 0x2a3], al
jne 0x41b97a
cmp dword [esi + 0x274], 0
je 0x41b985
cmp dword [esi + 0x278], 2
je 0x41b985
cmp dword [esi + 0x2d8], 0
jg 0x41b985
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x49
test eax, eax
je 0x419a49
mov ecx, dword [0x686164]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMBHole.1.0
mov dword [eax + 0x70], vtable.BMBHole.0
mov dword [esp + 0x34], eax
jmp 0x419a51
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
push 0
push 0
push 0
push ebx
mov ebx, dword [esp + 0x44]
push edi
push ebx
mov ecx, esi
call fcn.004136a0
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
jmp 0x41b97a
push 0xb4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x32
test ebx, ebx
je 0x419ad3
mov edx, dword [0x686164]
push 1
push 0
push edx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::constructor_int__unsigned_char__unsigned_char_]
mov dword [ebx], vtable.BMB2DStack.1.0
mov dword [ebx + 0x70], vtable.BMB2DStack.0
mov dword [esp + 0x28], ebx
jmp 0x419ad9
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0x633c9c
lea ecx, [esp + 0x3b0]
mov byte [esp + 0x484], 0x2b
call fcn.005edd80
inc dword [0x686164]
xor eax, eax
lea ecx, [esp + 0x210]
mov byte [esp + 0x480], 0x33
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], eax
call fcn.005f3af0
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x480], 0x34
call fcn.005f3af0
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
mov byte [esp + 0x480], 0x35
call edx
cmp eax, 0xf
jne 0x419b90
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2e8]
push ecx
lea edx, [esp + 0x218]
push edx
mov ecx, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], 0
call fcn.004bf130
cmp dword [esp + 0x210], 0
jle 0x419b7e
mov dword [esp + 0x2c], 1
cmp dword [esp + 0x2e4], 0
jle 0x419b90
mov dword [esp + 0x5c], 1
mov ecx, edi
call fcn.00470f00
mov ecx, eax
call fcn.004b9eb0
mov ecx, dword [esi + 0x34]
push 0
push eax
call fcn.004b0b60
mov ecx, eax
call fcn.004b8050
test byte [eax + 0x20], 1
mov dword [esp + 0x70], eax
mov ecx, ebx
je 0x419bc0
push 0
jmp 0x419bc2
push 1
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::PutPlated_unsigned_char_]
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
mov ecx, edi
call edx
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
mov ecx, ebx
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::PutRotation_float_]
lea eax, [esp + 0x3dc]
push eax
mov ecx, edi
call fcn.00470f00
mov ecx, eax
call fcn.004ba180
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x3b4]
mov byte [esp + 0x488], 0x36
call fcn.005ed450
lea ecx, [esp + 0x3dc]
mov byte [esp + 0x480], 0x35
call fcn.005ed430
movzx eax, word [edi + 0x5c]
movzx ecx, ax
movzx eax, word [edi + 0x5e]
movzx edx, ax
mov eax, dword [esi + 0x2d8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], edx
cmp eax, 2
je 0x419c50
cmp eax, 4
jne 0x419c60
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
je 0x419e2a
mov eax, dword [edi]
mov edx, dword [eax + 0xe0]
mov ecx, edi
call edx
test eax, eax
je 0x419e2a
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0x38], 0
call edx
lea ecx, [esp + 0x394]
call fcn.005f3af0
mov ecx, dword [esi + 0x48]
push 3
mov byte [esp + 0x484], 0x37
call fcn.004e2900
test eax, eax
je 0x419e16
push 0
push 0
lea ecx, [esp + 0x39c]
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.004067f0
test eax, eax
je 0x419e16
mov edx, dword [esp + 0x34]
push edx
mov ecx, esi
call fcn.0040bf10
cmp eax, 1
jne 0x419e16
cmp byte [esi + 0x2a5], al
jne 0x419e16
mov eax, dword [esp + 0x39c]
mov ecx, dword [eax]
push 0x80
mov dword [esp + 0x34], ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x38
test ebx, ebx
je 0x419d3e
mov edx, dword [0x686164]
push edx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov dword [ebx], vtable.BMBHole.1.0
mov dword [ebx + 0x70], vtable.BMBHole.0
jmp 0x419d40
xor ebx, ebx
inc dword [0x686164]
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
mov ecx, edi
mov byte [esp + 0x480], 0x37
call edx
fstp dword [esp + 0x2c4]
xor eax, eax
push eax
lea ecx, [esp + 0x3c8]
mov dword [esp + 0x344], eax
mov dword [esp + 0x2d0], eax
call fcn.005ed360
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x2c4]
push eax
lea eax, [esp + 0x420]
push eax
mov ecx, edi
mov byte [esp + 0x488], 0x39
call edx
mov edx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x348]
push eax
lea ecx, [esp + 0x2d8]
push ecx
push edx
lea eax, [esp + 0x3d8]
push eax
push ebx
mov ecx, esi
call fcn.0041cce0
lea ecx, [esp + 0x3c4]
mov byte [esp + 0x480], 0x37
call fcn.005ed430
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esi + 0x278]
cmp eax, 1
je 0x419e0b
mov ecx, dword [esp + 0x28]
cmp eax, 2
jne 0x419e01
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
test al, al
jmp 0x419e09
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
jne 0x419e16
mov ecx, dword [esp + 0x28]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::PutHole_class_BMBHole__]
lea ecx, [esp + 0x394]
mov byte [esp + 0x480], 0x35
call fcn.005f3b00
lea ecx, [esp + 0xbc]
call fcn.005f3af0
cmp dword [esi + 0x2c0], 1
mov byte [esp + 0x480], 0x3a
je 0x41ab64
mov eax, dword [esp + 0x60]
movzx edx, ax
cwde
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x4c], edx
jg 0x41a419
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push eax
call fcn.004070e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x74]
call fcn.004b9ee0
mov ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x41a3fe
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push edx
call fcn.004070e0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edi
call fcn.004b53a0
mov edx, dword [esp + 0x30]
push 0
push 0
lea ecx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esi + 0x100]
mov dword [esp + 0x88], eax
mov dword [esp + 0x50], 0
call fcn.004068b0
test eax, eax
je 0x41a3fe
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov dword [esp + 0x8c], eax
test eax, eax
je 0x41a3fe
cmp dword [esp + 0x2c], 1
jne 0x41a28c
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x30], ecx
push edx
mov ecx, ebx
call fcn.004c0cd0
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x78], eax
test eax, eax
je 0x41a3fe
mov ecx, eax
call fcn.004bfe00
test eax, eax
je 0x41a3fe
cmp dword [esp + 0x210], 0
mov dword [esp + 0x68], 0
jle 0x41a28c
jmp 0x419f70
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x68]
movzx eax, word [ecx + edx*2]
cmp dword [esp + 0x90], eax
jne 0x41a267
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x44], 1
mov dword [esp + 0x80], 0
call fcn.004070e0
mov edx, dword [esi + 0x34]
mov ebx, dword [edi]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x30], edx
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x3c]
add ebx, 0xec
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004efc10
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x41a267
cmp word [eax + 4], 1
jb 0x41a267
mov ecx, dword [esp + 0x78]
call fcn.004bfe00
push eax
lea ecx, [esp + 0x250]
call fcn.005edd80
push 0x633ca0
lea ecx, [esp + 0x250]
mov byte [esp + 0x484], 0x3b
call fcn.005edc30
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x250]
call fcn.005edd70
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x3c
test ebx, ebx
je 0x41a0c7
mov eax, dword [0x686164]
sub esp, 0xc
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x258]
inc eax
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
mov dword [0x686164], eax
call fcn.005edb30
lea eax, [esp + 0x324]
push eax
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
or dword [esp + 0x50], 4
push eax
push 0
push ecx
mov ecx, ebx
mov byte [esp + 0x48c], 0x3d
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBPad::constructor_int__unsigned_char__char_const__]
mov dword [ebx], vtable.BMBPad.1.0
mov dword [ebx + 0x70], vtable.BMBPad.0
mov dword [esp + 0x34], ebx
jmp 0x41a0cf
mov dword [esp + 0x34], 0
test byte [esp + 0x50], 4
mov dword [esp + 0x480], 0x3b
je 0x41a0f3
and dword [esp + 0x50], 0xfffffffb
lea ecx, [esp + 0x318]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
xor ecx, ecx
xor ebx, ebx
cmp cx, ax
jae 0x41a241
fldz
fst dword [esp + 0x2f0]
fstp dword [esp + 0x2f4]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x270]
mov ecx, dword [esp + 0x70]
call fcn.004ba2b0
mov ecx, dword [esp + 0x70]
movzx edx, word [ecx + 0x20]
mov ecx, dword [esp + 0x7c]
shr edx, 2
mov dword [esp + 0x274], eax
and edx, 1
mov dword [esp + 0x280], edx
mov edx, dword [ecx + 8]
movzx eax, bx
mov eax, dword [edx + eax*4]
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea ecx, [esp + 0x270]
mov dword [esp + 0x30], eax
push ecx
lea eax, [esp + 0x430]
push eax
mov ecx, edi
call edx
mov edx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x28c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x260]
push eax
push ecx
mov ecx, esi
call fcn.0041cae0
lea ecx, [esp + 0x354]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov edx, dword [esp + 0x24c]
push edx
lea ecx, [esp + 0x358]
mov byte [esp + 0x484], 0x3f
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ax, word [esp + 0x8c]
mov ecx, dword [esp + 0x2f0]
mov edx, dword [esp + 0x2f4]
sub esp, 0x10
mov word [esp + 0x368], ax
mov dword [esp + 0x36c], ecx
lea eax, [esp + 0x364]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov dword [esp + 0x374], edx
call fcn.0040b340
mov ecx, dword [esp + 0x38]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x354]
mov byte [esp + 0x480], 0x3b
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x7c]
movzx edx, word [ecx + 4]
inc ebx
movsx eax, bx
cmp eax, edx
jl 0x41a117
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0xcc]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x24c]
mov byte [esp + 0x480], 0x3a
call fcn.005ed430
mov eax, dword [esp + 0x68]
inc eax
cmp eax, dword [esp + 0x210]
mov dword [esp + 0x68], eax
jl 0x419f70
cmp dword [esp + 0x40], 1
je 0x41a3fe
mov ebx, dword [esp + 0x48]
mov edx, dword [esi + 0x34]
push 0
mov ecx, ebx
mov dword [esp + 0x34], edx
call fcn.004c0cd0
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x30], ecx
push 1
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.004c0cd0
mov ecx, dword [esp + 0x30]
movzx edx, ax
push edx
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x34]
push 2
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.004c0cd0
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov edx, dword [esi + 0x34]
push 3
mov ecx, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x34], edx
call fcn.004c0cd0
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.004070e0
cmp dword [eax + 0x34], 1
jne 0x41a34a
test ebx, ebx
jne 0x41a361
mov ebx, dword [esp + 0x78]
jmp 0x41a359
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x41a361
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x41a3fe
lea ecx, [esp + 0x374]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebx
mov byte [esp + 0x480], 0x40
call fcn.004bfe00
push eax
lea ecx, [esp + 0x378]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov dx, word [esp + 0x8c]
fst dword [esp + 0x268]
mov eax, dword [esp + 0x268]
fstp dword [esp + 0x26c]
mov ecx, dword [esp + 0x26c]
sub esp, 0x10
mov word [esp + 0x388], dx
mov dword [esp + 0x390], ecx
lea edx, [esp + 0x384]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov dword [esp + 0x390], eax
call fcn.0040b340
mov ecx, dword [esp + 0x38]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x374]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cwde
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x90], eax
jle 0x419e68
cmp dword [esp + 0x5c], 1
jne 0x41a949
mov ecx, dword [esi + 0x48]
xor eax, eax
cmp dword [ecx + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
jle 0x41ab64
lea ebx, [ebx]
movzx ecx, word [esp + 0x38]
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x40]
movzx edx, cx
mov ebx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x78], ecx
test ebx, ebx
je 0x41a486
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41a482
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.005018f0
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.00500ce0
mov ebx, eax
jmp 0x41a488
xor ebx, ebx
push 0
push 0
lea edx, [esp + 0xc4]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.004068b0
test eax, eax
je 0x41a92f
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x70]
movzx eax, ax
push eax
call fcn.004b9f40
test eax, eax
je 0x41a92f
mov ecx, dword [esi + 0x34]
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x40], eax
test eax, eax
je 0x41a92f
mov ecx, dword [esp + 0x2e4]
xor eax, eax
test ecx, ecx
jle 0x41a50d
mov edx, dword [esp + 0x2ec]
movzx ebx, word [edx + eax*2]
cmp dword [esp + 0x38], ebx
jne 0x41a508
mov dword [esp + 0x2c], 1
inc eax
cmp eax, ecx
jl 0x41a4f6
cmp dword [esp + 0x2c], 1
jne 0x41a839
mov edx, dword [esp + 0x3c]
mov ebx, dword [edx]
mov edx, dword [esp + 0x78]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x74]
push eax
push edx
mov dword [esp + 0x7c], 0
add ebx, 0xf0
call fcn.004efc10
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ebx]
call eax
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x5c], 0
jle 0x41a92f
mov eax, dword [esp + 0x74]
test eax, eax
je 0x41a81e
cmp word [eax + 4], 1
jb 0x41a81e
mov ecx, dword [esp + 0x40]
call fcn.004bfe00
push eax
lea ecx, [esp + 0x244]
call fcn.005edd80
push 0x633ca0
lea ecx, [esp + 0x244]
mov byte [esp + 0x484], 0x41
call fcn.005edc30
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x244]
call fcn.005edd70
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x42
test ebx, ebx
je 0x41a647
mov eax, dword [0x686164]
sub esp, 0xc
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x24c]
inc eax
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
mov dword [0x686164], eax
call fcn.005edb30
lea eax, [esp + 0x298]
push eax
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
or dword [esp + 0x50], 8
push eax
push 0
push ecx
mov ecx, ebx
mov byte [esp + 0x48c], 0x43
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBPad::constructor_int__unsigned_char__char_const__]
mov dword [ebx], vtable.BMBPad.1.0
mov dword [ebx + 0x70], vtable.BMBPad.0
mov dword [esp + 0x68], ebx
jmp 0x41a64f
mov dword [esp + 0x68], 0
test byte [esp + 0x50], 8
mov dword [esp + 0x480], 0x41
je 0x41a673
and dword [esp + 0x50], 0xfffffff7
lea ecx, [esp + 0x28c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
xor ecx, ecx
mov dword [esp + 0x34], 0
cmp cx, ax
jae 0x41a7f4
fldz
fst dword [esp + 0x320]
fstp dword [esp + 0x324]
lea ecx, [ecx]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x294]
mov ebx, dword [esp + 0x70]
mov ecx, ebx
call fcn.004ba2b0
movzx ecx, word [ebx + 0x20]
movzx edx, word [esp + 0x34]
shr ecx, 2
mov dword [esp + 0x2a0], eax
mov eax, dword [esp + 0x74]
and ecx, 1
mov dword [esp + 0x2a8], ecx
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + edx*4]
mov eax, dword [edi]
lea edx, [esp + 0x294]
push edx
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x440]
push ecx
mov ecx, edi
call edx
push eax
lea eax, [esp + 0x2a8]
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x2b4]
push ecx
push ebx
lea edx, [esp + 0x254]
push edx
push eax
mov ecx, esi
call fcn.0041cae0
lea ecx, [esp + 0x200]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x240]
push ecx
lea ecx, [esp + 0x204]
mov byte [esp + 0x484], 0x45
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0x5c]
mov cx, word [edx + eax*4]
mov edx, dword [esp + 0x320]
mov eax, dword [esp + 0x324]
sub esp, 0x10
mov word [esp + 0x214], cx
mov ebx, esp
lea ecx, [esp + 0x210]
mov dword [esp + 0x54], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x21c], edx
mov dword [esp + 0x220], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x214]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x218]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x21c]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x38]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x200]
mov byte [esp + 0x480], 0x41
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
movzx ecx, word [edx + 4]
inc eax
movsx edx, ax
cmp edx, ecx
mov dword [esp + 0x34], eax
jl 0x41a6a0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xc8]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x240]
mov byte [esp + 0x480], 0x3a
call fcn.005ed430
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x5c]
inc ecx
cmp ecx, dword [esp + 0xbc]
mov dword [esp + 0x5c], ecx
jl 0x41a561
jmp 0x41a92f
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x34], 0
jle 0x41a92f
fldz
fst dword [esp + 0x298]
fstp dword [esp + 0x29c]
nop
lea ecx, [esp + 0x1f0]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x480], 0x46
call fcn.004bfe00
push eax
lea ecx, [esp + 0x1f4]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x34]
mov ax, word [ecx + edx*4]
mov ecx, dword [esp + 0x298]
mov edx, dword [esp + 0x29c]
sub esp, 0x10
mov word [esp + 0x204], ax
mov ebx, esp
lea eax, [esp + 0x200]
mov dword [esp + 0x208], ecx
mov dword [esp + 0x54], esp
push eax
mov ecx, ebx
mov dword [esp + 0x210], edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov cx, word [esp + 0x204]
mov word [ebx + 4], cx
mov edx, dword [esp + 0x208]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x20c]
push 0
mov dword [ebx + 0xc], eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0xbc]
mov dword [esp + 0x34], eax
jl 0x41a860
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x38], eax
jl 0x41a440
jmp 0x41ab64
mov edx, dword [esi + 0x48]
cmp dword [edx + 0x3c], 0
mov dword [esp + 0x68], 0
jle 0x41ab64
mov eax, dword [esi + 0x48]
movzx ecx, word [esp + 0x68]
mov edx, dword [eax + 0x40]
mov ebx, dword [edx + ecx*4]
lea eax, [edx + ecx*4]
test ebx, ebx
je 0x41a99d
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41a999
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.005018f0
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.00500ce0
mov ebx, eax
jmp 0x41a99f
xor ebx, ebx
push 0
push 0
lea edx, [esp + 0xc4]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.004068b0
test eax, eax
je 0x41ab4f
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x70]
movzx eax, ax
push eax
call fcn.004b9f40
test eax, eax
je 0x41ab4f
mov ecx, dword [esi + 0x34]
push eax
call fcn.004efc10
mov ecx, eax
call fcn.004c0720
mov dword [esp + 0x30], eax
test eax, eax
je 0x41ab4f
xor ebx, ebx
cmp dword [esp + 0xbc], ebx
mov dword [esp + 0x34], ebx
jle 0x41ab4f
lea esp, [esp]
lea ecx, [esp + 0x1b0]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0xc4]
mov eax, dword [ecx + ebx*4]
push eax
lea ecx, [esi + 0x100]
mov byte [esp + 0x484], 0x47
call fcn.004064a0
test eax, eax
je 0x41aa85
mov edx, dword [esp + 0x60]
inc edx
cmp eax, edx
jge 0x41aa62
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41ab3d
mov ecx, dword [esp + 0x54]
inc ecx
cmp eax, ecx
jle 0x41aa85
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41ab3d
mov ecx, dword [esp + 0x30]
call fcn.004bfe00
push eax
lea ecx, [esp + 0x1b4]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov edx, dword [esp + 0xc4]
fst dword [esp + 0x2fc]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x300]
mov cx, word [edx + eax*4]
mov edx, dword [esp + 0x2fc]
mov eax, dword [esp + 0x300]
sub esp, 0x10
mov word [esp + 0x1c4], cx
mov ebx, esp
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x54], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x1cc], edx
mov dword [esp + 0x1d0], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x1c4]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x1c8]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x1cc]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x38]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ebx, dword [esp + 0x34]
inc ebx
cmp ebx, dword [esp + 0xbc]
mov dword [esp + 0x34], ebx
jl 0x41aa10
mov eax, dword [esp + 0x68]
mov edx, dword [esi + 0x48]
inc eax
cmp eax, dword [edx + 0x3c]
mov dword [esp + 0x68], eax
jl 0x41a95e
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
dec eax
cmp dword [esp + 0x60], 0
movzx eax, ax
jne 0x41ab86
movsx ecx, ax
mov byte [esp + 0x184], 1
cmp dword [esp + 0x54], ecx
je 0x41ab8e
mov byte [esp + 0x184], 2
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x404]
push eax
mov ecx, edi
call edx
mov eax, dword [eax]
lea ecx, [esp + 0x2b0]
push ecx
mov ecx, esi
mov dword [esp + 0x2b4], eax
call fcn.0042afc0
fstp dword [esp + 0x78]
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x424]
push eax
mov ecx, edi
call edx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2b8]
push ecx
mov ecx, esi
mov dword [esp + 0x2bc], eax
call fcn.0042afc0
fstp dword [esp + 0x30]
push 0x90
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x480], 0x48
test ebx, ebx
je 0x41ac3d
fld dword [esp + 0x30]
mov edx, dword [0x686164]
push 0
sub esp, 8
fstp dword [esp + 4]
mov ecx, ebx
fld dword [esp + 0x84]
fstp dword [esp]
push edx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::constructor_int__float__float__class_BMB2DStack__]
mov dword [ebx], vtable.BMBVia.1.0
mov dword [ebx + 0x70], vtable.BMBVia.0
jmp 0x41ac3f
xor ebx, ebx
mov eax, dword [esp + 0x28]
push eax
mov ecx, ebx
mov byte [esp + 0x484], 0x3a
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutStack_class_BMB2DStack__]
mov ecx, dword [esp + 0x184]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutViaType_unsigned_char_]
mov edx, dword [esp + 0x60]
inc edx
push edx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutTopLayerNumber_short_int_]
mov eax, dword [esp + 0x54]
inc eax
push eax
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutBottomLayerNumber_short_int_]
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddVia_class_BMBVia__]
mov ecx, dword [0x686164]
push ecx
push 0
push edi
mov ecx, esi
call fcn.0040ca30
inc dword [0x686164]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x480], 0x35
call fcn.005f3b00
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x480], 0x34
call fcn.005f3b00
lea ecx, [esp + 0x210]
mov byte [esp + 0x480], 0x33
call fcn.005f3b00
lea ecx, [esp + 0x3ac]
mov byte [esp + 0x480], 0x2b
call fcn.005ed430
jmp 0x41b97a
cmp dword [esi + 0x274], 0
je 0x41b985
cmp dword [esi + 0x278], 2
je 0x41b985
mov eax, dword [esi + 0x2d8]
test eax, eax
jle 0x41ad24
cmp eax, 3
jne 0x41b985
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
je 0x41b97a
cmp dword [esi + 0x2d8], 3
jne 0x41ad5c
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 3
jne 0x41b985
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c080
cmp eax, 1
jne 0x41b97a
cmp byte [esi + 0x2a3], al
jne 0x41b97a
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x2f
test eax, eax
je 0x41adc5
mov ecx, dword [0x686164]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMBHole.1.0
mov dword [eax + 0x70], vtable.BMBHole.0
mov dword [esp + 0x38], eax
jmp 0x41adcd
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov edx, dword [esp + 0x38]
push edx
push edi
mov ecx, esi
call fcn.0040cdd0
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
push 0
push 0
push 0
push ebx
mov ecx, edi
call edx
mov ebx, dword [esp + 0x48]
push eax
push ebx
mov ecx, esi
call fcn.00412a60
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
jmp 0x41b97a
cmp eax, 5
jne 0x41b5f5
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 3
jne 0x41b985
push pe_nt_image_headers32
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x4a
test eax, eax
je 0x41ae7f
mov eax, dword [0x686164]
mov ecx, dword [esp + 0x2c]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::constructor_int_]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMBBendLine.1.0
mov dword [eax + 0x70], vtable.BMBBendLine.0
mov dword [esp + 0x28], eax
jmp 0x41ae87
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutLayerNumber_short_int_]
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
push ebx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00411db0
push edi
lea ecx, [esp + 0x128]
call fcn.004f4df0
lea ecx, [esp + 0x124]
call fcn.004f4dd0
lea ecx, [esp + 0x1a4]
call fcn.005ed1b0
lea ecx, [esp + 0x194]
mov byte [esp + 0x480], 0x4b
call fcn.005ed1b0
mov ecx, dword [esp + 0x128]
mov byte [esp + 0x480], 0x4c
test ecx, ecx
je 0x41b5b6
mov dl, byte [ecx + 2]
and dl, 3
cmp dl, 1
je 0x41af1a
mov ecx, dword [ecx + 8]
jmp 0x41b5a7
call fcn.004f4b50
push eax
lea ecx, [esp + 0x1a8]
call fcn.005edbf0
mov eax, dword [esp + 0x128]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x198]
call fcn.005edbf0
lea ecx, [esp + 0x1a4]
push str.PointDirection
push ecx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x41b0b3
sub esp, 0xc
lea edx, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.005edb30
lea eax, [esp + 0x19c]
push eax
mov ecx, esi
call fcn.00406f20
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x4d
call sub.mfc90.dll_Ordinal_580
mov edx, dword [esp + 0x190]
lea ecx, [esp + 0xcc]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x488], 0x4e
call fcn.0041fb20
fldz
mov eax, dword [esp + 0xd4]
fst qword [esp + 0x94]
xor ebx, ebx
fst qword [esp + 0x9c]
fstp qword [esp + 0xa4]
test eax, eax
jle 0x41b059
lea esp, [esp]
test ebx, ebx
jl 0x41ba5b
cmp ebx, eax
jge 0x41ba5b
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x84]
push ecx
push 0x633eac
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41b025
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41b04d
cmp ebx, 1
jne 0x41b03a
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41b04d
cmp ebx, 2
jne 0x41b04d
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41afe0
fld qword [esp + 0x94]
mov ecx, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xb4]
fstp qword [eax + 8]
fld qword [esp + 0xbc]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutPointDirection_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x4d
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x190]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41b59d
lea edx, [esp + 0x1a4]
push str.VectorDirection
push edx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x41b223
sub esp, 0xc
lea eax, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.005edb30
lea ecx, [esp + 0x18c]
push ecx
mov ecx, esi
call fcn.00406f20
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x4f
call sub.mfc90.dll_Ordinal_580
mov eax, dword [esp + 0x180]
lea edx, [esp + 0xcc]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x488], 0x50
call fcn.0041fb20
fldz
mov eax, dword [esp + 0xd4]
fst qword [esp + 0x94]
xor ebx, ebx
fst qword [esp + 0x9c]
fstp qword [esp + 0xa4]
test eax, eax
jle 0x41b1c9
lea esp, [esp]
test ebx, ebx
jl 0x41ba5b
cmp ebx, eax
jge 0x41ba5b
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x84]
push edx
push 0x633eac
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41b195
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41b1bd
cmp ebx, 1
jne 0x41b1aa
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41b1bd
cmp ebx, 2
jne 0x41b1bd
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41b150
fld qword [esp + 0x94]
mov ecx, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xb4]
fstp qword [eax + 8]
fld qword [esp + 0xbc]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutVectorDirection_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x4f
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x180]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41b59d
lea eax, [esp + 0x1a4]
push str.PointSide
push eax
call fcn.005edad0
add esp, 8
test eax, eax
je 0x41b393
sub esp, 0xc
lea edx, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.005edb30
lea eax, [esp + 0x198]
push eax
mov ecx, esi
call fcn.00406f20
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x51
call sub.mfc90.dll_Ordinal_580
mov edx, dword [esp + 0x18c]
lea ecx, [esp + 0xcc]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x488], 0x52
call fcn.0041fb20
fldz
mov eax, dword [esp + 0xd4]
fst qword [esp + 0x94]
xor ebx, ebx
fst qword [esp + 0x9c]
fstp qword [esp + 0xa4]
test eax, eax
jle 0x41b339
lea esp, [esp]
test ebx, ebx
jl 0x41ba5b
cmp ebx, eax
jge 0x41ba5b
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x84]
push ecx
push 0x633eac
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41b305
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41b32d
cmp ebx, 1
jne 0x41b31a
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41b32d
cmp ebx, 2
jne 0x41b32d
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41b2c0
fld qword [esp + 0x94]
mov ecx, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xb4]
fstp qword [eax + 8]
fld qword [esp + 0xbc]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutPointSide_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x51
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x18c]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41b59d
lea edx, [esp + 0x1a4]
push str.VectorSide
push edx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x41b503
sub esp, 0xc
lea eax, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.005edb30
lea ecx, [esp + 0x194]
push ecx
mov ecx, esi
call fcn.00406f20
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x53
call sub.mfc90.dll_Ordinal_580
mov eax, dword [esp + 0x188]
lea edx, [esp + 0xcc]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x488], 0x54
call fcn.0041fb20
fldz
mov eax, dword [esp + 0xd4]
fst qword [esp + 0x94]
xor ebx, ebx
fst qword [esp + 0x9c]
fstp qword [esp + 0xa4]
test eax, eax
jle 0x41b4a9
lea esp, [esp]
test ebx, ebx
jl 0x41ba5b
cmp ebx, eax
jge 0x41ba5b
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x84]
push edx
push 0x633eac
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41b475
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41b49d
cmp ebx, 1
jne 0x41b48a
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41b49d
cmp ebx, 2
jne 0x41b49d
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41b430
fld qword [esp + 0x94]
mov ecx, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xb4]
fstp qword [eax + 8]
fld qword [esp + 0xbc]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutVectorSide_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x480], 0x53
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x188]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41b59d
lea eax, [esp + 0x1a4]
push str.Angle
push eax
call fcn.005edad0
add esp, 8
test eax, eax
je 0x41b551
mov edx, dword [esp + 0x194]
lea ecx, [esp + 0x84]
push ecx
push 0x633eac
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
fld qword [esp + 0x90]
mov ecx, dword [esp + 0x34]
fstp qword [esp + 4]
add esp, 4
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutAngle_double_]
jmp 0x41b59d
lea eax, [esp + 0x1a4]
push str.Radius
push eax
call fcn.005edad0
add esp, 8
test eax, eax
je 0x41b59d
mov edx, dword [esp + 0x194]
lea ecx, [esp + 0x84]
push ecx
push 0x633eac
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
fld qword [esp + 0x90]
mov ecx, dword [esp + 0x34]
fstp qword [esp + 4]
add esp, 4
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutRadius_double_]
mov eax, dword [esp + 0x128]
mov ecx, dword [eax + 8]
mov dword [esp + 0x128], ecx
test ecx, ecx
jne 0x41af07
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0xe4]
call dword [sym.imp.BMB_NX_C9.dll_public:_bool___thiscall_BMBBoard::AddBendLine_class_BMBBendLine__]
lea ecx, [esp + 0x194]
mov byte [esp + 0x480], 0x4b
call fcn.005ed430
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x480], 0x2b
call fcn.005ed430
jmp 0x41b97a
cmp eax, 6
jne 0x41b71d
push 0xd0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x55
test eax, eax
je 0x41b648
mov edx, dword [0x686164]
push 0x633c9c
push 1
push edx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::constructor_int__unsigned_char__char_const__]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x70], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x41b650
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
mov ecx, edi
cmp eax, 9
jne 0x41b6ea
call fcn.00476a60
mov edx, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b8a8
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x68]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.0042afc0
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x6c]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.0042afc0
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41b80f
fstp dword [esp + 0x34]
jmp 0x41b811
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b8a8
mov ecx, dword [edi + 0x68]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.0042afc0
mov eax, dword [edi + 0x68]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
jmp 0x41b859
cmp eax, 7
jne 0x41b8d3
push 0xd0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x56
test eax, eax
je 0x41b770
mov ecx, dword [0x686164]
push 0x633c9c
push 1
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::constructor_int__unsigned_char__char_const__]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x70], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x41b778
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov ecx, edi
cmp eax, 9
jne 0x41b829
call fcn.00476a60
mov edx, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b8a8
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x68]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.0042afc0
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x6c]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.0042afc0
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41b80f
fstp dword [esp + 0x34]
jmp 0x41b811
fstp st(0)
fld dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
fld dword [esp + 0x40]
jmp 0x41b89a
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b8a8
mov ecx, dword [edi + 0x68]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.0042afc0
mov eax, dword [edi + 0x68]
mov dword [esp + 0x2c0], eax
lea ecx, [esp + 0x2c0]
push ecx
fstp dword [esp + 0x30]
mov ecx, esi
call fcn.0042afc0
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41b882
fstp dword [esp + 0x34]
jmp 0x41b884
fstp st(0)
fld dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
fld dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutStandOff_float_]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push ebx
push edi
push edx
mov ecx, esi
call fcn.004136a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xe0]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_bool___thiscall_BMBBoard::AddSubArea_class_BMB2DConstraint__]
jmp 0x41b97a
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x57
test eax, eax
je 0x41b918
mov ecx, dword [0x686164]
push ecx
mov ecx, dword [esp + 0x30]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov eax, dword [esp + 0x2c]
mov dword [eax], vtable.BMBDrawing.1.0
mov dword [eax + 0x70], vtable.BMBDrawing.0
mov dword [esp + 0x38], eax
jmp 0x41b920
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x686164]
push ebx
mov byte [esp + 0x484], 0x2b
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
push 0
push 0
push 0
push ebx
mov ebx, dword [esp + 0x48]
push edi
push ebx
mov ecx, esi
call fcn.004136a0
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_short_int___thiscall_BMBSymbol::GetLayerNumber_void_]
movzx edx, ax
push edx
mov ecx, esi
call fcn.0040c610
test eax, eax
je 0x41b97a
mov ecx, ebx
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::AddSymbol_class_BMBSymbol__]
mov ecx, dword [0x686158]
call fcn.00405ca0
mov eax, dword [esp + 0x64]
inc eax
cmp eax, dword [esp + 0xe4]
mov dword [esp + 0x64], eax
jl 0x419450
lea ecx, [esp + 0x11c]
call fcn.004bb880
lea ecx, [esp + 0x11c]
call fcn.004f69c0
test eax, eax
jne 0x4192ff
lea ecx, [esp + 0x11c]
mov byte [esp + 0x480], 2
call fcn.004f2200
lea ecx, [esp + 0x12c]
mov byte [esp + 0x480], 1
call fcn.005ed430
mov eax, dword [esp + 0x1a0]
inc eax
cmp eax, dword [esp + 0x108]
mov dword [esp + 0x1a0], eax
jl 0x417131
add esi, 0x350
mov ecx, esi
call fcn.00517ad0
mov ecx, esi
call fcn.005f3900
lea ecx, [esp + 0x108]
mov byte [esp + 0x480], 0
call fcn.005f3b00
lea ecx, [esp + 0xe4]
mov dword [esp + 0x480], 0xffffffff
call fcn.005f3b00
mov eax, 1
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.005fc660
int3