Function at 0x1800795d0
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 0x18007997f
lea r10, [0x1800b21d0]
mov word [rsi], r15w
mov rdx, r10
mov ecx, r15d
mov r8, qword [rdx]
mov rax, qword [r8]
sub rax, qword [r13]
jne 0x180079658
mov rax, qword [r8 + 8]
sub rax, qword [r13 + 8]
test rax, rax
je 0x18007966d
inc ecx
add rdx, 0x18
cmp ecx, 3
jb 0x180079644
jmp 0x1800796f9
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 0x1800796f6
add r9, 0x240
mov rcx, rsi
call fcn.180011c80
test eax, eax
je 0x1800796b2
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x1800796a6
jmp 0x1800796d0
lea r9, str.SdbGetPathSystemSdb_failed.
mov r8d, 0x7bd
lea rdx, str.SdbResolveDatabaseEx
mov ecx, 1
call fcn.18001188c
test r14, r14
je 0x1800796d8
mov dword [r14], r15d
test rdi, rdi
je 0x1800796ef
call fcn.180078958
mov dword [rdi], eax
cmp dword [rbp + 0x77], r12d
je 0x1800796ef
and eax, 0x1b
mov dword [rdi], eax
mov eax, ebx
jmp 0x180079981
xor r15d, r15d
mov rdx, r13
lea rcx, [rbp - 0x19]
call fcn.180073b64
test eax, eax
jns 0x180079730
lea r9, str.Failed_to_convert_guid_to_string___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x7d4
lea rdx, str.SdbResolveDatabaseEx
mov ecx, 1
call fcn.18001188c
jmp 0x18007992f
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 0x18007978e
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.18001188c
xor r15d, r15d
jmp 0x18007992f
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, [0x180085368]
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], 0x30
xorps xmm0, xmm0
mov qword [rbp + 7], rax
lea r8, [rbp - 9]
mov qword [rbp - 1], r15
mov edx, 0x80000100
mov dword [rbp + 0xf], 0x40
lea rcx, [rbp - 0x31]
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x18007984f
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.18001188c
jmp 0x18007992f
test r14, r14
je 0x1800798a0
mov rdx, qword [rbp - 0x31]
lea r8, [0x180080790]
lea rcx, [rbp + 0x7f]
call fcn.180070d94
test eax, eax
jns 0x180079896
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.18001188c
mov dword [r14], r15d
jmp 0x18007992f
mov eax, dword [rbp + 0x7f]
btr eax, 0x1f
mov dword [r14], eax
test rdi, rdi
je 0x1800798e9
mov rdx, qword [rbp - 0x31]
lea r8, [0x180080780]
lea rcx, [rbp - 0x39]
call fcn.180070d94
test eax, eax
jns 0x1800798e4
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.18001188c
mov dword [rdi], r15d
jmp 0x18007992f
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.180079500
test eax, eax
jne 0x180079921
lea r9, str.SdbGetPathCustomSdb_failed_to_get_the_database_path.
mov r8d, 0x81e
lea rdx, str.SdbResolveDatabaseEx
lea ecx, [rax + 1]
call fcn.18001188c
jmp 0x18007992f
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x180079925
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x180079944
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
test r12, r12
je 0x180079967
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 0x1800796ef
lea rcx, [rbp - 0x19]
call fcn.1800740d8
jmp 0x1800796ef
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