Function at 0x18001e8c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.18003cfc0
lea rcx, [rsp + 0xb0]
call fcn.18001c230
nop
cmp qword [rsp + 0x138], 0
je 0x18001e964
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x80]
call fcn.18001c170
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xb0]
call fcn.18001c7f0
nop
lea rcx, [rsp + 0x80]
call fcn.1800119b0
mov qword [rsp + 0xa0], 0
mov eax, dword [rsp + 0x140]
or eax, 0x2001f
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0xb0]
call fcn.18000b6b0
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x70]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x18001ebdb
cmp dword [rsp + 0x40], 2
jne 0x18001eb12
movzx eax, byte [rsp + 0x148]
test eax, eax
je 0x18001eb12
mov edx, 1
lea rcx, [rsp + 0xe0]
call fcn.18003cfc0
lea rcx, [rsp + 0xb0]
call fcn.18000b6b0
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180022d00
nop
mov edx, 1
lea rcx, [rsp + 0xf8]
call fcn.18003cfc0
lea rcx, [rsp + 0xb0]
call fcn.18000b6b0
mov rcx, rax
call fcn.180022490
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.18001c170
nop
lea rcx, [rsp + 0xe0]
call fcn.180019520
movzx eax, al
test eax, eax
jne 0x18001eaf7
lea rcx, [rsp + 0xf8]
call fcn.180019520
movzx eax, al
test eax, eax
jne 0x18001eaf7
lea rcx, [rsp + 0xf8]
call fcn.18000b6b0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe0]
call fcn.18000b6b0
mov r9d, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x78]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.18001d680
test eax, eax
jne 0x18001eaf7
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0xf8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xe0]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x54]
jmp 0x18001edf8
lea rcx, [rsp + 0xf8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xe0]
call fcn.1800119b0
cmp dword [rsp + 0x40], 2
je 0x18001ebbd
cmp dword [rsp + 0x40], 3
je 0x18001ebbd
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 + 0x58], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
movsxd rdx, dword [rsp + 0x58]
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
lea rcx, [rsp + 0xb0]
call fcn.180011c00
mov r9, rax
mov r8d, dword [rsp + 0x40]
lea rdx, [0x18008b7b0]
mov ecx, 4
call fcn.180041480
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x60]
jmp 0x18001edf8
mov edx, 1
lea rcx, [rsp + 0xc8]
call fcn.18003cfc0
lea rcx, [rsp + 0xc8]
call fcn.18001c230
nop
mov edx, 0x8000
lea rcx, [rsp + 0xc8]
call fcn.1800246d0
lea rcx, [rsp + 0xc8]
call fcn.180011c00
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xc8]
call fcn.180001ce0
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
je 0x18001ec45
cmp qword [rsp + 0x68], 0
jne 0x18001ec71
mov dword [rsp + 0x50], 8
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x50]
jmp 0x18001edf8
lea rax, [rsp + 0x110]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18001ed9a
xor r9d, r9d
mov r8d, dword [rsp + 0x140]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.18001e8c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x18001ed12
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x4c]
jmp 0x18001edf8
lea rcx, [rsp + 0xc8]
call fcn.180001ce0
mov dword [rsp + 0xa8], eax
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 + 0x5c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
movsxd rdx, dword [rsp + 0x5c]
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 0x18001ec71
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0xb0]
call fcn.18000b6b0
mov r8d, dword [rsp + 0x140]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.18001d600
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.18004e350
add rsp, 0x128
ret