Function at 0x180008080
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, r9
mov rbp, r8
lea rcx, [0x18010d528]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [0x18010d528]
mov edx, eax
mov rcx, qword [rsp + 0xa0]
call fcn.180003e28
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180008151
mov rcx, qword [rbp]
add rcx, 0xfffffffffffffff4
lea rdi, [0x18015f758]
or rbx, 0xffffffffffffffff
cmp rcx, rdi
je 0x180008126
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x180008126
mov rcx, qword [rbp]
sub rcx, 0xc
call fcn.1800d1434
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18000814a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18000814a
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1800d1434
xor eax, eax
jmp 0x18000830e
mov dword [rsp + 0x30], 0x200
mov ecx, 0x100
mov r12d, 2
mov rax, r12
mul rcx
lea rbx, [r12 - 3]
cmovo rax, rbx
mov rcx, rax
call fcn.1800d04fc
mov rdi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
test eax, eax
je 0x180008278
cmp eax, 0xea
je 0x180008215
mov rcx, rdi
call fcn.1800d1434
nop
mov rcx, qword [rbp]
add rcx, 0xfffffffffffffff4
lea rdi, [0x18015f758]
cmp rcx, rdi
je 0x1800081ea
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1800081ea
mov rcx, qword [rbp]
sub rcx, 0xc
call fcn.1800d1434
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18000820e
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18000820e
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1800d1434
xor eax, eax
jmp 0x18000830e
add dword [rsp + 0x30], r12d
mov rcx, rdi
call fcn.1800d1434
mov r11d, dword [rsp + 0x30]
shr r11, 1
mov rax, r12
mul r11
cmovo rax, rbx
mov rcx, rax
call fcn.1800d04fc
mov rdi, rax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1800d7640
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
test eax, eax
jne 0x18000829c
test rdi, rdi
jne 0x180008281
xor eax, eax
jmp 0x18000828a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
mov rcx, qword [rsp + 0xa0]
call fcn.180003e28
mov rcx, rdi
call fcn.1800d1434
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r12d, r12d
test r13d, r13d
sete r12b
mov rcx, qword [rbp]
add rcx, 0xfffffffffffffff4
lea rdi, [0x18015f758]
cmp rcx, rdi
je 0x1800082e7
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1800082e7
mov rcx, qword [rbp]
sub rcx, 0xc
call fcn.1800d1434
nop
mov rax, qword [rsi]
add rax, 0xfffffffffffffff4
cmp rax, rdi
je 0x18000830b
mov ecx, ebx
lock xadd dword [rax], ecx
add ecx, ebx
test ecx, ecx
jg 0x18000830b
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1800d1434
mov eax, r12d
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret