Function at 0x1400aef58
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 rsi, r8
mov rbx, rdx
mov r15, rcx
lea rax, [0x1400f3190]
mov rcx, qword [0x1400f3190]
cmp rcx, rax
je 0x1400aefbe
test byte [rcx + 0x1c], 1
je 0x1400aefbe
cmp byte [rcx + 0x19], 5
jb 0x1400aefbe
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rdx
mov rcx, qword [rcx + 0x10]
call fcn.1400ad128
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140004be4
nop
lea rcx, [rbp - 0x28]
call fcn.14002dee8
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400af9fc
mov edi, eax
mov r12d, 4
mov r10, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp r10, rax
je 0x1400af041
test byte [r10 + 0x1c], 2
je 0x1400af041
cmp byte [r10 + 0x19], r12b
jb 0x1400af041
lea edx, [r12 + 0x4d]
mov r9d, edi
lea r8, [0x1400d8e00]
mov rcx, qword [r10 + 0x10]
call fcn.1400036a8
mov r10, qword [0x1400f3190]
lea rax, [0x1400f3190]
test edi, edi
jne 0x1400af1b2
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, rsi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400af086
mov eax, dword [rbp - 0x38]
sub eax, r12d
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp r10, rax
je 0x1400af0c9
test byte [r10 + 0x1c], 2
je 0x1400af0c9
cmp byte [r10 + 0x19], r12b
jb 0x1400af0c9
mov edx, 0x52
mov dword [rsp + 0x28], ebx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov rcx, qword [r10 + 0x10]
call fcn.1400ad250
mov r10, qword [0x1400f3190]
test ebx, ebx
jne 0x1400af0d7
cmp r14d, dword [rbp - 0x40]
je 0x1400af1ea
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, rsi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov r10, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp r10, rax
je 0x1400af13f
test byte [r10 + 0x1c], 2
je 0x1400af13f
cmp byte [r10 + 0x19], r12b
jb 0x1400af13f
mov edx, 0x53
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
mov r9, rsi
mov rcx, qword [r10 + 0x10]
call fcn.1400ad250
mov r10, qword [0x1400f3190]
test ebx, ebx
jne 0x1400af1ea
mov rbx, qword [rbp - 0x28]
mov rax, qword [r15]
mov edx, 0x3ec
mov rcx, r15
mov rax, qword [rax + 0x48]
call qword [str.__f_]
mov ecx, eax
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
call fcn.1400b2054
mov r10, qword [0x1400f3190]
lea rbx, [0x1400f3190]
cmp r10, rbx
je 0x1400af22b
test byte [r10 + 0x1c], 2
je 0x1400af1f1
cmp byte [r10 + 0x19], r12b
jb 0x1400af1f1
mov edx, 0x54
lea r8, [0x1400d8e00]
mov rcx, qword [r10 + 0x10]
call fcn.1400035e4
mov r10, qword [0x1400f3190]
jmp 0x1400af1f1
cmp edi, 2
jne 0x1400af1ea
mov edi, 0x490
cmp r10, rax
je 0x1400af22b
test byte [r10 + 0x1c], 2
je 0x1400af1ea
cmp byte [r10 + 0x19], r12b
jb 0x1400af1ea
mov edx, 0x55
lea r8, [0x1400d8e00]
mov rcx, qword [r10 + 0x10]
call fcn.1400035e4
mov r10, qword [0x1400f3190]
lea rbx, [0x1400f3190]
cmp r10, rbx
je 0x1400af22b
test byte [r10 + 0x1c], 1
je 0x1400af22b
movzx edx, byte [r10 + 0x19]
mov eax, edi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x1400af22b
mov edx, 0x56
mov r9d, edi
lea r8, [0x1400d8e00]
mov rcx, qword [r10 + 0x10]
call fcn.1400036a8
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400af251
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400af260
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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