Function at 0x18001e010
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 [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x48], 0
mov edx, 1
lea rcx, [rsp + 0x170]
call fcn.18003cfc0
lea rcx, [rsp + 0x170]
call fcn.18001c230
nop
mov eax, 8
mov word [rsp + 0x34], ax
movsx rax, word [rsp + 0x34]
lea rcx, [0x180088980]
cmp dword [rcx + rax*4], 1
jne 0x18001e0b0
movsx rax, word [rsp + 0x34]
lea rcx, [0x180088980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x34]
lea rdx, [0x180088980]
mov dword [rdx + rcx*4], eax
cmp qword [rsp + 0x1b0], 0
je 0x18001e0fb
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0xc8]
call fcn.18001c170
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x170]
call fcn.18001c7f0
nop
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
mov eax, dword [rsp + 0x1c0]
or eax, 0x20019
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x170]
call fcn.18000b6b0
lea rcx, [rsp + 0x130]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x6c]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x54], eax
mov eax, 1
mov word [rsp + 0x44], ax
movsx rax, word [rsp + 0x44]
lea rcx, [0x180088980]
cmp dword [rcx + rax*4], 1
jne 0x18001e183
movsx rax, word [rsp + 0x44]
lea rcx, [0x180088980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x44]
lea rdx, [0x180088980]
mov dword [rdx + rcx*4], eax
cmp dword [rsp + 0x54], 0
je 0x18001e23c
mov eax, 1
mov word [rsp + 0x40], ax
movsx rax, word [rsp + 0x40]
lea rcx, [0x180088980]
cmp dword [rcx + rax*4], 1
jne 0x18001e1cd
movsx rax, word [rsp + 0x40]
lea rcx, [0x180088980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x40]
lea rdx, [0x180088980]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x60], 1
mov eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18001e1fc
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r8, 0xffffffffffffffff
lea rdx, [0x18008b728]
mov rcx, qword [rsp + 0x1a0]
call fcn.18001c170
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x170]
call fcn.1800119b0
mov rax, qword [rsp + 0x1a0]
jmp 0x18001e89c
mov edx, 1
lea rcx, [rsp + 0x158]
call fcn.18003cfc0
lea rcx, [rsp + 0x158]
call fcn.18001c230
nop
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
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, [0x180088980]
movsxd rdx, dword [rsp + 0x68]
lea r8, [0x180088980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088980]
mov dword [rdx + rcx], eax
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 + 0x54], eax
cmp dword [rsp + 0x128], 0
ja 0x18001e326
mov dword [rsp + 0x128], 0x20000
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.18003cfc0
lea rcx, [rsp + 0x140]
call fcn.18001c230
nop
mov eax, dword [rsp + 0x128]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x140]
call fcn.1800246d0
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov word [rsp + 0x38], ax
movsx rax, word [rsp + 0x38]
lea rcx, [0x180088980]
cmp dword [rcx + rax*4], 1
jne 0x18001e39f
movsx rax, word [rsp + 0x38]
lea rcx, [0x180088980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x38]
lea rdx, [0x180088980]
mov dword [rdx + rcx*4], eax
lea rcx, [rsp + 0x140]
call fcn.180001ce0
mov dword [rsp + 0x128], eax
lea rcx, [rsp + 0x140]
call fcn.18000b6b0
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 + 0x54], eax
mov eax, 1
mov word [rsp + 0x3c], ax
movsx rax, word [rsp + 0x3c]
lea rcx, [0x180088980]
cmp dword [rcx + rax*4], 1
jne 0x18001e436
movsx rax, word [rsp + 0x3c]
lea rcx, [0x180088980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x3c]
lea rdx, [0x180088980]
mov dword [rdx + rcx*4], eax
cmp dword [rsp + 0x54], 0
je 0x18001e4ea
mov eax, SafeArrayGetDim
mov word [rsp + 0x30], ax
movsx rax, word [rsp + 0x30]
lea rcx, [0x180088980]
cmp dword [rcx + rax*4], 1
jne 0x18001e480
movsx rax, word [rsp + 0x30]
lea rcx, [0x180088980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x30]
lea rdx, [0x180088980]
mov dword [rdx + rcx*4], eax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, 0xffffffffffffffff
lea rdx, [0x18008b728]
mov rcx, qword [rsp + 0x1a0]
call fcn.18001c170
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x140]
call fcn.1800119b0
nop
lea rcx, [rsp + 0x158]
call fcn.1800119b0
nop
lea rcx, [rsp + 0x170]
call fcn.1800119b0
mov rax, qword [rsp + 0x1a0]
jmp 0x18001e89c
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jbe 0x18001e80b
cmp dword [rsp + 0x58], 3
jbe 0x18001e51e
cmp dword [rsp + 0x58], 4
je 0x18001e776
cmp dword [rsp + 0x58], 7
je 0x18001e51e
jmp 0x18001e80b
movzx eax, byte [rsp + 0x1c8]
test eax, eax
je 0x18001e5af
mov eax, dword [rsp + 0x128]
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x140]
call fcn.18000b6b0
mov rcx, qword [rsp + 0x98]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.18001c170
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.18001c7f0
nop
lea rcx, [rsp + 0xe0]
call fcn.1800119b0
jmp 0x18001e771
cmp dword [rsp + 0x138], 7
jne 0x18001e67c
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 + 0x50], eax
cmp dword [rsp + 0x50], 0
jbe 0x18001e60e
lea rcx, [rsp + 0x140]
call fcn.18000b6b0
mov ecx, dword [rsp + 0x50]
dec ecx
mov ecx, ecx
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x18001e60e
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x140]
call fcn.18000b6b0
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.18001c170
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x158]
call fcn.18001c7f0
nop
lea rcx, [rsp + 0x110]
call fcn.1800119b0
jmp 0x18001e771
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x128]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x128], eax
jmp 0x18001e6a8
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x4c], eax
jae 0x18001e702
mov eax, dword [rsp + 0x4c]
mov edx, eax
lea rcx, [rsp + 0x140]
call fcn.18001c960
movzx eax, word [rax]
test eax, eax
jne 0x18001e6d1
jmp 0x18001e702
mov dword [rsp + 0x70], 1
mov eax, dword [rsp + 0x70]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18001e700
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18001e69e
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x140]
call fcn.18000b6b0
mov rcx, qword [rsp + 0x90]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.18001c170
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.18001c7f0
nop
lea rcx, [rsp + 0xf8]
call fcn.1800119b0
jmp 0x18001e83d
lea rcx, [rsp + 0x140]
call fcn.18000b6b0
mov r8d, dword [rax]
lea rdx, [0x18008b72c]
lea rcx, [rsp + 0x158]
call fcn.180024940
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x64], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
movsxd rdx, dword [rsp + 0x64]
lea r8, [0x180088980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088980]
mov dword [rdx + rcx], eax
jmp 0x18001e83d
jmp 0x18001e83d
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x1a0]
call fcn.18001c0a0
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x140]
call fcn.1800119b0
nop
lea rcx, [rsp + 0x158]
call fcn.1800119b0
nop
lea rcx, [rsp + 0x170]
call fcn.1800119b0
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.18004e350
add rsp, 0x198
ret