Function at 0x4705f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567258
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
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 0x470637
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 0x47069d
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 0x47069d
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 0x4706d2
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.00470c90
mov edx, dword [ebx + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, 1
jne 0x4708c2
add ebx, 0x1a0
cmp dword [ebx], 0
je 0x4708bf
mov esi, dword [ebp + 0x14]
cmp esi, 0xffffffff
je 0x4707d7
mov eax, dword [ebx]
test eax, eax
jne 0x470710
push 0x80004003
call fcn.0053c010
call fcn.0046f8f0
cmp esi, eax
jge 0x4707d7
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.0046f8d0
lea esi, [ebp + 0x10]
call fcn.0046f8a0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0046ed80
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x470762
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 0x4707c1
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.0046f8d0
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.0046f8d0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x11c]
push edi
push eax
call edx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4707d4
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 0x4707e7
push 0x80004003
call fcn.0053c010
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.0046c450
cmp byte [eax + 0xc], 0
je 0x470822
mov eax, dword [eax]
cmp eax, 0x64
je 0x470822
push 0x64
push eax
push 2
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, eax
jmp 0x470827
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.004d2240
mov edx, esi
push edx
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
cmp eax, 1
jne 0x47088d
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.004d2240
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