Function at 0x1400c3a54
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, r8
mov rbx, rdx
mov r14, rcx
lea rsi, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c3ab1
test byte [rcx + 0x1c], 1
je 0x1400c3ab1
cmp byte [rcx + 0x19], 5
jb 0x1400c3ab1
mov edx, 0x41
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, rbx
mov rcx, qword [rcx + 0x10]
call fcn.1400c1b64
mov rdx, rbx
mov rcx, r14
call fcn.1400c2138
mov edi, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c3aeb
test byte [rcx + 0x1c], 2
je 0x1400c3aeb
cmp byte [rcx + 0x19], 5
jb 0x1400c3aeb
mov edx, 0x42
mov dword [rsp + 0x20], eax
mov r9, rbx
mov rcx, qword [rcx + 0x10]
call fcn.1400c1b64
xor esi, esi
mov eax, 0x490
test edi, edi
cmove esi, eax
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140004d1c
nop
lea rcx, [rbp - 0x28]
call fcn.140036144
xor ebx, ebx
mov qword [rbp - 0x18], rbx
and qword [rbp - 0x10], rbx
and qword [rbp - 8], rbx
lea edi, [rbx + 4]
test esi, esi
jne 0x1400c3b6e
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.1400c5cd4
mov esi, eax
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
cmp rcx, r14
je 0x1400c3b68
test byte [rcx + 0x1c], 2
je 0x1400c3b68
cmp byte [rcx + 0x19], dil
jb 0x1400c3b68
lea edx, [rbx + 0x43]
mov r9d, eax
lea r8, [0x1401275f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rbx, qword [rbp - 0x18]
jmp 0x1400c3b75
lea r14, [0x14014dd40]
and dword [r15], 0
and dword [rbp + 0x40], 0
test esi, esi
jne 0x1400c3c58
mov dword [rbp + 0x48], edi
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400c3bc0
mov eax, dword [rbp - 0x30]
sub eax, edi
neg eax
sbb esi, esi
and esi, 0xd
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400c3bfc
test byte [rcx + 0x1c], 2
je 0x1400c3bfc
cmp byte [rcx + 0x19], dil
jb 0x1400c3bfc
mov edx, 0x44
mov dword [rsp + 0x28], esi
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x28]
mov rcx, qword [rcx + 0x10]
call fcn.1400c1d20
mov rcx, qword [0x14014dd40]
cmp esi, 2
jne 0x1400c3c1d
xor esi, esi
cmp rcx, r14
je 0x1400c3c99
test byte [rcx + 0x1c], 2
je 0x1400c3c5f
cmp byte [rcx + 0x19], dil
jb 0x1400c3c5f
lea edx, [rsi + 0x45]
jmp 0x1400c3c48
test esi, esi
jne 0x1400c3c5f
cmp dword [rbp + 0x40], esi
je 0x1400c3c5f
mov dword [r15], 1
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400c3c99
test byte [rcx + 0x1c], 2
je 0x1400c3c5f
cmp byte [rcx + 0x19], dil
jb 0x1400c3c5f
lea edx, [rsi + 0x46]
lea r8, [0x1401275f0]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400c3c99
test byte [rcx + 0x1c], 1
je 0x1400c3c99
movzx r9d, byte [rcx + 0x19]
mov eax, esi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1400c3c99
mov edx, 0x47
mov r9d, esi
lea r8, [0x1401275f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
test rbx, rbx
je 0x1400c3ca8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r14, qword [rbp - 0x28]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400c3cd7
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
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret