Function at 0x1400056c8
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 qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x140039010]
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.140016ec0
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.1400192f0
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 0x140005d6f
nop dword [rax]
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 0x140005d6f
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 0x140005d6f
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x70]
mov rdx, r14
mov rcx, r13
call fcn.140005604
mov ebx, eax
test eax, eax
js 0x140005d6a
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 0x140005d6a
mov rdi, qword [rsp + 0x78]
jne 0x140005a29
mov r14d, 0x100
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140011990
mov ebx, eax
test eax, eax
js 0x140005a99
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 0x140005a15
cmp eax, 0xea
jne 0x1400059bc
mov edx, dword [rsp + 0x44]
mov ecx, edx
add rcx, rcx
mov eax, r14d
cmp rax, rcx
jae 0x140005a0b
lea r14d, [rdx*2 + 0x32]
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140011990
mov ebx, eax
test eax, eax
js 0x140005a99
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]
nop
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005d6f
mov rax, qword [rdi]
mov r8, rsi
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x140005d6f
inc r15d
lea eax, [r14 + r14]
mov dword [rsp + 0x44], eax
xor ebx, ebx
mov edx, r15d
jmp 0x1400058f3
mov ebx, 0x8000ffff
jmp 0x140005d6f
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 0x140005d6f
jne 0x140005bbf
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 0x140005b66
mov rsi, qword [rsp + 0x58]
jmp 0x140005d6f
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 0x140005d6f
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 [0x14002a548]
mov rdx, qword [rsp + 0x68]
xor ebx, ebx
test rdx, rdx
je 0x140005b37
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 [0x14002a548]
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 0x140005aa3
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 0x140005d6f
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 0x140005d6f
nop dword [rax + rax]
jne 0x140005d4e
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 0x140005cfb
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 0x140005d6f
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 [0x14002a548]
mov ebx, eax
test eax, eax
js 0x140005d6f
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140005cc8
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 [0x14002a548]
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 0x140005c39
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 0x140005d6f
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 [0x14002a548]
mov qword [r15], rdi
xor edi, edi
xor ebx, ebx
jmp 0x140005d6f
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140005d96
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 [0x14002a548]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140005dbd
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 [0x14002a548]
nop
test rsi, rsi
je 0x140005dcb
mov rcx, rsi
call fcn.14001519c
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005ddc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005ded
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x140005e22
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xf8]
call qword [0x14002a548]
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 [0x14002a548]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140015800
nop
add rsp, 0x3c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret