Function at 0x140037aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x29], r8
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x21], rax
xor r14d, r14d
mov esi, r14d
mov dword [rbp - 0x69], r14d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov dword [rsp + 0x28], r9d
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
call fcn.1400359c0
mov rdi, rax
shr rax, 0x27
not eax
or r15, 0xffffffffffffffff
test al, 1
jne 0x140037daa
cmp byte [rbp - 0x71], r14b
jne 0x140037b35
movabs rdi, 0x8000000000
jmp 0x140037daa
mov edx, 0x104
lea rcx, [rbp - 0x61]
call fcn.14000c860
nop
mov r12d, r14d
mov rdi, qword [rbp - 0x59]
mov rbx, qword [rbp - 0x61]
sub rdi, rbx
sar rdi, 1
mov dword [rbp - 0x6d], edi
mov r13, qword [rbp - 0x49]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x6d]
mov r8, rbx
xor edx, edx
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r14d, eax
cmp eax, 0x103
je 0x140037d82
cmp r14d, 0xea
jne 0x140037bb6
lea rdx, [rdi + 0x104]
lea rcx, [rbp - 0x61]
call fcn.140007690
mov rbx, qword [rbp - 0x61]
xor r14d, r14d
jmp 0x140037d20
test r14d, r14d
jne 0x140037d65
mov eax, dword [rbp - 0x6d]
lea rcx, [rbp - 0x61]
test eax, eax
jne 0x140037bdf
lea edx, [rax + 1]
call fcn.140007690
mov rbx, qword [rbp - 0x61]
xor r14d, r14d
mov word [rbx], r14w
jmp 0x140037bee
mov rdx, rax
call fcn.140007690
mov rbx, qword [rbp - 0x61]
xor r14d, r14d
mov ecx, 0x40
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140037c97
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r14
mov word [rbp - 9], r14w
cmp word [rbx], 0
jne 0x140037c2d
mov r8, r14
jmp 0x140037c3b
mov r8, r15
inc r8
cmp word [rbx + r8*2], 0
jne 0x140037c30
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.140007d00
nop
or esi, 1
mov dword [rbp - 0x69], esi
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
mov r9, r15
xor r8d, r8d
mov rdx, qword [rbp - 0x29]
mov rcx, rdi
call fcn.140007bc0
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rbp - 9]
call fcn.140007bc0
nop
jmp 0x140037c9a
mov rdi, r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.1400384f0
nop
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x21]
call fcn.140037f70
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140037cef
lock dec dword [rcx + 8]
jne 0x140037ce8
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x140037ce8
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test sil, 1
je 0x140037d1d
and esi, 0xfffffffe
mov dword [rbp - 0x69], esi
cmp qword [rbp + 0xf], 8
jb 0x140037d0c
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r14
mov word [rbp - 9], r14w
inc r12d
mov rdi, qword [rbp - 0x59]
sub rdi, rbx
sar rdi, 1
mov dword [rbp - 0x6d], edi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x6d]
mov r8, rbx
mov edx, r12d
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r14d, eax
cmp eax, 0x103
jne 0x140037b91
jmp 0x140037d82
call fcn.140035700
mov rdi, rax
mov eax, r14d
or rdi, rax
movabs rax, 0x3f2100000000
or rdi, rax
jmp 0x140037d8c
movabs rdi, 0x8000000000
test rbx, rbx
je 0x140037daa
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], 0
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140037dd5
lock dec dword [rcx + 8]
jne 0x140037dd5
mov rbx, qword [rbp - 0x41]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x140037dd5
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rcx]
call qword [rdx + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140107280
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret