Function at 0x180001780
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
xor r12d, r12d
mov qword [rsp + 0x58], r8
mov word [r8], r12w
mov r15, rdx
mov rax, qword [rcx]
lea rdx, [rbp + 0x3f0]
mov rdi, r9
mov dword [rsp + 0x60], r12d
mov r14, rcx
mov dword [rbp + 0x3f0], r12d
call qword [rax + 0x38]
test eax, eax
js 0x180001a6f
mov esi, r12d
cmp dword [rbp + 0x3f0], r12d
jbe 0x180001a6f
mov rax, qword [r14]
lea r8, [rsp + 0x48]
mov edx, esi
mov qword [rsp + 0x48], r12
mov rcx, r14
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x70], r12d
lea rdx, [0x18001e340]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
mov word [rbp - 0x70], r12w
call fcn.1800011b8
mov rcx, qword [rsp + 0x40]
mov edx, r12d
cmp word [rcx], r12w
je 0x180001857
mov rax, rcx
inc edx
lea rax, [rax + 2]
cmp word [rax], r12w
jne 0x18000184b
movsxd rax, edx
lea rdx, [rcx + rax*2]
jmp 0x18000186a
cmp word [rdx], 0x2e
je 0x180001871
sub rdx, 2
cmp rdx, rcx
jne 0x180001860
jmp 0x180001875
add rdx, 2
lea rcx, [rsp + 0x68]
call fcn.1800011b8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rax, [rsp + 0x50]
mov r9d, 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180001a61
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x3e0]
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0x1a0]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x3e0], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, 1
cmp eax, 0x103
je 0x180001a61
test eax, eax
jne 0x180001953
lea rcx, [rbp + 0x1a0]
mov rax, r15
mov edx, r12d
cmp word [r15], r12w
je 0x180001949
movzx r8d, word [rcx]
test r8w, r8w
je 0x180001949
cmp word [rax], r8w
jne 0x180001949
cmp edx, 0x104
jae 0x180001949
add rax, 2
add rcx, 2
inc edx
cmp word [rax], r12w
jne 0x180001921
movzx ecx, word [rcx]
movzx eax, word [rax]
cmp eax, ecx
je 0x180001993
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x3e0]
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0x1a0]
mov qword [rsp + 0x30], r12
mov edx, ebx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x3e0], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
jmp 0x1800018ff
lea rdx, [0x18001e390]
lea rcx, [rsp + 0x58]
call fcn.1800011b8
cmp word [rdi], r12w
jne 0x180001a0d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rdi
mov dword [rbp - 0x80], r12d
mov word [rdi], r12w
call fcn.1800011b8
mov ecx, r12d
cmp word [rdi], r12w
je 0x1800019de
mov rax, rdi
inc ecx
lea rax, [rax + 2]
cmp word [rax], r12w
jne 0x1800019d2
movsxd rax, ecx
add rax, rax
lea rbx, [rax + rdi]
je 0x1800019f9
cmp word [rbx], 0x5c
je 0x1800019f9
sub rbx, 2
cmp rbx, rdi
jne 0x1800019ea
lea rdx, [rbx + 2]
lea rcx, [rsp + 0x58]
call fcn.1800011b8
mov word [rbx], r12w
jmp 0x180001a50
mov rcx, qword [rsp + 0x40]
mov edx, r12d
cmp word [rcx], r12w
je 0x180001a2a
mov rax, rcx
inc edx
lea rax, [rax + 2]
cmp word [rax], r12w
jne 0x180001a1e
movsxd rax, edx
lea rdx, [rcx + rax*2]
jmp 0x180001a3d
cmp word [rdx], 0x5c
je 0x180001a42
sub rdx, 2
cmp rdx, rcx
jne 0x180001a33
add rdx, 2
lea rcx, [rsp + 0x58]
call fcn.1800011b8
lea rdx, [0x18001e398]
lea rcx, [rsp + 0x58]
call fcn.1800011b8
inc esi
cmp esi, dword [rbp + 0x3f0]
jb 0x1800017e7
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret