Function at 0x1800074c0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov rdi, rcx
lea rdx, [rcx + 0x50]
mov rcx, qword [rcx + 0x48]
lea rax, [rbp - 9]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007749
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rbp - 0x15]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18000775c
mov eax, dword [rbp + 0x77]
mov ecx, dword [rbp + 0x67]
lea r15d, [rax*2 + 6]
test ecx, ecx
je 0x180007749
cmp r15d, 1
jbe 0x180007749
mov eax, r15d
imul eax, ecx
lea ecx, [rbx + 0x40]
add eax, 0xe
mov esi, eax
mov edx, eax
mov qword [rbp + 0xf], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x18000775c
mov qword [rsp + 0xa0], r12
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x98], r13
mov rcx, rax
call fcn.18000af10
mov eax, dword [rbp + 7]
mov byte [r14], bl
mov ecx, dword [rbp + 0x67]
mov dword [rbp - 1], ecx
mov dword [rbp + 3], r15d
movsd xmm0, qword [rbp - 1]
movsd qword [r14 + 1], xmm0
mov dword [r14 + 9], eax
movzx eax, byte [rbp + 0xb]
mov ecx, r15d
mov byte [r14 + 0xd], al
mov r12d, r15d
call fcn.1800092b8
mov r13, rax
mov esi, ebx
cmp dword [rbp + 0x67], ebx
jbe 0x180007711
nop dword [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, r13
call fcn.18000af10
mov rcx, qword [rbp - 9]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x38], rbx
mov r8, r13
mov qword [rsp + 0x30], rbx
mov edx, esi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x6f], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rbp - 9]
lea rax, [rbp - 1]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 1], rbx
mov rdx, r13
mov r12d, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000766a
mov rax, qword [rbp - 1]
mov qword [rdi + 0x40], rax
mov rcx, qword [rdi + 0x40]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1800076b8
lea rcx, [0x18002b480]
call fcn.180006800
cmp dword [rbp + 0x7f], ebx
je 0x1800076cc
mov r12d, 1
lea rcx, [0x18002b488]
jmp 0x1800076d3
lea rcx, [0x18002b48c]
call fcn.180006800
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbp + 0x6f]
lea rcx, [r14 + 0x11]
mov eax, r15d
add r8, r8
imul eax, esi
mov rdx, r13
add rcx, rax
mov dword [rax + r14 + 0xd], r12d
call fcn.18000a860
inc esi
mov r12d, r15d
cmp esi, dword [rbp + 0x67]
jb 0x180007600
mov rcx, r13
call fcn.180009248
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0xf]
mov r8d, 0x42
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov r13, qword [rsp + 0x98]
mov rbx, rax
mov r12, qword [rsp + 0xa0]
mov rax, rbx
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret