Function at 0x77cb6274
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x74], eax
lea edi, [ebp - 0x68]
je 0x77cb6419
test ecx, ecx
je 0x77cb6419
cmp dword [ebp + 0xc], 0
jne 0x77cb6419
cmp dword [0x77d2b2ac], 0
je 0x77ce5b70
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push 1
push ecx
call sym.ADVAPI32.dll_GetTokenInformation
test eax, eax
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
je 0x77ce5b74
push 1
push dword [edi]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntdll.dll_RtlConvertSidToUnicodeString]
mov ebx, eax
test ebx, ebx
jl 0x77cb63df
mov eax, dword [ebp - 0x80]
add eax, 0x32
mov word [ebp - 0x6e], ax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x6e]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x6c], eax
je 0x77cb6420
push 0x77cb6428
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
mov ebx, eax
cmp ebx, esi
jl 0x77cb63bf
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov ebx, eax
cmp ebx, esi
jl 0x77cb63bf
push 0x77cd69ec
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
cmp ebx, esi
jl 0x77cb63bf
lea eax, [ebp - 0x70]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x9c], 0x18
push dword [ebp - 0x74]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
push dword [ebp - 0x6c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea eax, [ebp - 0x68]
cmp edi, eax
jne 0x77ce5bde
test ebx, ebx
jl 0x77cb6401
cmp dword [0x77d2a768], 0
mov esi, dword [ebp - 0x74]
jne 0x77ce5bf8
or dword [esi], 2
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.77cd6011
leave
ret 0x10
push 0x57
jmp 0x77ce5b6a
mov ebx, 0xc0000017
jmp 0x77cb63d5
pop eax
jmp 0x77cb640a
push 2
jmp 0x77ce5b6a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x77cb6408
mov eax, dword fs:[0x18]
push dword [ebp - 0x78]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
mov edi, eax
test edi, edi
jne 0x77ce5ba6
push 8
pop eax
jmp 0x77cb6408
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
push edi
push 1
push dword [ebp - 0x84]
call sym.ADVAPI32.dll_GetTokenInformation
test eax, eax
jne 0x77cb62e5
push edi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
call ebx
jmp 0x77cb6408
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77cb63ea
push dword [esi]
call fcn.77d1b608
jmp 0x77cb63fe