Function at 0x14005d210
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d546
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x64], 0
jmp 0x14005d281
mov eax, dword [rsp + 0x64]
add eax, 1
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x70], 0
jne 0x14005d53b
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.14005be00
test eax, eax
je 0x14005d53b
lea rdx, [0x140071454]
mov rcx, qword [rsp + 0x68]
call fcn.140001a80
test rax, rax
je 0x14005d514
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d514
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.14005c060
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14005d501
lea r9, [rsp + 0x88]
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
call fcn.14005ce70
test eax, eax
je 0x14005d501
mov rcx, qword [rsp + 0x80]
call fcn.140001bf0
mov r11, rax
mov eax, dword [rsp + 0x88]
cmp r11, rax
jne 0x14005d501
mov dword [rsp + 0x8c], 0
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140077d40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x8c], 0
jbe 0x14005d501
mov eax, dword [rsp + 0x8c]
add rax, 2
mov dword [rsp + 0x8c], eax
mov ecx, dword [rsp + 0x8c]
call fcn.140006748
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140077d40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d4d2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0xffffffffffffffff
je 0x14005d4d2
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0xf8]
mov rax, qword [rsp + 0x90]
mov qword [r11], rax
mov dword [rsp + 0x60], 1
cmp dword [rsp + 0x60], 0
jne 0x14005d501
cmp qword [rsp + 0x90], 0
je 0x14005d501
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140006750
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x70], 1
cmp qword [rsp + 0x68], 0
je 0x14005d536
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140006750
jmp 0x14005d276
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x60]
add rsp, 0xc8
ret