Function at 0x1400b9b4c
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, [0x140106190]
mov rcx, qword [0x140106190]
cmp rcx, rax
je 0x1400b9bb2
test byte [rcx + 0x1c], 1
je 0x1400b9bb2
cmp byte [rcx + 0x19], 5
jb 0x1400b9bb2
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rdx
mov rcx, qword [rcx + 0x10]
call fcn.1400b7740
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140004b74
nop
lea rcx, [rbp - 0x28]
call fcn.140034130
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400ba5f4
mov edi, eax
mov r12d, 4
mov r10, qword [0x140106190]
lea rax, [0x140106190]
cmp r10, rax
je 0x1400b9c35
test byte [r10 + 0x1c], 2
je 0x1400b9c35
cmp byte [r10 + 0x19], r12b
jb 0x1400b9c35
lea edx, [r12 + 0x56]
mov r9d, edi
lea r8, [0x1400e7b20]
mov rcx, qword [r10 + 0x10]
call fcn.140003634
mov r10, qword [0x140106190]
lea rax, [0x140106190]
test edi, edi
jne 0x1400b9da6
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 0x1400b9c7a
mov eax, dword [rbp - 0x38]
sub eax, r12d
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x140106190]
lea rax, [0x140106190]
cmp r10, rax
je 0x1400b9cbd
test byte [r10 + 0x1c], 2
je 0x1400b9cbd
cmp byte [r10 + 0x19], r12b
jb 0x1400b9cbd
mov edx, 0x5b
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.1400b7858
mov r10, qword [0x140106190]
test ebx, ebx
jne 0x1400b9ccb
cmp r14d, dword [rbp - 0x40]
je 0x1400b9dde
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 [0x140106190]
lea rax, [0x140106190]
cmp r10, rax
je 0x1400b9d33
test byte [r10 + 0x1c], 2
je 0x1400b9d33
cmp byte [r10 + 0x19], r12b
jb 0x1400b9d33
mov edx, 0x5c
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
mov r9, rsi
mov rcx, qword [r10 + 0x10]
call fcn.1400b7858
mov r10, qword [0x140106190]
test ebx, ebx
jne 0x1400b9dde
mov rbx, qword [rbp - 0x28]
mov rax, qword [r15]
mov edx, 0x3ec
mov rcx, r15
mov rax, qword [rax + 0x48]
call qword [case.0x14006e230.0]
mov ecx, eax
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
call fcn.1400bcb30
mov r10, qword [0x140106190]
lea rbx, [0x140106190]
cmp r10, rbx
je 0x1400b9e1f
test byte [r10 + 0x1c], 2
je 0x1400b9de5
cmp byte [r10 + 0x19], r12b
jb 0x1400b9de5
mov edx, 0x5d
lea r8, [0x1400e7b20]
mov rcx, qword [r10 + 0x10]
call fcn.140003574
mov r10, qword [0x140106190]
jmp 0x1400b9de5
cmp edi, 2
jne 0x1400b9dde
mov edi, 0x490
cmp r10, rax
je 0x1400b9e1f
test byte [r10 + 0x1c], 2
je 0x1400b9dde
cmp byte [r10 + 0x19], r12b
jb 0x1400b9dde
mov edx, 0x5e
lea r8, [0x1400e7b20]
mov rcx, qword [r10 + 0x10]
call fcn.140003574
mov r10, qword [0x140106190]
lea rbx, [0x140106190]
cmp r10, rbx
je 0x1400b9e1f
test byte [r10 + 0x1c], 1
je 0x1400b9e1f
movzx edx, byte [r10 + 0x19]
mov eax, edi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400b9e1f
mov edx, 0x5f
mov r9d, edi
lea r8, [0x1400e7b20]
mov rcx, qword [r10 + 0x10]
call fcn.140003634
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b9e45
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400b9e54
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