Function at 0x140010028
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 0x140010151
sub ecx, 1
je 0x14001014c
cmp ecx, 1
je 0x140010151
mov rax, qword [0x1400d5f88]
test rax, rax
je 0x1400100d0
mov edx, ebx
lea rcx, str._Unknown_GUID_TYPE:__x_n
cmp dword [0x1400d5f84], r12d
jne 0x140010144
call qword [0x140027658]
mov r8, r15
mov edx, esi
mov rcx, r14
call fcn.14000e964
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400100f4
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 0x14001010e
lea rdx, [0x1400278bf]
call fcn.1400246a0
nop
lea rax, [rbp + 0x1f]
mov rcx, qword [rbp + 0xf]
cmp rcx, rax
je 0x140010127
lea rdx, [0x1400278bf]
call fcn.1400246a0
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.14000ea20
nop
jmp 0x1400100d0
mov edi, 0x109
mov rdx, r15
lea rcx, [rbp + 0xf]
call fcn.140013ac0
test eax, eax
js 0x1400100d0
lea rax, str.CLSID
mov r9, qword [rbp + 0xf]
mov r8, qword [rax + rbx*8]
lea rdx, [0x14008f808]
lea rcx, [rbp - 0x11]
call fcn.140013b78
test eax, eax
js 0x1400100d0
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], r12
test rcx, rcx
je 0x1400101a5
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 0x140010237
cmp qword [0x1400d5f88], r12
je 0x1400100d0
cmp dword [0x1400d5f84], r12d
mov rbx, qword [rbp - 0x11]
jne 0x140010214
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 [0x1400d5f88]
call qword [0x140027658]
jmp 0x1400100d0
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.14000ea20
jmp 0x1400100d0
mov edi, 1
cmp ebx, edi
jne 0x140010360
mov edx, 0xff
lea rcx, [rbp + 0xf]
call fcn.14000cf30
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 0x1400102df
cmp qword [0x1400d5f88], r12
je 0x1400100d0
mov rbx, qword [rbp - 0x11]
cmp dword [0x1400d5f84], r12d
jne 0x1400102c7
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 0x1400101fc
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 0x140010227
mov r8, rdi
lea rdx, [0x14002826c]
lea rcx, [rbp - 0x11]
call fcn.14000d10c
test al, al
je 0x1400100d0
mov r8, qword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
sub r8, rdx
sar r8, 1
lea rcx, [rbp - 0x11]
call fcn.14000d10c
test al, al
je 0x1400100d0
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], r12
test rcx, rcx
je 0x140010332
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 0x1400101cf
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp + 0xf]
call fcn.140013cdc
test eax, eax
jns 0x1400103bb
cmp qword [0x1400d5f88], r12
je 0x1400100d0
mov rbx, qword [rbp - 0x11]
cmp dword [0x1400d5f84], r12d
jne 0x1400103a3
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 0x1400101fc
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 0x140010227
mov rdx, rsi
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.1400086b0
jmp 0x1400100de