Function at 0x1400ba5d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
xor r15d, r15d
mov qword [rbp - 0x50], r15
mov qword [rbp + 0x58], r15
mov esi, r15d
mov dword [rbp + 0x48], r15d
mov dword [rbp + 0x50], 4
mov dword [rbp + 0x40], 4
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
test rcx, rcx
jne 0x1400ba712
mov ebx, r15d
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x48], r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140127300]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1400ba66c
mov edi, r15d
mov rbx, qword [rbp - 0x48]
mov qword [rbp - 0x20], rbx
lea r12, [0x14014dd40]
mov eax, 5
lea r14d, [rax - 3]
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x1400ba6b5
test byte [rcx + 0x1c], r14b
je 0x1400ba6b5
mov edx, r14d
test edi, edi
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x1400ba6b5
lea edx, [r14 + 0x27]
mov r9d, edi
lea r8, [0x140127380]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
test edi, edi
jne 0x1400ba702
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400bd880
mov r9d, eax
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x1400ba702
test byte [rcx + 0x1c], r14b
je 0x1400ba702
movzx eax, byte [rcx + 0x19]
test r9d, r9d
lea edx, [rdi + 5]
cmove r14d, edx
cmp eax, r14d
jl 0x1400ba702
lea edx, [rdi + 0x2a]
lea r8, [0x140127380]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
test rbx, rbx
je 0x1400ba75c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ba75c
mov rdx, rcx
lea rcx, [rbp - 0x40]
call fcn.140004d1c
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140019b78
nop
mov r14, qword [rbp - 0x40]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400ba75c
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
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r12d, 0x20019
mov r9d, r12d
xor r8d, r8d
lea rdx, [0x140127300]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ba843
mov edi, r15d
mov rbx, r15
lea r14d, [rax + 1]
cmp edi, dword [rbp - 0x28]
jge 0x1400ba835
test rbx, rbx
js 0x1400ba82a
mov rax, qword [rbp - 0x30]
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
xor r8d, r8d
mov rdx, qword [rbx + rax]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ba819
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x50]
xor r8d, r8d
lea rdx, str.UsageTracking
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ba80b
cmp dword [rbp + 0x48], r15d
cmovne esi, r14d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x58], r15
add edi, r14d
add rbx, 8
test esi, esi
je 0x1400ba797
jmp 0x1400ba835
mov ecx, 0xc000008c
call fcn.1400052e8
int3
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x30]
call fcn.140019c20
mov eax, esi
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret