Function at 0x40fd80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x432918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x402
call sub.MFC42u.DLL_CWnd::GetDlgItem
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CClientDC::CClientDC
push 0x402
mov ecx, esi
mov dword [esp + 0x80], 0
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CDC::CDC
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 1
call fcn.00401e60
mov dword [esp + 0x10], 0x435368
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
mov byte [esp + 0x7c], 2
and eax, edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
sub eax, ebp
sub ecx, ebx
push eax
mov eax, dword [esp + 0x50]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea edx, [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x30]
mov ebx, eax
call sub.MFC42u.DLL_CDC::FillSolidRect_1
mov eax, dword [esi + 0x454]
test eax, eax
je 0x40ff59
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::CDC
mov esi, dword [esi + 0x454]
mov byte [esp + 0x7c], 3
push esi
call sub.MFC42u.DLL_CGdiObject::FromHandle
mov ebp, dword [esp + 0x4c]
mov esi, eax
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
and eax, ebp
push eax
call edi
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CDC::Attach
test esi, esi
jne 0x40fec0
xor eax, eax
jmp 0x40fec3
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov edx, dword [esi + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x18
push edx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub eax, esi
cmp ecx, eax
jle 0x40fef9
mov ecx, eax
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
sub eax, ebp
cmp dword [esp + 0x64], eax
jle 0x40ff0b
mov edx, eax
lea eax, [esp + 0x38]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x44]
push 0
push eax
mov eax, dword [esp + 0x3c]
push edx
push ecx
push ebp
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
je 0x40ff37
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x3c]
push edi
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::DeleteDC
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.0042ec9a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
sub edx, eax
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edi
push 0
push 0
push eax
push ecx
push edx
mov edx, dword [esp + 0x64]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
jne 0x40ff9e
xor eax, eax
jmp 0x40ffa1
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x30]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CDC::DeleteDC
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x434ab8
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 4
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0x434aa4
mov byte [esp + 0x7c], 0
call fcn.0042ec9a
lea ecx, [esp + 0x48]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0042ec82
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret