Function at 0x14005d5a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x17a0]
mov eax, 0x18a0
call fcn.1400d9fd0
sub rsp, rax
mov rax, qword [rbp + 0x1800]
xor ebx, ebx
mov qword [rbp - 0x80], rax
mov r12, r8
mov rax, qword [rbp + 0x1808]
mov r15, rdx
mov rdx, qword [rbp + 0x1810]
mov rsi, rcx
mov r8d, 0x3ff
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x70]
mov dword [rbp + 0xf90], ebx
mov rdi, r9
mov word [rbp + 0x790], bx
call fcn.1400cf354
lea rcx, [rbp - 0x70]
mov word [rbp + 0x78e], bx
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], bx
jne 0x14005d620
test rax, rax
je 0x14005d63b
cmp word [rbp + rax*2 - 0x72], 0x5c
jne 0x14005d63b
mov word [rbp + rax*2 - 0x72], bx
mov rax, qword [0x14011f188]
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
xor r8d, r8d
mov r9d, dword [rax + 0xb0]
lea rax, [rsp + 0x70]
or r9d, 9
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d6c0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
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], rax
lea rax, [rsp + 0x7c]
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 0x14005d6ca
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
jmp 0x14005d9d2
mov ecx, dword [rbp + 0x17f0]
xor edx, edx
mov qword [rsp + 0x18d0], r13
mov ebx, 4
mov r13, qword [0x14011f188]
mov qword [rsp + 0x18d8], r14
mov r14d, dword [rsp + 0x78]
mov qword [rsp + 0x60], rdx
test r14d, r14d
je 0x14005d7ee
cmp ecx, 2
je 0x14005d7ee
mov qword [rbp + 0xf94], rdx
dec r14d
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x38], rdx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdx
lea r8, [rbp + 0x790]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov word [rbp + 0x790], dx
mov edx, r14d
mov dword [rsp + 0x68], 0x400
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005d970
lea rax, [rbp - 0x80]
mov qword [r13 + 0x10], rax
mov rcx, qword [rsi + 0x20]
cmp byte [rcx], 3
jne 0x14005d799
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x60]
mov r8, r15
mov edx, 2
call fcn.14005a780
mov rcx, qword [rsi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x60]
cmp rax, rcx
je 0x14005d771
jmp 0x14005d7b2
lea r9, [rsp + 0x60]
mov r8, r15
mov edx, 3
call fcn.14005a780
mov ebx, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14005d8bb
cmp ebx, 6
jne 0x14005d7c9
cmp rax, rsi
je 0x14005d8c0
mov qword [r12], rax
cmp ebx, 1
je 0x14005d7db
cmp ebx, 4
jne 0x14005d9b5
cmp qword [r12], 0
jne 0x14005d9b5
mov ecx, dword [rbp + 0x17f0]
xor edx, edx
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14005d9b5
movzx r12d, byte [rbp + 0x17f8]
cmp ecx, 1
jne 0x14005d810
test r12b, r12b
je 0x14005d9b5
mov dword [rbp + 0xf90], 0xfffffffe
lea r14d, [rax - 1]
nop
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0xf94]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdx
lea r8, [rbp + 0x790]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
mov edx, r14d
mov dword [rsp + 0x68], 0x400
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005db54
cmp dword [rbp + 0x17f0], 1
je 0x14005da9e
lea rax, [rbp - 0x80]
mov qword [r13 + 0x10], rax
mov rcx, qword [rsi + 0x20]
cmp byte [rcx], 3
jne 0x14005d983
nop word [rax + rax]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x60]
mov r8, r15
mov edx, 2
call fcn.14005a780
mov rcx, qword [rsi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x60]
cmp rax, rcx
je 0x14005d890
jmp 0x14005d99c
cmp ebx, 6
jne 0x14005d8c7
mov ebx, 1
jmp 0x14005d8d0
cmp ebx, 1
jne 0x14005d7d2
test rdi, rdi
je 0x14005d96c
mov rax, qword [0x14011f188]
mov qword [0x140127cd8], rdi
cmp byte [rax + 0xc6], 0
je 0x14005d932
movsxd rax, dword [0x140127290]
lea rbx, [0x140000000]
mov qword [rbx + rax*8 + 0x126610], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140127290]
mov dword [rbx + rdx*4 + 0x125fd0], eax
inc edx
mov dword [0x140127290], edx
cmp edx, 0x190
jl 0x14005d932
xor ebx, ebx
mov dword [0x140127290], ebx
cmp qword [0x140121a70], 0xffffffffffffffff
je 0x14005d944
mov rdx, rdi
call fcn.1400089c0
xor edx, edx
mov rcx, rdi
call fcn.140076bb0
mov ebx, eax
cmp eax, 1
jne 0x14005d7d2
mov rcx, qword [0x1401272b0]
lea ebx, [rax + 4]
call fcn.140067810
test eax, eax
jne 0x14005d9b5
inc qword [r13]
test r14d, r14d
je 0x14005d7cd
dec r14d
xor edx, edx
jmp 0x14005d714
lea r9, [rsp + 0x60]
mov r8, r15
mov edx, 3
call fcn.14005a780
mov ebx, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14005d9e9
cmp ebx, 6
jne 0x14005d9ab
cmp rax, rsi
je 0x14005d9ee
mov rcx, qword [rbp + 0x17e0]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x18d0]
mov eax, ebx
mov r14, qword [rsp + 0x18d8]
mov rbx, qword [rsp + 0x18e8]
add rsp, 0x18a0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp ebx, 6
jne 0x14005d9f5
mov ebx, 1
jmp 0x14005d9fa
cmp ebx, 1
jne 0x14005d9b5
test rdi, rdi
je 0x14005da9a
mov rax, qword [0x14011f188]
mov qword [0x140127cd8], rdi
cmp byte [rax + 0xc6], 0
je 0x14005da5c
movsxd rax, dword [0x140127290]
lea rbx, [0x140000000]
mov qword [rbx + rax*8 + 0x126610], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140127290]
mov dword [rbx + rdx*4 + 0x125fd0], eax
inc edx
mov dword [0x140127290], edx
cmp edx, 0x190
jl 0x14005da5c
xor ebx, ebx
mov dword [0x140127290], ebx
cmp qword [0x140121a70], 0xffffffffffffffff
je 0x14005da6e
mov rdx, rdi
call fcn.1400089c0
xor edx, edx
mov rcx, rdi
call fcn.140076bb0
mov ebx, eax
cmp eax, 1
jne 0x14005d9b5
mov rcx, qword [0x1401272b0]
lea ebx, [rax + 4]
call fcn.140067810
test eax, eax
jne 0x14005d9b5
inc qword [r13]
test r12b, r12b
je 0x14005db54
cmp word [rbp - 0x70], 0
lea rcx, [0x140102f38]
lea rax, [0x1400fbbd0]
mov edx, 0x400
cmovne rax, rcx
lea r9, [rbp - 0x70]
lea rcx, [rbp + 0x790]
mov qword [rsp + 0x28], rcx
lea r8, [0x140102f40]
lea rcx, [rbp + 0xfa0]
mov qword [rsp + 0x20], rax
call fcn.14009cd90
mov r8, qword [rbp + 0x17e0]
lea rax, [rbp + 0xfa0]
mov qword [rsp + 0x40], rax
mov r9, rdi
mov rax, qword [rbp + 0x1808]
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov rax, qword [rbp + 0x1800]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x17f0]
mov byte [rsp + 0x28], r12b
mov dword [rsp + 0x20], eax
call fcn.14005d5a0
cmp eax, 4
je 0x14005db54
mov ebx, eax
cmp eax, 1
jne 0x14005d9b5
mov rax, qword [rbp + 0x17e0]
cmp qword [rax], 0
jne 0x14005d9b5
test r14d, r14d
je 0x14005d9b5
dec r14d
xor edx, edx
jmp 0x14005d820