Function at 0x427f00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x615786
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x28], edi
xor esi, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], esi
call fcn.005f3af0
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], esi
call fcn.004bb7b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 1
call fcn.004bb7d0
lea ecx, [esp + 0x2c]
call fcn.004f69c0
test eax, eax
je 0x4284f9
lea ecx, [esp + 0x2c]
call fcn.004f69c0
mov esi, eax
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00475300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x427fa9
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 5
je 0x4284df
mov ecx, esi
call fcn.004a7c40
mov ecx, eax
call fcn.004754e0
mov ebx, eax
test ebx, ebx
je 0x4284df
mov ecx, dword [edi + 0x48]
push 3
call fcn.004e2900
cmp ebx, eax
jne 0x42800a
cmp word [edi + 0x268], 2
jne 0x42800a
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Hole
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [edi + 0x100]
call fcn.00407240
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x4c]
mov ebx, eax
call fcn.005f3cc0
mov dword [eax], ebx
jmp 0x428027
push 1
push 0
lea edx, [esp + 0x50]
push edx
lea ecx, [edi + 0x100]
push ebx
call fcn.004067f0
test eax, eax
je 0x4284df
xor eax, eax
cmp dword [esp + 0x48], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
jle 0x4284df
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov ebx, dword [eax + ecx*4]
push ebx
mov ecx, edi
call fcn.0040b5b0
cmp eax, 1
je 0x4284cc
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 0xe
je 0x42849c
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 0xf
je 0x42849c
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 6
je 0x4280a5
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 7
je 0x4280a5
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 8
jne 0x4280fd
cmp dword [edi + 0x274], 0
je 0x4284cc
cmp dword [edi + 0x278], 2
je 0x4284cc
mov edx, dword [esi]
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
test eax, eax
je 0x4280f5
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push eax
mov ecx, edi
call fcn.0041c6d0
cmp eax, 1
jne 0x4284cc
cmp byte [edi + 0x2a4], al
jne 0x4284cc
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x3c]
call fcn.005ed1b0
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea ecx, [edi + 0x100]
mov byte [esp + 0x68], 2
call fcn.004071a0
push ebx
lea ecx, [edi + 0x100]
call fcn.004064e0
lea edx, [esp + 0x3c]
push str.Hole
push edx
mov byte [esp + 0x1b], al
call fcn.005edad0
add esp, 8
test eax, eax
jne 0x42814d
cmp byte [esp + 0x13], 2
jne 0x428223
cmp dword [edi + 0x274], 0
jne 0x428169
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ed430
jmp 0x4284cc
cmp dword [edi + 0x278], 2
jne 0x428185
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ed430
jmp 0x4284cc
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp eax, 9
jne 0x4281f5
mov eax, dword [edi + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.00432b00
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 3
call fcn.00432e10
push eax
mov ecx, edi
call fcn.0041c6d0
cmp eax, 1
jne 0x4281d4
cmp byte [edi + 0x2a4], al
jne 0x4281d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.004f2200
jmp 0x42821b
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.004f2200
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ed430
jmp 0x4284cc
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
push eax
mov ecx, edi
call fcn.0041c6d0
cmp eax, 1
jne 0x428156
cmp byte [edi + 0x2a4], al
jne 0x428156
mov dword [esp + 0x18], 1
lea eax, [edi + 0x138]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.005edaf0
add esp, 8
test eax, eax
jne 0x428336
lea edx, [edi + 0x144]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.005edaf0
add esp, 8
test eax, eax
jne 0x428336
mov eax, 1
cmp dword [edi + 0x2c0], eax
jne 0x428272
cmp dword [esp + 0x18], eax
jne 0x42848c
mov eax, dword [edi + 0x2d8]
cmp eax, 2
je 0x428156
cmp eax, 4
je 0x428156
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0x60], 5
test esi, esi
je 0x4282c4
mov ecx, dword [0x686164]
push ecx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::constructor_int_]
mov dword [esi], vtable.BMBSymbol.0
mov dword [esi + 0x70], vtable.BMBSymbol.1.0
jmp 0x4282c6
xor esi, esi
push ebx
mov ecx, esi
mov byte [esp + 0x64], 2
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x4282e4
call fcn.00470ed0
jmp 0x4282e9
call fcn.004c1290
mov edx, dword [ebp + 8]
push 0
push edx
push eax
mov eax, dword [esp + 0x20]
push ebx
push eax
push esi
mov ecx, edi
call fcn.004136a0
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
test eax, eax
jne 0x428321
test esi, esi
je 0x428437
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x428437
mov ecx, dword [ebp + 0xc]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBFootprint::AddSymbol_class_BMBSymbol__]
inc dword [0x686164]
jmp 0x428488
mov esi, dword [ebp + 0xc]
push 0xe
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBFootprint::CountElement_unsigned_char_]
mov dword [esp + 0x24], eax
test eax, eax
je 0x42839c
dec eax
push eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBSymbol____thiscall_BMBFootprint::GetSymbol_int_]
mov esi, eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_short_int___thiscall_BMBSymbol::GetLayerNumber_void_]
movsx ecx, ax
cmp ecx, ebx
je 0x42845e
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x428398
mov ecx, dword [ebp + 0xc]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBSymbol____thiscall_BMBFootprint::GetSymbol_int_]
mov esi, eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_short_int___thiscall_BMBSymbol::GetLayerNumber_void_]
movsx edx, ax
cmp edx, ebx
je 0x42845a
inc edi
cmp edi, dword [esp + 0x24]
jl 0x428372
mov edi, dword [esp + 0x28]
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0x60], 4
test esi, esi
je 0x4283dd
mov eax, dword [0x686164]
mov ecx, eax
inc eax
push ecx
mov ecx, esi
mov dword [0x686164], eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::constructor_int_]
mov dword [esi], vtable.BMBSymbol.0
mov dword [esi + 0x70], vtable.BMBSymbol.1.0
jmp 0x4283df
xor esi, esi
push ebx
mov ecx, esi
mov byte [esp + 0x64], 2
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x4283fd
call fcn.00470ed0
jmp 0x428402
call fcn.004c1290
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
push 1
push ecx
push eax
push ebx
push edx
push esi
mov ecx, edi
call fcn.004136a0
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
test eax, eax
jne 0x42844e
test esi, esi
je 0x428431
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
dec dword [0x686164]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ed430
mov esi, dword [esp + 0x14]
jmp 0x4284cc
mov ecx, dword [ebp + 0xc]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBFootprint::AddSymbol_class_BMBSymbol__]
jmp 0x428488
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x42846e
call fcn.00470ed0
jmp 0x428473
call fcn.004c1290
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
push 1
push ecx
push eax
push ebx
push edx
push esi
mov ecx, edi
call fcn.004136a0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ed430
jmp 0x4284cc
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x4284ac
call fcn.00470ed0
jmp 0x4284b1
call fcn.004c1290
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push eax
mov ecx, edi
call fcn.00424470
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
jl 0x42803b
lea ecx, [esp + 0x2c]
call fcn.004bb800
lea ecx, [esp + 0x2c]
call fcn.004f69c0
test eax, eax
jne 0x427f71
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0
call fcn.004f2200
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xffffffff
call fcn.005f3b00
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8