Function at 0x1400674bc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r15d, r15d
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x50], r15
mov r14, rcx
mov qword [rsp + 0x48], r15
mov ebx, 0x206
mov word [rsp + 0x60], r15w
mov r8d, ebx
lea rcx, [rsp + 0x62]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
mov word [rbp + 0x170], r15w
xor edx, edx
lea rcx, [rbp + 0x172]
call sub.msvcrt.dll_memset
mov al, byte [0x1400ab46c]
mov dword [rsp + 0x40], 1
test al, al
jne 0x14006754c
mov eax, 0x80070015
jmp 0x14006771a
test rdi, rdi
je 0x140067715
test rsi, rsi
je 0x140067715
mov rcx, r14
call fcn.1400678ac
test eax, eax
je 0x140067542
lea rcx, [0x1400ab410]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
lea rdx, [rsp + 0x48]
lea rcx, [0x1400aa198]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_StringFromCLSID]
lea rcx, [0x1400ab410]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test ebx, ebx
js 0x1400676f1
mov r12d, 0x104
lea r8, [0x14009d278]
mov edx, r12d
lea rcx, [rsp + 0x60]
call fcn.14000ff60
mov ebx, eax
test eax, eax
js 0x1400676f1
lea r8, [0x1400740d8]
mov edx, r12d
lea rcx, [rsp + 0x60]
call fcn.1400188b4
mov ebx, eax
test eax, eax
js 0x1400676f1
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov edx, r12d
call fcn.1400188b4
mov ebx, eax
test eax, eax
js 0x1400676f1
mov eax, dword [rsi]
lea rdx, [rsp + 0x60]
add eax, eax
mov r9d, 2
mov dword [rsp + 0x5c], eax
xor r8d, r8d
lea rax, [rsp + 0x5c]
mov rcx, r14
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
mov r12d, 0x80070000
test eax, eax
jle 0x140067648
movzx ebx, ax
or ebx, r12d
test ebx, ebx
js 0x1400676f1
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140073680]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jle 0x14006767f
movzx ebx, ax
or ebx, r12d
test ebx, ebx
js 0x1400676f1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x170]
mov dword [rsp + 0x58], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jle 0x1400676c3
movzx ebx, ax
or ebx, r12d
test ebx, ebx
js 0x1400676f1
mov edx, dword [rsi]
lea r8, [0x14009d248]
mov rcx, rdi
call fcn.1400188b4
mov ebx, eax
test eax, eax
js 0x1400676f1
mov edx, dword [rsi]
lea r8, [rbp + 0x170]
mov rcx, rdi
call fcn.1400188b4
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140067701
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140067711
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14006771a
mov eax, 0x80070057
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140024ca0
add rsp, 0x490
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret