Function at 0x416b50
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x6124ce
mov eax, dword fs:[0]
push eax
sub esp, 0x468
push ebx
push esi
push edi
mov eax, dword [0x682d00]
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.005f1fa0
mov ecx, dword [0x683034]
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 0x416be5
lea ecx, [esp + 0xe4]
mov dword [esp + 0x480], 0xffffffff
call fcn.005f1f90
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 [0x683034]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBMapPad____thiscall_BMBProduct::GetMapPad_void_]
mov dword [esp + 0xc8], eax
cmp eax, ebx
je 0x416bb4
mov ecx, dword [0x683034]
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.005f1fa0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
mov byte [esp + 0x480], 1
mov dword [esp + 0x28], ebx
cmp eax, ebx
jbe 0x416ca0
xor eax, eax
mov ecx, dword [esi + 0x48]
cmp dword [ecx + 0x30], eax
jle 0x416c72
mov ecx, dword [ecx + 0x34]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
test edi, edi
je 0x416c72
mov eax, dword [edi + 8]
test eax, eax
jne 0x416c6e
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.00500b30
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.004fffc0
mov edi, eax
jmp 0x416c74
xor edi, edi
mov edx, dword [esp + 0x108]
push edx
lea ecx, [esp + 0x10c]
call fcn.005f1b40
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 0x416c3b
mov edx, dword [esi + 0x48]
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edx + 0x3c], eax
jbe 0x416d0e
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 0x416ce0
mov eax, dword [edi + 8]
test eax, eax
jne 0x416cdc
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.00500b30
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.004fffc0
mov edi, eax
jmp 0x416ce2
xor edi, edi
mov edx, dword [esp + 0x108]
push edx
lea ecx, [esp + 0x10c]
call fcn.005f1b40
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 0x416cae
mov edx, dword [esi + 0x48]
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edx + 0x48], eax
jbe 0x416d7c
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 0x416d4e
mov eax, dword [edi + 8]
test eax, eax
jne 0x416d4a
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.00500b30
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.004fffc0
mov edi, eax
jmp 0x416d50
xor edi, edi
mov edx, dword [esp + 0x108]
push edx
lea ecx, [esp + 0x10c]
call fcn.005f1b40
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 0x416d1c
mov ecx, dword [esi + 0x48]
push 7
call fcn.004e1bd0
mov ecx, dword [esi + 0x48]
push 2
call fcn.004e1bd0
mov ecx, dword [esi + 0x48]
push 5
mov dword [esp + 0x308], eax
call fcn.004e1bd0
mov ecx, dword [esi + 0x48]
push 8
call fcn.004e1bd0
xor eax, eax
cmp dword [esp + 0x108], eax
mov dword [esp + 0x1a0], eax
jle 0x41b647
mov edx, dword [esp + 0x110]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x304]
je 0x41b62b
push 0
push 0
lea ecx, [esp + 0xec]
push ecx
lea edi, [esi + 0x100]
push eax
mov ecx, edi
call fcn.00406800
test eax, eax
je 0x41b62b
mov ecx, dword [0x683030]
call fcn.00405c60
mov edx, dword [esp + 0xec]
mov ebx, dword [edx]
lea ecx, [esp + 0x12c]
call fcn.005ebb00
lea eax, [esp + 0x12c]
push eax
push ebx
mov ecx, edi
mov byte [esp + 0x488], 2
call fcn.00407170
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, edi
call fcn.00406a20
test eax, eax
jne 0x416f06
push ebx
mov ecx, edi
call fcn.004064f0
cmp al, 5
je 0x416e6a
cmp al, 9
je 0x416e6a
cmp al, 6
je 0x416e6a
cmp al, 7
je 0x416e6a
cmp al, 8
jne 0x416f06
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x416ef9
mov ecx, str.BendLine
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416ea0
test dl, dl
je 0x416e9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416ea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x416e80
xor eax, eax
jmp 0x416ea5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416f06
push 0xc
push str.FlexibleArea
push edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x416f06
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x416ef9
mov ecx, str.BendArea
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416ef0
test dl, dl
je 0x416eec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416ef0
add eax, 2
add ecx, 2
test dl, dl
jne 0x416ed0
xor eax, eax
jmp 0x416ef5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416f06
cmp dword [esi + 0x27c], 0
je 0x41b617
mov edx, dword [esp + 0x74]
push edx
lea ecx, [esi + 0x100]
call fcn.00406a20
cmp dword [esi + 0x2c0], 1
mov dword [esp + 0x310], eax
jne 0x418f1c
test eax, eax
jne 0x418f1c
cmp dword [esp + 0xe4], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], eax
jle 0x418f1c
jmp 0x416f50
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.0040c620
mov dword [esp + 0x30], eax
test eax, eax
je 0x418eef
test ebx, ebx
je 0x418eef
push ebx
lea ecx, [esi + 0x100]
call fcn.00406390
test eax, eax
je 0x418eef
push ebx
mov ecx, esi
call fcn.0040b5c0
cmp word [esi + 0x268], 2
mov edi, eax
mov dword [esp + 0x78], edi
jne 0x416fba
push ebx
mov ecx, esi
call fcn.0040c1e0
test eax, eax
je 0x418eef
mov ecx, dword [esp + 0x12c]
test ecx, ecx
je 0x41861b
mov eax, str.Hole
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416ff0
test dl, dl
je 0x416fec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416ff0
add eax, 2
add ecx, 2
test dl, dl
jne 0x416fd0
xor eax, eax
jmp 0x416ff5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41861b
cmp dword [esi + 0x2b8], eax
jne 0x41861b
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.004baa50
lea ecx, [esp + 0x114]
mov byte [esp + 0x480], 3
call fcn.004baa70
lea ecx, [esp + 0x114]
call fcn.004baa40
test eax, eax
je 0x418603
lea esp, [esp]
lea ecx, [esp + 0x114]
call fcn.004baa40
mov ebx, 1
mov edi, eax
cmp dword [esi + 0x270], ebx
jne 0x4170b9
mov ecx, edi
call fcn.00479f10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x4185df
cmp dword [esi + 0x270], ebx
jne 0x4170b9
mov ecx, edi
call fcn.00479f10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
je 0x4185df
cmp dword [ebp + 0x10], ebx
jne 0x4170ce
push edi
mov ecx, esi
call fcn.0040c5b0
cmp eax, ebx
je 0x4185df
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x4170f9
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00474850
test eax, eax
jne 0x4185df
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 6
je 0x4184cd
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 7
je 0x4184cd
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 8
je 0x4184cd
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 9
jne 0x41724d
cmp dword [esi + 0x274], 0
je 0x4185df
cmp dword [esi + 0x2d8], 0
jg 0x4185df
cmp dword [esi + 0x278], 2
je 0x4185df
mov eax, dword [esi + 0x24]
push eax
lea ecx, [esp + 0x390]
call fcn.004326a0
push edi
lea ecx, [esp + 0x390]
mov byte [esp + 0x484], 5
call fcn.004329b0
mov ebx, eax
push ebx
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.0040c090
cmp eax, 1
jne 0x417226
cmp byte [esi + 0x2a3], al
jne 0x417226
push 0x7c
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 0x4171e6
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
jmp 0x4171e8
xor ebx, ebx
mov edx, dword [esp + 0x28]
inc dword [0x68303c]
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.00413340
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 0x417234
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.0051a4a0
jmp 0x4185df
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xe
je 0x41732d
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xf
je 0x41732d
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c090
cmp eax, ebx
jne 0x4185df
cmp byte [esi + 0x2a3], bl
jne 0x4185df
cmp dword [esi + 0x274], 0
je 0x4185df
cmp dword [esi + 0x2d8], 0
jg 0x4185df
cmp dword [esi + 0x278], 2
je 0x4185df
push 0x7c
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 0x4172f7
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
jmp 0x4172f9
xor ebx, ebx
mov edx, dword [esp + 0x28]
inc dword [0x68303c]
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.00413340
jmp 0x4185d4
push 0xb0
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 0x417372
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMB2DStack.0
mov dword [esp + 0x60], ebx
jmp 0x417378
xor ebx, ebx
mov dword [esp + 0x60], ebx
push 0x631c94
lea ecx, [esp + 0x3d4]
mov byte [esp + 0x484], 3
call fcn.005ec6d0
inc dword [0x68303c]
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.005f1fa0
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x480], 9
call fcn.005f1fa0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
mov byte [esp + 0x480], 0xa
call eax
cmp eax, 0xf
jne 0x41742f
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.004be360
cmp dword [esp + 0x228], 0
jle 0x41741d
mov dword [esp + 0x3c], 1
cmp dword [esp + 0x2d0], 0
jle 0x41742f
mov dword [esp + 0x2c], 1
mov ecx, edi
call fcn.004c0690
mov ecx, eax
call fcn.004b90c0
mov ecx, dword [esi + 0x34]
push 0
push eax
call fcn.004afd30
mov ecx, eax
call fcn.004b71c0
test byte [eax + 0x20], 1
mov dword [esp + 0x70], eax
mov ecx, ebx
je 0x41745f
push 0
jmp 0x417461
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.004c0690
mov ecx, eax
call fcn.004b9390
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.005ebd80
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 0x4174e6
cmp eax, 4
jne 0x4174f6
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
je 0x4176bd
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
test eax, eax
je 0x4176bd
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.005f1fa0
mov ecx, dword [esi + 0x48]
push 3
mov byte [esp + 0x484], 0xc
call fcn.004e1bd0
test eax, eax
je 0x4176a9
push 0
push 0
lea ecx, [esp + 0x3a8]
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.00406800
test eax, eax
je 0x4176a9
mov edx, dword [esp + 0x54]
push edx
mov ecx, esi
call fcn.0040bf20
cmp eax, 1
jne 0x4176a9
cmp byte [esi + 0x2a5], al
jne 0x4176a9
mov eax, dword [esp + 0x3a8]
mov ecx, dword [eax]
push 0x7c
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 0x4175d1
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
jmp 0x4175d3
xor ebx, ebx
inc dword [0x68303c]
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.005ebcb0
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.0041c920
lea ecx, [esp + 0x3b8]
mov byte [esp + 0x480], 0xc
call fcn.005ebd80
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 0x41769e
mov ecx, dword [esp + 0x60]
cmp eax, 2
jne 0x417694
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
test al, al
jmp 0x41769c
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
jne 0x4176a9
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.005f1f90
lea ecx, [esp + 0xb0]
call fcn.005f1fa0
cmp dword [esi + 0x2c0], 0
mov byte [esp + 0x480], 0xf
jne 0x418339
mov eax, dword [esp + 0x38]
movzx edx, ax
cwde
cmp eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], edx
jg 0x417cb2
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push eax
call fcn.004070b0
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.004b90f0
mov ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x417c9a
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push edx
call fcn.004070b0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edi
call fcn.004b44c0
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.004068c0
test eax, eax
je 0x417c9a
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x8c], eax
test eax, eax
je 0x417c9a
cmp dword [esp + 0x3c], 1
jne 0x417b22
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
push edx
mov ecx, ebx
call fcn.004bfe90
mov ecx, dword [esp + 0x6c]
movzx eax, ax
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0xf8], eax
test eax, eax
je 0x417c9a
mov ecx, eax
call fcn.004bf030
test eax, eax
je 0x417c9a
cmp dword [esp + 0x228], 0
mov dword [esp + 0x64], 0
jle 0x417b22
lea ecx, [ecx]
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x64]
movzx eax, word [ecx + edx*2]
cmp dword [esp + 0x40], eax
jne 0x417afa
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x94], 1
mov dword [esp + 0x58], 0
call fcn.004070b0
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.004b7a50
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x417afa
cmp word [eax + 4], 1
jb 0x417afa
mov ecx, dword [esp + 0xf8]
call fcn.004bf030
push eax
lea ecx, [esp + 0x238]
call fcn.005ec6d0
push 0x631c98
lea ecx, [esp + 0x238]
mov byte [esp + 0x484], 0x10
call fcn.005ec580
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x238]
call fcn.005ec6c0
push 0x7c
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 0x417954
mov eax, dword [0x68303c]
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 [0x68303c], eax
call fcn.005ec480
lea eax, [esp + 0x33c]
push eax
mov ecx, esi
call fcn.0042ad00
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 + 0x6c], vtable.BMBPad.0
mov dword [esp + 0x6c], ebx
jmp 0x41795c
mov dword [esp + 0x6c], 0
test byte [esp + 0x50], 1
mov dword [esp + 0x480], 0x10
je 0x417980
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 0x417ad4
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.004b94c0
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.0041c720
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.0040b350
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 0x4179a4
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.005ebd80
mov eax, dword [esp + 0x64]
inc eax
cmp eax, dword [esp + 0x228]
mov dword [esp + 0x64], eax
jl 0x417800
cmp dword [esp + 0x90], 1
je 0x417c9a
mov ebx, dword [esp + 0x48]
mov edx, dword [esi + 0x34]
push 0
mov ecx, ebx
mov dword [esp + 0x4c], edx
call fcn.004bfe90
mov ecx, dword [esp + 0x48]
movzx eax, ax
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x48], ecx
push 1
mov ecx, ebx
mov dword [esp + 0xfc], eax
call fcn.004bfe90
mov ecx, dword [esp + 0x48]
movzx edx, ax
push edx
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
push 2
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.004bfe90
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov edx, dword [esi + 0x34]
push 3
mov ecx, ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x4c], edx
call fcn.004bfe90
mov ecx, dword [esp + 0x48]
movzx eax, ax
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.004070b0
cmp dword [eax + 0x34], 1
jne 0x417be6
test ebx, ebx
jne 0x417bfd
mov ebx, dword [esp + 0x80]
jmp 0x417bf5
mov ebx, dword [esp + 0xf8]
test ebx, ebx
jne 0x417bfd
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x417c9a
lea ecx, [esp + 0x364]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebx
mov byte [esp + 0x480], 0x15
call fcn.004bf030
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.0040b350
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 0x4176f8
cmp dword [esp + 0x2c], 1
jne 0x4181aa
mov ecx, dword [esi + 0x48]
xor eax, eax
cmp dword [ecx + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], eax
jle 0x418339
movzx eax, word [esp + 0x54]
mov ecx, dword [esi + 0x48]
push eax
mov dword [esp + 0x4c], eax
call fcn.00407100
push 0
push 0
lea edx, [esp + 0xb8]
mov ebx, eax
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.004068c0
test eax, eax
je 0x418190
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.004b9150
test eax, eax
je 0x418190
mov ecx, dword [esi + 0x34]
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x40], eax
test eax, eax
je 0x418190
mov ecx, dword [esp + 0x2d0]
xor eax, eax
test ecx, ecx
jle 0x417d6c
mov edx, dword [esp + 0x2d8]
movzx ebx, word [edx + eax*2]
cmp dword [esp + 0x54], ebx
jne 0x417d67
mov dword [esp + 0x2c], 1
inc eax
cmp eax, ecx
jl 0x417d55
cmp dword [esp + 0x2c], 1
jne 0x41809b
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.004b7a50
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [ebx]
call eax
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x3c], 0
jle 0x418190
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x418080
cmp word [eax + 4], 1
jb 0x418080
mov ecx, dword [esp + 0x40]
call fcn.004bf030
push eax
lea ecx, [esp + 0x220]
call fcn.005ec6d0
push 0x631c98
lea ecx, [esp + 0x220]
mov byte [esp + 0x484], 0x16
call fcn.005ec580
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x220]
call fcn.005ec6c0
push 0x7c
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 0x417ea3
mov eax, dword [0x68303c]
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 [0x68303c], eax
call fcn.005ec480
lea eax, [esp + 0x340]
push eax
mov ecx, esi
call fcn.0042ad00
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 + 0x6c], vtable.BMBPad.0
mov dword [esp + 0x6c], ebx
jmp 0x417eab
mov dword [esp + 0x6c], 0
test byte [esp + 0x50], 2
mov dword [esp + 0x480], 0x16
je 0x417ecf
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 0x418056
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.004b94c0
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.0041c720
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 0x417f00
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.005ebd80
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
inc ecx
cmp ecx, dword [esp + 0xb0]
mov dword [esp + 0x3c], ecx
jl 0x417dc0
jmp 0x418190
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x3c], 0
jle 0x418190
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.004bf030
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 0x4180c1
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x54], eax
jl 0x417cd3
jmp 0x418339
mov edx, dword [esi + 0x48]
cmp dword [edx + 0x3c], 0
mov dword [esp + 0x3c], 0
jle 0x418339
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x48]
push eax
call fcn.00407100
push 0
push 0
lea ecx, [esp + 0xb8]
push ecx
mov ebx, eax
push ebx
lea ecx, [esi + 0x100]
call fcn.004068c0
test eax, eax
je 0x418324
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.004b9150
test eax, eax
je 0x418324
mov ecx, dword [esi + 0x34]
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x48], eax
test eax, eax
je 0x418324
xor ebx, ebx
cmp dword [esp + 0xb0], ebx
jle 0x418324
jmp 0x418240
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.004064b0
test eax, eax
je 0x418289
mov ecx, dword [esp + 0x38]
inc ecx
cmp eax, ecx
jl 0x418301
mov edx, dword [esp + 0x7c]
inc edx
cmp eax, edx
jg 0x418301
mov ecx, dword [esp + 0x48]
call fcn.004bf030
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.0040b350
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 0x418240
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x3c], eax
jl 0x4181bf
mov edx, dword [esi + 0x48]
mov eax, dword [edx + 0x30]
dec eax
cmp dword [esp + 0x38], 0
movzx eax, ax
jne 0x418359
cwde
mov byte [esp + 0x1c0], 1
cmp dword [esp + 0x7c], eax
je 0x418361
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.0042ac80
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.0042ac80
fstp dword [esp + 0x48]
push 0x8c
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 0x418413
fld dword [esp + 0x48]
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMBVia.0
jmp 0x418415
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 [0x68303c]
push ecx
push 0
push edi
mov ecx, esi
call fcn.0040ca40
inc dword [0x68303c]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x480], 0xa
call fcn.005f1f90
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x480], 9
call fcn.005f1f90
lea ecx, [esp + 0x228]
mov byte [esp + 0x480], 8
call fcn.005f1f90
lea ecx, [esp + 0x3d0]
mov byte [esp + 0x480], 3
call fcn.005ebd80
jmp 0x4185df
cmp dword [esi + 0x274], 0
je 0x4185df
cmp dword [esi + 0x278], 2
je 0x4185df
mov eax, dword [esi + 0x2d8]
test eax, eax
jle 0x4184fa
cmp eax, 3
jne 0x4185df
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
je 0x4185df
cmp dword [esi + 0x2d8], 3
jne 0x418532
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 0x4185df
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c090
cmp eax, ebx
jne 0x4185df
cmp byte [esi + 0x2a3], bl
jne 0x4185df
push 0x7c
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 0x418591
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
jmp 0x418593
xor ebx, ebx
mov edx, dword [esp + 0x28]
inc dword [0x68303c]
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.0040cde0
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.00412700
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.004baaa0
lea ecx, [esp + 0x114]
call fcn.004baa40
test eax, eax
jne 0x417060
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x114]
mov byte [esp + 0x480], 2
call fcn.0051a4a0
mov edi, dword [esp + 0x78]
test edi, edi
je 0x418628
cmp edi, 4
jne 0x418eef
cmp dword [esi + 0x2c0], 1
jne 0x418eef
push ebx
lea ecx, [esi + 0x100]
call fcn.004064f0
cmp al, 0xb
je 0x418eef
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 0x4186ea
mov eax, dword [edi + 0x34]
cmp eax, ebx
jne 0x41869b
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 0x68303c
push edi
push eax
mov ecx, esi
call fcn.0040f8d0
jmp 0x418eef
cmp eax, 2
jne 0x4186cf
cmp dword [esi + 0x2c4], ebx
jne 0x4186cf
fld dword [esi + 0x2c8]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
push ebx
push ecx
push 0x68303c
push edi
push edx
mov ecx, esi
call fcn.0040f8d0
jmp 0x418eef
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.00412050
jmp 0x418eef
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.00516940
lea ecx, [esp + 0xfc]
mov byte [esp + 0x480], 0x1f
call fcn.00516940
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x480], 0x20
call fcn.00516990
lea ecx, [esp + 0x1c4]
call fcn.005f1cd0
lea ecx, [esp + 0xfc]
call fcn.00516990
mov eax, dword [esp + 0x12c]
xor edi, edi
test eax, eax
je 0x41876a
push 7
push eax
push str.Resist_
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x41876a
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.004047d0
push 0
lea eax, [esp + 0x1e8]
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.0053fad0
mov eax, dword [esp + 0x158]
add esp, 0x2c
test eax, eax
je 0x418d71
push 7
push eax
push str.Resist_
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x418d71
mov eax, 1
cmp dword [esi + 0x2c4], eax
jne 0x418d71
cmp dword [esi + 0x348], eax
jne 0x41880b
cmp dword [esp + 0xfc], 0
jne 0x41880b
fldz
mov edx, dword [esp + 0x30]
fcomp dword [edx + 0x28]
fnstsw ax
test ah, 0x44
jnp 0x418ec7
cmp dword [esi + 0x350], 0
jne 0x4188e4
mov ecx, dword [esi + 0x48]
push 2
call fcn.004e1bd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x4188e4
push eax
lea ecx, [esp + 0xf4]
call fcn.004baa50
lea ecx, [esp + 0xf0]
mov byte [esp + 0x480], 0x21
call fcn.004baa70
lea ecx, [esp + 0xf0]
call fcn.004baa40
test eax, eax
je 0x4188d0
lea ecx, [esp + 0xf0]
call fcn.004baa40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 4
jne 0x4188b4
lea ecx, [esp + 0xf0]
call fcn.004baa40
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.005f1b40
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.004baaa0
lea ecx, [esp + 0xf0]
call fcn.004baa40
test eax, eax
jne 0x418864
lea ecx, [esp + 0xf0]
mov byte [esp + 0x480], 0x20
call fcn.0051a4a0
xor eax, eax
cmp dword [esi + 0x1c4], eax
je 0x418b83
cmp dword [esi + 0x350], eax
mov dword [esp + 0x64], eax
jle 0x418eaf
mov eax, dword [esi + 0x358]
mov ecx, dword [esp + 0x64]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x150]
call fcn.00516940
xor ebx, ebx
push ebx
lea ecx, [esp + 0x154]
mov byte [esp + 0x484], 0x22
call fcn.005f1b40
lea edx, [esp + 0x150]
push edx
push edi
mov ecx, esi
mov dword [esp + 0x158], ebx
call fcn.0042c220
cmp dword [esp + 0x150], ebx
mov dword [esp + 0x5c], ebx
jle 0x418b3d
lea ebx, [ebx]
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x5c]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x138]
call fcn.00516940
xor ebx, ebx
push ebx
lea ecx, [esp + 0x13c]
mov byte [esp + 0x484], 0x23
call fcn.005f1b40
push ebx
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x140]
push edi
push eax
mov dword [esp + 0x148], ebx
call fcn.0053fe10
add esp, 0x10
cmp dword [esp + 0x138], ebx
mov dword [esp + 0x3c], ebx
jle 0x418afb
jmp 0x4189d0
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.00516940
xor ebx, ebx
push ebx
lea ecx, [esp + 0x160]
mov byte [esp + 0x484], 0x24
call fcn.005f1b40
push 1
lea eax, [esp + 0x160]
push eax
mov ecx, edi
mov dword [esp + 0x164], ebx
call fcn.00540590
cmp dword [esp + 0x15c], ebx
jle 0x418ab9
push 0x7c
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 0x418a6e
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBDrawing.0
jmp 0x418a70
xor edi, edi
mov edx, dword [esp + 0x28]
inc dword [0x68303c]
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.0040f0d0
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 0x418a34
lea ecx, [esp + 0x15c]
call fcn.00516990
lea ecx, [esp + 0x15c]
call fcn.005f1cd0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x480], 0x23
call fcn.004925b0
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0x138]
mov dword [esp + 0x3c], eax
jl 0x4189d0
lea ecx, [esp + 0x138]
call fcn.00516990
lea ecx, [esp + 0x138]
call fcn.005f1cd0
lea ecx, [esp + 0x138]
mov byte [esp + 0x480], 0x22
call fcn.004925b0
mov eax, dword [esp + 0x5c]
inc eax
cmp eax, dword [esp + 0x150]
mov dword [esp + 0x5c], eax
jl 0x418960
lea ecx, [esp + 0x150]
call fcn.00516990
lea ecx, [esp + 0x150]
call fcn.005f1cd0
lea ecx, [esp + 0x150]
mov byte [esp + 0x480], 0x20
call fcn.004925b0
mov eax, dword [esp + 0x64]
inc eax
cmp eax, dword [esi + 0x350]
mov dword [esp + 0x64], eax
jl 0x418902
jmp 0x418eaf
cmp dword [esi + 0x350], eax
mov dword [esp + 0x5c], eax
jle 0x418eaf
mov edx, dword [esi + 0x358]
mov eax, dword [esp + 0x5c]
mov edi, dword [edx + eax*4]
lea ecx, [esp + 0x144]
call fcn.00516940
xor ebx, ebx
push ebx
lea ecx, [esp + 0x148]
mov byte [esp + 0x484], 0x26
call fcn.005f1b40
push ebx
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x14c]
push edi
push edx
mov dword [esp + 0x154], ebx
call fcn.0053fe10
add esp, 0x10
cmp dword [esp + 0x144], ebx
mov dword [esp + 0x3c], ebx
jle 0x418d2b
jmp 0x418c00
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.00516940
xor ebx, ebx
push ebx
lea ecx, [esp + 0x16c]
mov byte [esp + 0x484], 0x27
call fcn.005f1b40
push 1
lea ecx, [esp + 0x16c]
push ecx
mov ecx, edi
mov dword [esp + 0x170], ebx
call fcn.00540590
cmp dword [esp + 0x168], ebx
jle 0x418ce9
push 0x7c
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 0x418c9e
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMBDrawing.0
jmp 0x418ca0
xor edi, edi
mov eax, dword [esp + 0x28]
inc dword [0x68303c]
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.0040f0d0
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 0x418c64
lea ecx, [esp + 0x168]
call fcn.00516990
lea ecx, [esp + 0x168]
call fcn.005f1cd0
lea ecx, [esp + 0x168]
mov byte [esp + 0x480], 0x26
call fcn.004925b0
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0x144]
mov dword [esp + 0x3c], eax
jl 0x418c00
lea ecx, [esp + 0x144]
call fcn.00516990
lea ecx, [esp + 0x144]
call fcn.005f1cd0
lea ecx, [esp + 0x144]
mov byte [esp + 0x480], 0x20
call fcn.004925b0
mov eax, dword [esp + 0x5c]
inc eax
cmp eax, dword [esi + 0x350]
mov dword [esp + 0x5c], eax
jl 0x418b93
jmp 0x418eaf
cmp dword [esp + 0xfc], 0
mov dword [esp + 0x3c], 0
jle 0x418eaf
jmp 0x418d90
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.00516940
xor ebx, ebx
push ebx
lea ecx, [esp + 0x178]
mov byte [esp + 0x484], 0x29
call fcn.005f1b40
push 1
lea ecx, [esp + 0x178]
push ecx
mov ecx, edi
mov dword [esp + 0x17c], ebx
call fcn.00540590
cmp dword [esp + 0x174], ebx
jle 0x418e79
push 0x7c
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 0x418e2e
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMBDrawing.0
jmp 0x418e30
xor edi, edi
mov eax, dword [esp + 0x28]
inc dword [0x68303c]
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.0040f0d0
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 0x418df4
lea ecx, [esp + 0x174]
call fcn.00516990
lea ecx, [esp + 0x174]
mov byte [esp + 0x480], 0x20
call fcn.004925b0
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0xfc]
mov dword [esp + 0x3c], eax
jl 0x418d90
lea ecx, [esp + 0x1c4]
call fcn.00516990
lea ecx, [esp + 0xfc]
call fcn.00516990
lea ecx, [esp + 0xfc]
mov byte [esp + 0x480], 0x1f
call fcn.004925b0
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x480], 2
call fcn.004925b0
mov eax, dword [esp + 0x68]
inc eax
cmp eax, dword [esp + 0xe4]
mov dword [esp + 0x68], eax
jl 0x416f50
cmp dword [esp + 0x34], 1
jne 0x418f1c
mov ecx, dword [0x683030]
call fcn.00405cb0
jmp 0x41b617
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
push eax
lea ecx, [esp + 0x120]
call fcn.004baa50
lea ecx, [esp + 0x11c]
mov byte [esp + 0x480], 0x2b
call fcn.004baa70
lea ecx, [esp + 0x11c]
call fcn.004baa40
test eax, eax
je 0x41b603
lea ecx, [esp + 0x11c]
call fcn.004baa40
mov ebx, 1
mov edi, eax
cmp dword [esi + 0x270], ebx
jne 0x419032
cmp dword [esi + 0x2c0], 0
jne 0x419032
mov ecx, edi
call fcn.00479f10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x41b5e3
mov ecx, edi
call fcn.00479f10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x418fcc
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 5
jne 0x41b5e3
mov ecx, edi
call fcn.00479f10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x419047
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 5
jne 0x419047
cmp dword [esi + 0x270], 0
je 0x41b5e3
mov ecx, edi
call fcn.00479f10
mov ebx, eax
test ebx, ebx
je 0x41b5e3
cmp dword [ebp + 0xc], 1
jne 0x419026
mov ecx, ebx
call fcn.004c0690
cmp dword [eax + 0x4c], 0
je 0x41b5e3
cmp dword [ebp + 0x10], 1
jne 0x419047
test byte [ebx + 0x3c], 1
jmp 0x419041
cmp dword [ebp + 0x10], ebx
jne 0x419047
push edi
mov ecx, esi
call fcn.0040c5b0
cmp eax, ebx
je 0x41b5e3
cmp dword [esi + 0x270], 0
jne 0x419061
push edi
mov ecx, esi
call fcn.0040c5b0
cmp eax, 1
je 0x41b5e3
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x41908c
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00474850
test eax, eax
jne 0x41b5e3
cmp dword [esp + 0xe4], 0
mov dword [esp + 0x64], 0
jle 0x41b5e3
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x64]
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x41b5cd
push ebx
lea ecx, [esi + 0x100]
call fcn.00406390
test eax, eax
je 0x41b5cd
push ebx
mov ecx, esi
call fcn.0040b5c0
cmp word [esi + 0x268], 2
mov dword [esp + 0x30], eax
jne 0x4190f2
push ebx
mov ecx, esi
call fcn.0040c1e0
test eax, eax
je 0x41b5cd
mov ecx, 1
cmp dword [esp + 0x310], ecx
jne 0x419139
cmp dword [esi + 0x314], ecx
je 0x419110
cmp dword [esi + 0x318], ecx
jne 0x419127
mov eax, dword [esp + 0x58]
push ebx
push edi
push eax
mov ecx, esi
call fcn.0040c670
cmp eax, 1
je 0x41b5cd
cmp dword [esi + 0x288], 0
je 0x41b5cd
mov ecx, 1
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4191c0
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x4191a5
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00474850
test eax, eax
je 0x4191a5
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00474850
mov eax, dword [eax + 0x34]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.005ec6d0
mov ecx, esi
call fcn.0040b480
test eax, eax
je 0x41b5cd
jmp 0x41b5c2
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x480], 0x2c
jmp 0x41b534
cmp eax, ecx
jne 0x4193af
push 0xcc
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 0x419212
mov edx, dword [0x68303c]
push 0x631c94
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 + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x41921a
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x68303c]
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 0x4192ef
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x419284
mov eax, dword [eax + 8]
test eax, eax
jne 0x41927e
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.00500b30
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004fffc0
mov dword [esp + 0x38], eax
jmp 0x41928c
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 0x41936a
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.0042ac80
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.0042ac80
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x419344
fstp dword [esp + 0x34]
jmp 0x419346
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 2
jne 0x41936a
mov eax, dword [edi + 0x68]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.0042ac80
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.0042ac80
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x419344
fstp dword [esp + 0x34]
jmp 0x419346
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.00413340
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.0040c620
test eax, eax
je 0x41b5c2
mov ecx, ebx
jmp 0x41b5b9
cmp eax, 2
jne 0x41947b
push 0xcc
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 0x419402
mov edx, dword [0x68303c]
push 0x631c94
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 + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x41940a
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x68303c]
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 0x4192ef
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x419284
mov eax, dword [eax + 8]
test eax, eax
jne 0x419472
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.00500b30
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004fffc0
mov dword [esp + 0x38], eax
jmp 0x41928c
cmp eax, 3
jne 0x41aa5d
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 6
je 0x41a937
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 7
je 0x41a937
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 8
je 0x41a937
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 9
jne 0x4195e5
cmp dword [esi + 0x274], 0
je 0x41b5cd
cmp dword [esi + 0x278], 2
je 0x41b5cd
cmp dword [esi + 0x2d8], 0
jg 0x41b5cd
mov eax, dword [esi + 0x24]
push eax
lea ecx, [esp + 0x388]
call fcn.004326a0
push edi
lea ecx, [esp + 0x388]
mov byte [esp + 0x484], 0x30
call fcn.004329b0
push eax
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.0040c090
cmp eax, 1
jne 0x4195b9
cmp byte [esi + 0x2a3], al
jne 0x4195b9
push 0x7c
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 0x419579
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
mov dword [esp + 0x34], eax
jmp 0x419581
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
inc dword [0x68303c]
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.00413340
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 0x4195cc
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.0051a4a0
jmp 0x41b5c2
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xe
je 0x4196db
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xf
je 0x4196db
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c090
cmp eax, 1
jne 0x41b5c2
cmp byte [esi + 0x2a3], al
jne 0x41b5c2
cmp dword [esi + 0x274], 0
je 0x41b5cd
cmp dword [esi + 0x278], 2
je 0x41b5cd
cmp dword [esi + 0x2d8], 0
jg 0x41b5cd
push 0x7c
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 0x419696
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
mov dword [esp + 0x34], eax
jmp 0x41969e
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
inc dword [0x68303c]
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.00413340
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
jmp 0x41b5c2
push 0xb0
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 0x419720
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMB2DStack.0
mov dword [esp + 0x28], ebx
jmp 0x419726
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0x631c94
lea ecx, [esp + 0x3b0]
mov byte [esp + 0x484], 0x2b
call fcn.005ec6d0
inc dword [0x68303c]
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.005f1fa0
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x480], 0x34
call fcn.005f1fa0
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
mov byte [esp + 0x480], 0x35
call edx
cmp eax, 0xf
jne 0x4197dd
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.004be360
cmp dword [esp + 0x210], 0
jle 0x4197cb
mov dword [esp + 0x2c], 1
cmp dword [esp + 0x2e4], 0
jle 0x4197dd
mov dword [esp + 0x5c], 1
mov ecx, edi
call fcn.004c0690
mov ecx, eax
call fcn.004b90c0
mov ecx, dword [esi + 0x34]
push 0
push eax
call fcn.004afd30
mov ecx, eax
call fcn.004b71c0
test byte [eax + 0x20], 1
mov dword [esp + 0x70], eax
mov ecx, ebx
je 0x41980d
push 0
jmp 0x41980f
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.004c0690
mov ecx, eax
call fcn.004b9390
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x3b4]
mov byte [esp + 0x488], 0x36
call fcn.005ebda0
lea ecx, [esp + 0x3dc]
mov byte [esp + 0x480], 0x35
call fcn.005ebd80
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 0x41989d
cmp eax, 4
jne 0x4198ad
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
je 0x419a74
mov eax, dword [edi]
mov edx, dword [eax + 0xe0]
mov ecx, edi
call edx
test eax, eax
je 0x419a74
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.005f1fa0
mov ecx, dword [esi + 0x48]
push 3
mov byte [esp + 0x484], 0x37
call fcn.004e1bd0
test eax, eax
je 0x419a60
push 0
push 0
lea ecx, [esp + 0x39c]
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.00406800
test eax, eax
je 0x419a60
mov edx, dword [esp + 0x34]
push edx
mov ecx, esi
call fcn.0040bf20
cmp eax, 1
jne 0x419a60
cmp byte [esi + 0x2a5], al
jne 0x419a60
mov eax, dword [esp + 0x39c]
mov ecx, dword [eax]
push 0x7c
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 0x419988
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
jmp 0x41998a
xor ebx, ebx
inc dword [0x68303c]
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.005ebcb0
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.0041c920
lea ecx, [esp + 0x3c4]
mov byte [esp + 0x480], 0x37
call fcn.005ebd80
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 0x419a55
mov ecx, dword [esp + 0x28]
cmp eax, 2
jne 0x419a4b
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
test al, al
jmp 0x419a53
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
jne 0x419a60
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.005f1f90
lea ecx, [esp + 0xbc]
call fcn.005f1fa0
cmp dword [esi + 0x2c0], 1
mov byte [esp + 0x480], 0x3a
je 0x41a7a4
mov eax, dword [esp + 0x60]
movzx edx, ax
cwde
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x4c], edx
jg 0x41a056
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push eax
call fcn.004070b0
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.004b90f0
mov ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x41a03b
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0x48]
push edx
call fcn.004070b0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edi
call fcn.004b44c0
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.004068c0
test eax, eax
je 0x41a03b
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov dword [esp + 0x8c], eax
test eax, eax
je 0x41a03b
cmp dword [esp + 0x2c], 1
jne 0x419ec9
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x30], ecx
push edx
mov ecx, ebx
call fcn.004bfe90
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x78], eax
test eax, eax
je 0x41a03b
mov ecx, eax
call fcn.004bf030
test eax, eax
je 0x41a03b
cmp dword [esp + 0x210], 0
mov dword [esp + 0x68], 0
jle 0x419ec9
mov edi, edi
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x68]
movzx eax, word [ecx + edx*2]
cmp dword [esp + 0x90], eax
jne 0x419ea4
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x44], 1
mov dword [esp + 0x80], 0
call fcn.004070b0
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.004b7a50
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x419ea4
cmp word [eax + 4], 1
jb 0x419ea4
mov ecx, dword [esp + 0x78]
call fcn.004bf030
push eax
lea ecx, [esp + 0x250]
call fcn.005ec6d0
push 0x631c98
lea ecx, [esp + 0x250]
mov byte [esp + 0x484], 0x3b
call fcn.005ec580
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x250]
call fcn.005ec6c0
push 0x7c
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 0x419d04
mov eax, dword [0x68303c]
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 [0x68303c], eax
call fcn.005ec480
lea eax, [esp + 0x324]
push eax
mov ecx, esi
call fcn.0042ad00
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 + 0x6c], vtable.BMBPad.0
mov dword [esp + 0x34], ebx
jmp 0x419d0c
mov dword [esp + 0x34], 0
test byte [esp + 0x50], 4
mov dword [esp + 0x480], 0x3b
je 0x419d30
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 0x419e7e
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.004b94c0
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.0041c720
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.0040b350
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 0x419d54
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.005ebd80
mov eax, dword [esp + 0x68]
inc eax
cmp eax, dword [esp + 0x210]
mov dword [esp + 0x68], eax
jl 0x419bb0
cmp dword [esp + 0x40], 1
je 0x41a03b
mov ebx, dword [esp + 0x48]
mov edx, dword [esi + 0x34]
push 0
mov ecx, ebx
mov dword [esp + 0x34], edx
call fcn.004bfe90
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x30], ecx
push 1
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.004bfe90
mov ecx, dword [esp + 0x30]
movzx edx, ax
push edx
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x34]
push 2
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.004bfe90
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov edx, dword [esi + 0x34]
push 3
mov ecx, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x34], edx
call fcn.004bfe90
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.004070b0
cmp dword [eax + 0x34], 1
jne 0x419f87
test ebx, ebx
jne 0x419f9e
mov ebx, dword [esp + 0x78]
jmp 0x419f96
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x419f9e
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x41a03b
lea ecx, [esp + 0x374]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebx
mov byte [esp + 0x480], 0x40
call fcn.004bf030
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.0040b350
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 0x419ab2
cmp dword [esp + 0x5c], 1
jne 0x41a589
mov ecx, dword [esi + 0x48]
xor eax, eax
cmp dword [ecx + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
jle 0x41a7a4
jmp 0x41a080
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 0x41a0c6
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41a0c2
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.00500b30
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.004fffc0
mov ebx, eax
jmp 0x41a0c8
xor ebx, ebx
push 0
push 0
lea edx, [esp + 0xc4]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.004068c0
test eax, eax
je 0x41a56f
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.004b9150
test eax, eax
je 0x41a56f
mov ecx, dword [esi + 0x34]
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x40], eax
test eax, eax
je 0x41a56f
mov ecx, dword [esp + 0x2e4]
xor eax, eax
test ecx, ecx
jle 0x41a14d
mov edx, dword [esp + 0x2ec]
movzx ebx, word [edx + eax*2]
cmp dword [esp + 0x38], ebx
jne 0x41a148
mov dword [esp + 0x2c], 1
inc eax
cmp eax, ecx
jl 0x41a136
cmp dword [esp + 0x2c], 1
jne 0x41a479
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.004b7a50
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ebx]
call eax
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x5c], 0
jle 0x41a56f
mov eax, dword [esp + 0x74]
test eax, eax
je 0x41a45e
cmp word [eax + 4], 1
jb 0x41a45e
mov ecx, dword [esp + 0x40]
call fcn.004bf030
push eax
lea ecx, [esp + 0x244]
call fcn.005ec6d0
push 0x631c98
lea ecx, [esp + 0x244]
mov byte [esp + 0x484], 0x41
call fcn.005ec580
mov eax, dword [esi + 0x2e0]
lea ecx, [eax + 1]
mov dword [esi + 0x2e0], ecx
push eax
lea ecx, [esp + 0x244]
call fcn.005ec6c0
push 0x7c
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 0x41a284
mov eax, dword [0x68303c]
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 [0x68303c], eax
call fcn.005ec480
lea eax, [esp + 0x298]
push eax
mov ecx, esi
call fcn.0042ad00
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 + 0x6c], vtable.BMBPad.0
mov dword [esp + 0x68], ebx
jmp 0x41a28c
mov dword [esp + 0x68], 0
test byte [esp + 0x50], 8
mov dword [esp + 0x480], 0x41
je 0x41a2b0
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 0x41a434
fldz
fst dword [esp + 0x320]
fstp dword [esp + 0x324]
lea ebx, [ebx]
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.004b94c0
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.0041c720
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 0x41a2e0
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.005ebd80
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x5c]
inc ecx
cmp ecx, dword [esp + 0xbc]
mov dword [esp + 0x5c], ecx
jl 0x41a1a1
jmp 0x41a56f
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x34], 0
jle 0x41a56f
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.004bf030
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 0x41a4a0
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x38], eax
jl 0x41a080
jmp 0x41a7a4
mov edx, dword [esi + 0x48]
cmp dword [edx + 0x3c], 0
mov dword [esp + 0x68], 0
jle 0x41a7a4
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 0x41a5dd
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41a5d9
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.00500b30
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.004fffc0
mov ebx, eax
jmp 0x41a5df
xor ebx, ebx
push 0
push 0
lea edx, [esp + 0xc4]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.004068c0
test eax, eax
je 0x41a78f
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.004b9150
test eax, eax
je 0x41a78f
mov ecx, dword [esi + 0x34]
push eax
call fcn.004b7a50
mov ecx, eax
call fcn.004bf850
mov dword [esp + 0x30], eax
test eax, eax
je 0x41a78f
xor ebx, ebx
cmp dword [esp + 0xbc], ebx
mov dword [esp + 0x34], ebx
jle 0x41a78f
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.004064b0
test eax, eax
je 0x41a6c5
mov edx, dword [esp + 0x60]
inc edx
cmp eax, edx
jge 0x41a6a2
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41a77d
mov ecx, dword [esp + 0x54]
inc ecx
cmp eax, ecx
jle 0x41a6c5
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41a77d
mov ecx, dword [esp + 0x30]
call fcn.004bf030
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 0x41a650
mov eax, dword [esp + 0x68]
mov edx, dword [esi + 0x48]
inc eax
cmp eax, dword [edx + 0x3c]
mov dword [esp + 0x68], eax
jl 0x41a59e
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
dec eax
cmp dword [esp + 0x60], 0
movzx eax, ax
jne 0x41a7c6
movsx ecx, ax
mov byte [esp + 0x184], 1
cmp dword [esp + 0x54], ecx
je 0x41a7ce
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.0042ac80
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.0042ac80
fstp dword [esp + 0x30]
push 0x8c
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 0x41a87d
fld dword [esp + 0x30]
mov edx, dword [0x68303c]
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 + 0x6c], vtable.BMBVia.0
jmp 0x41a87f
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 [0x68303c]
push ecx
push 0
push edi
mov ecx, esi
call fcn.0040ca40
inc dword [0x68303c]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x480], 0x35
call fcn.005f1f90
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x480], 0x34
call fcn.005f1f90
lea ecx, [esp + 0x210]
mov byte [esp + 0x480], 0x33
call fcn.005f1f90
lea ecx, [esp + 0x3ac]
mov byte [esp + 0x480], 0x2b
call fcn.005ebd80
jmp 0x41b5c2
cmp dword [esi + 0x274], 0
je 0x41b5cd
cmp dword [esi + 0x278], 2
je 0x41b5cd
mov eax, dword [esi + 0x2d8]
test eax, eax
jle 0x41a964
cmp eax, 3
jne 0x41b5cd
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
je 0x41b5c2
cmp dword [esi + 0x2d8], 3
jne 0x41a99c
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 0x41b5cd
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040c090
cmp eax, 1
jne 0x41b5c2
cmp byte [esi + 0x2a3], al
jne 0x41b5c2
push 0x7c
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 0x41aa02
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBHole.0
mov dword [esp + 0x38], eax
jmp 0x41aa0a
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x68303c]
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.0040cde0
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.00412700
mov ecx, dword [esp + 0x58]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
jmp 0x41b5c2
cmp eax, 5
jne 0x41b235
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 3
jne 0x41b5cd
push 0xe8
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 0x41aabc
mov eax, dword [0x68303c]
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 + 0x6c], vtable.BMBBendLine.0
mov dword [esp + 0x28], eax
jmp 0x41aac4
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x68303c]
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.00411a50
push edi
lea ecx, [esp + 0x128]
call fcn.004f4130
lea ecx, [esp + 0x124]
call fcn.004f4110
lea ecx, [esp + 0x1a4]
call fcn.005ebb00
lea ecx, [esp + 0x194]
mov byte [esp + 0x480], 0x4b
call fcn.005ebb00
mov ecx, dword [esp + 0x128]
mov byte [esp + 0x480], 0x4c
test ecx, ecx
je 0x41b1f6
mov dl, byte [ecx + 2]
and dl, 3
cmp dl, 1
je 0x41ab57
mov ecx, dword [ecx + 8]
jmp 0x41b1e7
call fcn.004f3e90
push eax
lea ecx, [esp + 0x1a8]
call fcn.005ec540
mov eax, dword [esp + 0x128]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x198]
call fcn.005ec540
lea ecx, [esp + 0x1a4]
push str.PointDirection
push ecx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x41acf3
sub esp, 0xc
lea edx, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.005ec480
lea eax, [esp + 0x19c]
push eax
mov ecx, esi
call fcn.0042ad00
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.0041f730
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 0x41ac99
lea ecx, [ecx]
test ebx, ebx
jl 0x41b6a3
cmp ebx, eax
jge 0x41b6a3
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x84]
push ecx
push 0x631ea4
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41ac65
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41ac8d
cmp ebx, 1
jne 0x41ac7a
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41ac8d
cmp ebx, 2
jne 0x41ac8d
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41ac20
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 0x41b1dd
lea edx, [esp + 0x1a4]
push str.VectorDirection
push edx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x41ae63
sub esp, 0xc
lea eax, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.005ec480
lea ecx, [esp + 0x18c]
push ecx
mov ecx, esi
call fcn.0042ad00
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.0041f730
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 0x41ae09
test ebx, ebx
jl 0x41b6a3
cmp ebx, eax
jge 0x41b6a3
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x84]
push edx
push 0x631ea4
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41add5
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41adfd
cmp ebx, 1
jne 0x41adea
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41adfd
cmp ebx, 2
jne 0x41adfd
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41ad90
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 0x41b1dd
lea eax, [esp + 0x1a4]
push str.PointSide
push eax
call fcn.005ec420
add esp, 8
test eax, eax
je 0x41afd3
sub esp, 0xc
lea edx, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.005ec480
lea eax, [esp + 0x198]
push eax
mov ecx, esi
call fcn.0042ad00
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.0041f730
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 0x41af79
test ebx, ebx
jl 0x41b6a3
cmp ebx, eax
jge 0x41b6a3
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x84]
push ecx
push 0x631ea4
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41af45
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41af6d
cmp ebx, 1
jne 0x41af5a
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41af6d
cmp ebx, 2
jne 0x41af6d
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41af00
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 0x41b1dd
lea edx, [esp + 0x1a4]
push str.VectorSide
push edx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x41b143
sub esp, 0xc
lea eax, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.005ec480
lea ecx, [esp + 0x194]
push ecx
mov ecx, esi
call fcn.0042ad00
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.0041f730
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 0x41b0e9
test ebx, ebx
jl 0x41b6a3
cmp ebx, eax
jge 0x41b6a3
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x84]
push edx
push 0x631ea4
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x41b0b5
fld qword [esp + 0x84]
fstp qword [esp + 0x94]
jmp 0x41b0dd
cmp ebx, 1
jne 0x41b0ca
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x41b0dd
cmp ebx, 2
jne 0x41b0dd
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
mov eax, dword [esp + 0xd4]
inc ebx
cmp ebx, eax
jl 0x41b070
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 0x41b1dd
lea eax, [esp + 0x1a4]
push str.Angle
push eax
call fcn.005ec420
add esp, 8
test eax, eax
je 0x41b191
mov edx, dword [esp + 0x194]
lea ecx, [esp + 0x84]
push ecx
push 0x631ea4
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 0x41b1dd
lea eax, [esp + 0x1a4]
push str.Radius
push eax
call fcn.005ec420
add esp, 8
test eax, eax
je 0x41b1dd
mov edx, dword [esp + 0x194]
lea ecx, [esp + 0x84]
push ecx
push 0x631ea4
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 0x41ab44
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.005ebd80
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x480], 0x2b
call fcn.005ebd80
jmp 0x41b5c2
cmp eax, 6
jne 0x41b361
push 0xcc
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 0x41b288
mov edx, dword [0x68303c]
push 0x631c94
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 + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x41b290
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x68303c]
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 0x41b32e
call fcn.004dbbc0
mov edx, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b4f3
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.0042ac80
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.0042ac80
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41b453
fstp dword [esp + 0x34]
jmp 0x41b455
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b4f3
mov ecx, dword [edi + 0x68]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.0042ac80
mov eax, dword [edi + 0x68]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
jmp 0x41b4a4
cmp eax, 7
jne 0x41b51e
push 0xcc
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 0x41b3b4
mov ecx, dword [0x68303c]
push 0x631c94
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 + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x28], eax
jmp 0x41b3bc
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
inc dword [0x68303c]
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 0x41b470
call fcn.004dbbc0
mov edx, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b4f3
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.0042ac80
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.0042ac80
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41b453
fstp dword [esp + 0x34]
jmp 0x41b455
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 0x41b4e5
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 2
jne 0x41b4f3
mov ecx, dword [edi + 0x68]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.0042ac80
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.0042ac80
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41b4cd
fstp dword [esp + 0x34]
jmp 0x41b4cf
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.00413340
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 0x41b5c2
push 0x7c
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 0x41b560
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBDrawing.0
mov dword [esp + 0x38], eax
jmp 0x41b568
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x68303c]
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.00413340
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.0040c620
test eax, eax
je 0x41b5c2
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 [0x683030]
call fcn.00405cb0
mov eax, dword [esp + 0x64]
inc eax
cmp eax, dword [esp + 0xe4]
mov dword [esp + 0x64], eax
jl 0x4190a2
lea ecx, [esp + 0x11c]
call fcn.004baaa0
lea ecx, [esp + 0x11c]
call fcn.004baa40
test eax, eax
jne 0x418f5c
lea ecx, [esp + 0x11c]
mov byte [esp + 0x480], 2
call fcn.0051a4a0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x480], 1
call fcn.005ebd80
mov eax, dword [esp + 0x1a0]
inc eax
cmp eax, dword [esp + 0x108]
mov dword [esp + 0x1a0], eax
jl 0x416dc1
add esi, 0x350
mov ecx, esi
call fcn.00516990
mov ecx, esi
call fcn.005f1cd0
lea ecx, [esp + 0x108]
mov byte [esp + 0x480], 0
call fcn.005f1f90
lea ecx, [esp + 0xe4]
mov dword [esp + 0x480], 0xffffffff
call fcn.005f1f90
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.005fa780
int3