Function at 0x14023e1d0
Capabilities:
Get number of processors

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov rsi, qword [rbp + 0x77]
xor r15d, r15d
mov dword [rbp + 0x7f], r15d
xorps xmm0, xmm0
mov dword [rbp - 0x39], r15d
xorps xmm1, xmm1
mov qword [rbp - 0x31], r15
mov rdi, r9
mov r14, r8
mov r13, rdx
mov r9, rcx
mov ebx, r15d
mov r12d, r15d
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
test rsi, rsi
je 0x14023e57f
lea r10, [0x140379190]
mov word [rsi], r15w
mov rdx, r10
mov ecx, r15d
mov r8, qword [rdx]
mov rax, qword [r8]
sub rax, qword [r13]
jne 0x14023e258
mov rax, qword [r8 + 8]
sub rax, qword [r13 + 8]
test rax, rax
je 0x14023e26d
inc ecx
add rdx, 0x18
cmp ecx, 3
jb 0x14023e244
jmp 0x14023e2f9
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov r8d, dword [r10 + rcx*8 + 0x10]
mov r15d, dword [r10 + rcx*8 + 8]
mov eax, dword [r10 + rcx*8 + 0xc]
mov dword [rbp + 0x7f], r15d
mov dword [rbp + 0x77], eax
test r8d, r8d
je 0x14023e2f6
add r9, 0x240
mov rcx, rsi
call fcn.140013508
test eax, eax
je 0x14023e2b2
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x14023e2a6
jmp 0x14023e2d0
lea r9, str.SdbGetPathSystemSdb_failed.
mov r8d, 0x7bd
lea rdx, str.SdbResolveDatabaseEx
mov ecx, 1
call fcn.140013f14
test r14, r14
je 0x14023e2d8
mov dword [r14], r15d
test rdi, rdi
je 0x14023e2ef
call fcn.14023a57c
mov dword [rdi], eax
cmp dword [rbp + 0x77], r12d
je 0x14023e2ef
and eax, 0x1b
mov dword [rdi], eax
mov eax, ebx
jmp 0x14023e581
xor r15d, r15d
mov rdx, r13
lea rcx, [rbp - 0x19]
call fcn.1402a54cc
test eax, eax
jns 0x14023e330
lea r9, str.Failed_to_convert_guid_to_string___x_
mov dword [rsp + 0x20], eax
mov r8d, Ordinal_2005
lea rdx, str.SdbResolveDatabaseEx
mov ecx, 1
call fcn.140013f14
jmp 0x14023e52f
mov rax, qword gs:[0x60]
mov edx, 8
movzx r15d, word [rbp - 0x19]
add r15d, 0xb8
mov r8d, r15d
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r12, rax
test rax, rax
jne 0x14023e38e
lea r9, str.Failed_to_allocate__ld_bytes_for_key_path
mov dword [rsp + 0x20], r15d
mov r8d, 0x7e9
lea rdx, str.SdbResolveDatabaseEx
lea ecx, [rax + 1]
call fcn.140013f14
xor r15d, r15d
jmp 0x14023e52f
mov word [rbp - 0x27], r15w
lea rdx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsInstalledSDB
xor r15d, r15d
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x29]
mov word [rbp - 0x29], r15w
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
lea rdx, [0x1402fda84]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
lea rax, [rbp - 0x29]
mov dword [rbp - 9], Ordinal_54
xorps xmm0, xmm0
mov qword [rbp + 7], rax
lea r8, [rbp - 9]
mov qword [rbp - 1], r15
mov edx, 0x80000100
mov dword [rbp + 0xf], Shell_MergeMenus
lea rcx, [rbp - 0x31]
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x14023e44f
mov dword [rsp + 0x28], eax
lea r9, str.Failed_to_open_Key___ws____x_
mov rax, qword [rbp - 0x21]
lea rdx, str.SdbResolveDatabaseEx
mov r8d, 0x7f9
mov qword [rsp + 0x20], rax
lea ecx, [r15 + 1]
call fcn.140013f14
jmp 0x14023e52f
test r14, r14
je 0x14023e4a0
mov rdx, qword [rbp - 0x31]
lea r8, [0x1402f3370]
lea rcx, [rbp + 0x7f]
call fcn.1402a5258
test eax, eax
jns 0x14023e496
lea r9, str.Failed_to_get_database_type___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x805
lea rdx, str.SdbResolveDatabaseEx
mov ecx, 1
call fcn.140013f14
mov dword [r14], r15d
jmp 0x14023e52f
mov eax, dword [rbp + 0x7f]
btr eax, 0x1f
mov dword [r14], eax
test rdi, rdi
je 0x14023e4e9
mov rdx, qword [rbp - 0x31]
lea r8, [0x1402f3380]
lea rcx, [rbp - 0x39]
call fcn.1402a5258
test eax, eax
jns 0x14023e4e4
lea r9, str.Failed_to_get_runtime_platform___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x815
lea rdx, str.SdbResolveDatabaseEx
mov ecx, 1
call fcn.140013f14
mov dword [rdi], r15d
jmp 0x14023e52f
mov eax, dword [rbp - 0x39]
mov dword [rdi], eax
mov r9, qword [rbp + 0x57]
mov r8, r13
add r9, 0x240
mov rcx, rsi
call fcn.14023e100
test eax, eax
jne 0x14023e521
lea r9, str.SdbGetPathCustomSdb_failed_to_get_the_database_path.
mov r8d, 0x81e
lea rdx, str.SdbResolveDatabaseEx
lea ecx, [rax + 1]
call fcn.140013f14
jmp 0x14023e52f
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x14023e525
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14023e544
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
test r12, r12
je 0x14023e567
mov rcx, qword gs:[0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp qword [rbp - 0x11], r15
je 0x14023e2ef
lea rcx, [rbp - 0x19]
call fcn.1402a594c
jmp 0x14023e2ef
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret