Function at 0x1400c4180
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 edi, r9d
mov r14, r8
mov rbx, rdx
mov r15, rcx
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400c41e6
test byte [rcx + 0x1c], 1
je 0x1400c41e6
cmp byte [rcx + 0x19], 5
jb 0x1400c41e6
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rdx
mov rcx, qword [rcx + 0x10]
call fcn.1400c1c08
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140004d1c
nop
lea rcx, [rbp - 0x28]
call fcn.140036144
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400c4cac
mov esi, eax
mov r12d, 4
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x1400c4269
test byte [r10 + 0x1c], 2
je 0x1400c4269
cmp byte [r10 + 0x19], r12b
jb 0x1400c4269
lea edx, [r12 + 0x57]
mov r9d, esi
lea r8, [0x1401275f0]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
test esi, esi
jne 0x1400c43dc
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, r14
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400c42ae
mov eax, dword [rbp - 0x38]
sub eax, r12d
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x1400c42f1
test byte [r10 + 0x1c], 2
je 0x1400c42f1
cmp byte [r10 + 0x19], r12b
jb 0x1400c42f1
mov edx, 0x5c
mov dword [rsp + 0x28], ebx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [r10 + 0x10]
call fcn.1400c1d20
mov r10, qword [0x14014dd40]
test ebx, ebx
jne 0x1400c42fe
cmp edi, dword [rbp - 0x40]
je 0x1400c4414
mov dword [rbp - 0x30], edi
mov dword [rsp + 0x28], r12d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x1400c4364
test byte [r10 + 0x1c], 2
je 0x1400c4364
cmp byte [r10 + 0x19], r12b
jb 0x1400c4364
mov edx, 0x5d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
mov r9, r14
mov rcx, qword [r10 + 0x10]
call fcn.1400c1d20
mov r10, qword [0x14014dd40]
test ebx, ebx
jne 0x1400c4414
mov rdi, qword [rbp - 0x28]
mov rax, qword [r15]
mov rbx, qword [rax + 0x48]
mov rcx, rbx
call qword [fcn.140009050]
mov edx, 0x3ec
mov rcx, r15
call rbx
mov ecx, eax
xor r9d, r9d
mov r8, r14
mov rdx, rdi
call fcn.1400c73ac
mov r10, qword [0x14014dd40]
lea rbx, [0x14014dd40]
cmp r10, rbx
je 0x1400c4455
test byte [r10 + 0x1c], 2
je 0x1400c441b
cmp byte [r10 + 0x19], r12b
jb 0x1400c441b
mov edx, 0x5e
lea r8, [0x1401275f0]
mov rcx, qword [r10 + 0x10]
call fcn.140003614
mov r10, qword [0x14014dd40]
jmp 0x1400c441b
cmp esi, 2
jne 0x1400c4414
mov esi, 0x490
cmp r10, rax
je 0x1400c4455
test byte [r10 + 0x1c], 2
je 0x1400c4414
cmp byte [r10 + 0x19], r12b
jb 0x1400c4414
mov edx, 0x5f
lea r8, [0x1401275f0]
mov rcx, qword [r10 + 0x10]
call fcn.140003614
mov r10, qword [0x14014dd40]
lea rbx, [0x14014dd40]
cmp r10, rbx
je 0x1400c4455
test byte [r10 + 0x1c], 1
je 0x1400c4455
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400c4455
mov edx, 0x60
mov r9d, esi
lea r8, [0x1401275f0]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
nop
mov r14, qword [rbp - 0x28]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400c4485
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400c4494
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