Function at 0x40a470
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fc8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0xc]
sub ecx, 1
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
sub ecx, 2
mov edx, dword [ebp + 0x1c]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xf0]
push ecx
push 1
push 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CPen::CPen
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
add edx, 1
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [ebp - 0x2c]
call fcn.004030f0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
push 0xe0e0e0
lea ecx, [ebp - 0x2c]
call fcn.00403150
push eax
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::FillSolidRect
push 0
push 1
push 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CPen::CPen
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, 1
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
add eax, 1
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, 1
push eax
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
add edx, 1
push edx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x44
mov edx, dword [ebp + 0x20]
cmp dword [edx + ecx + 0x30], 0
jle 0x40a8f9
lea ecx, [ebp - 0x44]
call fcn.004030f0
lea ecx, [ebp - 0x54]
call fcn.004030f0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x40], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x44]
add eax, 2
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x44]
call fcn.00403110
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x44
mov edx, dword [ebp + 0x20]
imul eax, dword [edx + ecx + 0x30]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xfc]
push edx
lea ecx, [ebp - 0x44]
call fcn.00403150
push eax
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::FillSolidRect
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x44
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + eax + 0x38], 0
je 0x40a8f9
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x44
mov eax, dword [ebp + 0x20]
lea ecx, [eax + edx + 0x34]
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040ea08
lea ecx, [ebp - 0x60]
call fcn.00402fb0
test eax, eax
je 0x40a7c1
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x44
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + edx + 0x30]
push ecx
push str._d__
lea edx, [ebp - 0x5c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40a7e4
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x44
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx + eax + 0x30]
push edx
lea ecx, [ebp - 0x60]
call fcn.00401a60
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 1
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SetBkMode
lea ecx, [ebp - 0x70]
call fcn.004030f0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x70], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x6c], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x68], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x64], eax
push 1
push 1
lea ecx, [ebp - 0x70]
call fcn.004064a0
mov ecx, dword [ebp - 0x6c]
add ecx, 1
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x78]
call fcn.0040e290
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x78]
call fcn.0040e330
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SelectClipRgn
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x38]
push 0x25
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0040e3a0
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040e330
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SelectClipRgn
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [edx + 0x38]
push 0x25
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0040e3a0
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CGdiObject::DeleteObject
push 0
mov ecx, dword [ebp + 0x10]
call sub.MFC42.DLL_CDC::SelectClipRgn
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0040e300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00406530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c