Function at 0x140017d30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x180
lea rax, [rsp + 0x60]
xor r12d, r12d
mov rdi, r8
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov eax, dword [r8 + 0xc]
mov esi, edx
mov rdx, rcx
mov rcx, qword [rdi]
mov rbp, r9
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
call fcn.140016ef0
test eax, eax
jne 0x140017f7c
cmp qword [rdi + 0x18], r12
mov eax, dword [rsp + 0x1c0]
jne 0x140017e5d
cmp eax, 1
mov dword [rdi + 0xc], 1
mov dword [rsp + 0x68], 0xffffffff
jne 0x140017dde
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
jmp 0x140017e10
cmp eax, 2
jne 0x140017e3c
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x140017e3c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa
jmp 0x140017f7e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
mov r11d, 0xa
cmp eax, 0xffffffff
cmove eax, r11d
jmp 0x140017f7e
cmp eax, 1
jne 0x140017f96
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x104
mov ebx, r12d
mov dword [rsp + 0x1b0], 0x104
call fcn.14007cd30
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140017f0e
cmp esi, ebx
je 0x140017f20
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x104
add ebx, 1
mov dword [rsp + 0x1b0], 0x104
call fcn.14007cd30
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x70]
mov edx, ebx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x140017eb8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 8
jmp 0x140017f7e
mov eax, dword [rbp]
cmp eax, 0x104
jbe 0x140017f3c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xb
jmp 0x140017f7e
cmp eax, dword [rsp + 0x1b0]
jb 0x140017f2a
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140017f71
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
mov r8d, dword [rsp + 0x1b0]
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x70]
call fcn.14007d090
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
cmp eax, 2
jne 0x140017f71
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x104
mov ebx, r12d
mov dword [rsp + 0x1b0], 0x104
call fcn.14007cd30
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x70]
lea rcx, [rax + 0x10c]
add rax, 0x108
xor edx, edx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140018068
nop
cmp esi, ebx
je 0x14001807d
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x104
add ebx, 1
mov dword [rsp + 0x1b0], 0x104
call fcn.14007cd30
mov r11, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x1b0]
lea rax, [r11 + 0x10c]
add r11, 0x108
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r11
mov edx, ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x140018000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 9
jmp 0x140017f7e
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400180a9
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
mov r8d, dword [rsp + 0x1b0]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x70]
call fcn.14007d090
mov rcx, qword [rdi + 0x20]
mov eax, dword [rsp + 0x1b0]
mov dword [rcx + 0x104], eax
jmp 0x140017f71