Function at 0x18001dc40
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, 0x198
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rax, qword [0x1800881a0]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x40], 0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x6c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
movsxd rdx, dword [rsp + 0x6c]
lea r8, [0x180087980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087980]
mov dword [rdx + rcx], eax
mov edx, 1
lea rcx, [rsp + 0x170]
call fcn.180019030
lea rcx, [rsp + 0x170]
call fcn.18001bf00
nop
cmp qword [rsp + 0x1b0], 0
je 0x18001dd5b
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0xc8]
call fcn.18001be50
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x170]
call fcn.18001c490
nop
lea rcx, [rsp + 0xc8]
call fcn.180011730
mov eax, dword [rsp + 0x1c0]
or eax, 0x20019
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x170]
call fcn.1800324c0
lea rcx, [rsp + 0x130]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x64]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x18001de1b
mov r8, 0xffffffffffffffff
lea rdx, [0x18008a388]
mov rcx, qword [rsp + 0x1a0]
call fcn.18001be50
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x170]
call fcn.180011730
mov rax, qword [rsp + 0x1a0]
jmp 0x18001e4e2
mov edx, 1
lea rcx, [rsp + 0x158]
call fcn.180019030
lea rcx, [rsp + 0x158]
call fcn.18001bf00
nop
mov dword [rsp + 0x128], 0
lea rax, [rsp + 0x128]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x138]
xor r8d, r8d
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x128], 0
ja 0x18001de96
mov dword [rsp + 0x128], 0x20000
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.180019030
lea rcx, [rsp + 0x140]
call fcn.18001bf00
nop
mov dword [rsp + 0x60], 1
mov eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18001dee5
xor r9d, r9d
lea r8, [0x180089ffc]
lea rdx, [0x18008a004]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [rsp + 0x128]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x140]
call fcn.1800242f0
lea rcx, [rsp + 0x140]
call fcn.180006e60
mov dword [rsp + 0x128], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x68], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
movsxd rdx, dword [rsp + 0x68]
lea r8, [0x180087980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087980]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x70], 1
mov eax, dword [rsp + 0x70]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18001dfb1
xor r9d, r9d
lea r8, [0x180089ffc]
lea rdx, [0x18008a004]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [rsp + 0x140]
call fcn.1800324c0
lea rcx, [rsp + 0x128]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x138]
xor r8d, r8d
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x18001e127
mov eax, 4
mov word [rsp + 0x38], ax
movsx rax, word [rsp + 0x38]
lea rcx, [0x180087980]
cmp dword [rcx + rax*4], 1
jne 0x18001e03f
movsx rax, word [rsp + 0x38]
lea rcx, [0x180087980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x38]
lea rdx, [0x180087980]
mov dword [rdx + rcx*4], eax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov word [rsp + 0x30], ax
movsx rax, word [rsp + 0x30]
lea rcx, [0x180087980]
cmp dword [rcx + rax*4], 1
jne 0x18001e08c
movsx rax, word [rsp + 0x30]
lea rcx, [0x180087980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x30]
lea rdx, [0x180087980]
mov dword [rdx + rcx*4], eax
mov r8, 0xffffffffffffffff
lea rdx, [0x18008a388]
mov rcx, qword [rsp + 0x1a0]
call fcn.18001be50
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x140]
call fcn.180011730
nop
lea rcx, [rsp + 0x158]
call fcn.180011730
nop
lea rcx, [rsp + 0x170]
call fcn.180011730
mov rax, qword [rsp + 0x1a0]
jmp 0x18001e4e2
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jbe 0x18001e414
cmp dword [rsp + 0x50], 3
jbe 0x18001e18b
cmp dword [rsp + 0x50], 4
je 0x18001e3f0
cmp dword [rsp + 0x50], 7
je 0x18001e18b
jmp 0x18001e414
movzx eax, byte [rsp + 0x1c8]
test eax, eax
je 0x18001e21c
mov eax, dword [rsp + 0x128]
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x140]
call fcn.1800324c0
mov rcx, qword [rsp + 0x98]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.18001be50
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x158]
call fcn.18001c490
nop
lea rcx, [rsp + 0xe0]
call fcn.180011730
jmp 0x18001e3ee
cmp dword [rsp + 0x138], 7
jne 0x18001e2e9
mov eax, dword [rsp + 0x128]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x128], eax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jbe 0x18001e27b
lea rcx, [rsp + 0x140]
call fcn.1800324c0
mov ecx, dword [rsp + 0x48]
dec ecx
mov ecx, ecx
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x18001e27b
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x140]
call fcn.1800324c0
mov rcx, qword [rsp + 0x78]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.18001be50
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x158]
call fcn.18001c490
nop
lea rcx, [rsp + 0x110]
call fcn.180011730
jmp 0x18001e3ee
mov eax, SafeArrayGetDim
mov word [rsp + 0x3c], ax
movsx rax, word [rsp + 0x3c]
lea rcx, [0x180087980]
cmp dword [rcx + rax*4], 1
jne 0x18001e328
movsx rax, word [rsp + 0x3c]
lea rcx, [0x180087980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x3c]
lea rdx, [0x180087980]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x128]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x128], eax
jmp 0x18001e354
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x44], eax
jae 0x18001e37f
mov eax, dword [rsp + 0x44]
mov edx, eax
lea rcx, [rsp + 0x140]
call fcn.18001c520
movzx eax, word [rax]
test eax, eax
jne 0x18001e37d
jmp 0x18001e37f
jmp 0x18001e34a
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x140]
call fcn.1800324c0
mov rcx, qword [rsp + 0x90]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.18001be50
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x158]
call fcn.18001c490
nop
lea rcx, [rsp + 0xf8]
call fcn.180011730
jmp 0x18001e414
lea rcx, [rsp + 0x140]
call fcn.1800324c0
mov r8d, dword [rax]
lea rdx, [0x18008a3d0]
lea rcx, [rsp + 0x158]
call fcn.1800245a0
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x54], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
movsxd rdx, dword [rsp + 0x54]
lea r8, [0x180087980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087980]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087980]
mov dword [rdx + rcx], eax
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x1a0]
call fcn.18001bd80
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x140]
call fcn.180011730
nop
lea rcx, [rsp + 0x158]
call fcn.180011730
nop
lea rcx, [rsp + 0x170]
call fcn.180011730
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.18004d370
add rsp, 0x198
ret