Function at 0x4ae540
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bb10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x569638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4ae69a
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4ae5a2
push 0x68
push 0xfa
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
jmp 0x4ae5b9
cmp eax, 2
jne 0x4ae5bf
push 0x1ec
push 0x2bc
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
call fcn.00453260
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x18]
mov esi, eax
sub edi, edx
cmp byte [esi + 0xc], 0
mov dword [ebp + 8], ecx
je 0x4ae630
mov eax, dword [esi]
cmp eax, 0x64
je 0x4ae5f4
push 0x64
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp byte [esi + 0xc], 0
je 0x4ae630
mov eax, dword [esi]
cmp eax, 0x64
je 0x4ae614
push 0x64
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp byte [esi + 0xc], 0
je 0x4ae630
mov eax, dword [esi]
cmp eax, 0x64
je 0x4ae630
push 0x64
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp + 8]
jmp 0x4ae632
mov eax, edi
mov edx, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x14], eax
cmp byte [esi + 0xc], 0
je 0x4ae653
mov esi, dword [esi]
cmp esi, 0x64
je 0x4ae653
push 0x64
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4ae655
mov eax, ecx
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0x10], eax
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push ecx
mov dword [eax], 0
mov eax, esp
lea edx, [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], esp
push eax
lea esi, [ebx + 0x2c]
call fcn.004af6f0
test eax, eax
jne 0x4ae6be
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 ecx, dword [ebx + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ae6be
mov al, 1
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 eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x260], eax
mov dword [ebx + 0x264], edx
mov byte [ebp + 0x13], 0
cmp eax, 1
jne 0x4ae722
mov eax, dword [ebx + 0x30]
lea edi, [ebx + 0x1a0]
push eax
mov ecx, 7
call fcn.004a7030
push 5
push str.udisk
lea esi, [ebx + 0x29c]
call fcn.0042b220
add ebx, 0x268
push ebx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004a83f0
jmp 0x4ae76f
cmp eax, 2
jne 0x4ae77d
mov ecx, dword [ebx + 0x30]
push ecx
lea edi, [ebx + 0x1a0]
lea ecx, [eax + 6]
call fcn.004a7030
lea edx, [ebx + 0x29c]
push edx
mov edx, str.tool_close
call fcn.00428ca0
add ebx, 0x268
push ebx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
push eax
lea edx, [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004a8d50
cmp dword [eax], 1
push ebx
sete byte [ebp + 0x13]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0x13]
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