Function at 0x1000061f8
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rbp, rcx
xor ecx, ecx
mov rsi, r9
mov rdi, r8
mov rax, rdx
mov dword [r11 - 0x34], ecx
mov dword [rsp + 0x64], ecx
mov dword [rsp + 0x60], ecx
mov qword [r11 - 0x30], rcx
mov qword [r11 - 0x50], rcx
mov qword [r11 - 0x40], rcx
cmp rbp, rcx
je 0x1000065ab
cmp rax, rcx
je 0x1000065ab
cmp r8, rcx
je 0x1000065ab
cmp r9, rcx
je 0x1000065ab
cmp dword [r9 + 4], 1
jne 0x100006275
cmp dword [r8 + 0x68], 1
jne 0x100006275
cmp qword [r8 + 0x58], rcx
jne 0x100006275
cmp qword [r8 + 0x78], rcx
je 0x1000062a9
cmp dword [r8 + 0x68], ecx
je 0x100006295
cmp dword [r8 + 0x68], 1
jne 0x100006295
cmp dword [r9 + 4], 1
jne 0x1000062a9
cmp qword [r8 + 0x58], rcx
jne 0x100006295
cmp qword [r8 + 0x78], rcx
je 0x1000062a9
mov rcx, rbp
call fcn.100005f08
xor ecx, ecx
mov ebx, eax
cmp eax, ecx
jne 0x1000065b7
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x1000062f9
mov ecx, eax
jmp 0x1000065b2
cmp dword [rsp + 0x64], 0
mov ecx, dword [rsp + 0x60]
je 0x10000630f
test ecx, ecx
jne 0x10000630f
mov ecx, 0x100
jmp 0x100006319
cmp ecx, 0x100
jae 0x100006319
add ecx, ecx
inc ecx
mov dword [rsp + 0x60], ecx
add ecx, ecx
call fcn.10000ef18
mov rbp, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x10000633d
mov ebx, 0xe
jmp 0x1000065b0
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x60]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x70], eax
lea ecx, [rax + rax]
call fcn.10000ef18
mov qword [rsp + 0x78], rax
test rax, rax
je 0x100006333
xor ebx, ebx
and dword [rsp + 0x80], ebx
cmp dword [rsp + 0x64], ebx
jbe 0x1000065b7
mov eax, dword [rsp + 0x60]
xor edx, edx
mov rcx, rbp
mov r8, rax
mov dword [rsp + 0x84], eax
add r8, r8
call sub.msvcrt.dll_memset
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0xc0]
xor eax, eax
lea r9, [rsp + 0x84]
mov r8, rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
mov ebx, eax
cmp eax, ecx
jne 0x10000658d
lea eax, [rcx + 1]
mov dword [rsi + 0xc], ecx
mov dword [rsi + 4], eax
test byte [rdi + 0x68], al
je 0x100006481
mov rdx, qword [rdi + 0x70]
mov qword [rsp + 0x90], rcx
mov ebp, eax
cmp dword [rdi + 0x28], ecx
jne 0x100006424
mov eax, dword [rdi + 0x24]
mov rcx, qword [rsp + 0x68]
neg eax
sbb r8d, r8d
not r8d
and r8d, 0x100
or r8d, 2
call fcn.10000f43c
test eax, eax
jne 0x10000644c
jmp 0x10000643f
cmp dword [rdi + 0x24], ecx
mov r8d, ecx
mov rcx, qword [rsp + 0x68]
sete r8b
xor r9d, r9d
call fcn.10000e80c
test eax, eax
je 0x10000644c
mov ecx, 0x490
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x90]
call fcn.10000ee3c
xor ecx, ecx
mov dword [rsi + 4], ebp
cmp ebp, ecx
mov rbp, qword [rsp + 0x68]
jne 0x100006478
cmp dword [rdi + 0x20], ecx
jne 0x10000648f
cmp dword [rdi + 0x68], 1
je 0x10000658f
jmp 0x10000648f
mov dword [rsi + 0xc], 1
jmp 0x10000648f
cmp dword [rdi + 0x68], ecx
jne 0x10000648c
cmp qword [rdi + 0x58], rcx
je 0x10000648f
mov dword [rsi + 4], ecx
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x78]
call fcn.10000e668
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
lea rdx, [0x100001440]
call fcn.10000e710
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call fcn.10000e710
cmp dword [rsi + 4], 1
mov dword [rsi], 1
jne 0x10000651a
xor ecx, ecx
cmp qword [rdi + 0x58], rcx
jne 0x10000651a
cmp qword [rdi + 0x78], rcx
jne 0x10000651a
inc dword [rsi + 0x10]
mov dword [rsi + 0xc], ecx
mov dword [rsi], ecx
call qword [sym.imp.msvcrt.dll___iob_func]
mov rcx, qword [rsp + 0x78]
lea r9, [0x100001d58]
mov qword [rsp + 0x20], rcx
mov ecx, 1
mov r8d, ecx
mov edx, ecx
lea rcx, [rax + 0x30]
call fcn.10000ec34
cmp dword [rdi + 0x20], 1
jne 0x10000658f
mov r9d, dword [rdi + 0x84]
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0x88]
or r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10000658d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
mov r9, rsi
mov r8, rdi
call fcn.1000061f8
mov rcx, qword [rsp + 0x88]
mov ebx, eax
test rcx, rcx
je 0x10000658f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x88], 0
jmp 0x10000658f
mov ebx, ecx
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
cmp eax, dword [rsp + 0x64]
jb 0x10000637c
jmp 0x1000065b7
mov ebx, 0x57
mov ecx, ebx
call fcn.100002fe8
lea rcx, [rsp + 0x68]
call fcn.10000ee3c
lea rcx, [rsp + 0x78]
call fcn.10000ee3c
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret