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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c8]
sub rsp, 0x3c8
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r14, r9
mov r13, r8
mov r12, rdx
mov rbx, rcx
mov r15, qword [rbp + 0x330]
mov qword [rbp - 0x80], r15
xor eax, eax
mov edi, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov esi, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rax
mov qword [r15], rax
xor edx, edx
mov r8d, 0x218
lea rcx, [rbp - 0x68]
call fcn.140017680
mov dword [rbp - 0x70], 0x220
mov dword [rbp - 0x6c], 0xf
or r9, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x80
lea rcx, [rbp - 0x68]
call fcn.14001b968
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Type
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005b36
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x9c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DefaultDrive
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005b36
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Priority
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005b36
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x70]
mov rdx, r14
mov rcx, r13
call fcn.1400053f0
mov ebx, eax
test eax, eax
js 0x140005b31
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Properties
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea eax, [rsi + 1]
cmp ebx, 0x80070002
cmove ebx, eax
test ebx, ebx
js 0x140005b31
mov rdi, qword [rsp + 0x78]
jne 0x1400057f5
mov r14d, 0x100
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140011844
mov ebx, eax
test eax, eax
js 0x140005865
xor ebx, ebx
mov r15d, ebx
mov dword [rsp + 0x44], 0x200
mov rsi, qword [rsp + 0x58]
xor edx, edx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x80
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400057e1
cmp eax, 0xea
jne 0x140005788
mov edx, dword [rsp + 0x44]
mov ecx, edx
add rcx, rcx
mov eax, r14d
cmp rax, rcx
jae 0x1400057d7
lea r14d, [rdx*2 + 0x32]
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140011844
mov ebx, eax
test eax, eax
js 0x140005865
mov dword [rsp + 0x40], 0x80
lea eax, [r14 + r14]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x30], rsi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1b0]
mov edx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005b36
mov rax, qword [rdi]
mov r8, rsi
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x140005b36
inc r15d
lea eax, [r14 + r14]
mov dword [rsp + 0x44], eax
xor ebx, ebx
mov edx, r15d
jmp 0x1400056c0
mov ebx, 0x8000ffff
jmp 0x140005b36
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov r15, qword [rbp - 0x80]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Sources
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
xor ecx, ecx
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
lea eax, [rcx + 1]
cmove ebx, eax
test ebx, ebx
js 0x140005b36
jne 0x14000598b
mov r14d, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
jmp 0x140005932
mov rsi, qword [rsp + 0x58]
jmp 0x140005b36
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005b36
mov rax, qword [rdi]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, r13
mov r8, qword [rsp + 0x50]
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
mov rax, qword [rax + 0x90]
call qword [0x14002f570]
mov rdx, qword [rsp + 0x68]
xor ebx, ebx
test rdx, rdx
je 0x140005903
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov qword [rsp + 0x68], rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
inc r14d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov edx, r14d
mov dword [rsp + 0x40], 0x80
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
mov ecx, eax
je 0x14000586f
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
xor ebx, ebx
cmp eax, 0x80070103
cmovne ebx, eax
test ebx, ebx
js 0x140005b36
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Resources
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov r12d, 0x80070000
or ebx, r12d
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
mov r13d, 1
cmove ebx, r13d
test ebx, ebx
js 0x140005b36
jne 0x140005b15
xor r14d, r14d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], r14
and qword [rsp + 0x28], r14
and qword [rsp + 0x20], r14
xor edx, edx
jmp 0x140005ac2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005b36
mov rax, qword [rdi]
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x50]
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
mov rax, qword [rax + 0x58]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x140005b36
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140005a8f
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
add r14d, r13d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, r14d
mov dword [rsp + 0x40], 0x80
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
mov ecx, eax
je 0x140005a00
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
xor ebx, ebx
cmp eax, 0x80070103
cmovne ebx, eax
test ebx, ebx
js 0x140005b36
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xe8]
call qword [0x14002f570]
mov qword [r15], rdi
xor edi, edi
xor ebx, ebx
jmp 0x140005b36
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140005b5c
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140005b82
mov rax, qword [rcx + 8]
movsxd rdx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
test rsi, rsi
je 0x140005b8f
mov rcx, rsi
call fcn.1400152f4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005b9f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005baf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140005be3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xf8]
call qword [0x14002f570]
mov rax, qword [rdi + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140015940
add rsp, 0x3c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret