Function at 0x1800772e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x510
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x558], rbx
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x6c], ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x74], ebx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x90], rbx
mov word [rsp + 0x100], bx
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x102]
call fcn.1800c1250
mov rcx, r14
call fcn.180077d00
cmp qword [rsi + 0x18], rbx
jne 0x180077383
xor al, al
jmp 0x1800776a4
cmp qword [rdi + 0x30], rbx
jne 0x180077390
xor al, al
jmp 0x1800776a4
cmp qword [rdi + 0x38], 8
jb 0x18007739d
mov r8, qword [rdi + 0x20]
jmp 0x1800773a1
lea r8, [rdi + 0x20]
mov edx, 0x200
lea rcx, [rsp + 0x100]
call fcn.1800beefc
cmp qword [rsi + 0x20], 8
jb 0x1800773c0
mov r8, qword [rsi + 8]
jmp 0x1800773c4
lea r8, [rsi + 8]
mov edx, 0x200
lea rcx, [rsp + 0x100]
call fcn.1800c0a54
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x180077428
mov dword [rsp + 0x88], 0xffffffff
lea rdx, [0x180136c18]
lea rcx, [rsp + 0x88]
call fcn.1800c1ef0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x18007749c
mov dword [rsp + 0x8c], 0xffffffff
lea rdx, [0x180136c18]
lea rcx, [rsp + 0x8c]
call fcn.1800c1ef0
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
add dword [rsp + 0x64], 2
mov edx, eax
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
mov qword [rsp + 0x98], rax
mov edx, dword [rsp + 0x64]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
mov qword [rsp + 0x90], rax
mov esi, ebx
cmp esi, dword [rsp + 0x78]
jae 0x180077654
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x6c], ecx
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x70], eax
mov r8, rcx
add r8, r8
xor edx, edx
mov rcx, r13
call fcn.1800c1250
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov rcx, r12
call fcn.1800c1250
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x6c]
mov r8, r13
mov edx, esi
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x18007764d
cmp dword [rsp + 0x74], 1
jne 0x18007764d
cmp dword [rsp + 0x6c], eax
je 0x18007764d
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], rbx
mov word [rsp + 0xb8], bx
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], rbx
mov word [rsp + 0xe0], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0xb0]
call fcn.180012d90
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0xd8]
call fcn.180012d90
lea rdx, [rsp + 0xb0]
mov rcx, r14
call fcn.180077c10
nop
cmp qword [rsp + 0xf8], 8
jb 0x180077619
mov rcx, qword [rsp + 0xe0]
call fcn.1800bd964
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], rbx
mov word [rsp + 0xe0], bx
cmp qword [rsp + 0xd0], 8
jb 0x18007764d
mov rcx, qword [rsp + 0xb8]
call fcn.1800bd964
inc esi
jmp 0x1800774e2
mov edi, ebx
mov dword [rsp + 0x60], ebx
jmp 0x180077670
test r13, r13
je 0x18007767e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x18007768c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x18007769f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1800bd980
mov rbx, qword [rsp + 0x558]
add rsp, 0x510
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret