Function at 0x415a10
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x60eb3e
mov eax, dword fs:[0]
push eax
sub esp, 0x468
push ebx
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x64], ebx
call fcn.00405fd0
mov ecx, dword [0x67df84]
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 + 0x6c], edi
cmp edi, ebx
jne 0x415aa5
lea ecx, [esp + 0xf0]
mov dword [esp + 0x480], 0xffffffff
call fcn.005ee4c0
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 [0x67df84]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBMapPad____thiscall_BMBProduct::GetMapPad_void_]
mov dword [esp + 0xcc], eax
cmp eax, ebx
je 0x415a74
mov ecx, dword [0x67df84]
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 + 0xfc]
mov dword [esp + 0xe4], eax
call fcn.00405fd0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
mov byte [esp + 0x480], 1
mov dword [esp + 0x58], ebx
cmp eax, ebx
jbe 0x415b60
xor eax, eax
mov ecx, dword [esi + 0x48]
cmp dword [ecx + 0x30], eax
jle 0x415b32
mov ecx, dword [ecx + 0x34]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
test edi, edi
je 0x415b32
mov eax, dword [edi + 8]
test eax, eax
jne 0x415b2e
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.004fe0e0
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.004fd530
mov edi, eax
jmp 0x415b34
xor edi, edi
mov edx, dword [esp + 0xfc]
push edx
lea ecx, [esp + 0x100]
call fcn.005ee1f0
mov dword [eax], edi
mov eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x30]
inc eax
mov dword [esp + 0x58], eax
movzx eax, ax
cmp eax, ecx
jb 0x415afb
mov edx, dword [esi + 0x48]
xor eax, eax
mov dword [esp + 0x58], eax
cmp dword [edx + 0x3c], eax
jbe 0x415bce
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 0x415ba0
mov eax, dword [edi + 8]
test eax, eax
jne 0x415b9c
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.004fe0e0
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.004fd530
mov edi, eax
jmp 0x415ba2
xor edi, edi
mov edx, dword [esp + 0xfc]
push edx
lea ecx, [esp + 0x100]
call fcn.005ee1f0
mov dword [eax], edi
mov eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x3c]
inc eax
mov dword [esp + 0x58], eax
movzx eax, ax
cmp eax, ecx
jb 0x415b6e
mov edx, dword [esi + 0x48]
xor eax, eax
mov dword [esp + 0x58], eax
cmp dword [edx + 0x48], eax
jbe 0x415c3c
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 0x415c0e
mov eax, dword [edi + 8]
test eax, eax
jne 0x415c0a
mov ebx, dword [edi + 4]
and ebx, 0x7f
call fcn.004fe0e0
mov ebx, dword [eax + ebx*4 - 4]
push edi
mov ecx, ebx
call fcn.004fd530
mov edi, eax
jmp 0x415c10
xor edi, edi
mov edx, dword [esp + 0xfc]
push edx
lea ecx, [esp + 0x100]
call fcn.005ee1f0
mov dword [eax], edi
mov eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 0x48]
inc eax
mov dword [esp + 0x58], eax
movzx eax, ax
cmp eax, ecx
jb 0x415bdc
mov ecx, dword [esi + 0x48]
push 7
call fcn.004dee40
mov ecx, dword [esi + 0x48]
push 2
call fcn.004dee40
mov ecx, dword [esi + 0x48]
push 5
mov dword [esp + 0x318], eax
call fcn.004dee40
mov ecx, dword [esi + 0x48]
push 8
call fcn.004dee40
xor eax, eax
cmp dword [esp + 0xfc], eax
mov dword [esp + 0x1a0], eax
jle 0x41a2aa
mov edx, dword [esp + 0x104]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x58], eax
cmp eax, dword [esp + 0x314]
je 0x41a28e
push 0
lea ecx, [esp + 0xf4]
push ecx
lea edi, [esi + 0x100]
push eax
mov ecx, edi
call fcn.00406780
test eax, eax
je 0x41a28e
mov ecx, dword [0x67df80]
call fcn.00405be0
mov edx, dword [esp + 0xf8]
mov ebx, dword [edx]
lea ecx, [esp + 0x250]
call fcn.005e8490
lea eax, [esp + 0x250]
push eax
push ebx
mov ecx, edi
mov byte [esp + 0x488], 2
call fcn.004070d0
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, edi
call fcn.00406980
cmp dword [esi + 0x2ac], 1
mov dword [esp + 0x310], eax
jne 0x417d80
xor ecx, ecx
cmp eax, ecx
jne 0x417d80
cmp dword [esp + 0xf0], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x74], ecx
jle 0x417d80
mov ebx, dword [esp + 0x58]
jmp 0x415d40
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x74]
mov edi, dword [edx + eax*4]
mov dword [esp + 0x50], edi
test edi, edi
je 0x417d53
push edi
lea ecx, [esi + 0x100]
call fcn.00406310
test eax, eax
je 0x417d53
push edi
mov ecx, esi
call fcn.0040b070
cmp word [esi + 0x254], 2
mov dword [esp + 0x30], eax
jne 0x415d94
push edi
mov ecx, esi
call fcn.0040bc90
test eax, eax
je 0x417d53
mov ecx, dword [esp + 0x250]
test ecx, ecx
je 0x4174b1
mov eax, str.Hole
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415dc8
test dl, dl
je 0x415dc4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415dc8
add eax, 2
add ecx, 2
test dl, dl
jne 0x415da8
xor eax, eax
jmp 0x415dcd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4174b1
cmp dword [esi + 0x2a4], eax
jne 0x4174b1
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
mov ecx, ebx
mov dword [esp + 0x3c], 1
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
mov ecx, ebx
call eax
push eax
lea ecx, [esp + 0x11c]
call fcn.004b7700
lea ecx, [esp + 0x118]
mov byte [esp + 0x480], 3
call fcn.004b7720
lea ecx, [esp + 0x118]
call fcn.004f32d0
test eax, eax
je 0x417499
lea ecx, [esp + 0x118]
call fcn.004f32d0
cmp dword [esi + 0x25c], 1
mov edi, eax
jne 0x415e86
mov ecx, edi
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x417479
cmp dword [esi + 0x25c], 1
jne 0x415e86
mov ecx, edi
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
je 0x417479
cmp dword [ebp + 0x10], 1
jne 0x415e9d
push edi
mov ecx, esi
call fcn.0040c060
cmp eax, 1
je 0x417479
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x415ec8
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00471420
test eax, eax
jne 0x417479
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 6
je 0x417396
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 7
je 0x417396
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 8
je 0x417396
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 9
jne 0x41601c
cmp dword [esi + 0x260], 0
je 0x417479
cmp dword [esi + 0x2c4], 0
jg 0x417479
cmp dword [esi + 0x264], 2
je 0x417479
mov eax, dword [esi + 0x24]
push eax
lea ecx, [esp + 0x390]
call fcn.0042ea80
push edi
lea ecx, [esp + 0x390]
mov byte [esp + 0x484], 5
call fcn.0042ed90
mov ebx, eax
push ebx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.0040bb40
cmp eax, 1
jne 0x415ff5
cmp byte [esi + 0x28f], al
jne 0x415ff5
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x40], ebx
mov byte [esp + 0x480], 6
test ebx, ebx
je 0x415fb5
mov ecx, dword [0x67df8c]
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 0x415fb7
xor ebx, ebx
mov edx, dword [esp + 0x50]
inc dword [0x67df8c]
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 + 0x50]
push 0
push 0
push 0
push eax
push edi
push ebx
mov ecx, esi
call fcn.00412490
mov ecx, dword [esp + 0x6c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x416003
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.004ed1b0
jmp 0x417475
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xe
je 0x4160fd
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xf
je 0x4160fd
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040bb40
cmp eax, 1
jne 0x417479
cmp byte [esi + 0x28f], al
jne 0x417479
cmp dword [esi + 0x260], 0
je 0x417479
cmp dword [esi + 0x2c4], 0
jg 0x417479
cmp dword [esi + 0x264], 2
je 0x417479
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x40], ebx
mov byte [esp + 0x480], 0x1e
test ebx, ebx
je 0x4160c7
mov ecx, dword [0x67df8c]
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 0x4160c9
xor ebx, ebx
mov edx, dword [esp + 0x50]
inc dword [0x67df8c]
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 + 0x50]
push 0
push 0
push 0
push eax
push edi
push ebx
mov ecx, esi
call fcn.00412490
jmp 0x41746a
push 0xb0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x40], ebx
mov byte [esp + 0x480], 7
test ebx, ebx
je 0x416142
mov ecx, dword [0x67df8c]
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 + 0x48], ebx
jmp 0x416148
xor ebx, ebx
mov dword [esp + 0x48], ebx
push 0x62dc24
lea ecx, [esp + 0x3d4]
mov byte [esp + 0x484], 3
call fcn.005e9060
inc dword [0x67df8c]
xor eax, eax
lea ecx, [esp + 0x214]
mov byte [esp + 0x480], 8
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x78], eax
call fcn.00405fd0
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x480], 9
call fcn.00405fd0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
mov byte [esp + 0x480], 0xa
call eax
cmp eax, 0xf
jne 0x416202
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x2d4]
push edx
lea eax, [esp + 0x21c]
push eax
mov ecx, edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x68], 0
call fcn.004bb080
cmp dword [esp + 0x214], 0
jle 0x4161f0
mov dword [esp + 0x44], 1
cmp dword [esp + 0x2d0], 0
jle 0x416202
mov dword [esp + 0x34], 1
mov ecx, edi
call fcn.0046d010
mov ecx, eax
call fcn.004b5d80
mov ecx, dword [esi + 0x34]
push 0
push eax
call fcn.0046ce00
mov ecx, eax
call fcn.004b3f70
test byte [eax + 0x20], 1
mov dword [esp + 0x4c], eax
mov ecx, ebx
je 0x416232
push 0
jmp 0x416234
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 + 0x5c]
fld dword [esp + 0x5c]
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.0046d010
mov ecx, eax
call fcn.004b6050
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x3d8]
mov byte [esp + 0x488], 0xb
call fcn.005e8730
lea ecx, [esp + 0x3e8]
mov byte [esp + 0x480], 0xa
call fcn.005e8710
cmp dword [esi + 0x2c4], 2
movzx eax, word [edi + 0x5c]
movzx edx, ax
movzx eax, word [edi + 0x5e]
mov dword [esp + 0x70], edx
mov dword [esp + 0x38], eax
jne 0x4162c8
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
je 0x41648d
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
test eax, eax
je 0x41648d
mov edx, dword [edi]
mov edx, dword [edx + 0xf4]
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov dword [esp + 0x6c], 0
call edx
lea ecx, [esp + 0x3a0]
call fcn.00405fd0
mov ecx, dword [esi + 0x48]
push 3
mov byte [esp + 0x484], 0xc
call fcn.004dee40
test eax, eax
je 0x416479
push 0
lea ecx, [esp + 0x3a4]
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.00406780
test eax, eax
je 0x416479
mov edx, dword [esp + 0x68]
push edx
mov ecx, esi
call fcn.0040b9d0
cmp eax, 1
jne 0x416479
cmp byte [esi + 0x291], al
jne 0x416479
mov eax, dword [esp + 0x3a8]
mov ecx, dword [eax]
push 0x7c
mov dword [esp + 0x60], ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x40], ebx
mov byte [esp + 0x480], 0xd
test ebx, ebx
je 0x4163a1
mov edx, dword [0x67df8c]
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 0x4163a3
xor ebx, ebx
inc dword [0x67df8c]
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
mov ecx, edi
mov byte [esp + 0x480], 0xc
call edx
fstp dword [esp + 0x2ac]
xor eax, eax
push eax
lea ecx, [esp + 0x3bc]
mov dword [esp + 0x30c], eax
mov dword [esp + 0x2b8], eax
call fcn.005e8640
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x410]
push eax
mov ecx, edi
mov byte [esp + 0x488], 0xe
call edx
mov edx, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x310]
push eax
lea ecx, [esp + 0x2c0]
push ecx
push edx
lea eax, [esp + 0x3cc]
push eax
push ebx
mov ecx, esi
call fcn.0041b2c0
lea ecx, [esp + 0x3b8]
mov byte [esp + 0x480], 0xc
call fcn.005e8710
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esi + 0x264]
cmp eax, 1
je 0x41646e
mov ecx, dword [esp + 0x48]
cmp eax, 2
jne 0x416464
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
test al, al
jmp 0x41646c
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
jne 0x416479
mov ecx, dword [esp + 0x48]
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.005ee4c0
lea ecx, [esp + 0xc0]
call fcn.00405fd0
cmp dword [esi + 0x2ac], 0
mov byte [esp + 0x480], 0xf
jne 0x417214
mov eax, dword [esp + 0x70]
movzx edx, ax
cwde
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x60], edx
jg 0x416aa9
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 0x48]
push eax
call fcn.00407010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x50]
call fcn.004b5db0
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x416a91
mov edx, dword [esp + 0x60]
mov ecx, dword [esi + 0x48]
push edx
call fcn.00407010
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x60]
push eax
mov ecx, edi
call fcn.004b12c0
mov edx, dword [esp + 0x90]
push 0
lea ecx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esi + 0x100]
mov dword [esp + 0x98], eax
mov dword [esp + 0xa4], 0
call fcn.00406820
test eax, eax
je 0x416a91
mov eax, dword [esp + 0xc8]
mov eax, dword [eax]
mov dword [esp + 0x90], eax
test eax, eax
je 0x416a91
cmp dword [esp + 0x44], 1
jne 0x416919
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x7c], ecx
push edx
mov ecx, ebx
call fcn.004bccb0
mov ecx, dword [esp + 0x7c]
movzx eax, ax
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x94], eax
test eax, eax
je 0x416a91
mov ecx, eax
call fcn.004bbd50
test eax, eax
je 0x416a91
cmp dword [esp + 0x214], 0
mov dword [esp + 0x8c], 0
jle 0x416919
jmp 0x4165e0
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x8c]
movzx eax, word [ecx + edx*2]
cmp dword [esp + 0x5c], eax
jne 0x4168eb
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x9c], 1
mov dword [esp + 0x6c], 0
call fcn.00407010
mov edx, dword [esi + 0x34]
mov ebx, dword [edi]
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 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 + 0x84]
call fcn.00438fc0
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4168eb
cmp word [eax + 4], 1
jb 0x4168eb
mov ecx, dword [esp + 0x94]
call fcn.004bbd50
push eax
lea ecx, [esp + 0x23c]
call fcn.005e9060
push 0x62dc28
lea ecx, [esp + 0x23c]
mov byte [esp + 0x484], 0x10
call fcn.005e8f10
mov eax, dword [esi + 0x2c8]
lea ecx, [eax + 1]
mov dword [esi + 0x2c8], ecx
push eax
lea ecx, [esp + 0x23c]
call fcn.005e9050
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 0x41673d
mov eax, dword [0x67df8c]
sub esp, 0xc
mov dword [esp + 0x88], eax
lea edx, [esp + 0x244]
inc eax
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov dword [0x67df8c], eax
call fcn.005e8e10
lea eax, [esp + 0x29c]
push eax
mov ecx, esi
call fcn.004277f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x7c]
or dword [esp + 0x64], 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 + 0x7c], ebx
jmp 0x416745
mov dword [esp + 0x7c], 0
test byte [esp + 0x64], 1
mov dword [esp + 0x480], 0x10
je 0x416769
and dword [esp + 0x64], 0xfffffffe
lea ecx, [esp + 0x290]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 4]
xor ecx, ecx
xor ebx, ebx
cmp cx, ax
jae 0x4168c5
fldz
fst dword [esp + 0x328]
fstp dword [esp + 0x32c]
lea ecx, [ecx]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x2a4]
mov ecx, dword [esp + 0x4c]
call fcn.004b6180
mov ecx, dword [esp + 0x4c]
movzx edx, word [ecx + 0x20]
mov ecx, dword [esp + 0x68]
shr edx, 2
mov dword [esp + 0x334], eax
and edx, 1
mov dword [esp + 0x2bc], 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 + 0x2a4]
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 + 0x33c]
push eax
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
lea eax, [esp + 0x24c]
push eax
push ecx
mov ecx, esi
call fcn.0041b0c0
lea ecx, [esp + 0x344]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov edx, dword [esp + 0x238]
push edx
lea ecx, [esp + 0x348]
mov byte [esp + 0x484], 0x14
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ax, word [esp + 0x90]
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 + 0x64], esp
push eax
mov dword [esp + 0x364], edx
call fcn.0040ae00
mov ecx, dword [esp + 0x58]
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 + 0x68]
mov eax, dword [ecx + 4]
inc ebx
movsx edx, bx
movzx eax, ax
cmp edx, eax
jl 0x416790
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0xd0]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x238]
mov byte [esp + 0x480], 0xf
call fcn.005e8710
mov eax, dword [esp + 0x8c]
inc eax
cmp eax, dword [esp + 0x214]
mov dword [esp + 0x8c], eax
jl 0x4165e0
cmp dword [esp + 0x98], 1
je 0x416a91
mov ebx, dword [esp + 0x40]
mov edx, dword [esi + 0x34]
push 0
mov ecx, ebx
mov dword [esp + 0x44], edx
call fcn.004bccb0
mov ecx, dword [esp + 0x40]
movzx eax, ax
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x40], ecx
push 1
mov ecx, ebx
mov dword [esp + 0x98], eax
call fcn.004bccb0
mov ecx, dword [esp + 0x40]
movzx edx, ax
push edx
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x34]
push 2
mov ecx, ebx
mov dword [esp + 0x44], eax
call fcn.004bccb0
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov edx, dword [esi + 0x34]
push 3
mov ecx, ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x44], edx
call fcn.004bccb0
mov ecx, dword [esp + 0x40]
movzx eax, ax
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.00407010
cmp dword [eax + 0x34], 1
jne 0x4169dd
test ebx, ebx
jne 0x4169f4
mov ebx, dword [esp + 0x80]
jmp 0x4169ec
mov ebx, dword [esp + 0x94]
test ebx, ebx
jne 0x4169f4
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x416a91
lea ecx, [esp + 0x364]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebx
mov byte [esp + 0x480], 0x15
call fcn.004bbd50
push eax
lea ecx, [esp + 0x368]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov dx, word [esp + 0x90]
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 + 0x64], esp
push edx
mov dword [esp + 0x380], eax
call fcn.0040ae00
mov ecx, dword [esp + 0x58]
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 + 0x60]
inc eax
mov dword [esp + 0x60], eax
cwde
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
jle 0x4164c8
cmp dword [esp + 0x34], 1
jne 0x416ff9
mov ecx, dword [esi + 0x48]
xor eax, eax
cmp dword [ecx + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], eax
jle 0x417214
lea ebx, [ebx]
movzx ecx, word [esp + 0x68]
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 + 0x80], ecx
test ebx, ebx
je 0x416b19
mov eax, dword [ebx + 8]
test eax, eax
jne 0x416b15
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x40], eax
call fcn.004fe0e0
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.004fd530
mov ebx, eax
jmp 0x416b1b
xor ebx, ebx
push 0
lea edx, [esp + 0xc4]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.00406820
test eax, eax
je 0x416fdf
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x4c]
movzx eax, ax
push eax
call fcn.004b5e10
test eax, eax
je 0x416fdf
mov ecx, dword [esi + 0x34]
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x5c], eax
test eax, eax
je 0x416fdf
mov ecx, dword [esp + 0x2d0]
xor eax, eax
test ecx, ecx
jle 0x416ba7
mov edx, dword [esp + 0x2d8]
jmp 0x416b90
movzx ebx, word [edx + eax*2]
cmp dword [esp + 0x68], ebx
jne 0x416ba2
mov dword [esp + 0x34], 1
inc eax
cmp eax, ecx
jl 0x416b90
cmp dword [esp + 0x34], 1
jne 0x416ee7
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
mov edx, dword [esp + 0x80]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x60]
push eax
push edx
mov dword [esp + 0x68], 0
add ebx, 0xf0
call fcn.00438fc0
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [ebx]
call eax
cmp dword [esp + 0xc0], 0
mov dword [esp + 0x44], 0
jle 0x416fdf
mov eax, dword [esp + 0x60]
test eax, eax
je 0x416ecc
cmp word [eax + 4], 1
jb 0x416ecc
mov ecx, dword [esp + 0x5c]
call fcn.004bbd50
push eax
lea ecx, [esp + 0x20c]
call fcn.005e9060
push 0x62dc28
lea ecx, [esp + 0x20c]
mov byte [esp + 0x484], 0x16
call fcn.005e8f10
mov eax, dword [esi + 0x2c8]
lea ecx, [eax + 1]
mov dword [esi + 0x2c8], ecx
push eax
lea ecx, [esp + 0x20c]
call fcn.005e9050
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov byte [esp + 0x480], 0x17
test ebx, ebx
je 0x416ce4
mov eax, dword [0x67df8c]
sub esp, 0xc
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x214]
inc eax
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
mov dword [0x67df8c], eax
call fcn.005e8e10
lea eax, [esp + 0x2d4]
push eax
mov ecx, esi
call fcn.004277f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
or dword [esp + 0x64], 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 + 0x7c], ebx
jmp 0x416cec
mov dword [esp + 0x7c], 0
test byte [esp + 0x64], 2
mov dword [esp + 0x480], 0x16
je 0x416d10
and dword [esp + 0x64], 0xfffffffd
lea ecx, [esp + 0x2c8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 4]
xor ecx, ecx
mov dword [esp + 0x8c], 0
cmp cx, ax
jae 0x416ea2
fldz
fst dword [esp + 0x278]
fstp dword [esp + 0x27c]
lea ecx, [ecx]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x2f8]
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
call fcn.004b6180
movzx ecx, word [ebx + 0x20]
movzx edx, word [esp + 0x8c]
shr ecx, 2
mov dword [esp + 0x304], eax
mov eax, dword [esp + 0x60]
and ecx, 1
mov dword [esp + 0x30c], ecx
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + edx*4]
mov eax, dword [edi]
lea edx, [esp + 0x2f8]
push edx
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x438]
push ecx
mov ecx, edi
call edx
push eax
lea eax, [esp + 0x30c]
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x318]
push ecx
push ebx
lea edx, [esp + 0x21c]
push edx
push eax
mov ecx, esi
call fcn.0041b0c0
lea ecx, [esp + 0x1d8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x208]
push ecx
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x484], 0x1a
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x44]
mov cx, word [edx + eax*4]
mov edx, dword [esp + 0x278]
mov eax, dword [esp + 0x27c]
sub esp, 0x10
mov word [esp + 0x1ec], cx
mov ebx, esp
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x64], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x1f4], edx
mov dword [esp + 0x1f8], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x1ec]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x1f0]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x1f4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x58]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x480], 0x16
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 4]
inc ecx
mov dword [esp + 0x8c], ecx
movsx ecx, cx
movzx edx, ax
cmp ecx, edx
jl 0x416d40
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xcc]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x208]
mov byte [esp + 0x480], 0xf
call fcn.005e8710
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
inc ecx
cmp ecx, dword [esp + 0xc0]
mov dword [esp + 0x44], ecx
jl 0x416c01
jmp 0x416fdf
cmp dword [esp + 0xc0], 0
mov dword [esp + 0x44], 0
jle 0x416fdf
fldz
fst dword [esp + 0x338]
fstp dword [esp + 0x33c]
lea ecx, [ecx]
lea ecx, [esp + 0x1f8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x480], 0x1b
call fcn.004bbd50
push eax
lea ecx, [esp + 0x1fc]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x44]
mov ax, word [ecx + edx*4]
mov ecx, dword [esp + 0x338]
mov edx, dword [esp + 0x33c]
sub esp, 0x10
mov word [esp + 0x20c], ax
mov ebx, esp
lea eax, [esp + 0x208]
mov dword [esp + 0x210], ecx
mov dword [esp + 0x64], esp
push eax
mov ecx, ebx
mov dword [esp + 0x218], edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov cx, word [esp + 0x20c]
mov word [ebx + 4], cx
mov edx, dword [esp + 0x210]
mov ecx, dword [esp + 0x58]
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x214]
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 + 0x1f8]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0xc0]
mov dword [esp + 0x44], eax
jl 0x416f10
mov eax, dword [esp + 0x68]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x68], eax
jl 0x416ad0
jmp 0x417214
mov edx, dword [esi + 0x48]
cmp dword [edx + 0x3c], 0
mov dword [esp + 0x78], 0
jle 0x417214
mov eax, dword [esi + 0x48]
movzx ecx, word [esp + 0x78]
mov edx, dword [eax + 0x40]
mov ebx, dword [edx + ecx*4]
lea eax, [edx + ecx*4]
test ebx, ebx
je 0x41704d
mov eax, dword [ebx + 8]
test eax, eax
jne 0x417049
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x40], eax
call fcn.004fe0e0
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.004fd530
mov ebx, eax
jmp 0x41704f
xor ebx, ebx
push 0
lea edx, [esp + 0xc4]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.00406820
test eax, eax
je 0x4171ff
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x4c]
movzx eax, ax
push eax
call fcn.004b5e10
test eax, eax
je 0x4171ff
mov ecx, dword [esi + 0x34]
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x40], eax
test eax, eax
je 0x4171ff
xor ebx, ebx
cmp dword [esp + 0xc0], ebx
mov dword [esp + 0x44], ebx
jle 0x4171ff
lea ebx, [ebx]
lea ecx, [esp + 0x1b8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + ebx*4]
push eax
lea ecx, [esi + 0x100]
mov byte [esp + 0x484], 0x1c
call fcn.00406430
test eax, eax
je 0x417135
mov edx, dword [esp + 0x70]
inc edx
cmp eax, edx
jge 0x417112
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4171ed
mov ecx, dword [esp + 0x38]
inc ecx
cmp eax, ecx
jle 0x417135
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4171ed
mov ecx, dword [esp + 0x40]
call fcn.004bbd50
push eax
lea ecx, [esp + 0x1bc]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov edx, dword [esp + 0xc8]
fst dword [esp + 0x284]
mov eax, dword [esp + 0x44]
fstp dword [esp + 0x288]
mov cx, word [edx + eax*4]
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x288]
sub esp, 0x10
mov word [esp + 0x1cc], cx
mov ebx, esp
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x64], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x1d4], edx
mov dword [esp + 0x1d8], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x1cc]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x1d0]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x1d4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x58]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x480], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ebx, dword [esp + 0x44]
inc ebx
cmp ebx, dword [esp + 0xc0]
mov dword [esp + 0x44], ebx
jl 0x4170c0
mov eax, dword [esp + 0x78]
mov edx, dword [esi + 0x48]
inc eax
cmp eax, dword [edx + 0x3c]
mov dword [esp + 0x78], eax
jl 0x41700e
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
mov ebx, dword [esp + 0x70]
dec eax
movzx eax, ax
test ebx, ebx
jne 0x417237
movsx ecx, ax
mov byte [esp + 0x1a4], 1
cmp dword [esp + 0x38], ecx
je 0x41723f
mov byte [esp + 0x1a4], 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 + 0x31c]
push ecx
mov ecx, esi
mov dword [esp + 0x320], eax
call fcn.00427770
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 + 0x330]
push ecx
mov ecx, esi
mov dword [esp + 0x334], eax
call fcn.00427770
fstp dword [esp + 0x40]
push 0x8c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov byte [esp + 0x480], 0x1d
test edi, edi
je 0x4172f1
fld dword [esp + 0x40]
mov edx, dword [0x67df8c]
push 0
sub esp, 8
fstp dword [esp + 4]
mov ecx, edi
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 [edi], vtable.BMBVia.1.0
mov dword [edi + 0x6c], vtable.BMBVia.0
jmp 0x4172f3
xor edi, edi
mov eax, dword [esp + 0x48]
push eax
mov ecx, edi
mov byte [esp + 0x484], 0xf
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutStack_class_BMB2DStack__]
mov ecx, dword [esp + 0x1a4]
push ecx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutViaType_unsigned_char_]
inc ebx
push ebx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutTopLayerNumber_short_int_]
mov edx, dword [esp + 0x38]
inc edx
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutBottomLayerNumber_short_int_]
mov ecx, dword [esp + 0x6c]
inc dword [0x67df8c]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddVia_class_BMBVia__]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x480], 0xa
call fcn.005ee4c0
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x480], 9
call fcn.005ee4c0
lea ecx, [esp + 0x214]
mov byte [esp + 0x480], 8
call fcn.005ee4c0
lea ecx, [esp + 0x3d0]
mov byte [esp + 0x480], 3
call fcn.005e8710
jmp 0x417475
cmp dword [esi + 0x260], 0
je 0x417479
cmp dword [esi + 0x264], 2
je 0x417479
cmp dword [esi + 0x2c4], 0
jg 0x417479
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
mov ecx, edi
call edx
test eax, eax
je 0x417479
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
push eax
mov ecx, esi
call fcn.0040bb40
cmp eax, 1
jne 0x417479
cmp byte [esi + 0x28f], al
jne 0x417479
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov byte [esp + 0x480], 4
test ebx, ebx
je 0x417430
mov eax, dword [0x67df8c]
push eax
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 0x417432
xor ebx, ebx
mov ecx, dword [esp + 0x50]
inc dword [0x67df8c]
push ecx
mov ecx, ebx
mov byte [esp + 0x484], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov edx, dword [esp + 0x50]
mov eax, dword [edi]
push 0
push 0
push 0
push edx
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
push eax
push ebx
mov ecx, esi
call fcn.00411290
mov ecx, dword [esp + 0x6c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x118]
call fcn.004b7750
lea ecx, [esp + 0x118]
call fcn.004f32d0
test eax, eax
jne 0x415e30
lea ecx, [esp + 0x118]
mov byte [esp + 0x480], 2
call fcn.004ed1b0
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4174c2
cmp eax, 4
jne 0x417d53
cmp dword [esi + 0x2ac], 1
jne 0x417d53
push edi
lea ecx, [esi + 0x100]
call fcn.00406470
cmp al, 0xb
je 0x417d53
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
mov ecx, ebx
mov dword [esp + 0x3c], 1
call edx
test eax, eax
je 0x417572
mov eax, dword [ebx + 0x34]
cmp eax, 1
jne 0x417529
fld dword [esi + 0x2b4]
mov eax, dword [esi + 0x2b0]
push ecx
mov ecx, dword [esp + 0x70]
fstp dword [esp]
push eax
push edi
push 0x67df8c
push ebx
push ecx
mov ecx, esi
call fcn.0040f6f0
jmp 0x417d53
cmp eax, 2
jne 0x41755b
cmp dword [esi + 0x2b0], 1
jne 0x41755b
fld dword [esi + 0x2b4]
mov edx, dword [esp + 0x6c]
push ecx
fstp dword [esp]
push 1
push edi
push 0x67df8c
push ebx
push edx
mov ecx, esi
call fcn.0040f6f0
jmp 0x417d53
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x6c]
push eax
push edi
push ebx
push ecx
mov ecx, esi
call fcn.00410be0
jmp 0x417d53
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
lea ecx, [esp + 0x22c]
mov ebx, eax
call fcn.00513f30
lea ecx, [esp + 0x120]
mov byte [esp + 0x480], 0x1f
call fcn.00513f30
lea ecx, [esp + 0x22c]
mov byte [esp + 0x480], 0x20
call fcn.00513f80
lea ecx, [esp + 0x22c]
call fcn.005ee340
lea ecx, [esp + 0x120]
call fcn.00513f80
mov eax, dword [esp + 0x250]
xor edi, edi
test eax, eax
je 0x4175f2
push 7
push eax
push str.Resist_
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4175f2
mov edi, 1
fld dword [esi + 0x2b4]
mov eax, dword [esi + 0x24]
push edi
push ecx
mov ecx, dword [esi + 0x2b0]
fstp dword [esp]
push ecx
lea edx, [esp + 0x238]
push edx
push 1
push 0
push ebx
push eax
call fcn.004047e0
push 0
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x148]
push edx
call fcn.0053c7d0
mov eax, dword [esp + 0x27c]
add esp, 0x2c
test eax, eax
je 0x417bd1
push 7
push eax
push str.Resist_
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x417bd1
cmp dword [esi + 0x2b0], 1
jne 0x417bd1
cmp dword [esi + 0x308], eax
jne 0x417741
mov ecx, dword [esi + 0x48]
push 2
call fcn.004dee40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x417741
push eax
lea ecx, [esp + 0xec]
call fcn.004b7700
lea ecx, [esp + 0xe8]
mov byte [esp + 0x480], 0x21
call fcn.004b7720
lea ecx, [esp + 0xe8]
call fcn.004f32d0
test eax, eax
je 0x41772d
lea ecx, [esp + 0xe8]
call fcn.004f32d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
cmp eax, 4
jne 0x417711
lea ecx, [esp + 0xe8]
call fcn.004f32d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x68]
call eax
mov edx, dword [esi + 0x308]
lea ecx, [esi + 0x308]
push edx
mov edi, eax
call fcn.005ee1f0
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov dword [ebx], eax
lea ecx, [esp + 0xe8]
call fcn.004b7750
lea ecx, [esp + 0xe8]
call fcn.004f32d0
test eax, eax
jne 0x4176c1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x480], 0x20
call fcn.004ed1b0
xor eax, eax
cmp dword [esi + 0x1bc], eax
je 0x4179e3
cmp dword [esi + 0x308], eax
mov dword [esp + 0x78], eax
jle 0x417d0f
nop
mov eax, dword [esi + 0x310]
mov ecx, dword [esp + 0x78]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x144]
call fcn.00513f30
xor ebx, ebx
push ebx
lea ecx, [esp + 0x148]
mov byte [esp + 0x484], 0x22
call fcn.005ee1f0
lea edx, [esp + 0x144]
push edx
push edi
mov ecx, esi
mov dword [esp + 0x14c], ebx
call fcn.00428bd0
cmp dword [esp + 0x144], ebx
mov dword [esp + 0x44], ebx
jle 0x41799d
jmp 0x4177c0
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x44]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x12c]
call fcn.00513f30
xor ebx, ebx
push ebx
lea ecx, [esp + 0x130]
mov byte [esp + 0x484], 0x23
call fcn.005ee1f0
push ebx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x134]
push edi
push eax
mov dword [esp + 0x13c], ebx
call fcn.0053cb10
add esp, 0x10
cmp dword [esp + 0x12c], ebx
mov dword [esp + 0x70], ebx
jle 0x41795b
jmp 0x417830
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x70]
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 + 0x150]
call fcn.00513f30
xor ebx, ebx
push ebx
lea ecx, [esp + 0x154]
mov byte [esp + 0x484], 0x24
call fcn.005ee1f0
push 1
lea eax, [esp + 0x154]
push eax
mov ecx, edi
mov dword [esp + 0x158], ebx
call fcn.0053d290
cmp dword [esp + 0x150], ebx
jle 0x417919
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov byte [esp + 0x480], 0x25
test edi, edi
je 0x4178ce
mov ecx, dword [0x67df8c]
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 0x4178d0
xor edi, edi
mov edx, dword [esp + 0x50]
inc dword [0x67df8c]
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 + 0x158]
mov ecx, dword [eax + ebx*4]
push 0
push ecx
push edi
mov ecx, esi
call fcn.0040f3b0
mov ecx, dword [esp + 0x6c]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebx
cmp ebx, dword [esp + 0x150]
jl 0x417894
lea ecx, [esp + 0x150]
call fcn.00513f80
lea ecx, [esp + 0x150]
call fcn.005ee340
lea ecx, [esp + 0x150]
mov byte [esp + 0x480], 0x23
call fcn.0048f310
mov eax, dword [esp + 0x70]
inc eax
cmp eax, dword [esp + 0x12c]
mov dword [esp + 0x70], eax
jl 0x417830
lea ecx, [esp + 0x12c]
call fcn.00513f80
lea ecx, [esp + 0x12c]
call fcn.005ee340
lea ecx, [esp + 0x12c]
mov byte [esp + 0x480], 0x22
call fcn.0048f310
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0x144]
mov dword [esp + 0x44], eax
jl 0x4177c0
lea ecx, [esp + 0x144]
call fcn.00513f80
lea ecx, [esp + 0x144]
call fcn.005ee340
lea ecx, [esp + 0x144]
mov byte [esp + 0x480], 0x20
call fcn.0048f310
mov eax, dword [esp + 0x78]
inc eax
cmp eax, dword [esi + 0x308]
mov dword [esp + 0x78], eax
jl 0x417760
jmp 0x417d0f
cmp dword [esi + 0x308], eax
mov dword [esp + 0x44], eax
jle 0x417d0f
mov edx, dword [esi + 0x310]
mov eax, dword [esp + 0x44]
mov edi, dword [edx + eax*4]
lea ecx, [esp + 0x138]
call fcn.00513f30
xor ebx, ebx
push ebx
lea ecx, [esp + 0x13c]
mov byte [esp + 0x484], 0x26
call fcn.005ee1f0
push ebx
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x140]
push edi
push edx
mov dword [esp + 0x148], ebx
call fcn.0053cb10
add esp, 0x10
cmp dword [esp + 0x138], ebx
mov dword [esp + 0x70], ebx
jle 0x417b8b
jmp 0x417a60
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x70]
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 + 0x15c]
call fcn.00513f30
xor ebx, ebx
push ebx
lea ecx, [esp + 0x160]
mov byte [esp + 0x484], 0x27
call fcn.005ee1f0
push 1
lea ecx, [esp + 0x160]
push ecx
mov ecx, edi
mov dword [esp + 0x164], ebx
call fcn.0053d290
cmp dword [esp + 0x15c], ebx
jle 0x417b49
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov byte [esp + 0x480], 0x28
test edi, edi
je 0x417afe
mov edx, dword [0x67df8c]
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 0x417b00
xor edi, edi
mov eax, dword [esp + 0x50]
inc dword [0x67df8c]
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 + 0x164]
mov edx, dword [ecx + ebx*4]
push 0
push edx
push edi
mov ecx, esi
call fcn.0040f3b0
mov ecx, dword [esp + 0x6c]
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 0x417ac4
lea ecx, [esp + 0x15c]
call fcn.00513f80
lea ecx, [esp + 0x15c]
call fcn.005ee340
lea ecx, [esp + 0x15c]
mov byte [esp + 0x480], 0x26
call fcn.0048f310
mov eax, dword [esp + 0x70]
inc eax
cmp eax, dword [esp + 0x138]
mov dword [esp + 0x70], eax
jl 0x417a60
lea ecx, [esp + 0x138]
call fcn.00513f80
lea ecx, [esp + 0x138]
call fcn.005ee340
lea ecx, [esp + 0x138]
mov byte [esp + 0x480], 0x20
call fcn.0048f310
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esi + 0x308]
mov dword [esp + 0x44], eax
jl 0x4179f3
jmp 0x417d0f
cmp dword [esp + 0x120], 0
mov dword [esp + 0x70], 0
jle 0x417d0f
jmp 0x417bf0
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x70]
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.00513f30
xor ebx, ebx
push ebx
lea ecx, [esp + 0x178]
mov byte [esp + 0x484], 0x29
call fcn.005ee1f0
push 1
lea ecx, [esp + 0x178]
push ecx
mov ecx, edi
mov dword [esp + 0x17c], ebx
call fcn.0053d290
cmp dword [esp + 0x174], ebx
jle 0x417cd9
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov byte [esp + 0x480], 0x2a
test edi, edi
je 0x417c8e
mov edx, dword [0x67df8c]
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 0x417c90
xor edi, edi
mov eax, dword [esp + 0x50]
inc dword [0x67df8c]
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.0040f3b0
mov ecx, dword [esp + 0x6c]
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 0x417c54
lea ecx, [esp + 0x174]
call fcn.00513f80
lea ecx, [esp + 0x174]
mov byte [esp + 0x480], 0x20
call fcn.0048f310
mov eax, dword [esp + 0x70]
inc eax
cmp eax, dword [esp + 0x120]
mov dword [esp + 0x70], eax
jl 0x417bf0
lea ecx, [esp + 0x22c]
call fcn.00513f80
lea ecx, [esp + 0x120]
call fcn.00513f80
lea ecx, [esp + 0x120]
mov byte [esp + 0x480], 0x1f
call fcn.0048f310
lea ecx, [esp + 0x22c]
mov byte [esp + 0x480], 2
call fcn.0048f310
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x74]
inc eax
cmp eax, dword [esp + 0xf0]
mov dword [esp + 0x74], eax
jl 0x415d40
cmp dword [esp + 0x3c], 1
jne 0x417d84
mov ecx, dword [0x67df80]
call fcn.00405c30
jmp 0x41a27a
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
push eax
lea ecx, [esp + 0x114]
call fcn.004b7700
lea ecx, [esp + 0x110]
mov byte [esp + 0x480], 0x2b
call fcn.004b7720
lea ecx, [esp + 0x110]
call fcn.004f32d0
test eax, eax
je 0x41a266
lea ecx, [esp + 0x110]
mov ebx, 1
call fcn.004f32d0
mov edi, eax
cmp dword [esi + 0x25c], ebx
jne 0x417e98
cmp dword [esi + 0x2ac], 0
jne 0x417e98
mov ecx, edi
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x41a246
mov ecx, edi
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x417e32
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 5
jne 0x41a246
mov ecx, edi
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x417ead
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 5
jne 0x417ead
cmp dword [esi + 0x25c], 0
je 0x41a246
mov ecx, edi
call fcn.004a8b00
mov ebx, eax
test ebx, ebx
je 0x41a246
cmp dword [ebp + 0xc], 1
jne 0x417e8c
mov ecx, ebx
call fcn.0046d010
cmp dword [eax + 0x4c], 0
je 0x41a246
cmp dword [ebp + 0x10], 1
jne 0x417ead
test byte [ebx + 0x3c], 1
jmp 0x417ea7
cmp dword [ebp + 0x10], ebx
jne 0x417ead
push edi
mov ecx, esi
call fcn.0040c060
cmp eax, ebx
je 0x41a246
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x417ed8
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00471420
test eax, eax
jne 0x41a246
cmp dword [esp + 0xf0], 0
mov dword [esp + 0x78], 0
jle 0x41a246
mov edi, edi
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0x78]
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x41a230
push ebx
lea ecx, [esi + 0x100]
call fcn.00406310
test eax, eax
je 0x41a230
push ebx
mov ecx, esi
call fcn.0040b070
cmp word [esi + 0x254], 2
mov dword [esp + 0x30], eax
jne 0x417f40
push ebx
mov ecx, esi
call fcn.0040bc90
test eax, eax
je 0x41a230
mov ecx, 1
cmp dword [esp + 0x310], ecx
jne 0x417f87
cmp dword [esi + 0x2fc], ecx
je 0x417f5e
cmp dword [esi + 0x300], ecx
jne 0x417f75
mov eax, dword [esp + 0x6c]
push ebx
push edi
push eax
mov ecx, esi
call fcn.0040c120
cmp eax, 1
je 0x41a230
cmp dword [esi + 0x274], 0
je 0x41a230
mov ecx, 1
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x418084
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
test eax, eax
je 0x417ff3
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00471420
test eax, eax
je 0x417ff3
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00471420
mov eax, dword [eax + 0x34]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.005e9060
mov ecx, esi
call fcn.0040af30
test eax, eax
je 0x41a230
jmp 0x41a225
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x2c
test eax, eax
je 0x418033
mov ecx, dword [0x67df8c]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov eax, dword [esp + 0x34]
mov dword [eax], vtable.BMBDrawing.1.0
mov dword [eax + 0x6c], vtable.BMBDrawing.0
mov dword [esp + 0x38], eax
jmp 0x41803b
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x67df8c]
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.00412490
mov ecx, dword [esp + 0x6c]
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
jmp 0x41a20d
cmp eax, ecx
jne 0x418173
push 0xcc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x2d
test eax, eax
je 0x4180d6
mov edx, dword [0x67df8c]
push 0x62dc24
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 + 0x34]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x4c], eax
jmp 0x4180de
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x4c]
inc dword [0x67df8c]
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, 2
jne 0x41812e
mov eax, dword [edi + 0x68]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00427770
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x50]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
mov edx, dword [esp + 0x4c]
push 0
push 0
push 0
push ebx
push edi
push edx
mov ecx, esi
call fcn.00412490
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x6c]
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 eax, ax
push eax
mov ecx, esi
call fcn.0040c0d0
test eax, eax
je 0x41a225
mov ecx, ebx
jmp 0x41a21c
cmp eax, 2
jne 0x418263
push 0xcc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x2e
test eax, eax
je 0x4181c6
mov edx, dword [0x67df8c]
push 0x62dc24
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 + 0x34]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x4c], eax
jmp 0x4181ce
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x4c]
inc dword [0x67df8c]
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, 2
jne 0x41821e
mov eax, dword [edi + 0x68]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00427770
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x50]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
mov edx, dword [esp + 0x4c]
push 0
push 0
push 0
push ebx
push edi
push edx
mov ecx, esi
call fcn.00412490
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x6c]
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 eax, ax
push eax
mov ecx, esi
call fcn.0040c0d0
test eax, eax
je 0x41a225
mov ecx, ebx
jmp 0x41a21c
cmp eax, 3
jne 0x4197f2
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 6
je 0x419703
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 7
je 0x419703
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 8
je 0x419703
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 9
jne 0x4183cd
cmp dword [esi + 0x260], 0
je 0x41a230
cmp dword [esi + 0x264], 2
je 0x41a230
cmp dword [esi + 0x2c4], 0
jg 0x41a230
mov eax, dword [esi + 0x24]
push eax
lea ecx, [esp + 0x388]
call fcn.0042ea80
push edi
lea ecx, [esp + 0x388]
mov byte [esp + 0x484], 0x30
call fcn.0042ed90
push eax
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.0040bb40
cmp eax, 1
jne 0x4183a1
cmp byte [esi + 0x28f], al
jne 0x4183a1
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x31
test eax, eax
je 0x418361
mov ecx, dword [0x67df8c]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov eax, dword [esp + 0x34]
mov dword [eax], vtable.BMBHole.1.0
mov dword [eax + 0x6c], vtable.BMBHole.0
mov dword [esp + 0x3c], eax
jmp 0x418369
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
inc dword [0x67df8c]
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 + 0x4c]
push edi
push ebx
mov ecx, esi
call fcn.00412490
mov ecx, dword [esp + 0x6c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
cmp dword [esp + 0x5c], 0
je 0x4183b4
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x384]
mov byte [esp + 0x480], 0x2b
call fcn.004ed1b0
jmp 0x41a225
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xe
je 0x4184c3
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 0xf
je 0x4184c3
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040bb40
cmp eax, 1
jne 0x41a225
cmp byte [esi + 0x28f], al
jne 0x41a225
cmp dword [esi + 0x260], 0
je 0x41a230
cmp dword [esi + 0x264], 2
je 0x41a230
cmp dword [esi + 0x2c4], 0
jg 0x41a230
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x49
test eax, eax
je 0x41847e
mov ecx, dword [0x67df8c]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov eax, dword [esp + 0x34]
mov dword [eax], vtable.BMBHole.1.0
mov dword [eax + 0x6c], vtable.BMBHole.0
mov dword [esp + 0x3c], eax
jmp 0x418486
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
inc dword [0x67df8c]
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 + 0x4c]
push edi
push ebx
mov ecx, esi
call fcn.00412490
mov ecx, dword [esp + 0x6c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
jmp 0x41a225
push 0xb0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov byte [esp + 0x480], 0x32
test ebx, ebx
je 0x418508
mov edx, dword [0x67df8c]
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 + 0x48], ebx
jmp 0x41850e
xor ebx, ebx
mov dword [esp + 0x48], ebx
push 0x62dc24
lea ecx, [esp + 0x3b0]
mov byte [esp + 0x484], 0x2b
call fcn.005e9060
inc dword [0x67df8c]
xor eax, eax
lea ecx, [esp + 0x220]
mov byte [esp + 0x480], 0x33
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x70], eax
call fcn.00405fd0
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x480], 0x34
call fcn.00405fd0
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
mov byte [esp + 0x480], 0x35
call edx
cmp eax, 0xf
jne 0x4185c5
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2e8]
push ecx
lea edx, [esp + 0x228]
push edx
mov ecx, edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x3c], 0
call fcn.004bb080
cmp dword [esp + 0x220], 0
jle 0x4185b3
mov dword [esp + 0x34], 1
cmp dword [esp + 0x2e4], 0
jle 0x4185c5
mov dword [esp + 0x44], 1
mov ecx, edi
call fcn.0046d010
mov ecx, eax
call fcn.004b5d80
mov ecx, dword [esi + 0x34]
push 0
push eax
call fcn.0046ce00
mov ecx, eax
call fcn.004b3f70
test byte [eax + 0x20], 1
mov dword [esp + 0x58], eax
mov ecx, ebx
je 0x4185f5
push 0
jmp 0x4185f7
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.0046d010
mov ecx, eax
call fcn.004b6050
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x3b4]
mov byte [esp + 0x488], 0x36
call fcn.005e8730
lea ecx, [esp + 0x3dc]
mov byte [esp + 0x480], 0x35
call fcn.005e8710
cmp dword [esi + 0x2c4], 2
movzx eax, word [edi + 0x5c]
movzx ecx, ax
movzx eax, word [edi + 0x5e]
movzx edx, ax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], edx
jne 0x41868e
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
je 0x418853
mov eax, dword [edi]
mov edx, dword [eax + 0xe0]
mov ecx, edi
call edx
test eax, eax
je 0x418853
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
mov dword [esp + 0x40], 0
call edx
lea ecx, [esp + 0x394]
call fcn.00405fd0
mov ecx, dword [esi + 0x48]
push 3
mov byte [esp + 0x484], 0x37
call fcn.004dee40
test eax, eax
je 0x41883f
push 0
lea ecx, [esp + 0x398]
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.00406780
test eax, eax
je 0x41883f
mov edx, dword [esp + 0x3c]
push edx
mov ecx, esi
call fcn.0040b9d0
cmp eax, 1
jne 0x41883f
cmp byte [esi + 0x291], al
jne 0x41883f
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 + 0x54], ebx
mov byte [esp + 0x480], 0x38
test ebx, ebx
je 0x418767
mov edx, dword [0x67df8c]
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 0x418769
xor ebx, ebx
inc dword [0x67df8c]
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.005e8640
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 + 0x40]
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.0041b2c0
lea ecx, [esp + 0x3c4]
mov byte [esp + 0x480], 0x37
call fcn.005e8710
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 + 0x264]
cmp eax, 1
je 0x418834
mov ecx, dword [esp + 0x48]
cmp eax, 2
jne 0x41882a
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
test al, al
jmp 0x418832
call dword [sym.imp.BMB_NX_C9.dll_public:_unsigned_char___thiscall_BMB2DStack::GetPlated_void_]
cmp al, 1
jne 0x41883f
mov ecx, dword [esp + 0x48]
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.005ee4c0
lea ecx, [esp + 0xb4]
call fcn.00405fd0
cmp dword [esi + 0x2ac], 1
mov byte [esp + 0x480], 0x3a
je 0x419584
mov eax, dword [esp + 0x50]
movzx edx, ax
cwde
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x60], edx
jg 0x418e3c
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 0x48]
push eax
call fcn.00407010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x5c]
call fcn.004b5db0
mov ebx, eax
mov dword [esp + 0x80], ebx
test ebx, ebx
je 0x418e21
mov edx, dword [esp + 0x60]
mov ecx, dword [esi + 0x48]
push edx
call fcn.00407010
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
push eax
mov ecx, edi
call fcn.004b12c0
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0xb8]
push ecx
push edx
lea ecx, [esi + 0x100]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x68], 0
call fcn.00406820
test eax, eax
je 0x418e21
mov eax, dword [esp + 0xbc]
mov eax, dword [eax]
mov dword [esp + 0x90], eax
test eax, eax
je 0x418e21
cmp dword [esp + 0x34], 1
jne 0x418ca9
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
push edx
mov ecx, ebx
call fcn.004bccb0
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x40], eax
test eax, eax
je 0x418e21
mov ecx, eax
call fcn.004bbd50
test eax, eax
je 0x418e21
cmp dword [esp + 0x220], 0
mov dword [esp + 0x74], 0
jle 0x418ca9
jmp 0x418990
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x74]
movzx eax, word [ecx + edx*2]
cmp dword [esp + 0x98], eax
jne 0x418c81
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x60], 1
mov dword [esp + 0x3c], 0
call fcn.00407010
mov edx, dword [esi + 0x34]
mov ebx, dword [edi]
lea ecx, [esp + 0x38]
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.00438fc0
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x418c81
cmp word [eax + 4], 1
jb 0x418c81
mov ecx, dword [esp + 0x40]
call fcn.004bbd50
push eax
lea ecx, [esp + 0x248]
call fcn.005e9060
push 0x62dc28
lea ecx, [esp + 0x248]
mov byte [esp + 0x484], 0x3b
call fcn.005e8f10
mov eax, dword [esi + 0x2c8]
lea ecx, [eax + 1]
mov dword [esi + 0x2c8], ecx
push eax
lea ecx, [esp + 0x248]
call fcn.005e9050
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov byte [esp + 0x480], 0x3c
test ebx, ebx
je 0x418ae1
mov eax, dword [0x67df8c]
sub esp, 0xc
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x250]
inc eax
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
mov dword [0x67df8c], eax
call fcn.005e8e10
lea eax, [esp + 0x324]
push eax
mov ecx, esi
call fcn.004277f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
or dword [esp + 0x64], 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 + 0x3c], ebx
jmp 0x418ae9
mov dword [esp + 0x3c], 0
test byte [esp + 0x64], 4
mov dword [esp + 0x480], 0x3b
je 0x418b0d
and dword [esp + 0x64], 0xfffffffb
lea ecx, [esp + 0x318]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
xor ecx, ecx
xor ebx, ebx
cmp cx, ax
jae 0x418c5b
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 + 0x58]
call fcn.004b6180
mov ecx, dword [esp + 0x58]
movzx edx, word [ecx + 0x20]
mov ecx, dword [esp + 0x38]
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 + 0x4c]
push edx
lea eax, [esp + 0x258]
push eax
push ecx
mov ecx, esi
call fcn.0041b0c0
lea ecx, [esp + 0x354]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov edx, dword [esp + 0x244]
push edx
lea ecx, [esp + 0x358]
mov byte [esp + 0x484], 0x3f
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ax, word [esp + 0x90]
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 + 0x64], esp
push eax
mov dword [esp + 0x374], edx
call fcn.0040ae00
mov ecx, dword [esp + 0x58]
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 + 0x38]
movzx edx, word [ecx + 4]
inc ebx
movsx eax, bx
cmp eax, edx
jl 0x418b31
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0xd0]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x244]
mov byte [esp + 0x480], 0x3a
call fcn.005e8710
mov eax, dword [esp + 0x74]
inc eax
cmp eax, dword [esp + 0x220]
mov dword [esp + 0x74], eax
jl 0x418990
cmp dword [esp + 0x5c], 1
je 0x418e21
mov ebx, dword [esp + 0x80]
mov edx, dword [esi + 0x34]
push 0
mov ecx, ebx
mov dword [esp + 0x34], edx
call fcn.004bccb0
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x30], ecx
push 1
mov ecx, ebx
mov dword [esp + 0x84], eax
call fcn.004bccb0
mov ecx, dword [esp + 0x30]
movzx edx, ax
push edx
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x34]
push 2
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.004bccb0
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov edx, dword [esi + 0x34]
push 3
mov ecx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], edx
call fcn.004bccb0
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.00407010
cmp dword [eax + 0x34], 1
jne 0x418d6a
test ebx, ebx
jne 0x418d84
mov ebx, dword [esp + 0x40]
jmp 0x418d7c
mov ebx, dword [esp + 0x80]
test ebx, ebx
jne 0x418d84
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x418e21
lea ecx, [esp + 0x374]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, ebx
mov byte [esp + 0x480], 0x40
call fcn.004bbd50
push eax
lea ecx, [esp + 0x378]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov dx, word [esp + 0x90]
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 + 0x64], esp
push edx
mov dword [esp + 0x390], eax
call fcn.0040ae00
mov ecx, dword [esp + 0x58]
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 + 0x60]
inc eax
mov dword [esp + 0x60], eax
cwde
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x98], eax
jle 0x418891
cmp dword [esp + 0x44], 1
jne 0x419369
mov ecx, dword [esi + 0x48]
xor eax, eax
cmp dword [ecx + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jle 0x419584
lea ecx, [ecx]
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 + 0x40], ecx
test ebx, ebx
je 0x418ea6
mov eax, dword [ebx + 8]
test eax, eax
jne 0x418ea2
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.004fe0e0
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.004fd530
mov ebx, eax
jmp 0x418ea8
xor ebx, ebx
push 0
lea edx, [esp + 0xb8]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.00406820
test eax, eax
je 0x41934f
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x58]
movzx eax, ax
push eax
call fcn.004b5e10
test eax, eax
je 0x41934f
mov ecx, dword [esi + 0x34]
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x5c], eax
test eax, eax
je 0x41934f
mov ecx, dword [esp + 0x2e4]
xor eax, eax
test ecx, ecx
jle 0x418f2b
mov edx, dword [esp + 0x2ec]
movzx ebx, word [edx + eax*2]
cmp dword [esp + 0x38], ebx
jne 0x418f26
mov dword [esp + 0x34], 1
inc eax
cmp eax, ecx
jl 0x418f14
cmp dword [esp + 0x34], 1
jne 0x419254
mov edx, dword [esp + 0x70]
mov ebx, dword [edx]
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x4c]
push eax
push edx
mov dword [esp + 0x54], 0
add ebx, 0xf0
call fcn.00438fc0
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [ebx]
call eax
cmp dword [esp + 0xb4], 0
mov dword [esp + 0x44], 0
jle 0x41934f
mov eax, dword [esp + 0x4c]
nop
test eax, eax
je 0x419239
cmp word [eax + 4], 1
jb 0x419239
mov ecx, dword [esp + 0x5c]
call fcn.004bbd50
push eax
lea ecx, [esp + 0x260]
call fcn.005e9060
push 0x62dc28
lea ecx, [esp + 0x260]
mov byte [esp + 0x484], 0x41
call fcn.005e8f10
mov eax, dword [esi + 0x2c8]
lea ecx, [eax + 1]
mov dword [esi + 0x2c8], ecx
push eax
lea ecx, [esp + 0x260]
call fcn.005e9050
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov byte [esp + 0x480], 0x42
test ebx, ebx
je 0x419060
mov eax, dword [0x67df8c]
sub esp, 0xc
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x268]
inc eax
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov dword [0x67df8c], eax
call fcn.005e8e10
lea eax, [esp + 0x298]
push eax
mov ecx, esi
call fcn.004277f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
or dword [esp + 0x64], 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 + 0x74], ebx
jmp 0x419068
mov dword [esp + 0x74], 0
test byte [esp + 0x64], 8
mov dword [esp + 0x480], 0x41
je 0x41908c
and dword [esp + 0x64], 0xfffffff7
lea ecx, [esp + 0x28c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
xor ecx, ecx
mov dword [esp + 0x3c], 0
cmp cx, ax
jae 0x41920f
fldz
fst dword [esp + 0x320]
fstp dword [esp + 0x324]
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
fstp dword [esp + 0x294]
mov ebx, dword [esp + 0x58]
mov ecx, ebx
call fcn.004b6180
movzx ecx, word [ebx + 0x20]
movzx edx, word [esp + 0x3c]
shr ecx, 2
mov dword [esp + 0x2a0], eax
mov eax, dword [esp + 0x4c]
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 + 0x80]
lea ecx, [esp + 0x2b4]
push ecx
push ebx
lea edx, [esp + 0x270]
push edx
push eax
mov ecx, esi
call fcn.0041b0c0
lea ecx, [esp + 0x1c8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x25c]
push ecx
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x484], 0x45
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x44]
mov cx, word [edx + eax*4]
mov edx, dword [esp + 0x320]
mov eax, dword [esp + 0x324]
sub esp, 0x10
mov word [esp + 0x1dc], cx
mov ebx, esp
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x64], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x1e4], edx
mov dword [esp + 0x1e8], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x1dc]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x1e0]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x1e4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x58]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x480], 0x41
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
inc ecx
mov dword [esp + 0x3c], ecx
movsx ecx, cx
movzx edx, ax
cmp ecx, edx
jl 0x4190b6
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xcc]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapPad::AddElement_class_BMBPad__]
lea ecx, [esp + 0x25c]
mov byte [esp + 0x480], 0x3a
call fcn.005e8710
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
inc ecx
cmp ecx, dword [esp + 0xb4]
mov dword [esp + 0x44], ecx
jl 0x418f80
jmp 0x41934f
cmp dword [esp + 0xb4], 0
mov dword [esp + 0x3c], 0
jle 0x41934f
fldz
fst dword [esp + 0x298]
fstp dword [esp + 0x29c]
lea ebx, [ebx]
lea ecx, [esp + 0x1e8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x480], 0x46
call fcn.004bbd50
push eax
lea ecx, [esp + 0x1ec]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x3c]
mov ax, word [ecx + edx*4]
mov ecx, dword [esp + 0x298]
mov edx, dword [esp + 0x29c]
sub esp, 0x10
mov word [esp + 0x1fc], ax
mov ebx, esp
lea eax, [esp + 0x1f8]
mov dword [esp + 0x200], ecx
mov dword [esp + 0x64], esp
push eax
mov ecx, ebx
mov dword [esp + 0x208], edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov cx, word [esp + 0x1fc]
mov word [ebx + 4], cx
mov edx, dword [esp + 0x200]
mov ecx, dword [esp + 0x58]
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x204]
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 + 0x1e8]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], eax
jl 0x419280
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x48]
inc eax
cmp eax, dword [ecx + 0x3c]
mov dword [esp + 0x38], eax
jl 0x418e60
jmp 0x419584
mov edx, dword [esi + 0x48]
cmp dword [edx + 0x3c], 0
mov dword [esp + 0x74], 0
jle 0x419584
mov eax, dword [esi + 0x48]
movzx ecx, word [esp + 0x74]
mov edx, dword [eax + 0x40]
mov ebx, dword [edx + ecx*4]
lea eax, [edx + ecx*4]
test ebx, ebx
je 0x4193bd
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4193b9
mov eax, dword [ebx + 4]
and eax, 0x7f
mov dword [esp + 0x30], eax
call fcn.004fe0e0
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4 - 4]
push ebx
mov ecx, eax
call fcn.004fd530
mov ebx, eax
jmp 0x4193bf
xor ebx, ebx
push 0
lea edx, [esp + 0xb8]
push edx
push ebx
lea ecx, [esi + 0x100]
call fcn.00406820
test eax, eax
je 0x41956f
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x58]
movzx eax, ax
push eax
call fcn.004b5e10
test eax, eax
je 0x41956f
mov ecx, dword [esi + 0x34]
push eax
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
mov dword [esp + 0x30], eax
test eax, eax
je 0x41956f
xor ebx, ebx
cmp dword [esp + 0xb4], ebx
mov dword [esp + 0x3c], ebx
jle 0x41956f
lea ebx, [ebx]
lea ecx, [esp + 0x1a8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + ebx*4]
push eax
lea ecx, [esi + 0x100]
mov byte [esp + 0x484], 0x47
call fcn.00406430
test eax, eax
je 0x4194a5
mov edx, dword [esp + 0x50]
inc edx
cmp eax, edx
jge 0x419482
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41955d
mov ecx, dword [esp + 0x68]
inc ecx
cmp eax, ecx
jle 0x4194a5
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x41955d
mov ecx, dword [esp + 0x30]
call fcn.004bbd50
push eax
lea ecx, [esp + 0x1ac]
call dword [sym.imp.mfc90.dll_Ordinal_820]
fldz
mov edx, dword [esp + 0xbc]
fst dword [esp + 0x2fc]
mov eax, dword [esp + 0x3c]
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 + 0x1bc], cx
mov ebx, esp
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x64], esp
push ecx
mov ecx, ebx
mov dword [esp + 0x1c4], edx
mov dword [esp + 0x1c8], eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dx, word [esp + 0x1bc]
mov word [ebx + 4], dx
mov eax, dword [esp + 0x1c0]
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x1c4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x58]
push 0
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DStack::AddPad_class_BMBPad___struct_BMB_LinkPad_t_]
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x480], 0x3a
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ebx, dword [esp + 0x3c]
inc ebx
cmp ebx, dword [esp + 0xb4]
mov dword [esp + 0x3c], ebx
jl 0x419430
mov eax, dword [esp + 0x74]
mov edx, dword [esi + 0x48]
inc eax
cmp eax, dword [edx + 0x3c]
mov dword [esp + 0x74], eax
jl 0x41937e
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x30]
dec eax
cmp dword [esp + 0x50], 0
movzx eax, ax
jne 0x4195a6
movsx ecx, ax
mov byte [esp + 0x190], 1
cmp dword [esp + 0x68], ecx
je 0x4195ae
mov byte [esp + 0x190], 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.00427770
fstp dword [esp + 0x40]
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.00427770
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 + 0x54], ebx
mov byte [esp + 0x480], 0x48
test ebx, ebx
je 0x41965a
fld dword [esp + 0x30]
mov edx, dword [0x67df8c]
push 0
sub esp, 8
fstp dword [esp + 4]
mov ecx, ebx
fld dword [esp + 0x4c]
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 0x41965c
xor ebx, ebx
mov eax, dword [esp + 0x48]
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 + 0x190]
push ecx
mov ecx, ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBVia::PutViaType_unsigned_char_]
mov edx, dword [esp + 0x50]
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 + 0x68]
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 + 0x6c]
inc dword [0x67df8c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddVia_class_BMBVia__]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x480], 0x35
call fcn.005ee4c0
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x480], 0x34
call fcn.005ee4c0
lea ecx, [esp + 0x220]
mov byte [esp + 0x480], 0x33
call fcn.005ee4c0
lea ecx, [esp + 0x3ac]
mov byte [esp + 0x480], 0x2b
call fcn.005e8710
jmp 0x41a225
cmp dword [esi + 0x260], 0
je 0x41a230
cmp dword [esi + 0x264], 2
je 0x41a230
cmp dword [esi + 0x2c4], 0
jg 0x41a230
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
je 0x41a225
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.0040bb40
cmp eax, 1
jne 0x41a225
cmp byte [esi + 0x28f], al
jne 0x41a225
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x2f
test eax, eax
je 0x4197a4
mov ecx, dword [0x67df8c]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBHole::constructor_int_]
mov eax, dword [esp + 0x34]
mov dword [eax], vtable.BMBHole.1.0
mov dword [eax + 0x6c], vtable.BMBHole.0
mov dword [esp + 0x3c], eax
jmp 0x4197ac
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
inc dword [0x67df8c]
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 + 0x68]
push 0
push 0
push 0
push ebx
mov ecx, edi
call eax
mov ebx, dword [esp + 0x4c]
push eax
push ebx
mov ecx, esi
call fcn.00411290
mov ecx, dword [esp + 0x6c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddHole_class_BMBHole__]
jmp 0x41a225
cmp eax, 5
jne 0x419fcf
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
cmp eax, 3
jne 0x41a230
push 0xe8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x4a
test eax, eax
je 0x419850
mov ecx, dword [0x67df8c]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::constructor_int_]
mov eax, dword [esp + 0x34]
mov dword [eax], vtable.BMBBendLine.1.0
mov dword [eax + 0x6c], vtable.BMBBendLine.0
mov dword [esp + 0x50], eax
jmp 0x419858
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
inc dword [0x67df8c]
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 + 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00410610
push edi
lea ecx, [esp + 0x10c]
call fcn.004f1700
lea ecx, [esp + 0x108]
call fcn.004f16e0
lea ecx, [esp + 0x194]
call fcn.005e8490
lea ecx, [esp + 0x168]
mov byte [esp + 0x480], 0x4b
call fcn.005e8490
mov ecx, dword [esp + 0x10c]
mov byte [esp + 0x480], 0x4c
test ecx, ecx
je 0x419f90
jmp 0x4198e0
mov dl, byte [ecx + 2]
mov ebx, dword [esp + 0x50]
and dl, 3
cmp dl, 1
je 0x4198f7
mov ecx, dword [ecx + 8]
jmp 0x419f81
call fcn.004f1460
push eax
lea ecx, [esp + 0x198]
call fcn.005e8ed0
mov eax, dword [esp + 0x10c]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x16c]
call fcn.005e8ed0
lea ecx, [esp + 0x194]
push str.PointDirection
push ecx
call fcn.005e8db0
add esp, 8
test eax, eax
je 0x419a93
sub esp, 0xc
lea edx, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x18c]
push eax
mov ecx, esi
call fcn.004277f0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x4d
call sub.mfc90.dll_Ordinal_580
mov edx, dword [esp + 0x180]
lea ecx, [esp + 0xd0]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x488], 0x4e
call fcn.0041e710
fldz
mov eax, dword [esp + 0xd8]
fst qword [esp + 0x9c]
xor ebx, ebx
fst qword [esp + 0xa4]
fstp qword [esp + 0xac]
test eax, eax
jle 0x419a39
lea ecx, [ecx]
test ebx, ebx
jl 0x41a306
cmp ebx, eax
jge 0x41a306
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x84]
push ecx
push 0x62de34
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x419a05
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x419a2d
cmp ebx, 1
jne 0x419a1a
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
jmp 0x419a2d
cmp ebx, 2
jne 0x419a2d
fld qword [esp + 0x84]
fstp qword [esp + 0xac]
mov eax, dword [esp + 0xd8]
inc ebx
cmp ebx, eax
jl 0x4199c0
fld qword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xbc]
fstp qword [eax + 8]
fld qword [esp + 0xc4]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutPointDirection_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x4d
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x180]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x419f77
lea edx, [esp + 0x194]
push str.VectorDirection
push edx
call fcn.005e8db0
add esp, 8
test eax, eax
je 0x419c03
sub esp, 0xc
lea eax, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.005e8e10
lea ecx, [esp + 0x198]
push ecx
mov ecx, esi
call fcn.004277f0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x4f
call sub.mfc90.dll_Ordinal_580
mov eax, dword [esp + 0x18c]
lea edx, [esp + 0xd0]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x488], 0x50
call fcn.0041e710
fldz
mov eax, dword [esp + 0xd8]
fst qword [esp + 0x9c]
xor ebx, ebx
fst qword [esp + 0xa4]
fstp qword [esp + 0xac]
test eax, eax
jle 0x419ba9
test ebx, ebx
jl 0x41a306
cmp ebx, eax
jge 0x41a306
mov ecx, dword [esp + 0xd4]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x84]
push edx
push 0x62de34
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x419b75
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x419b9d
cmp ebx, 1
jne 0x419b8a
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
jmp 0x419b9d
cmp ebx, 2
jne 0x419b9d
fld qword [esp + 0x84]
fstp qword [esp + 0xac]
mov eax, dword [esp + 0xd8]
inc ebx
cmp ebx, eax
jl 0x419b30
fld qword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xbc]
fstp qword [eax + 8]
fld qword [esp + 0xc4]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutVectorDirection_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x4f
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x18c]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x419f77
lea eax, [esp + 0x194]
push str.PointSide
push eax
call fcn.005e8db0
add esp, 8
test eax, eax
je 0x419d73
sub esp, 0xc
lea edx, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x190]
push eax
mov ecx, esi
call fcn.004277f0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x51
call sub.mfc90.dll_Ordinal_580
mov edx, dword [esp + 0x184]
lea ecx, [esp + 0xd0]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x488], 0x52
call fcn.0041e710
fldz
mov eax, dword [esp + 0xd8]
fst qword [esp + 0x9c]
xor ebx, ebx
fst qword [esp + 0xa4]
fstp qword [esp + 0xac]
test eax, eax
jle 0x419d19
test ebx, ebx
jl 0x41a306
cmp ebx, eax
jge 0x41a306
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x84]
push ecx
push 0x62de34
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x419ce5
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x419d0d
cmp ebx, 1
jne 0x419cfa
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
jmp 0x419d0d
cmp ebx, 2
jne 0x419d0d
fld qword [esp + 0x84]
fstp qword [esp + 0xac]
mov eax, dword [esp + 0xd8]
inc ebx
cmp ebx, eax
jl 0x419ca0
fld qword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xbc]
fstp qword [eax + 8]
fld qword [esp + 0xc4]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutPointSide_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x51
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x184]
mov byte [esp + 0x480], 0x4c
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x419f77
lea edx, [esp + 0x194]
push str.VectorSide
push edx
call fcn.005e8db0
add esp, 8
test eax, eax
je 0x419ee3
sub esp, 0xc
lea eax, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.005e8e10
lea ecx, [esp + 0x194]
push ecx
mov ecx, esi
call fcn.004277f0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x480], 0x53
call sub.mfc90.dll_Ordinal_580
mov eax, dword [esp + 0x188]
lea edx, [esp + 0xd0]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x488], 0x54
call fcn.0041e710
fldz
mov eax, dword [esp + 0xd8]
fst qword [esp + 0x9c]
xor ebx, ebx
fst qword [esp + 0xa4]
fstp qword [esp + 0xac]
test eax, eax
jle 0x419e89
test ebx, ebx
jl 0x41a306
cmp ebx, eax
jge 0x41a306
mov ecx, dword [esp + 0xd4]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x84]
push edx
push 0x62de34
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test ebx, ebx
jne 0x419e55
fld qword [esp + 0x84]
fstp qword [esp + 0x9c]
jmp 0x419e7d
cmp ebx, 1
jne 0x419e6a
fld qword [esp + 0x84]
fstp qword [esp + 0xa4]
jmp 0x419e7d
cmp ebx, 2
jne 0x419e7d
fld qword [esp + 0x84]
fstp qword [esp + 0xac]
mov eax, dword [esp + 0xd8]
inc ebx
cmp ebx, eax
jl 0x419e10
fld qword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
sub esp, 0x18
mov eax, esp
fstp qword [eax]
fld qword [esp + 0xbc]
fstp qword [eax + 8]
fld qword [esp + 0xc4]
fstp qword [eax + 0x10]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutVectorSide_struct__BMB_3DVectorD_t_]
lea ecx, [esp + 0xd0]
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 0x419f77
lea eax, [esp + 0x194]
push str.Angle
push eax
call fcn.005e8db0
add esp, 8
test eax, eax
je 0x419f2e
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x84]
push ecx
push 0x62de34
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
fld qword [esp + 0x90]
add esp, 4
mov ecx, ebx
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutAngle_double_]
jmp 0x419f77
lea eax, [esp + 0x194]
push str.Radius
push eax
call fcn.005e8db0
add esp, 8
test eax, eax
je 0x419f77
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x84]
push ecx
push 0x62de34
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
fld qword [esp + 0x90]
add esp, 4
mov ecx, ebx
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBBendLine::PutRadius_double_]
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x10c], ecx
test ecx, ecx
jne 0x4198e0
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0xe8]
call dword [sym.imp.BMB_NX_C9.dll_public:_bool___thiscall_BMBBoard::AddBendLine_class_BMBBendLine__]
lea ecx, [esp + 0x168]
mov byte [esp + 0x480], 0x4b
call fcn.005e8710
lea ecx, [esp + 0x194]
mov byte [esp + 0x480], 0x2b
call fcn.005e8710
jmp 0x41a225
cmp eax, 6
jne 0x41a0a5
push 0xcc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x55
test eax, eax
je 0x41a022
mov edx, dword [0x67df8c]
push 0x62dc24
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 + 0x34]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x38], eax
jmp 0x41a02a
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x67df8c]
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, 2
jne 0x41a07a
mov eax, dword [edi + 0x68]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00427770
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x3c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push ebx
push edi
push edx
mov ecx, esi
call fcn.00412490
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xe4]
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_bool___thiscall_BMBBoard::AddSubArea_class_BMB2DConstraint__]
jmp 0x41a225
cmp eax, 7
jne 0x41a181
push 0xcc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x56
test eax, eax
je 0x41a0f8
mov ecx, dword [0x67df8c]
push 0x62dc24
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 + 0x34]
mov dword [eax], vtable.BMB2DConstraint.1.0
mov dword [eax + 0x6c], vtable.BMB2DConstraint.0
mov dword [esp + 0x38], eax
jmp 0x41a100
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x67df8c]
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
cmp eax, 2
jne 0x41a156
mov ecx, dword [edi + 0x68]
lea edx, [esp + 0x2c0]
mov dword [esp + 0x2c0], ecx
push edx
mov ecx, esi
call fcn.00427770
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x3c]
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DConstraint::PutHeight_float_]
mov eax, dword [esp + 0x38]
push 0
push 0
push 0
push ebx
push edi
push eax
mov ecx, esi
call fcn.00412490
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0xe8]
call dword [sym.imp.BMB_NX_C9.dll_public:_bool___thiscall_BMBBoard::AddSubArea_class_BMB2DConstraint__]
jmp 0x41a225
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x480], 0x57
test eax, eax
je 0x41a1c1
mov edx, dword [0x67df8c]
push edx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov eax, dword [esp + 0x34]
mov dword [eax], vtable.BMBDrawing.1.0
mov dword [eax + 0x6c], vtable.BMBDrawing.0
mov dword [esp + 0x38], eax
jmp 0x41a1c9
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
inc dword [0x67df8c]
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.00412490
mov ecx, dword [esp + 0x6c]
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 eax, ax
push eax
mov ecx, esi
call fcn.0040c0d0
test eax, eax
je 0x41a225
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::AddSymbol_class_BMBSymbol__]
mov ecx, dword [0x67df80]
call fcn.00405c30
mov eax, dword [esp + 0x78]
inc eax
cmp eax, dword [esp + 0xf0]
mov dword [esp + 0x78], eax
jl 0x417ef0
lea ecx, [esp + 0x110]
call fcn.004b7750
lea ecx, [esp + 0x110]
call fcn.004f32d0
test eax, eax
jne 0x417dc2
lea ecx, [esp + 0x110]
mov byte [esp + 0x480], 2
call fcn.004ed1b0
lea ecx, [esp + 0x250]
mov byte [esp + 0x480], 1
call fcn.005e8710
mov eax, dword [esp + 0x1a0]
inc eax
cmp eax, dword [esp + 0xfc]
mov dword [esp + 0x1a0], eax
jl 0x415c81
add esi, 0x308
mov ecx, esi
call fcn.00513f80
mov ecx, esi
call fcn.005ee340
lea ecx, [esp + 0xfc]
mov byte [esp + 0x480], 0
call fcn.005ee4c0
lea ecx, [esp + 0xf0]
mov dword [esp + 0x480], 0xffffffff
call fcn.005ee4c0
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.005f6e10
int3