Function at 0x40cd50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a584
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4c6b0c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.dwgR::processDwg___start_processing_dwg_n
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0xd4], 0
call fcn.00460470
mov ecx, eax
mov dword [esp + 0xd4], 0xffffffff
call fcn.004601e0
lea ecx, [esp + 0x1c]
call fcn.0044e620
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0xbc], 1
call eax
mov bl, al
mov byte [esp + 0x13], bl
test bl, bl
jne 0x40cdfc
mov dword [esi + 4], 6
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test bl, bl
je 0x40ce1b
test al, al
jne 0x40ce1b
mov dword [esi + 4], 8
mov byte [esp + 0x13], al
mov bl, al
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
test bl, bl
je 0x40ce3a
test al, al
jne 0x40ce3a
mov dword [esi + 4], 7
mov byte [esp + 0x13], al
mov bl, al
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x1c]
push eax
call edx
test bl, bl
je 0x40ce5c
test al, al
jne 0x40ce5c
mov dword [esi + 4], 9
mov byte [esp + 0x13], al
mov ecx, dword [esi + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x1c]
push edx
call eax
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x7c]
mov ecx, dword [ecx]
mov edi, dword [eax + 0x64]
add eax, 0x64
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + 0x7c]
add eax, 0x64
mov eax, dword [eax]
test edi, edi
je 0x40ce94
cmp edi, eax
je 0x40ce9a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x40cede
test edi, edi
jne 0x40ceda
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x40ceb9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 8]
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.0040bcb0
mov edi, dword [esp + 0x14]
jmp 0x40ce81
mov edi, dword [edi]
jmp 0x40ceaa
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x9c]
mov ecx, dword [ecx]
mov edi, dword [eax + 0x84]
add eax, 0x84
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
lea esp, [esp]
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + 0x9c]
add eax, 0x84
mov eax, dword [eax]
test edi, edi
je 0x40cf18
cmp edi, eax
je 0x40cf1e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x40cf62
test edi, edi
jne 0x40cf5e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x40cf3d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 0xc]
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.0040bcb0
mov edi, dword [esp + 0x14]
jmp 0x40cf00
mov edi, dword [edi]
jmp 0x40cf2e
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0xdc]
mov ecx, dword [ecx]
mov edi, dword [eax + 0xc4]
add eax, 0xc4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + 0xdc]
add eax, 0xc4
mov eax, dword [eax]
test edi, edi
je 0x40cf98
cmp edi, eax
je 0x40cf9e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x40cfe2
test edi, edi
jne 0x40cfde
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x40cfbd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 0x18]
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.0040bcb0
mov edi, dword [esp + 0x14]
jmp 0x40cf80
mov edi, dword [edi]
jmp 0x40cfae
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0xfc]
mov ecx, dword [ecx]
mov edi, dword [eax + 0xe4]
add eax, 0xe4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + 0xfc]
add eax, 0xe4
mov eax, dword [eax]
test edi, edi
je 0x40d018
cmp edi, eax
je 0x40d01e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x40d062
test edi, edi
jne 0x40d05e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x40d03d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 0x10]
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.0040bcb0
mov edi, dword [esp + 0x14]
jmp 0x40d000
mov edi, dword [edi]
jmp 0x40d02e
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x11c]
mov ecx, dword [ecx]
mov edi, dword [eax + 0x104]
add eax, 0x104
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + 0x11c]
add eax, 0x104
mov eax, dword [eax]
test edi, edi
je 0x40d098
cmp edi, eax
je 0x40d09e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x40d0e2
test edi, edi
jne 0x40d0de
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x40d0bd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 0x14]
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.0040bcb0
mov edi, dword [esp + 0x14]
jmp 0x40d080
mov edi, dword [edi]
jmp 0x40d0ae
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x15c]
mov ecx, dword [ecx]
mov edi, dword [eax + 0x144]
add eax, 0x144
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + 0x15c]
add eax, 0x144
mov eax, dword [eax]
test edi, edi
je 0x40d118
cmp edi, eax
je 0x40d11e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x40d162
test edi, edi
jne 0x40d15e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x40d13d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 0x1c]
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.0040bcb0
mov edi, dword [esp + 0x14]
jmp 0x40d100
mov edi, dword [edi]
jmp 0x40d12e
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [esi + 0x44]
mov edx, dword [edx + 0x20]
push eax
call edx
cmp byte [esp + 0x13], 0
je 0x40d186
test al, al
jne 0x40d186
mov dword [esi + 4], 0xa
mov byte [esp + 0x13], al
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
mov edx, dword [esi + 0x44]
mov eax, dword [eax + 0x24]
push edx
call eax
cmp byte [esp + 0x13], 0
je 0x40d1aa
test al, al
jne 0x40d1aa
mov dword [esi + 4], 0xb
mov byte [esp + 0x13], al
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [esi + 0x44]
mov edx, dword [edx + 0x28]
push eax
call edx
cmp byte [esp + 0x13], 0
je 0x40d1ce
test al, al
jne 0x40d1ce
mov dword [esi + 4], 0xc
mov byte [esp + 0x13], al
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], 4
call fcn.00403560
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004081b0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0046980b
mov esp, ebp
pop ebp
ret