Function at 0x4c7170
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52c698
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea eax, [esp + 0x34]
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 4]
push eax
push ecx
mov ecx, dword [esp + 0x48]
call fcn.00477ee0
test eax, eax
je 0x4c7383
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.004bc610
lea eax, [esp + 0x1c]
push 0x12
push eax
lea ecx, [esp + 0x14]
call fcn.004bc520
test eax, eax
jne 0x4c721b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x4c7383
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x110]
mov dx, word [esp + 0x1c]
cmp eax, ecx
mov word [ebx + 0x10c], dx
je 0x4c726c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x4c7383
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov ecx, 2
lea edi, [ebx + 0x114]
lea esi, [esp + 0x24]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4c7366
cmp word [esp + 0x2c], 0x64
jae 0x4c72c4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x4c7383
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
mov ax, word [esp + 0x1e]
test al, 1
mov word [ebx + 0x10e], ax
jne 0x4c72f9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x4c7411
mov eax, dword [esp + 0x10]
push eax
jmp 0x4c7409
push 0x40
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
test edx, edx
je 0x4c731c
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x40
jmp 0x4c731e
xor edx, edx
push 0x3c
push edx
lea ecx, [esp + 0x14]
mov dword [ebx + 0x140], edx
call fcn.004bc520
test eax, eax
je 0x4c735f
mov ecx, dword [ebx + 0x140]
mov edx, dword [ecx + 0x38]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x140]
add esp, 4
mov dword [ecx + 0x3c], eax
mov eax, dword [ebx + 0x140]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x4c7399
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x4c7383
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov ecx, dword [eax + 0x38]
xor edi, edi
test ecx, ecx
jle 0x4c73f4
lea ecx, [esp + 0xc]
call fcn.004bc5a0
mov si, ax
and esi, 0xffff
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x140]
add esp, 4
mov edx, dword [ecx + 0x3c]
push esi
mov dword [edx + edi*4], eax
mov eax, dword [ebx + 0x140]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx + edi*4]
lea ecx, [esp + 0x10]
push edx
call fcn.004bc520
test eax, eax
je 0x4c735f
mov eax, dword [ebx + 0x140]
inc edi
cmp edi, dword [eax + 0x38]
jl 0x4c73a2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x4c7411
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4