Function at 0x427bf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x613826
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x682d00]
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.005f1fa0
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], esi
call fcn.004ba9c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 1
call fcn.004ba9e0
lea ecx, [esp + 0x2c]
call fcn.004baa40
test eax, eax
je 0x4281e4
lea ecx, [esp + 0x2c]
call fcn.004baa40
mov esi, eax
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00479f10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x427c99
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 5
je 0x4281ca
mov ecx, esi
call fcn.004a7a50
mov ecx, eax
call fcn.00475ce0
mov ebx, eax
test ebx, ebx
je 0x4281ca
mov ecx, dword [edi + 0x48]
push 3
call fcn.004e1bd0
cmp ebx, eax
jne 0x427cfa
cmp word [edi + 0x268], 2
jne 0x427cfa
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.00407210
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x4c]
mov ebx, eax
call fcn.005f1b40
mov dword [eax], ebx
jmp 0x427d17
push 1
push 0
lea edx, [esp + 0x50]
push edx
lea ecx, [edi + 0x100]
push ebx
call fcn.00406800
test eax, eax
je 0x4281ca
xor eax, eax
cmp dword [esp + 0x48], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
jle 0x4281ca
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov ebx, dword [eax + ecx*4]
push ebx
mov ecx, edi
call fcn.0040b5c0
cmp eax, 1
je 0x4281b7
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 0xe
je 0x428187
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 0xf
je 0x428187
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 6
je 0x427d95
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 7
je 0x427d95
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 8
jne 0x427ded
cmp dword [edi + 0x274], 0
je 0x4281b7
cmp dword [edi + 0x278], 2
je 0x4281b7
mov edx, dword [esi]
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
test eax, eax
je 0x427de5
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push eax
mov ecx, edi
call fcn.0041c310
cmp eax, 1
jne 0x4281b7
cmp byte [edi + 0x2a4], al
jne 0x4281b7
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x3c]
call fcn.005ebb00
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea ecx, [edi + 0x100]
mov byte [esp + 0x68], 2
call fcn.00407170
push ebx
lea ecx, [edi + 0x100]
call fcn.004064f0
lea edx, [esp + 0x3c]
push str.Hole
push edx
mov byte [esp + 0x1b], al
call fcn.005ec420
add esp, 8
test eax, eax
jne 0x427e3d
cmp byte [esp + 0x13], 2
jne 0x427f13
cmp dword [edi + 0x274], 0
jne 0x427e59
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ebd80
jmp 0x4281b7
cmp dword [edi + 0x278], 2
jne 0x427e75
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ebd80
jmp 0x4281b7
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp eax, 9
jne 0x427ee5
mov eax, dword [edi + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.004326a0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 3
call fcn.004329b0
push eax
mov ecx, edi
call fcn.0041c310
cmp eax, 1
jne 0x427ec4
cmp byte [edi + 0x2a4], al
jne 0x427ec4
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.0051a4a0
jmp 0x427f0b
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.0051a4a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ebd80
jmp 0x4281b7
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
push eax
mov ecx, edi
call fcn.0041c310
cmp eax, 1
jne 0x427e46
cmp byte [edi + 0x2a4], al
jne 0x427e46
mov dword [esp + 0x18], 1
lea eax, [edi + 0x138]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.005ec440
add esp, 8
test eax, eax
jne 0x428023
lea edx, [edi + 0x144]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.005ec440
add esp, 8
test eax, eax
jne 0x428023
mov eax, 1
cmp dword [edi + 0x2c0], eax
jne 0x427f62
cmp dword [esp + 0x18], eax
jne 0x428177
mov eax, dword [edi + 0x2d8]
cmp eax, 2
je 0x427e46
cmp eax, 4
je 0x427e46
push 0x7c
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 0x427fb1
mov ecx, dword [0x68303c]
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 + 0x6c], vtable.BMBSymbol.1.0
jmp 0x427fb3
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 0x427fd1
call fcn.0049b990
jmp 0x427fd6
call fcn.0049b960
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.00413340
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
test eax, eax
jne 0x42800e
test esi, esi
je 0x428122
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x428122
mov ecx, dword [ebp + 0xc]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBFootprint::AddSymbol_class_BMBSymbol__]
inc dword [0x68303c]
jmp 0x428173
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 0x42808a
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 0x428149
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x428086
nop
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 0x428145
inc edi
cmp edi, dword [esp + 0x24]
jl 0x428060
mov edi, dword [esp + 0x28]
push 0x7c
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 0x4280c8
mov eax, dword [0x68303c]
mov ecx, eax
inc eax
push ecx
mov ecx, esi
mov dword [0x68303c], eax
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::constructor_int_]
mov dword [esi], vtable.BMBSymbol.0
mov dword [esi + 0x6c], vtable.BMBSymbol.1.0
jmp 0x4280ca
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 0x4280e8
call fcn.0049b990
jmp 0x4280ed
call fcn.0049b960
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.00413340
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
test eax, eax
jne 0x428139
test esi, esi
je 0x42811c
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
dec dword [0x68303c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ebd80
mov esi, dword [esp + 0x14]
jmp 0x4281b7
mov ecx, dword [ebp + 0xc]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBFootprint::AddSymbol_class_BMBSymbol__]
jmp 0x428173
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x428159
call fcn.0049b990
jmp 0x42815e
call fcn.0049b960
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.00413340
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005ebd80
jmp 0x4281b7
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x428197
call fcn.0049b990
jmp 0x42819c
call fcn.0049b960
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.00424120
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
jl 0x427d2b
lea ecx, [esp + 0x2c]
call fcn.004baa10
lea ecx, [esp + 0x2c]
call fcn.004baa40
test eax, eax
jne 0x427c61
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0
call fcn.0051a4a0
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xffffffff
call fcn.005f1f90
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