Function at 0x4a8010
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004a7f20
mov ecx, dword [eax + 0xa7c]
add eax, 0xa4c
test ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0
jle 0x4a870b
mov dword [esp + 0x1c], 4
xor edx, edx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x4a8085
mov ecx, dword [eax + 0x2c]
mov ecx, dword [ecx + 8]
jmp 0x4a8087
xor ecx, ecx
cmp edx, ecx
jge 0x4a86ec
mov ecx, dword [eax + 0x2c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + ecx]
mov edi, dword [ecx + edx*4]
test edi, edi
mov dword [esp + 0x18], edi
je 0x4a86e6
mov ebp, dword [ebx + 0xd4]
mov dword [ebx + 0xf0], 0x50
lea esi, [ebp + 8]
test esi, esi
jne 0x4a80f5
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x4a80e2
mov ecx, dword [ebx + 0xe8]
push eax
mov dword [esp + 0x2c], ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 0xe4], esi
xor eax, eax
mov dword [ebx + 0xec], eax
mov dword [ebx + 0xe8], eax
jmp 0x4a81f7
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
jne 0x4a812d
lea edx, [esi*4]
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [ebx + 0xe4], eax
push esi
push eax
call fcn.005463a0
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xe8], esi
jmp 0x4a81f7
mov eax, dword [ebx + 0xec]
cmp esi, eax
jg 0x4a816d
mov eax, dword [ebx + 0xe8]
cmp eax, esi
jge 0x4a815a
mov edx, esi
sub edx, eax
lea eax, [ecx + eax*4]
push edx
push eax
call fcn.005463a0
mov dword [ebx + 0xe8], esi
jmp 0x4a81f7
jle 0x4a8162
sub eax, esi
mov dword [esp + 0x28], eax
mov dword [ebx + 0xe8], esi
jmp 0x4a81f7
add eax, 0x50
cmp esi, eax
mov dword [esp + 0x14], eax
jl 0x4a817c
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4]
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 0xe8]
mov esi, dword [ebx + 0xe4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x28], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xe8]
lea esi, [ebp + 8]
mov edx, esi
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.005463a0
mov eax, dword [ebx + 0xe4]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 0xe4], ecx
mov dword [ebx + 0xe8], esi
mov dword [ebx + 0xec], edx
lea esi, [ebp + 8]
mov dword [ebx + 0xdc], 0x50
test esi, esi
jne 0x4a8247
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x4a8234
mov ecx, dword [ebx + 0xd4]
push ecx
push eax
call fcn.004a9200
mov eax, dword [ebx + 0xd0]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 0xd0], esi
xor eax, eax
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xd4], eax
jmp 0x4a8359
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
jne 0x4a827e
lea edx, [esi + esi*8]
shl edx, 2
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [ebx + 0xd0], eax
push esi
push eax
call fcn.004a9230
mov dword [ebx + 0xd8], esi
mov dword [ebx + 0xd4], esi
jmp 0x4a8359
mov eax, dword [ebx + 0xd8]
cmp esi, eax
jg 0x4a82ca
mov eax, dword [ebx + 0xd4]
cmp eax, esi
jge 0x4a82ae
mov edx, esi
sub edx, eax
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*4]
push ecx
call fcn.004a9230
mov dword [ebx + 0xd4], esi
jmp 0x4a8359
jle 0x4a82bf
sub eax, esi
lea edx, [esi + esi*8]
push eax
lea eax, [ecx + edx*4]
push eax
call fcn.004a9200
mov dword [ebx + 0xd4], esi
jmp 0x4a8359
add eax, 0x50
cmp esi, eax
jge 0x4a82d7
mov dword [esp + 0x14], eax
jmp 0x4a82dd
mov dword [esp + 0x14], esi
mov eax, esi
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 0xd4]
mov esi, dword [ebx + 0xd0]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*8]
mov dword [esp + 0x28], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xd4]
lea esi, [ebp + 8]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*8]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.004a9230
mov eax, dword [ebx + 0xd0]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], esi
mov dword [ebx + 0xd8], ecx
push 0x368
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x48], 0
je 0x4a837f
mov ecx, eax
call fcn.004e62c0
jmp 0x4a8381
xor eax, eax
mov edx, dword [ebx + 0xe4]
push 0
push 0
push 0
mov dword [edx + ebp*4], eax
mov eax, dword [ebx + 0xe4]
or esi, 0xffffffff
push 0
mov ecx, dword [eax + ebp*4]
push edi
mov dword [esp + 0x5c], esi
call fcn.004ec330
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xe4]
lea eax, [ebp + ebp*8]
shl eax, 2
mov dword [esp + 0x28], eax
add ecx, eax
mov eax, dword [edx + ebp*4]
push ecx
push eax
call fcn.004a7a40
push 0x368
call sub.mfc42u.dll_operatornew
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x48], 1
je 0x4a83f1
mov ecx, eax
call fcn.004e62c0
jmp 0x4a83f3
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0
push 0
push 0
mov dword [ecx + ebp*4 + 4], eax
mov edx, dword [ebx + 0xe4]
push 1
push edi
mov ecx, dword [edx + ebp*4 + 4]
mov dword [esp + 0x5c], esi
call fcn.004ec330
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xe4]
lea eax, [ebp + ebp*8 + 9]
shl eax, 2
mov dword [esp + 0x14], eax
add ecx, eax
mov eax, dword [edx + ebp*4 + 4]
push ecx
push eax
call fcn.004a7a40
push 0x368
call sub.mfc42u.dll_operatornew
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 2
je 0x4a8463
mov ecx, eax
call fcn.004e62c0
jmp 0x4a8465
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0
push 0
push 0
mov dword [ecx + ebp*4 + 8], eax
mov edx, dword [ebx + 0xe4]
push 2
push edi
mov ecx, dword [edx + ebp*4 + 8]
mov dword [esp + 0x5c], esi
call fcn.004ec330
mov eax, dword [ebx + 0xd0]
mov ecx, dword [ebx + 0xe4]
lea edi, [ebp + ebp*8 + 0x12]
mov edx, dword [ecx + ebp*4 + 8]
shl edi, 2
add eax, edi
push eax
push edx
call fcn.004a7a40
push 0x368
call sub.mfc42u.dll_operatornew
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 3
je 0x4a84d1
mov ecx, eax
call fcn.004e62c0
jmp 0x4a84d3
xor eax, eax
mov ecx, dword [ebx + 0xe4]
mov edx, dword [esp + 0x18]
push 0
push 0
mov dword [ecx + ebp*4 + 0xc], eax
mov eax, dword [ebx + 0xe4]
push 0
push 3
mov ecx, dword [eax + ebp*4 + 0xc]
push edx
mov dword [esp + 0x5c], esi
call fcn.004ec330
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xe4]
lea esi, [ebp + ebp*8 + 0x1b]
mov eax, dword [edx + ebp*4 + 0xc]
shl esi, 2
add ecx, esi
push ecx
push eax
call fcn.004a7a40
push 0x368
call sub.mfc42u.dll_operatornew
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 4
je 0x4a8543
mov ecx, eax
call fcn.004e62c0
jmp 0x4a8545
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0x368
mov dword [esp + 0x4c], 0xffffffff
mov dword [ecx + ebp*4 + 0x10], eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 5
je 0x4a857d
mov ecx, eax
call fcn.004e62c0
jmp 0x4a857f
xor eax, eax
mov edx, dword [ebx + 0xe4]
push 0x368
mov dword [esp + 0x4c], 0xffffffff
mov dword [edx + ebp*4 + 0x14], eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 6
je 0x4a85b7
mov ecx, eax
call fcn.004e62c0
jmp 0x4a85b9
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0x368
mov dword [esp + 0x4c], 0xffffffff
mov dword [ecx + ebp*4 + 0x18], eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 7
je 0x4a85f1
mov ecx, eax
call fcn.004e62c0
jmp 0x4a85f3
xor eax, eax
mov edx, dword [ebx + 0xe4]
mov dword [esp + 0x48], 0xffffffff
mov dword [edx + ebp*4 + 0x1c], eax
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + ebp*4 + 4]
push ecx
mov ecx, dword [eax + ebp*4 + 0x10]
call fcn.0050b450
mov eax, dword [ebx + 0xe4]
mov edx, dword [eax + ebp*4 + 4]
mov ecx, dword [eax + ebp*4 + 0x14]
push edx
call fcn.0050b450
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + ebp*4 + 8]
push ecx
mov ecx, dword [eax + ebp*4 + 0x18]
call fcn.0050b450
mov eax, dword [ebx + 0xe4]
mov edx, dword [eax + ebp*4 + 0xc]
mov ecx, dword [eax + ebp*4 + 0x1c]
push edx
call fcn.0050b450
mov eax, dword [ebx + 0xd0]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx]
lea ecx, [ebp + ebp*8 + 0x24]
push edx
lea ecx, [eax + ecx*4]
call fcn.004ab300
mov eax, dword [ebx + 0xd0]
mov edx, dword [esp + 0x14]
lea ecx, [ebp + ebp*8 + 0x2d]
add edx, eax
push edx
lea ecx, [eax + ecx*4]
call fcn.004ab300
mov eax, dword [ebx + 0xd0]
lea edx, [ebp + ebp*8 + 0x36]
add edi, eax
push edi
lea ecx, [eax + edx*4]
call fcn.004ab300
mov eax, dword [ebx + 0xd0]
lea ecx, [ebp + ebp*8 + 0x3f]
add esi, eax
push esi
lea ecx, [eax + ecx*4]
call fcn.004ab300
mov edx, dword [ebx + 0xe4]
mov ecx, dword [edx + ebp*4]
call fcn.0050b080
fadd qword [esp + 0x34]
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + ebp*4]
fstp qword [esp + 0x34]
call fcn.0050b080
fadd qword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
fstp qword [esp + 0x34]
inc edx
jmp 0x4a8072
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edx, dword [eax + 0x30]
inc ecx
add esi, 0x14
cmp ecx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
jl 0x4a8070
fld qword [esp + 0x34]
fmul qword [0x5ed6c8]
push 1
push 0x40618000
push 0
lea esi, [ebx + 0x110]
sub esp, 8
mov ecx, esi
mov dword [esp + 0x3c], esi
fstp qword [esp]
push 0
push 0
push 0
push 0
call fcn.0050c5e0
mov ecx, dword [0x61e6d8]
push 0x64
fld qword [esp + 0x38]
fmul qword [0x5ed6c0]
fimul dword [0x61e6d8]
lea eax, [ecx*8]
lea edx, [ecx*4]
sub eax, ecx
push edx
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.msvcrt.dll__ftol
push eax
lea ecx, [ebx + 0x94]
call fcn.004ab580
mov edx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0xf8]
mov edi, edx
mov dword [esp + 0x18], edi
lea ebp, [edi + 1]
test ebp, ebp
jne 0x4a87d8
test eax, eax
je 0x4a87ae
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 0xf8], 0
mov ecx, dword [ebx + 0xf8]
xor eax, eax
mov dword [ebx + 0x100], eax
mov dword [ebx + 0xfc], eax
mov dword [ecx + edi*4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4a8834
lea edi, [ebp*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0xf8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xf8]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x100], ebp
mov dword [ebx + 0xfc], ebp
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x100]
cmp ebp, ecx
jg 0x4a8875
cmp ebp, edx
jle 0x4a8853
mov ecx, ebp
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov edx, dword [ebx + 0xf8]
mov dword [ebx + 0xfc], ebp
mov dword [edx + edi*4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x4a88a2
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4a8896
mov eax, 4
jmp 0x4a88a2
cmp eax, 0x400
jle 0x4a88a2
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x4a88b0
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 0xfc]
mov esi, dword [ebx + 0xf8]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0xfc]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xf8]
push eax
call sub.mfc42u.dll_operatordelete
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x100], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0xf8], ecx
mov eax, ecx
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [ebx + 0xfc], ebp
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x40]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret