Function at 0x447d18
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
sub edx, 1
jb 0x447d36
je 0x447d75
dec edx
je 0x447eef
jmp 0x447f1e
mov eax, dword [ebp - 4]
cmp ecx, dword [eax + 0x2c]
je 0x447f3f
mov edx, dword [ebp - 4]
mov eax, ecx
mov dword [edx + 0x2c], eax
test eax, eax
jge 0x447d56
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0xff
jle 0x447f1e
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0xff
jmp 0x447f1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cmp ecx, eax
je 0x447f3f
mov ebx, eax
mov edx, dword [ebp - 4]
mov eax, ecx
mov dword [edx + 0x30], eax
test eax, eax
jg 0x447d9b
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0x7d0
jle 0x447db1
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0x7d0
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x70]
mov eax, esi
mov edx, dword [sym.imp.vcl120.bpl__Controls_TWinControl_]
call sub.rtl120.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x447f1e
mov dword [ebp - 8], esi
cmp ebx, 0x64
jne 0x447dec
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0x64
jl 0x447f1e
mov eax, dword [ebp - 8]
call fcn.0040982c
xor edx, edx
push ebp
push 0x447ee8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x54]
or ax, word [0x447f48]
mov edx, dword [ebp - 8]
mov word [edx + 0x54], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cmp eax, 0x64
jne 0x447e37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
jmp 0x447e46
push 0x64
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_MulDiv
mov edx, dword [ebp - 8]
add edx, 0x48
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cmp eax, 0x64
jne 0x447e61
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
jmp 0x447e70
push 0x64
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_MulDiv
mov edx, dword [ebp - 8]
add edx, 0x4c
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24c]
test eax, eax
je 0x447ea4
push 0x416
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x4c]
push edx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x48]
push edx
push 0
push 0
push 0
push eax
call fcn.0040201c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447f1e
mov eax, dword [ebp - 8]
movzx edx, word [0x447f48]
not edx
and dx, word [eax + 0x54]
mov eax, dword [ebp - 8]
mov word [eax + 0x54], dx
mov eax, dword [ebp - 8]
movzx edx, word [0x447f4c]
not edx
and dx, word [eax + 0x54]
mov eax, dword [ebp - 8]
mov word [eax + 0x54], dx
mov eax, dword [ebp - 8]
call fcn.00409834
ret
mov eax, dword [ebp - 4]
cmp ecx, dword [eax + 0x34]
je 0x447f3f
mov edx, dword [ebp - 4]
mov eax, ecx
mov dword [edx + 0x34], eax
test eax, eax
jge 0x447f0b
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0x64
jle 0x447f1e
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0x64
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x70]
mov eax, ebx
mov edx, dword [sym.imp.vcl120.bpl__Controls_TControl_]
call sub.rtl120.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x447f3f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret