Function at 0x1400d8be8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov r14d, r9d
mov rdi, r8
mov rbx, rdx
mov r15, rcx
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x1400d8c4e
test byte [rcx + 0x1c], 1
je 0x1400d8c4e
cmp byte [rcx + 0x19], 5
jb 0x1400d8c4e
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rdx
mov rcx, qword [rcx + 0x10]
call fcn.1400d6690
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140011450
nop
lea rcx, [rbp - 0x28]
call fcn.140043db4
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400d9714
mov esi, eax
mov r12d, 4
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp r10, rax
je 0x1400d8cd1
test byte [r10 + 0x1c], 2
je 0x1400d8cd1
cmp byte [r10 + 0x19], r12b
jb 0x1400d8cd1
lea edx, [r12 + 0x57]
mov r9d, esi
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
test esi, esi
jne 0x1400d8e44
mov dword [rbp - 0x3c], r12d
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400d8d16
mov eax, dword [rbp - 0x38]
sub eax, r12d
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp r10, rax
je 0x1400d8d59
test byte [r10 + 0x1c], 2
je 0x1400d8d59
cmp byte [r10 + 0x19], r12b
jb 0x1400d8d59
mov edx, 0x5c
mov dword [rsp + 0x28], ebx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [r10 + 0x10]
call fcn.1400d67a4
mov r10, qword [0x140148ea8]
test ebx, ebx
jne 0x1400d8d67
cmp r14d, dword [rbp - 0x40]
je 0x1400d8e7c
mov dword [rbp - 0x30], r14d
mov dword [rsp + 0x28], r12d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp r10, rax
je 0x1400d8dcf
test byte [r10 + 0x1c], 2
je 0x1400d8dcf
cmp byte [r10 + 0x19], r12b
jb 0x1400d8dcf
mov edx, 0x5d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov rcx, qword [r10 + 0x10]
call fcn.1400d67a4
mov r10, qword [0x140148ea8]
test ebx, ebx
jne 0x1400d8e7c
mov rax, qword [r15]
mov rbx, qword [rax + 0x48]
mov rcx, rbx
call qword [fcn.140015690]
mov edx, 0x3ec
mov rcx, r15
call rbx
mov ecx, eax
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rbp - 0x28]
call fcn.1400dbde0
mov r10, qword [0x140148ea8]
lea rbx, [0x140148ea8]
cmp r10, rbx
je 0x1400d8ebd
test byte [r10 + 0x1c], 2
je 0x1400d8e83
cmp byte [r10 + 0x19], r12b
jb 0x1400d8e83
mov edx, 0x5e
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fcb0
mov r10, qword [0x140148ea8]
jmp 0x1400d8e83
cmp esi, 2
jne 0x1400d8e7c
mov esi, 0x490
cmp r10, rax
je 0x1400d8ebd
test byte [r10 + 0x1c], 2
je 0x1400d8e7c
cmp byte [r10 + 0x19], r12b
jb 0x1400d8e7c
mov edx, 0x5f
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fcb0
mov r10, qword [0x140148ea8]
lea rbx, [0x140148ea8]
cmp r10, rbx
je 0x1400d8ebd
test byte [r10 + 0x1c], 1
je 0x1400d8ebd
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400d8ebd
mov edx, 0x60
mov r9d, esi
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
nop
mov r14, qword [rbp - 0x28]
lock add dword [r14 - 8], 0xffffffff
jg 0x1400d8ee7
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400d8ef6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret