Function at 0x1400575d4
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 0x140057716
sub ecx, 1
je 0x140057711
cmp ecx, 1
je 0x140057716
mov rax, qword [0x140129c08]
test rax, rax
je 0x14005768a
cmp dword [0x140129c00], r12d
jne 0x1400576fe
movabs r10, 0xa67c1eeb5c5dcb70
mov edx, ebx
lea rcx, str._Unknown_GUID_TYPE:__x_n
call qword [0x140070c80]
mov r8, r15
mov edx, esi
mov rcx, r14
call fcn.140055dd0
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400576ae
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 0x1400576c8
lea rdx, [0x1400725e4]
call fcn.140063008
nop
lea rax, [rbp + 0x1f]
mov rcx, qword [rbp + 0xf]
cmp rcx, rax
je 0x1400576e1
lea rdx, [0x1400725e4]
call fcn.140063008
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
mov edx, ebx
lea rcx, str._Unknown_GUID_TYPE:__x_n
call fcn.140055e8c
jmp 0x14005768a
mov edi, 0x109
mov rdx, r15
lea rcx, [rbp + 0xf]
call fcn.14005b2b4
test eax, eax
js 0x14005768a
lea r8, str.CLSID
mov r9, qword [rbp + 0xf]
mov r8, qword [r8 + rbx*8]
lea rdx, [0x1400df098]
lea rcx, [rbp - 0x11]
call fcn.14005b36c
test eax, eax
js 0x14005768a
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], r12
test rcx, rcx
je 0x14005776a
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 0x140057803
mov rbx, qword [0x140129c08]
test rbx, rbx
je 0x14005768a
cmp dword [0x140129c00], r12d
jne 0x1400577df
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movabs r10, 0xa67c1eeb5c5dcb70
lea rcx, str._Failed_to_open_registry_path__s__GLE___x_n
mov r8d, eax
mov rdx, qword [rbp - 0x11]
mov rax, rbx
call qword [0x140070c80]
jmp 0x14005768a
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, qword [rbp - 0x11]
call fcn.140055e8c
jmp 0x14005768a
mov edi, 1
cmp ebx, edi
jne 0x140057935
mov edx, 0xff
lea rcx, [rbp + 0xf]
call fcn.140045df8
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 0x1400578b4
mov rbx, qword [0x140129c08]
test rbx, rbx
je 0x14005768a
cmp dword [0x140129c00], r12d
jne 0x14005789c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movabs r10, 0xa67c1eeb5c5dcb70
lea rcx, str._Failed_to_enumerate_first_subkey_for__s__GLE___x_n
jmp 0x1400577ca
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 0x1400577f2
mov r8, rdi
lea rdx, [0x140075e2c]
lea rcx, [rbp - 0x11]
call fcn.140045b44
test al, al
je 0x14005768a
mov r8, qword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
sub r8, rdx
sar r8, 1
lea rcx, [rbp - 0x11]
call fcn.140045b44
test al, al
je 0x14005768a
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], r12
test rcx, rcx
je 0x140057907
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 0x140057794
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp + 0xf]
call fcn.14005b45c
test eax, eax
jns 0x140057999
mov rbx, qword [0x140129c08]
test rbx, rbx
je 0x14005768a
cmp dword [0x140129c00], r12d
jne 0x140057981
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movabs r10, 0xa67c1eeb5c5dcb70
lea rcx, str._Failed_to_query_default_value_for_registry_path__s__GLE___x_n
jmp 0x1400577ca
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 0x1400577f2
mov rdx, rsi
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.14004f9f0
jmp 0x140057698