Function at 0x5271a4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e30
mov esi, dword [0x560cd4]
xor eax, eax
push ebp
push 0x527530
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x30c]
call fcn.0045c8d0
jmp 0x5271f9
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, 0x52754c
call fcn.00404c8c
mov eax, dword [ebp - 0x20]
call fcn.00404c40
cmp eax, 4
jl 0x5271e9
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x527558
call fcn.00404c8c
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.00425668
test eax, eax
je 0x527241
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, 0x527558
call fcn.00404c8c
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.00425668
mov edi, dword [eax + 0xc]
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x527503
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x5611d4]
cmp dword [eax], 1
je 0x52726b
mov eax, dword [0x5611d4]
cmp dword [eax], 2
jne 0x5273cf
mov eax, dword [0x560cac]
cmp dword [eax], 3
jne 0x527337
mov eax, dword [0x560c0c]
cmp dword [eax], 0
je 0x5273cf
mov eax, dword [0x560c0c]
mov eax, dword [eax]
mov edx, dword [0x560d74]
mov edx, dword [edx]
call fcn.00404d8c
je 0x5273cf
mov eax, dword [0x560c0c]
mov eax, dword [eax]
mov edx, dword [0x560f08]
mov edx, dword [edx]
call fcn.00404d8c
je 0x5273cf
cmp edi, 0x64
je 0x5273cf
mov eax, dword [0x560d94]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.004b5cac
mov eax, dword [0x560d94]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov edx, 0x527568
call fcn.004b44ec
mov edx, dword [eax]
call dword [edx + 0x58]
inc eax
push eax
mov edx, 0x527568
mov eax, dword [ebp - 0x1c]
call fcn.004b44ec
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x527574
mov eax, dword [ebp - 0x1c]
call fcn.004b44ec
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24c]
jmp 0x5273cf
mov eax, dword [0x560b00]
cmp dword [eax], 0
je 0x5273cf
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
call fcn.004ce754
mov edx, dword [0x560b00]
cmp eax, dword [edx]
jle 0x5273cf
cmp edi, 0x64
je 0x5273cf
mov eax, dword [0x560d94]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.004b5cac
mov eax, dword [0x560d94]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov edx, 0x527568
call fcn.004b44ec
mov edx, dword [eax]
call dword [edx + 0x58]
inc eax
push eax
mov edx, 0x527568
mov eax, dword [ebp - 0x1c]
call fcn.004b44ec
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x527574
mov eax, dword [ebp - 0x1c]
call fcn.004b44ec
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, 0x7d
call fcn.004cb3e0
test ax, ax
je 0x5273f3
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
call fcn.004ce6ac
xor edi, edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x561264]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [0x561244]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, 0x527580
call fcn.00404d8c
jne 0x527448
mov eax, dword [ebx + 0x360]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x358]
mov edx, 0x527590
call fcn.0045c900
mov eax, dword [ebx + 0x35c]
mov edx, 0x5275a0
call fcn.0045c900
mov eax, dword [0x560cac]
cmp dword [eax], 3
jne 0x527463
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52750d
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x18], edx
call fcn.00403acc
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4d2c7c]
call fcn.004ca75c
mov edx, dword [esi]
mov dword [edx + 0x310], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, edi
call fcn.0045c040
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0xc]
call fcn.0045c064
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0x10]
call fcn.0045c08c
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0x14]
call fcn.0045c0b0
mov eax, dword [esi]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [esi]
mov edx, dword [esi]
mov edx, dword [edx + 0x310]
mov dword [edx + 0x27c], eax
mov dword [edx + 0x278], 0x52915c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52750d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527537
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004049a4
lea eax, [ebp - 4]
call fcn.00404980
ret