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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3b8
mov rax, qword [0x1400280c8]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r13, qword [rsp + 0x420]
xor r14d, r14d
mov rbx, rcx
mov r12, r8
mov rbp, rdx
mov esi, 0x220
lea rcx, [rsp + 0x80]
mov r8, rsi
xor edx, edx
mov qword [r13], r14
mov rdi, r9
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
call fcn.140014860
mov dword [rsp + 0x80], esi
mov esi, 0x80
lea rcx, [rsp + 0x88]
or r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rsi
mov dword [rsp + 0x84], 0xf
call fcn.140014938
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x188]
lea rdx, str.Type
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov r15d, 0x80070000
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x14000569f
lea rax, [rsp + 0x44]
lea rdx, str.DefaultDrive
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x18c]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x14000569f
lea rax, [rsp + 0x44]
lea rdx, str.Priority
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x190]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x14000569f
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x80]
mov rdx, rdi
mov rcx, r12
call fcn.140004fb4
cmp eax, r14d
mov ebx, eax
jl 0x14000569f
lea rax, [rsp + 0x48]
lea rdx, str.Properties
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
lea eax, [rsi - 0x7f]
cmp ebx, 0x80070002
cmove ebx, eax
cmp ebx, r14d
jl 0x14000569f
jne 0x1400053cc
mov edi, 0x100
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140010304
cmp eax, r14d
mov ebx, eax
jl 0x14000569f
mov esi, r14d
mov dword [rsp + 0x44], 0x200
xor edx, edx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400053b7
cmp eax, 0xea
jne 0x140005365
mov edx, dword [rsp + 0x44]
mov eax, edi
mov rcx, rdx
add rcx, rcx
cmp rax, rcx
jae 0x1400053ad
lea edi, [rdx + rdx + 0x32]
lea rcx, [rsp + 0x60]
mov edx, edi
call fcn.140010304
cmp eax, r14d
mov ebx, eax
jl 0x14000569f
mov rcx, qword [rsp + 0x48]
lea eax, [rdi + rdi]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x44]
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov edx, esi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x14000569f
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x2a0]
mov rax, qword [rcx]
call qword [rax + 0x38]
cmp eax, r14d
mov ebx, eax
jl 0x14000569f
lea eax, [rdi + rdi]
inc esi
mov dword [rsp + 0x44], eax
mov edx, esi
jmp 0x14000529e
mov ebx, 0x8000ffff
jmp 0x14000569f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov esi, 0x80
lea rax, [rsp + 0x48]
lea rdx, str.Sources
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
mov eax, 1
cmp ebx, 0x80070002
cmove ebx, eax
cmp ebx, r14d
jl 0x14000569f
jne 0x140005528
mov edi, r14d
xor edx, edx
jmp 0x1400054bb
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x2a0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x14000569f
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x2a0]
mov r9, r12
call qword [rax + 0x90]
mov r11, qword [rsp + 0x70]
cmp r11, r14
je 0x1400054a7
mov rax, qword [r11 + 8]
movsxd rcx, dword [rax + 4]
lea rcx, [rcx + r11 + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov qword [rsp + 0x50], r14
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, r14d
je 0x140005422
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, 0x80070103
cmove ebx, r14d
cmp ebx, r14d
jl 0x14000569f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x48]
mov r12d, 0x20019
lea rdx, str.Resources
xor r8d, r8d
mov rcx, rbp
mov r9d, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, 1
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, 0x80070002
cmove ebx, ebp
cmp ebx, r14d
jl 0x14000569f
jne 0x140005680
mov edi, r14d
xor edx, edx
jmp 0x140005617
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x2a0]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x14000569f
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea r9, [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x2a0]
call qword [rax + 0x58]
cmp eax, r14d
mov ebx, eax
jl 0x14000569f
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
je 0x140005603
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
lea rcx, [rcx + rdx + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x68], r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, ebp
mov qword [rsp + 0x50], r14
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, r14d
je 0x140005581
movzx ebx, ax
or ebx, r15d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, 0x80070103
cmove ebx, r14d
cmp ebx, r14d
jl 0x14000569f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov r11, qword [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov qword [r13], r11
mov ebx, r14d
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
je 0x1400056bc
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
lea rcx, [rcx + rdx + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x70]
cmp rdx, r14
je 0x1400056d9
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
lea rcx, [rcx + rdx + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
cmp rcx, r14
je 0x1400056e8
call fcn.140010460
mov rcx, qword [rsp + 0x50]
cmp rcx, r14
je 0x1400056f8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
cmp rcx, r14
je 0x140005708
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
cmp rcx, r14
je 0x140005738
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov r11, qword [rsp + 0x58]
cmp r11, r14
je 0x140005738
mov rax, qword [r11 + 8]
movsxd rcx, dword [rax + 4]
lea rcx, [rcx + r11 + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1400146fc
add rsp, 0x3b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret