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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov esi, r9d
mov rbp, r8
mov rbx, rdx
mov r12, rcx
lea rax, [0x100153eb8]
mov rcx, qword [0x100153eb8]
cmp rcx, rax
je 0x1000ec45c
test byte [rcx + 0x1c], 1
je 0x1000ec45c
cmp byte [rcx + 0x19], 5
jb 0x1000ec45c
mov edx, 0x5b
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rbx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9cf0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.100035db8
nop
lea rcx, [rsp + 0x48]
call fcn.1000699ec
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.1000edb20
mov ebx, eax
mov r13d, 4
mov r10, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp r10, rax
je 0x1000ec4e5
test byte [r10 + 0x1c], 2
je 0x1000ec4e5
cmp byte [r10 + 0x19], r13b
jb 0x1000ec4e5
lea edx, [r13 + 0x58]
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100036510
mov r10, qword [0x100153eb8]
lea rax, [0x100153eb8]
test ebx, ebx
jne 0x1000ec66c
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1000ec530
mov eax, dword [rsp + 0x38]
sub eax, r13d
neg eax
sbb edi, edi
and edi, 0xd
mov r10, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp r10, rax
je 0x1000ec57b
test byte [r10 + 0x1c], 2
je 0x1000ec57b
cmp byte [r10 + 0x19], r13b
jb 0x1000ec57b
mov edx, 0x5d
mov dword [rsp + 0x28], edi
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rbp
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.1000e9e18
mov r10, qword [0x100153eb8]
test edi, edi
jne 0x1000ec589
cmp esi, dword [rsp + 0x30]
je 0x1000ec6b1
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x28], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov r10, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp r10, rax
je 0x1000ec5f9
test byte [r10 + 0x1c], 2
je 0x1000ec5f9
cmp byte [r10 + 0x19], r13b
jb 0x1000ec5f9
mov edx, 0x5e
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], esi
mov r9, rbp
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.1000e9e18
mov r10, qword [0x100153eb8]
test edi, edi
jne 0x1000ec6ba
mov rax, qword [r12]
mov edx, 0x3ec
mov rcx, r12
call qword [rax + 0x48]
mov ecx, eax
xor r9d, r9d
mov r8, rbp
mov rdx, qword [rsp + 0x48]
call fcn.1000f1054
mov r10, qword [0x100153eb8]
lea rdi, [0x100153eb8]
cmp r10, rdi
je 0x1000ec716
test byte [r10 + 0x1c], 2
je 0x1000ec6dc
cmp byte [r10 + 0x19], r13b
jb 0x1000ec6dc
mov edx, 0x5f
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100034784
mov r10, qword [0x100153eb8]
jmp 0x1000ec6dc
cmp ebx, 2
jne 0x1000ec6d5
mov ebx, 0x490
cmp r10, rax
je 0x1000ec716
test byte [r10 + 0x1c], 2
je 0x1000ec6cc
cmp byte [r10 + 0x19], r13b
jb 0x1000ec6c3
mov edx, 0x60
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100034784
mov r10, qword [0x100153eb8]
lea rdi, [0x100153eb8]
jmp 0x1000ec6dc
lea rdi, [0x100153eb8]
jmp 0x1000ec6dc
lea rdi, [0x100153eb8]
jmp 0x1000ec6dc
lea rdi, [0x100153eb8]
jmp 0x1000ec6dc
lea rdi, [0x100153eb8]
jmp 0x1000ec6dc
lea rdi, [0x100153eb8]
cmp r10, rdi
je 0x1000ec716
test byte [r10 + 0x1c], 1
je 0x1000ec716
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1000ec716
mov edx, 0x61
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100036510
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000ec737
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1000ec747
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret