Function at 0x406740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40aaa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CDC::CDC
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0xfc], ebx
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x94]
mov byte [esp + 0xfc], 2
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0xac]
mov byte [esp + 0xfc], 3
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [edi + 0xe0]
mov eax, dword [edi + 0xf4]
push eax
mov byte [esp + 0x100], 4
lea edx, [ecx + ecx - 1]
lea ecx, [esp + 0x78]
push edx
push ebx
call sub.MFC42.DLL_CPen::CPen
push 0xf0f0f0
push 1
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x108], 5
call sub.MFC42.DLL_CPen::CPen
push 0x141414
push 1
push ebx
lea ecx, [esp + 0x88]
mov byte [esp + 0x108], 6
call sub.MFC42.DLL_CPen::CPen
mov ecx, dword [edi + 0x130]
lea eax, [esp + 0xcc]
push eax
push 0x18
push ecx
mov byte [esp + 0x108], 7
call dword [sym.imp.GDI32.dll_GetObjectA]
fild dword [edi + 0xdc]
cmp dword [edi + 0x190], ebx
fmul dword [0x40d980]
je 0x406961
mov esi, dword [esp + 0xd0]
mov eax, 0x32
cmp esi, eax
jge 0x406860
mov ebp, esi
mov dword [esp + 0x48], ebp
jmp 0x406866
mov dword [esp + 0x48], eax
mov ebp, eax
mov ebx, dword [esp + 0xd4]
cmp ebx, eax
jge 0x406877
mov dword [esp + 0x4c], ebx
jmp 0x40687d
mov dword [esp + 0x4c], eax
mov ebx, eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [edi + 0x174]
sar eax, 1
sub edx, eax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul st(1)
fadd qword [0x40d978]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 0x178]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fmul st(1)
fadd qword [0x40d978]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
add edx, ebp
cmp edx, esi
jle 0x4068dd
sub esi, ebp
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0xd4]
lea edx, [eax + ebx]
cmp edx, ecx
jle 0x4068f3
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov eax, ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x406903
mov dword [esp + 0x24], 0
test eax, eax
jge 0x40690f
mov dword [esp + 0x10], 0
xor ebx, ebx
fild dword [esp + 0x48]
fmul st(1)
fadd qword [0x40d978]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x4c]
mov dword [esp + 0xa4], eax
fmul st(1)
fadd qword [0x40d978]
call sub.MSVCRT.dll__ftol
mov edx, dword [edi + 0x154]
mov dword [esp + 0x2c], eax
push edx
fstp st(0)
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x28], ebp
jne 0x406981
xor eax, eax
jmp 0x406984
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
jmp 0x406911
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CDC::Attach
cmp ebp, ebx
jne 0x4069a2
xor eax, eax
jmp 0x4069a5
mov eax, dword [ebp + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::Attach
cmp ebp, ebx
jne 0x4069ba
xor eax, eax
jmp 0x4069bd
mov eax, dword [ebp + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::Attach
cmp ebp, ebx
jne 0x4069d2
xor eax, eax
jmp 0x4069d5
mov eax, dword [ebp + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CDC::Attach
cmp ebp, ebx
jne 0x4069ed
xor ebp, ebp
jmp 0x4069f0
mov ebp, dword [ebp + 4]
push ebp
call esi
push eax
lea ecx, [esp + 0xb0]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [edi + 0x1f8]
cmp eax, ebx
je 0x406a1f
push eax
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
jmp 0x406a23
mov dword [esp + 0x50], ebx
mov ecx, dword [edi + 0x154]
push ebx
push ebx
push 0x173
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je 0x406a4d
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
jmp 0x406a51
mov dword [esp + 0x54], ebx
mov esi, dword [sym.imp.GDI32.dll_CreateBitmap]
push ebx
push 8
push 3
push 0x1e
push 0x14
call esi
push ebx
push 1
push 1
push 0x1e
push 0x14
mov ebp, eax
call esi
push 0
push 8
push 3
push 0x1e
push 0x14
mov ebx, eax
call esi
test ebp, ebp
mov esi, eax
je 0x406a97
mov eax, dword [esp + 0x68]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call ebp
mov dword [esp + 0x38], eax
jmp 0x406aa5
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], 0
test ebx, ebx
je 0x406aba
mov ecx, dword [esp + 0x98]
push ebx
push ecx
call ebp
mov dword [esp + 0x3c], eax
jmp 0x406ac2
mov dword [esp + 0x3c], 0
test esi, esi
je 0x406ad7
mov edx, dword [esp + 0xb0]
push esi
push edx
call ebp
mov dword [esp + 0x60], eax
jmp 0x406adf
mov dword [esp + 0x60], 0
push 0xff
push 4
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CBrush::CBrush
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
xor ebx, ebx
mov esi, 0x14
neg eax
sbb eax, eax
mov byte [esp + 0xfc], 8
and eax, ecx
mov ecx, dword [esp + 0x68]
push eax
lea eax, [esp + 0xc0]
push eax
push ecx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd4], esi
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xd0], esi
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x64]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [esp + 0x9c]
push ebx
push ebx
push eax
push esi
push esi
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [edi + 0xd8], 1
jne 0x406b8f
cmp dword [edi + 0xdc], 0x64
je 0x406b8f
push 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SetStretchBltMode
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x84]
push 0xcc0020
neg eax
push ecx
mov ecx, dword [esp + 0x18]
sbb eax, eax
push edx
mov edx, dword [esp + 0x30]
and eax, ebx
mov ebx, dword [esp + 0xb0]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push esi
push ebx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [edi + 0xf8]
cmp eax, 1
jne 0x406d09
mov ecx, dword [edi + 0xe0]
test ecx, ecx
jle 0x406c64
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectObject
push 0
lea edx, [esp + 0xa8]
push 0
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CDC::MoveTo
push 0
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
dec esi
lea ecx, [esp + 0x14]
push esi
push 0
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [ebx - 1]
push esi
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
push 0
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
push 0
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x10]
push eax
jmp 0x406cf6
cmp eax, 1
jne 0x406d09
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectObject
push 0
lea edx, [esp + 0xa8]
push 0
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CDC::MoveTo
push 0
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
dec esi
lea ecx, [esp + 0x14]
push esi
push 0
call sub.MFC42.DLL_CDC::LineTo
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ebp, [ebx - 1]
push esi
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
push 0
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectObject
push 0
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectObject
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0xe4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
mov ecx, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTopMost]
push 2
push esi
push ebx
push edx
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowPos
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push eax
mov eax, dword [edx + 4]
push esi
push ebx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x406d7c
mov ecx, dword [esp + 0x88]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x54]
test eax, eax
je 0x406d8c
mov edx, dword [esp + 0x18]
push eax
push edx
call ebp
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406da0
push eax
mov eax, dword [esp + 0x6c]
push eax
call ebp
mov esi, eax
jmp 0x406da2
xor esi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x406db9
mov ecx, dword [esp + 0x98]
push eax
push ecx
call ebp
mov ebx, eax
jmp 0x406dbb
xor ebx, ebx
mov eax, dword [esp + 0x60]
test eax, eax
je 0x406dd6
mov edx, dword [esp + 0xb0]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
jmp 0x406dd8
xor ebp, ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push ebx
call esi
push ebp
call esi
mov ebx, dword [esp + 0x88]
lea eax, [esp + 0x84]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
neg eax
sbb eax, eax
and eax, ebx
push eax
call esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, ecx
push eax
call esi
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x64]
neg eax
sbb eax, eax
and eax, edx
push eax
call esi
mov ebx, dword [esp + 0x98]
lea eax, [esp + 0x94]
neg eax
sbb eax, eax
and eax, ebx
push eax
call esi
mov ebp, dword [esp + 0xb0]
lea eax, [esp + 0xac]
neg eax
sbb eax, eax
and eax, ebp
push eax
call esi
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x20]
mov ecx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, 0x40c810
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x58]
mov byte [esp + 0xfc], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x40c7fc
mov dword [esp + 0x7c], edi
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x7c]
mov byte [esp + 0xfc], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x7c], esi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0xb
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x30], esi
mov dword [esp + 0x74], edi
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 0xc
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0xac]
mov dword [esp + 0x74], esi
mov byte [esp + 0xfc], 3
call fcn.00409b5e
lea ecx, [esp + 0x94]
mov byte [esp + 0xfc], 2
call fcn.00409b5e
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc], 1
call fcn.00409b5e
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 0
call fcn.00409b5e
lea ecx, [esp + 0x84]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00409b5e
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf0
ret