Function at 0x1400371f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov rax, qword [0x1400a0018]
xor rax, rsp
mov qword [rbp + 8], rax
movzx esi, cx
lea rax, [rsp + 0x68]
xor r14d, r14d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], r14
mov r9d, 0xf003f
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPerflib009
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140037268
xor eax, eax
jmp 0x1400375e3
lea rax, [rbp - 0x68]
mov dword [rsp + 0x64], 0xa
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x64]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x10]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
or ebx, 0xffffffff
test eax, eax
cmove ebx, dword [rsp + 0x70]
cmp ebx, 0xffffffff
jne 0x1400372eb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140037261
inc ebx
movsxd rcx, ebx
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x68]
lea r9, [rbp - 0x6c]
mov rdi, rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x74]
mov dword [rsp + 0x74], ebx
mov qword [rsp + 0x28], rax
lea rdx, str.Counters
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x42]
call sub.VCRUNTIME140.dll_memset
mov ebx, r14d
mov r15d, r14d
mov r12d, r14d
mov dword [rsp + 0x64], ebx
mov r13d, r14d
cmp word [rdi], r14w
je 0x14003759c
movzx r14d, si
mov ebx, 1
and r14w, bx
jmp 0x14003736a
mov ebx, 1
lea r8, [rsp + 0x60]
mov rcx, rdi
lea rdx, [0x140075290]
call fcn.1400382e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, ebx
cdqe
lea rbx, [rdi + rax*2]
xor edi, edi
test r14w, r14w
je 0x14003740d
lea rdx, str.Process
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14003740d
or rax, 0xffffffffffffffff
lea r15, [0x1400bdbb0]
inc rax
cmp word [r15 + rax*2], di
jne 0x1400373b6
test rax, rax
je 0x1400373d9
lea r8, [0x1400752a8]
mov edx, 0x20
mov rcx, r15
call fcn.14002f3e0
mov ecx, dword [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov r9d, 0xa
lea r8d, [r9 + 0x17]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea r8, [rbp - 0x60]
mov edx, 0x20
mov rcx, r15
call fcn.14002f3e0
mov r15d, 1
jmp 0x14003757c
test sil, 2
je 0x14003748a
lea rdx, str.Process_Address_Space
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14003748a
or rax, 0xffffffffffffffff
lea r13, [0x1400bdbb0]
inc rax
cmp word [r13 + rax*2], di
jne 0x140037432
test rax, rax
je 0x140037456
lea r8, [0x1400752a8]
mov edx, 0x20
mov rcx, r13
call fcn.14002f3e0
mov ecx, dword [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov r9d, 0xa
lea r8d, [r9 + 0x17]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea r8, [rbp - 0x60]
mov edx, 0x20
mov rcx, r13
call fcn.14002f3e0
mov r13d, 1
jmp 0x14003757c
test sil, 4
je 0x140037503
lea rdx, str.Thread
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140037503
or rax, 0xffffffffffffffff
lea r12, [0x1400bdbb0]
inc rax
cmp word [r12 + rax*2], di
jne 0x1400374af
test rax, rax
je 0x1400374d2
lea r8, [0x1400752a8]
mov edx, 0x20
mov rcx, r12
call fcn.14002f3e0
mov ecx, dword [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov r9d, 0xa
lea r8d, [r9 + 0x17]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea r8, [rbp - 0x60]
mov edx, 0x20
mov rcx, r12
call fcn.14002f3e0
mov r12d, 1
jmp 0x14003757c
test sil, 8
je 0x14003757c
lea rdx, str.Thread_Details
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14003757c
or rax, 0xffffffffffffffff
lea rcx, [0x1400bdbb0]
inc rax
cmp word [rcx + rax*2], di
jne 0x140037528
test rax, rax
je 0x140037547
lea r8, [0x1400752a8]
mov edx, 0x20
call fcn.14002f3e0
mov ecx, dword [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov r9d, 0xa
lea r8d, [r9 + 0x17]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea r8, [rbp - 0x60]
mov edx, 0x20
lea rcx, [0x1400bdbb0]
call fcn.14002f3e0
mov dword [rsp + 0x64], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rdi, [rbx + rax*2]
xor eax, eax
cmp word [rdi], ax
jne 0x140037365
mov ebx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, sil
and al, 1
neg al
mov al, sil
sbb ecx, ecx
and ecx, r15d
mov edx, ecx
or edx, r13d
and al, 2
mov al, sil
cmove edx, ecx
mov ecx, edx
or ecx, r12d
and al, 4
cmove ecx, edx
mov eax, ecx
or eax, ebx
and sil, 8
cmove eax, ecx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400615f0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret