Function at 0x406190
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x413708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, ecx
push 0x2e
call edi
push 0x2d
mov ebx, eax
call edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
add eax, 0xffffffec
push 0x78
push eax
push 0xa
lea ecx, [esp + 0x34]
push 0xa
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov edi, eax
test edi, edi
je 0x4062f2
mov eax, dword [edi]
lea ecx, [esi + 0x12c]
push ecx
mov ecx, edi
call dword [eax + 0x30]
push 0x41a430
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x88]
mov dword [esp + 0x80], 0
lea eax, [edx - 1]
test eax, eax
jle 0x406244
mov ebp, eax
push 0x41a42c
lea ecx, [esp + 0x14]
call fcn.00412a62
dec ebp
jne 0x406233
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
lea ebp, [esp + 0x28]
push 0xd00
mov ecx, dword [eax - 8]
push ebp
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x8c]
add eax, ecx
lea edx, [esi + 0x128]
mov dword [esp + 0x30], eax
push 0x41a428
lea eax, [esp + 0x90]
push edx
push eax
lea ebp, [ebx + ebx*2]
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add ebp, ecx
lea eax, [edx + eax*4]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4062f6
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edi, dword [sym.imp.USER32.dll_SetRect]
lea eax, [ecx + ebp + 0xa]
mov ebp, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
add ecx, 0xa
push eax
push ecx
sub eax, ebp
lea ecx, [esp + 0x44]
push eax
push ecx
call edi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub edx, ebx
add eax, 0xfffffff6
push edx
mov edx, dword [esp + 0x2c]
add ebx, ecx
push eax
push ebx
lea eax, [esp + 0x74]
push edx
push eax
call edi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x34]
sub ecx, eax
lea eax, [esp + 0x48]
sub edi, ebp
lea ebx, [ecx + edx + 0x1e]
mov ecx, dword [esi + 0x20]
push eax
push ecx
add edi, 0x14
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [esp + 0x5c]
add ecx, edi
mov edi, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x54]
sub edx, edi
add edx, ebx
push 1
add ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], eax
sub eax, ecx
push eax
push edx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x70]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0xa4]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x40]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0xe4]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x64]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 8