Function at 0x7ff2ada6af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x7ff2adb3100]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r9
mov r13d, ecx
mov r12, qword [rsp + 0xc0]
and qword [rsp + 0x38], 0
xor edi, edi
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x50], dil
mov byte [rsp + 0x51], dil
mov byte [rsp + 0x52], dil
mov byte [rsp + 0x53], dil
mov byte [rsp + 0x54], dil
mov byte [rsp + 0x55], dil
mov byte [rsp + 0x56], dil
mov byte [rsp + 0x57], dil
mov byte [rsp + 0x58], dil
and dword [rsp + 0x30], edi
xor esi, esi
mov dword [rsp + 0x34], esi
test ecx, ecx
je 0x7ff2ada6d07
cmp ecx, 0x3e7
ja 0x7ff2ada6d07
test rdx, rdx
jne 0x7ff2ada6d07
test r8d, 0xfffffffc
jne 0x7ff2ada6cfa
test r8b, 1
je 0x7ff2ada6b9d
test r8b, 2
jne 0x7ff2ada6cfa
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_TypesType
repne scasb al, byte [rdi]
not rcx
add ecx, 5
mov r15d, ecx
mov edx, ecx
lea ecx, [rax + 0x40]
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x7ff2ada6bdb
lea ecx, [rax + 8]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
lea r8, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_TypesType
mov rdx, r15
mov rcx, rax
call sub.ntdll.dll_strcpy_s
lea rdx, [rsp + 0x50]
mov ecx, r13d
call fcn.7ff2ada8548
lea r8, [rsp + 0x55]
mov rdx, r15
mov rcx, rdi
call sub.ntdll.dll_strcat_s
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA
test eax, eax
je 0x7ff2ada6c40
mov ecx, 0x57
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x7ff2ada183c]
mov rcx, qword [rsp + 0x38]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA
test eax, eax
je 0x7ff2ada6c7d
mov ecx, 0x57
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
test r14, r14
jne 0x7ff2ada6c97
mov eax, dword [rsp + 0x30]
mov dword [r12], eax
lea esi, [r14 + 1]
mov dword [rsp + 0x34], esi
jmp 0x7ff2ada6d28
mov eax, dword [rsp + 0x30]
cmp eax, dword [r12]
jbe 0x7ff2ada6cb2
mov dword [r12], eax
mov ecx, 0xea
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x7ff2ada183c]
mov rcx, qword [rsp + 0x38]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA
test eax, eax
je 0x7ff2ada6ceb
mov ecx, 0x57
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
mov eax, dword [rsp + 0x30]
mov dword [r12], eax
mov esi, 1
jmp 0x7ff2ada6d28
mov ecx, 0x80090009
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
mov ecx, 0x57
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada6d28
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x7ff2ada6d37
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey
test rdi, rdi
je 0x7ff2ada6d45
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff2adaaa90
mov rsi, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
ret