Function at 0x471c10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568938
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
jne 0x471c57
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
push eax
mov dword [ebx + 0x1a4], eax
mov dword [ebx + 0x1b0], 0x401
mov dword [ebx + 0x1a8], ecx
mov dword [ebx + 0x1ac], ecx
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x471cbd
mov eax, dword [edi]
lea esi, [ebx + 0x1b8]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
push esi
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x471cbd
mov edx, dword [ebp + 0x10]
add esi, 8
push esi
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x471cf2
push ecx
mov eax, esp
mov dword [ebp + 0x10], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov ecx, dword [ebx + 0x1a4]
mov dword [ebp + 0x10], esp
push ecx
lea esi, [ebx + 0x2c]
call fcn.004722a0
mov edx, dword [ebx + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, 1
jne 0x471ee2
add ebx, 0x1a0
cmp dword [ebx], 0
je 0x471edf
mov esi, dword [ebp + 0x14]
cmp esi, 0xffffffff
je 0x471df7
mov eax, dword [ebx]
test eax, eax
jne 0x471d30
push 0x80004003
call fcn.0053d640
call fcn.00470ef0
cmp esi, eax
jge 0x471df7
mov eax, 3
mov word [ebp - 0x40], ax
mov dword [ebp - 0x38], esi
lea ecx, [ebp - 0x40]
push ecx
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.00473640
lea esi, [ebp + 0x10]
call fcn.00470ec0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004704c0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471d82
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x471de1
mov edx, dword [edi]
mov ecx, dword [edx + 0x40]
lea eax, [ebp - 0x60]
push eax
push edi
call ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp - 0x44]
sub esi, dword [ebp - 0x4c]
mov eax, ebx
call fcn.00473640
imul esi, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x158]
push esi
push eax
call edx
mov eax, ebx
call fcn.00473640
mov ecx, dword [eax]
mov edx, dword [ecx + 0x11c]
push edi
push eax
call edx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x471df4
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x471e07
push 0x80004003
call fcn.0053d640
mov edx, dword [ebx]
mov ecx, dword [edx + 0x40]
lea eax, [ebp - 0x60]
push eax
push ebx
call ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.0046daa0
cmp byte [eax + 0xc], 0
je 0x471e42
mov eax, dword [eax]
cmp eax, 0x64
je 0x471e42
push 0x64
push eax
push 2
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, eax
jmp 0x471e47
mov ebx, 2
mov edx, dword [ebp - 0x28]
mov ecx, dword [edi]
sub edx, dword [ebp - 0x30]
mov eax, dword [edi + 0xc]
add edx, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
add eax, ebx
add ecx, eax
mov dword [ebp - 0x1c], eax
mov eax, 0xa
lea esi, [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
call fcn.004d3d40
mov edx, esi
push edx
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
cmp eax, 1
jne 0x471ead
mov eax, dword [edi]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov edi, dword [edi + 4]
sub edx, dword [ebp - 0x24]
sub edi, ebx
add ecx, eax
add edx, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edx
mov eax, 0xa
lea esi, [ebp - 0x20]
call fcn.004d3d40
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x40
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x20]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 0x30]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
dec eax
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10