Function at 0x405e20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x407b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
xor ebx, ebx
mov eax, 0x408234
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
push 0x41f00000
push 0x42c80000
mov byte [esp + 0x3c], 1
call fcn.00406230
call sub.MSVCRT.dll__ftol
mov dl, byte [esi + 8]
xor ecx, ecx
add al, dl
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
add al, 0x64
mov ch, al
mov eax, ecx
push eax
push 2
push ebx
call edi
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
push 0x41f00000
push 0x42c80000
mov ecx, esi
call fcn.00406230
call sub.MSVCRT.dll__ftol
mov cl, byte [esi + 8]
xor edx, edx
add al, cl
sub al, 0x56
mov dh, al
mov eax, edx
push eax
push 2
push ebx
call edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
fld dword [esi + 0x1c]
fmul dword [0x4082e4]
mov dword [esp + 0x10], eax
fsubr dword [esi + 0x30]
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x20]
fmul dword [0x4082e4]
mov ebp, eax
fsubr dword [esi + 0x2c]
call sub.MSVCRT.dll__ftol
mov ebx, eax
push ebp
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
fld dword [esi + 0x3c]
fmul dword [0x4082e4]
fsubr dword [esi + 0x50]
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x40]
fmul dword [0x4082e4]
push eax
fsubr dword [esi + 0x4c]
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x28]
push eax
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fld dword [esi + 0x3c]
fmul dword [0x4082e4]
fsubr dword [esi + 0x50]
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x40]
fmul dword [0x4082e4]
push eax
fsubr dword [esi + 0x4c]
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fld dword [esi + 0x30]
fsub dword [esi + 0x1c]
mov dword [esp + 0x54], eax
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x2c]
fsub dword [esi + 0x20]
push eax
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fld dword [esi + 0x30]
fsub dword [esi + 0x1c]
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x2c]
fsub dword [esi + 0x20]
push eax
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
fld dword [esi + 0x50]
fsub dword [esi + 0x3c]
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x4c]
fsub dword [esi + 0x40]
push eax
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x28]
push eax
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fld dword [esi + 0x50]
fsub dword [esi + 0x3c]
fadd dword [0x408264]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x4c]
fsub dword [esi + 0x40]
push eax
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x54]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
fld dword [esi + 0x50]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x4c]
mov edi, eax
call sub.MSVCRT.dll__ftol
push ebp
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40608d
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x50]
imul eax, ebp
add eax, ebx
mov dword [ecx + eax*4], 5
mov ebx, dword [esp + 0x54]
push edi
lea edx, [esp + 0x44]
push ebx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4060bc
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x50]
imul eax, edi
add eax, ebx
mov dword [ecx + eax*4], 5
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esi + 0x10]
sub esp, 0x10
inc eax
mov edx, esp
mov dword [esi + 0x10], eax
lea eax, [esi + 0x24]
fld dword [esi + 0x1c]
fadd dword [eax + 8]
mov dword [esp + 0x60], esp
sub esp, 0x10
mov dword [esp + 0x70], esp
fstp dword [eax + 8]
fld dword [esi + 0x20]
fadd dword [eax + 0xc]
fstp dword [eax + 0xc]
fld dword [esi + 0x18]
fadd dword [eax + 4]
fstp dword [eax + 4]
fld dword [esi + 0x3c]
fadd dword [esi + 0x4c]
fstp dword [esi + 0x4c]
fld dword [esi + 0x40]
fadd dword [esi + 0x50]
fstp dword [esi + 0x50]
fld dword [esi + 0x38]
fadd dword [esi + 0x48]
fstp dword [esi + 0x48]
mov ecx, dword [esi + 0x60]
add ecx, 0x14
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov dword [edx + 8], edi
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, esp
push eax
mov dword [edx], 0x40824c
call fcn.00405df0
mov ecx, esi
call fcn.004061b0
fild dword [esi + 0xc]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x40615d
mov byte [esi + 0x54], 0
mov esi, 0x408208
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x14], 0x4081f4
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 0x1c