Function at 0x10066120
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007a9c4
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
cmp byte [eax], 0x7b
je 0x10066182
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x1c]
mov dword [ebx + 0x20], 3
inc eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [ebx + 0x14]
lea esi, [ebx + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], 0
cmp dword [esi], 0x64
jl 0x100661c7
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x1c]
mov dword [ebx + 0x20], 5
inc eax
mov dword [ebx + 0x28], eax
xor eax, eax
dec dword [esi]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x100661ef
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10059800
jmp 0x100661f1
xor eax, eax
mov edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edi
inc dword [ebx + 0x10]
inc dword [ebx + 8]
mov ecx, ebx
call fcn.10065e20
cmp eax, 1
je 0x1006632d
cmp eax, 4
jne 0x100663c8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov byte [esp + 0x3c], 3
call fcn.10066720
test al, al
je 0x10066389
inc dword [ebx + 0x10]
inc dword [ebx + 8]
mov ecx, ebx
call fcn.10065e20
cmp eax, 0xa
jne 0x10066372
inc dword [ebx + 0x10]
inc dword [ebx + 8]
mov ecx, ebx
call fcn.10065e20
push eax
mov ecx, ebx
call fcn.10066090
mov dword [esp + 0x14], eax
test eax, eax
je 0x10066389
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10066297
lea ecx, [esp + 0x20]
call fcn.10065d80
mov eax, dword [esp + 0x28]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push eax
call fcn.10059c10
inc dword [ebx + 0x10]
inc dword [ebx + 8]
mov ecx, ebx
call fcn.10065e20
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, 9
jne 0x100662e3
inc dword [ebx + 0x10]
inc dword [ebx + 8]
mov ecx, ebx
call fcn.10065e20
mov dword [esp + 0x14], eax
cmp eax, 1
jne 0x100662e8
test byte [ebx], al
jne 0x100662e8
mov dword [ebx + 0x20], 4
jmp 0x10066379
cmp ecx, 1
jne 0x1006635d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10066320
cmp dword [eax + 0x14], 0x10
jb 0x10066305
push dword [eax]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
push eax
mov byte [eax], 0
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x10066211
mov eax, dword [esp + 0x10]
xor edi, edi
mov byte [esp + 0x38], 0
test edi, edi
je 0x10066348
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x10]
dec dword [esi]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x1c]
mov dword [ebx + 0x20], 2
jmp 0x10066386
mov dword [ebx + 0x20], 2
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x1c]
inc eax
mov dword [ebx + 0x28], eax
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x100663bd
cmp dword [ebx + 0x14], 0x10
jb 0x100663a2
push dword [ebx]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push ebx
mov byte [ebx], 0
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x10066333
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x1c]
mov dword [ebx + 0x20], 8
inc eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x10066333