Function at 0x487d10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52acc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], vtable.CBrush.0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], eax
call fcn.004fe082
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 1
mov eax, dword [esi + 0x18]
push eax
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov ebp, dword [esi + 0x24]
lea ebx, [esi + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x28], edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [edi + 0x74]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CDC::SelectObject_2
lea edx, [edi + 0x64]
lea ecx, [esp + 0x3c]
push edx
mov dword [edi + 0x44], eax
call sub.MFC42.DLL_CDC::SelectObject
test edi, edi
mov dword [edi + 0x48], eax
jne 0x487dba
xor eax, eax
jmp 0x487dbd
mov eax, dword [edi + 0x20]
push str.BUTTON
push eax
lea ecx, [esp + 0x24]
call fcn.004f3640
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 2
call fcn.004f36a0
test eax, eax
je 0x487e21
call fcn.004f4540
test eax, eax
je 0x487e3b
mov eax, dword [esi + 0x10]
mov ecx, 1
test cl, al
je 0x487df8
mov ecx, 3
test al, 0x40
je 0x487e01
mov ecx, 2
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
push 0
push ebx
and eax, edx
push ecx
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.004f3940
jmp 0x487e3b
mov eax, dword [esi + 0x10]
and eax, 1
shl eax, 9
or al, 0x10
push eax
mov eax, dword [esp + 0x44]
push 4
push ebx
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
lea ecx, [edi + 0x5c]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esp + 0x10]
lea ebx, [ebp - 0xa]
lea ecx, [esp + 0x3c]
lea eax, [edx + 4]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x18]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x20]
lea eax, [ecx - 4]
lea ecx, [esp + 0x3c]
push eax
push ebx
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CDC::LineTo
lea ebx, [edi + 0x54]
test ebx, ebx
je 0x487e96
mov eax, dword [ebx + 4]
test eax, eax
je 0x487e96
mov edx, dword [esp + 0x40]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
lea eax, [ebp - 0xb]
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
lea eax, [ebp - 0xb]
push eax
call sub.MFC42.DLL_CDC::LineTo
test byte [esi + 0x10], 4
je 0x487ed8
test ebx, ebx
je 0x487ef2
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x487ef2
mov ecx, dword [esp + 0x40]
push ebx
push ecx
jmp 0x487eec
add edi, 0x4c
test edi, edi
je 0x487ef2
mov edi, dword [edi + 4]
test edi, edi
je 0x487ef2
mov edx, dword [esp + 0x40]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
lea ebx, [ebp - 4]
cdq
sub eax, edx
lea ecx, [esp + 0x3c]
mov edi, eax
sar edi, 1
lea eax, [edi - 1]
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x20]
lea edx, [ebp - 9]
push ecx
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp - 5]
push edi
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CDC::MoveTo
lea ecx, [ebp - 8]
push edi
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::LineTo
test byte [esi + 0x10], 4
je 0x487f8b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
push 0xffffff
push edx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x40]
push 0xffffff
lea eax, [ebp - 5]
push edi
push eax
push ecx
call esi
mov eax, dword [esp + 0x40]
inc edi
push 0xffffff
lea edx, [ebp - 6]
push edi
push edx
push eax
jmp 0x487f9e
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
inc edi
push 0
lea ecx, [ebp - 6]
push edi
push ecx
push edx
call esi
mov edi, dword [esp + 0x5c]
test byte [edi + 0x10], 4
jne 0x487fdc
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ebp, 0xfffffff1
push ecx
mov ecx, dword [esp + 0x44]
lea eax, [edx + 4]
push ebp
push eax
mov eax, dword [esp + 0x30]
add eax, 5
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
test byte [edi + 0x10], 0x10
je 0x488049
mov edx, dword [esp + 0x24]
lea edi, [edx + 3]
cmp edi, ebx
mov dword [esp + 0x5c], edi
jge 0x488019
mov eax, dword [esp + 0x10]
lea ebp, [eax + 3]
mov ecx, dword [esp + 0x40]
push 0
push ebp
push edi
push ecx
call esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
push 0
push edx
push edi
push eax
call esi
add edi, 2
cmp edi, ebx
jl 0x487ff8
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea edi, [ecx + 3]
cmp edi, ebp
jge 0x488049
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
push 0
push edi
push edx
push eax
call esi
mov ecx, dword [esp + 0x40]
push 0
push edi
push ebx
push ecx
call esi
add edi, 2
cmp edi, ebp
jl 0x488028
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
mov edx, dword [esi + 0x44]
push edx
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::Detach
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.004f3660
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CDC::CDC
mov dword [esp + 0x34], vtable.CGdiObject.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4