Function at 0x1400632d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
movsxd rbx, r9d
mov r15, r8
mov esi, edx
mov r14, rcx
lea rax, [rbp + 0x1f]
mov qword [rbp + 0xf], rax
lea rax, [rbp + 0x1f]
mov qword [rbp + 0x17], rax
xor r12d, r12d
mov word [rbp + 0x1f], r12w
lea rax, [rbp - 1]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 1]
mov qword [rbp - 9], rax
mov word [rbp - 1], r12w
mov edi, 0x101
mov qword [rbp - 0x29], r12
mov ecx, ebx
test r9d, r9d
je 0x1400633f9
sub ecx, 1
je 0x1400633f4
cmp ecx, 1
je 0x1400633f9
mov rax, qword [0x1401476f8]
test rax, rax
je 0x140063378
mov edx, ebx
lea rcx, str._Unknown_GUID_TYPE:__x_n
cmp dword [0x1401476f0], r12d
jne 0x1400633ec
call qword [0x14007ef80]
mov r8, r15
mov edx, esi
mov rcx, r14
call fcn.140061bb8
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14006339c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rax, [rbp - 1]
mov rcx, qword [rbp - 0x11]
cmp rcx, rax
je 0x1400633b6
lea rdx, [0x140080f44]
call fcn.14006eb30
nop
lea rax, [rbp + 0x1f]
mov rcx, qword [rbp + 0xf]
cmp rcx, rax
je 0x1400633cf
lea rdx, [0x140080f44]
call fcn.14006eb30
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140061c74
nop
jmp 0x140063378
mov edi, 0x109
mov rdx, r15
lea rcx, [rbp + 0xf]
call fcn.140066d78
test eax, eax
js 0x140063378
lea rax, str.CLSID
mov r9, qword [rbp + 0xf]
mov r8, qword [rax + rbx*8]
lea rdx, [0x1400eeba8]
lea rcx, [rbp - 0x11]
call fcn.140066e2c
test eax, eax
js 0x140063378
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], r12
test rcx, rcx
je 0x14006344d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rbp - 0x11]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400634df
cmp qword [0x1401476f8], r12
je 0x140063378
cmp dword [0x1401476f0], r12d
mov rbx, qword [rbp - 0x11]
jne 0x1400634bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._Failed_to_open_registry_path__s__GLE___x_n
mov r8d, eax
mov rdx, rbx
mov rax, qword [0x1401476f8]
call qword [0x14007ef80]
jmp 0x140063378
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._Failed_to_open_registry_path__s__GLE___x_n
mov r8d, eax
mov rdx, rbx
call fcn.140061c74
jmp 0x140063378
mov edi, 1
cmp ebx, edi
jne 0x140063608
mov edx, 0xff
lea rcx, [rbp + 0xf]
call fcn.14005282c
mov rax, qword [rbp + 0x17]
mov r8, qword [rbp + 0xf]
sub rax, r8
sar rax, 1
mov dword [rbp + 0x7f], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7f]
xor edx, edx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140063587
cmp qword [0x1401476f8], r12
je 0x140063378
mov rbx, qword [rbp - 0x11]
cmp dword [0x1401476f0], r12d
jne 0x14006356f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._Failed_to_enumerate_first_subkey_for__s__GLE___x_n
jmp 0x1400634a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._Failed_to_enumerate_first_subkey_for__s__GLE___x_n
jmp 0x1400634cf
mov r8, rdi
lea rdx, [0x14008100c]
lea rcx, [rbp - 0x11]
call fcn.14005257c
test al, al
je 0x140063378
mov r8, qword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
sub r8, rdx
sar r8, 1
lea rcx, [rbp - 0x11]
call fcn.14005257c
test al, al
je 0x140063378
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], r12
test rcx, rcx
je 0x1400635da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rbp - 0x11]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140063477
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp + 0xf]
call fcn.140066f90
test eax, eax
jns 0x140063663
cmp qword [0x1401476f8], r12
je 0x140063378
mov rbx, qword [rbp - 0x11]
cmp dword [0x1401476f0], r12d
jne 0x14006364b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._Failed_to_query_default_value_for_registry_path__s__GLE___x_n
jmp 0x1400634a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._Failed_to_query_default_value_for_registry_path__s__GLE___x_n
jmp 0x1400634cf
mov rdx, rsi
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.14005b790
jmp 0x140063386