Function at 0x180013970
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x30], 0
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.180014b40
lea rcx, [rsp + 0x140]
call fcn.180006980
nop
cmp qword [rsp + 0x180], 0
je 0x180013a1c
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x90]
call fcn.180006930
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x140]
call fcn.1800111f0
nop
lea rcx, [rsp + 0x90]
call fcn.180011170
mov eax, dword [rsp + 0x190]
or eax, 0x20019
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x140]
call fcn.1800072d0
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x44]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180013aac
mov r8, 0xffffffffffffffff
lea rdx, [0x18004196c]
mov rcx, qword [rsp + 0x170]
call fcn.180006930
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x140]
call fcn.180011170
mov rax, qword [rsp + 0x170]
jmp 0x180013edf
mov edx, 1
lea rcx, [rsp + 0x128]
call fcn.180014b40
lea rcx, [rsp + 0x128]
call fcn.180006980
nop
mov dword [rsp + 0xf8], 0
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x108]
xor r8d, r8d
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0xf8], 0
ja 0x180013b27
mov dword [rsp + 0xf8], 0x20000
mov edx, 1
lea rcx, [rsp + 0x110]
call fcn.180014b40
lea rcx, [rsp + 0x110]
call fcn.180006980
nop
mov eax, dword [rsp + 0xf8]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x110]
call fcn.180014b60
lea rcx, [rsp + 0x110]
call fcn.18000a210
mov dword [rsp + 0xf8], eax
lea rcx, [rsp + 0x110]
call fcn.1800072d0
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x108]
xor r8d, r8d
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180013c2a
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, 0xffffffffffffffff
lea rdx, [0x18004196c]
mov rcx, qword [rsp + 0x170]
call fcn.180006930
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x110]
call fcn.180011170
nop
lea rcx, [rsp + 0x128]
call fcn.180011170
nop
lea rcx, [rsp + 0x140]
call fcn.180011170
mov rax, qword [rsp + 0x170]
jmp 0x180013edf
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jbe 0x180013e80
cmp dword [rsp + 0x40], 3
jbe 0x180013c5e
cmp dword [rsp + 0x40], 4
je 0x180013e5c
cmp dword [rsp + 0x40], 7
je 0x180013c5e
jmp 0x180013e80
movzx eax, byte [rsp + 0x198]
test eax, eax
je 0x180013cd9
mov eax, dword [rsp + 0xf8]
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x110]
call fcn.1800072d0
mov rcx, qword [rsp + 0x68]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.180006930
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x128]
call fcn.1800111f0
nop
lea rcx, [rsp + 0xb0]
call fcn.180011170
jmp 0x180013e5a
cmp dword [rsp + 0x108], 7
jne 0x180013da0
mov eax, dword [rsp + 0xf8]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0xf8], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jbe 0x180013d38
lea rcx, [rsp + 0x110]
call fcn.1800072d0
mov ecx, dword [rsp + 0x34]
dec ecx
mov ecx, ecx
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x180013d38
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x110]
call fcn.1800072d0
mov rcx, qword [rsp + 0x48]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180006930
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x128]
call fcn.1800111f0
nop
lea rcx, [rsp + 0xe0]
call fcn.180011170
jmp 0x180013e5a
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0xf8]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0xf8], eax
jmp 0x180013dcc
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xf8]
cmp dword [rsp + 0x38], eax
jae 0x180013df7
mov eax, dword [rsp + 0x38]
mov edx, eax
lea rcx, [rsp + 0x110]
call fcn.180007270
movzx eax, ax
test eax, eax
jne 0x180013df5
jmp 0x180013df7
jmp 0x180013dc2
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x110]
call fcn.1800072d0
mov rcx, qword [rsp + 0x60]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.180006930
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x128]
call fcn.1800111f0
nop
lea rcx, [rsp + 0xc8]
call fcn.180011170
jmp 0x180013e80
lea rcx, [rsp + 0x110]
call fcn.1800072d0
mov r8d, dword [rax]
lea rdx, [0x1800421f8]
lea rcx, [rsp + 0x128]
call fcn.180010850
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x170]
call fcn.180006870
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x110]
call fcn.180011170
nop
lea rcx, [rsp + 0x128]
call fcn.180011170
nop
lea rcx, [rsp + 0x140]
call fcn.180011170
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0x168
ret