Function at 0x77cb2be7
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x77d1a0c4]
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 0x77cb2d8c
test ecx, ecx
je 0x77cb2d8c
cmp dword [ebp + 0xc], 0
jne 0x77cb2d8c
cmp dword [0x77d1f274], 0
je 0x77cd71aa
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 0x77cd71ae
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 0x77cb2d52
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 0x77cb2d93
push 0x77cb2d9c
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
mov ebx, eax
cmp ebx, esi
jl 0x77cb2d32
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 0x77cb2d32
push 0x77cc80ac
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
cmp ebx, esi
jl 0x77cb2d32
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 0x77cd7218
test ebx, ebx
jl 0x77cb2d74
cmp dword [0x77d1e768], 0
mov esi, dword [ebp - 0x74]
jne 0x77cd7232
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.77cc744e
leave
ret 0x10
push 0x57
jmp 0x77cd71a4
mov ebx, 0xc0000017
jmp 0x77cb2d48
pop eax
jmp 0x77cb2d7d
push 2
jmp 0x77cd71a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x77cb2d7b
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 0x77cd71e0
push 8
pop eax
jmp 0x77cb2d7b
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 0x77cb2c58
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 0x77cb2d7b
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 0x77cb2d5d
push dword [esi]
call fcn.77d0fc30
jmp 0x77cb2d71