Function at 0x140005728
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 [0x14003a008]
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, 0x220
lea rcx, [rbp - 0x70]
call fcn.140017700
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.1400196e0
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 0x140005dcf
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 0x140005dcf
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 0x140005dcf
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x70]
mov rdx, r14
mov rcx, r13
call fcn.140005664
mov ebx, eax
test eax, eax
js 0x140005dca
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 0x140005dca
mov rdi, qword [rsp + 0x78]
jne 0x140005a89
mov r14d, 0x100
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140011bc8
mov ebx, eax
test eax, eax
js 0x140005af9
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 0x140005a75
cmp eax, 0xea
jne 0x140005a1c
mov edx, dword [rsp + 0x44]
mov ecx, edx
add rcx, rcx
mov eax, r14d
cmp rax, rcx
jae 0x140005a6b
lea r14d, [rdx*2 + 0x32]
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140011bc8
mov ebx, eax
test eax, eax
js 0x140005af9
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 0x140005dcf
mov rax, qword [rdi]
mov r8, rsi
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [0x14002b548]
mov ebx, eax
test eax, eax
js 0x140005dcf
inc r15d
lea eax, [r14 + r14]
mov dword [rsp + 0x44], eax
xor ebx, ebx
mov edx, r15d
jmp 0x140005953
mov ebx, 0x8000ffff
jmp 0x140005dcf
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 0x140005dcf
jne 0x140005c1f
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 0x140005bc6
mov rsi, qword [rsp + 0x58]
jmp 0x140005dcf
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 0x140005dcf
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 [0x14002b548]
mov rdx, qword [rsp + 0x68]
xor ebx, ebx
test rdx, rdx
je 0x140005b97
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 [0x14002b548]
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 0x140005b03
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 0x140005dcf
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 0x140005dcf
nop dword [rax + rax]
jne 0x140005dae
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 0x140005d5b
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 0x140005dcf
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 [0x14002b548]
mov ebx, eax
test eax, eax
js 0x140005dcf
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140005d28
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 [0x14002b548]
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 0x140005c99
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 0x140005dcf
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 [0x14002b548]
mov qword [r15], rdi
xor edi, edi
xor ebx, ebx
jmp 0x140005dcf
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140005df6
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 [0x14002b548]
nop
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140005e1d
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 [0x14002b548]
nop
test rsi, rsi
je 0x140005e37
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005e50
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005e61
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x140005e96
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xf8]
call qword [0x14002b548]
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 [0x14002b548]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140015ba0
nop
add rsp, 0x3c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret