Function at 0x41dde0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60f186
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x48]
call fcn.00405fd0
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], 0
call fcn.004b7680
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 1
call fcn.004b76a0
lea ecx, [esp + 0x2c]
call fcn.004f32d0
test eax, eax
je 0x41e3c8
nop
lea ecx, [esp + 0x2c]
call fcn.004f32d0
mov esi, eax
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x41de88
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 5
je 0x41e3ae
mov ecx, esi
call fcn.004a3cd0
mov ecx, eax
call fcn.00471270
mov ebx, eax
test ebx, ebx
je 0x41e3ae
mov ecx, dword [edi + 0x48]
push 3
call fcn.004dee40
cmp ebx, eax
jne 0x41dee9
cmp word [edi + 0x254], 2
jne 0x41dee9
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.00407170
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x4c]
mov ebx, eax
call fcn.005ee1f0
mov dword [eax], ebx
jmp 0x41df04
push 0
lea edx, [esp + 0x4c]
push edx
lea ecx, [edi + 0x100]
push ebx
call fcn.00406780
test eax, eax
je 0x41e3ae
xor eax, eax
cmp dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jle 0x41e3ae
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov ebx, dword [eax + ecx*4]
push ebx
mov ecx, edi
call fcn.0040b070
cmp eax, 1
je 0x41e39b
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 0xe
je 0x41e374
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 0xf
je 0x41e374
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 6
je 0x41df82
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 7
je 0x41df82
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
cmp eax, 8
jne 0x41dfda
cmp dword [edi + 0x260], 0
je 0x41e39b
cmp dword [edi + 0x264], 2
je 0x41e39b
mov edx, dword [esi]
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
test eax, eax
je 0x41dfd2
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push eax
mov ecx, edi
call fcn.0041af70
cmp eax, 1
jne 0x41e39b
cmp byte [edi + 0x290], al
jne 0x41e39b
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x3c]
call fcn.005e8490
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea ecx, [edi + 0x100]
mov byte [esp + 0x68], 2
call fcn.004070d0
push ebx
lea ecx, [edi + 0x100]
call fcn.00406470
lea edx, [esp + 0x3c]
push str.Hole
push edx
mov byte [esp + 0x1f], al
call fcn.005e8db0
add esp, 8
test eax, eax
jne 0x41e02a
cmp byte [esp + 0x17], 2
jne 0x41e100
cmp dword [edi + 0x260], 0
jne 0x41e046
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005e8710
jmp 0x41e39b
cmp dword [edi + 0x264], 2
jne 0x41e062
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005e8710
jmp 0x41e39b
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp eax, 9
jne 0x41e0d2
mov eax, dword [edi + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.0042ea80
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 3
call fcn.0042ed90
push eax
mov ecx, edi
call fcn.0041af70
cmp eax, 1
jne 0x41e0b1
cmp byte [edi + 0x290], al
jne 0x41e0b1
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.004ed1b0
jmp 0x41e0f8
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.004ed1b0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005e8710
jmp 0x41e39b
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
push eax
mov ecx, edi
call fcn.0041af70
cmp eax, 1
jne 0x41e033
cmp byte [edi + 0x290], al
jne 0x41e033
mov dword [esp + 0x1c], 1
lea eax, [edi + 0x130]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.005e8dd0
add esp, 8
test eax, eax
jne 0x41e213
lea edx, [edi + 0x13c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.005e8dd0
add esp, 8
test eax, eax
jne 0x41e213
mov eax, 1
cmp dword [edi + 0x2ac], eax
jne 0x41e14f
cmp dword [esp + 0x1c], eax
jne 0x41e364
cmp dword [edi + 0x2c4], 2
jne 0x41e16a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], al
call fcn.005e8710
jmp 0x41e39b
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 0x41e1a1
mov ecx, dword [0x67df8c]
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 0x41e1a3
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 0x41e1c1
call fcn.004de490
jmp 0x41e1c6
call fcn.0046cfe0
mov edx, dword [ebp + 8]
push 0
push edx
push eax
mov eax, dword [esp + 0x24]
push ebx
push eax
push esi
mov ecx, edi
call fcn.00412490
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
test eax, eax
jne 0x41e1fe
test esi, esi
je 0x41e312
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x41e312
mov ecx, dword [ebp + 0xc]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBFootprint::AddSymbol_class_BMBSymbol__]
inc dword [0x67df8c]
jmp 0x41e360
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 0x41e27a
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 0x41e336
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x41e276
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 0x41e332
inc edi
cmp edi, dword [esp + 0x24]
jl 0x41e250
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 0x41e2b8
mov eax, dword [0x67df8c]
mov ecx, eax
inc eax
push ecx
mov ecx, esi
mov dword [0x67df8c], 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 0x41e2ba
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 0x41e2d8
call fcn.004de490
jmp 0x41e2dd
call fcn.0046cfe0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
push 1
push ecx
push eax
push ebx
push edx
push esi
mov ecx, edi
call fcn.00412490
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBElement::Count2DShape_void_]
test eax, eax
jne 0x41e326
test esi, esi
je 0x41e30c
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
dec dword [0x67df8c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005e8710
mov esi, dword [esp + 0x18]
jmp 0x41e39b
mov ecx, dword [ebp + 0xc]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBFootprint::AddSymbol_class_BMBSymbol__]
jmp 0x41e360
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x41e346
call fcn.004de490
jmp 0x41e34b
call fcn.0046cfe0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
push 1
push ecx
push eax
push ebx
push edx
push esi
mov ecx, edi
call fcn.00412490
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.005e8710
jmp 0x41e39b
mov ecx, dword [ebp + 8]
test byte [ecx + 0x3c], 2
je 0x41e384
call fcn.004de490
jmp 0x41e389
call fcn.0046cfe0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push eax
push ebx
push esi
push edx
mov ecx, edi
call fcn.00411e50
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
jl 0x41df18
lea ecx, [esp + 0x2c]
call fcn.004b76d0
lea ecx, [esp + 0x2c]
call fcn.004f32d0
test eax, eax
jne 0x41de50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0
call fcn.004ed1b0
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xffffffff
call fcn.005ee4c0
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