Function at 0x140036970
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r14, r9
mov rsi, r8
mov r12, rdx
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.14000c890
nop
xor edi, edi
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
sub rax, rbx
sar rax, 1
mov qword [rsp + 0x60], rax
mov ecx, 0xffffffff
cmp rax, rcx
jbe 0x1400369fa
mov dword [rsp + 0x54], 1
lea rdx, [0x1401faff0]
lea rcx, [rsp + 0x54]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x30], eax
mov ecx, eax
add rcx, rcx
mov qword [rsp + 0x70], rcx
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x140036a2c
mov dword [rsp + 0x58], 1
lea rdx, [0x1401faff0]
lea rcx, [rsp + 0x58]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x30], ecx
cmp qword [rsi + 0x18], 8
jb 0x140036a3c
mov rdx, qword [rsi]
jmp 0x140036a3f
mov rdx, rsi
mov rax, qword [r12]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
je 0x140036ae1
cmp r15d, 0xea
je 0x140036ae1
mov edx, MsiPreviewDialogW
lea rcx, str...integration_store_utils.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140036a90
inc rax
jmp 0x140036a97
lea rax, str...integration_store_utils.cpp
mov rdx, rax
lea rcx, [0x14020c428]
call fcn.140005ff0
shl rax, 0x34
mov rsi, r15
or rsi, rax
movabs rax, 0x112100000000
or rsi, rax
test rbx, rbx
je 0x140036ad9
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov rax, rsi
jmp 0x140036ccf
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x140036b31
mov edx, MsiPreviewDialogW
lea rcx, str...integration_store_utils.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140036b08
inc rax
jmp 0x140036b0f
lea rax, str...integration_store_utils.cpp
mov rdx, rax
lea rcx, [0x14020c428]
call fcn.140005ff0
mov rsi, rax
shl rsi, 0x34
movabs rax, 0x12210000000d
jmp 0x140036aba
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140036b76
mov qword [r14 + 0x10], rdi
cmp qword [r14 + 0x18], 8
jb 0x140036b47
mov r14, qword [r14]
mov word [r14], di
test rbx, rbx
je 0x140036b67
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
movabs rax, 0x8000000000
jmp 0x140036ccf
xor edx, edx
mov ecx, 2
div rcx
test edx, edx
je 0x140036b9b
call fcn.140035fa0
mov rsi, rax
movabs rax, 0x13210000000d
jmp 0x140036aba
cmp r15d, 0xea
jne 0x140036bea
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140007690
cmp qword [rsi + 0x18], 8
jb 0x140036bba
mov rsi, qword [rsi]
mov rax, qword [r12]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r15d, r15d
je 0x140036c0c
call fcn.140035fa0
mov rsi, rax
mov eax, r15d
or rsi, rax
movabs rax, 0x142100000000
jmp 0x140036aba
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rdi
mov word [rsp + 0x78], di
cmp word [rbx], 0
jne 0x140036c40
mov r8, rdi
jmp 0x140036c4f
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140036c44
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140007d00
nop
mov r9d, dword [rsp + 0x30]
shr r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140007bc0
nop
cmp qword [rsp + 0x90], 8
jb 0x140036c8c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rdi
mov word [rsp + 0x78], di
jmp 0x140036b50
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140108d90
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret