Function at 0x40be80
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ace0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov esi, ecx
push 8
call sub.MFC42.DLL_operatornew
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x40bebe
mov edi, eax
mov dword [eax + 4], ebp
mov dword [eax], 0x42ebf8
mov dword [esp + 0xc], edi
jmp 0x40bec4
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x81
push 2
push 0x81
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00429014
cmp ebx, ebp
mov dword [esp + 0x34], ebp
jne 0x40bf0c
xor eax, eax
jmp 0x40bf0f
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::Attach
cmp edi, ebp
jne 0x40bf28
xor eax, eax
jmp 0x40bf2b
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ebp, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x34], 1
cmp eax, 1
je 0x40c101
cmp eax, 2
jne 0x40c101
mov ebp, dword [esp + 0x40]
mov eax, dword [esi + 0xab4]
mov ecx, dword [esi + 0xabc]
mov edi, ebp
sub edi, eax
lea eax, [esp + 0x1c]
sub ecx, ebp
mov edx, dword [esi + 0xab8]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x24]
push 7
push 3
push 0xbd
push 0x12
push eax
push 7
push ecx
push edx
mov edx, dword [ebx + 4]
push ebp
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
lea eax, [esp + 0x1c]
mov ecx, dword [esi + 0xab8]
neg eax
mov edx, dword [esi + 0xab4]
push 0xcc0020
sbb eax, eax
push 7
and eax, dword [esp + 0x28]
push 3
push 0xbd
push 0xa
push eax
mov eax, dword [ebx + 4]
push 7
push edi
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp edi, 8
jl 0x40c07d
cmp edi, 0x6c
jl 0x40c037
mov ecx, dword [esi + 0xab4]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, dword [esi + 0xab8]
add ecx, 0x64
push 0xcc0020
neg eax
sbb eax, eax
push 0xc5
and eax, edi
push 0xa
push eax
push 7
push 0x10
push edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esi + 0xc10], 0x64
jmp 0x40c0be
mov eax, dword [esi + 0xab4]
mov edi, dword [esp + 0x20]
sub ebp, eax
mov edx, dword [esi + 0xab8]
push 0xcc0020
push 0xc5
lea ecx, [ebp - 8]
push 0xa
mov dword [esi + 0xc10], ecx
add ecx, eax
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, edi
push eax
push 7
push 0x10
push edx
mov edx, dword [ebx + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40c0be
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov ecx, dword [esi + 0xab8]
mov edx, dword [esi + 0xab4]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebp
push 0xc5
push 0xa
push eax
mov eax, dword [ebx + 4]
push 7
push 0x10
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esi + 0xc10], 0
mov ecx, dword [esi + 0xc10]
push ecx
lea ecx, [esi + 0xe5c]
call fcn.00423670
mov edx, dword [esi + 0xc10]
lea eax, [esp + 0x14]
push edx
push 0x4376cc
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
lea ecx, [esi + 0xe14]
call fcn.004283b0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
test ebp, ebp
pop ebx
jne 0x40c10a
xor eax, eax
jmp 0x40c10d
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::DeleteObject
test edi, edi
je 0x40c142
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc