Function at 0x403a50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x411ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x30]
call fcn.0040973e
mov esi, dword [esp + 0x78]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x70], ebp
jne 0x403a89
xor eax, eax
jmp 0x403a8c
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::Attach
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x413634
push 0x86
push 2
push 0x86
mov byte [esp + 0x7c], 1
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x34]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [edi + 0x4ec]
mov ebx, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x4f4]
mov byte [esp + 0x70], 3
cmp eax, ebp
jge 0x403c6b
mov ecx, dword [esp + 0x58]
mov eax, 0x55555556
imul ecx
mov ecx, dword [edi + 0x4f8]
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [esp + 0x30]
add ecx, 0xf
mov ebx, dword [edi + 0x4fc]
neg eax
sbb eax, eax
lea ebp, [edx + edx]
and eax, dword [esp + 0x34]
push 0xcc0020
push ebp
push 0
push eax
mov eax, dword [esi + 4]
push edx
mov edx, dword [esp + 0x68]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CBrush::CBrush
lea ebp, [edi + 0x508]
push 0x14
mov ecx, ebp
push 0xc8
mov bl, 4
push 0xffffffffffffffec
mov edx, dword [ecx]
push 0
mov dword [esp + 0x50], edx
mov byte [esp + 0x80], bl
mov eax, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x58], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CRect::DeflateRect
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_3
push 0x67
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], 5
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esi]
push 0xeec87d
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [edi + 0x70]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
lea edi, [esp + 0x40]
push 0x20
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [0x41a160]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push 0x20
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], bl
call fcn.004096fc
mov dword [esp + 0x28], 0x413620
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x70], 3
jmp 0x403e27
jne 0x403d16
mov ecx, dword [esp + 0x58]
mov eax, 0x55555556
imul ecx
mov ebp, dword [edi + 0x4fc]
mov ecx, dword [edi + 0x4f8]
mov eax, edx
add edi, 0x4f8
shr eax, 0x1f
add edx, eax
lea eax, [esp + 0x30]
add ecx, 0xf
push 0xcc0020
neg eax
sbb eax, eax
push edx
and eax, dword [esp + 0x3c]
push 0
push eax
mov eax, dword [esi + 4]
push edx
mov edx, dword [esp + 0x68]
push edx
push ebp
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x68
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esi]
push 0x1bad33
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push 0xf
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0xc]
push 0x64
mov dword [esp + 0x4c], ecx
push 0xf
push 0x46
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CRect::DeflateRect
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0x24
lea edi, [esp + 0x44]
mov ecx, dword [eax - 8]
jmp 0x403e1f
mov eax, dword [esi]
push 0x2a2d2c
mov ecx, esi
call dword [eax + 0x38]
push 0x66
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x58]
mov eax, 0x55555556
imul ecx
mov ecx, edx
lea eax, [esp + 0x30]
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [edi + 0x4f8]
add ecx, 0xf
mov ebp, dword [edi + 0x4fc]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x38]
push 0
push 0
push eax
mov eax, dword [esi + 4]
push edx
mov edx, dword [esp + 0x68]
push edx
push ebp
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x4f8]
mov ecx, dword [edi + 0x500]
mov ebp, dword [edi + 0x504]
mov edx, dword [edi + 0x4fc]
add eax, 0x50
sub ecx, 0x64
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], edx
mov edx, dword [esi]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax - 8]
lea ebp, [esp + 0x40]
push 0x24
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push CloseHandle
mov ecx, esi
call dword [eax + 0x38]
mov ecx, dword [edi + 0x4f4]
lea edx, [esp + 0x14]
push ecx
push 0x419288
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi + 0x4f8]
mov ecx, dword [edi + 0x500]
mov edx, dword [edi + 0x4fc]
mov edi, dword [edi + 0x504]
add eax, 0xa0
add esp, 0xc
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
sub ecx, 0x64
mov dword [esp + 0x44], edx
mov edx, dword [esi]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
mov ecx, dword [eax - 8]
push 0x24
lea edi, [esp + 0x44]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
test ebx, ebx
jne 0x403e3b
xor eax, eax
jmp 0x403e3e
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x34]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 2
call fcn.004096fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.004096fc
mov dword [esp + 0x20], 0x413620
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0x41360c
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4