Function at 0x1400ba490
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 0x1400ba4f6
test byte [rcx + 0x1c], 1
je 0x1400ba4f6
cmp byte [rcx + 0x19], 5
jb 0x1400ba4f6
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rdx
mov rcx, qword [rcx + 0x10]
call fcn.1400b80d8
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140004a80
nop
lea rcx, [rbp - 0x28]
call fcn.1400336f0
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400baf24
mov edi, eax
mov r12d, 4
mov r10, qword [0x140106190]
lea rax, [0x140106190]
cmp r10, rax
je 0x1400ba579
test byte [r10 + 0x1c], 2
je 0x1400ba579
cmp byte [r10 + 0x19], r12b
jb 0x1400ba579
lea edx, [r12 + 0x56]
mov r9d, edi
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.1400035ec
mov r10, qword [0x140106190]
lea rax, [0x140106190]
test edi, edi
jne 0x1400ba6ea
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 0x1400ba5be
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 0x1400ba601
test byte [r10 + 0x1c], 2
je 0x1400ba601
cmp byte [r10 + 0x19], r12b
jb 0x1400ba601
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.1400b81ec
mov r10, qword [0x140106190]
test ebx, ebx
jne 0x1400ba60f
cmp r14d, dword [rbp - 0x40]
je 0x1400ba722
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 0x1400ba677
test byte [r10 + 0x1c], 2
je 0x1400ba677
cmp byte [r10 + 0x19], r12b
jb 0x1400ba677
mov edx, 0x5c
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
mov r9, rsi
mov rcx, qword [r10 + 0x10]
call fcn.1400b81ec
mov r10, qword [0x140106190]
test ebx, ebx
jne 0x1400ba722
mov rbx, qword [rbp - 0x28]
mov rax, qword [r15]
mov edx, 0x3ec
mov rcx, r15
mov rax, qword [rax + 0x48]
call qword [case.0x14006d218.0]
mov ecx, eax
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
call fcn.1400bd430
mov r10, qword [0x140106190]
lea rbx, [0x140106190]
cmp r10, rbx
je 0x1400ba763
test byte [r10 + 0x1c], 2
je 0x1400ba729
cmp byte [r10 + 0x19], r12b
jb 0x1400ba729
mov edx, 0x5d
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.140003538
mov r10, qword [0x140106190]
jmp 0x1400ba729
cmp edi, 2
jne 0x1400ba722
mov edi, 0x490
cmp r10, rax
je 0x1400ba763
test byte [r10 + 0x1c], 2
je 0x1400ba722
cmp byte [r10 + 0x19], r12b
jb 0x1400ba722
mov edx, 0x5e
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.140003538
mov r10, qword [0x140106190]
lea rbx, [0x140106190]
cmp r10, rbx
je 0x1400ba763
test byte [r10 + 0x1c], 1
je 0x1400ba763
movzx edx, byte [r10 + 0x19]
mov eax, edi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x1400ba763
mov edx, 0x5f
mov r9d, edi
lea r8, [0x1400e7210]
mov rcx, qword [r10 + 0x10]
call fcn.1400035ec
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400ba789
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400ba798
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