Function at 0x140038340
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.140036260
mov rdi, rax
shr rax, 0x27
not eax
or r15, 0xffffffffffffffff
test al, 1
jne 0x14003864a
cmp byte [rbp - 0x71], r14b
jne 0x1400383d5
movabs rdi, 0x8000000000
jmp 0x14003864a
mov edx, 0x104
lea rcx, [rbp - 0x61]
call fcn.14000c890
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 0x140038622
cmp r14d, 0xea
jne 0x140038456
lea rdx, [rdi + 0x104]
lea rcx, [rbp - 0x61]
call fcn.140007690
mov rbx, qword [rbp - 0x61]
xor r14d, r14d
jmp 0x1400385c0
test r14d, r14d
jne 0x140038605
mov eax, dword [rbp - 0x6d]
lea rcx, [rbp - 0x61]
test eax, eax
jne 0x14003847f
lea edx, [rax + 1]
call fcn.140007690
mov rbx, qword [rbp - 0x61]
xor r14d, r14d
mov word [rbx], r14w
jmp 0x14003848e
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 0x140038537
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 0x1400384cd
mov r8, r14
jmp 0x1400384db
mov r8, r15
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400384d0
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 0x14003853a
mov rdi, r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140038d90
nop
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x21]
call fcn.140038810
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14003858f
lock dec dword [rcx + 8]
jne 0x140038588
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x140038588
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 0x1400385bd
and esi, 0xfffffffe
mov dword [rbp - 0x69], esi
cmp qword [rbp + 0xf], 8
jb 0x1400385ac
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 0x140038431
jmp 0x140038622
call fcn.140035fa0
mov rdi, rax
mov eax, r14d
or rdi, rax
movabs rax, 0x3f2100000000
or rdi, rax
jmp 0x14003862c
movabs rdi, 0x8000000000
test rbx, rbx
je 0x14003864a
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 0x140038675
lock dec dword [rcx + 8]
jne 0x140038675
mov rbx, qword [rbp - 0x41]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x140038675
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.140108d90
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret