Function at 0x140037610
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7f90]
mov eax, 0x8090
call fcn.1400b5d40
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x80d0], rbx
mov qword [rsp + 0x80d8], rsi
mov rax, qword [0x140184e90]
xor rax, rsp
mov qword [rbp + 0x7f80], rax
mov r15, rdx
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.140035b44
nop
mov r9d, 0x2001f
mov r8, qword [rax]
mov rdx, qword [0x140187d58]
lea rcx, [rsp + 0x50]
call fcn.140017618
test eax, eax
setne bl
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or rcx, 0xffffffffffffffff
mov eax, ecx
lock xadd dword [rdx + 0x10], eax
add eax, ecx
test eax, eax
jg 0x1400376c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x1400376d1
mov dil, r12b
mov rbx, qword [rsp + 0x50]
jmp 0x140037840
mov dword [rsp + 0x40], 0x4000
mov word [rbp - 0x80], r12w
xor edx, edx
mov r8d, 0x7ffe
lea rcx, [rbp - 0x7e]
call fcn.1400b60d0
mov r14d, r12d
mov edi, 1
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
add r14d, edi
test eax, eax
je 0x140037739
cmp eax, 0x103
jne 0x14003781d
mov r9d, dword [0x14018cd80]
lea r8d, [r9 + 2]
lea ecx, [r9 + 1]
imul r8d, ecx
imul r8d, r9d
mov eax, 0x66666667
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 0x11
jne 0x1400377b4
mov eax, 0x51eb851f
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x63
movsxd rcx, r9d
lea eax, [r8 - 0xd]
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400b0308
mov rcx, rax
call fcn.1400b13b8
jmp 0x1400377b8
or rbx, 0xffffffffffffffff
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140001cb0
nop
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], r12d
je 0x1400377df
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14001886c
mov dword [rsp + 0x40], 0x4000
xor edx, edx
mov r8d, 0x8000
lea rcx, [rbp - 0x80]
call fcn.1400b60d0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140037818
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
test esi, esi
je 0x1400376fc
test rbx, rbx
je 0x14003783b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r12d
test rbx, rbx
je 0x140037853
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov al, dil
mov rcx, qword [rbp + 0x7f80]
xor rcx, rsp
call fcn.1400b0c90
lea r11, [rsp + 0x8090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret