Function at 0x14000512c
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 - 0x2b8]
sub rsp, 0x3b8
mov rax, qword [0x1400380c8]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r12, qword [rbp + 0x320]
xor r13d, r13d
mov r15, r8
mov qword [rsp + 0x58], r13
mov r14, rdx
mov qword [rsp + 0x48], r13
mov rbx, rcx
mov qword [rsp + 0x50], r13
mov esi, 0x220
mov qword [r12], r13
mov r8d, esi
mov qword [rsp + 0x60], r13
xor edx, edx
mov qword [rsp + 0x70], r13
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x68], r13
mov rdi, r9
call fcn.140015700
or r9, 0xffffffffffffffff
mov dword [rbp - 0x80], esi
mov r8, rbx
mov dword [rbp - 0x7c], 0xf
mov edx, 0x80
lea rcx, [rbp - 0x78]
call fcn.140018a30
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rax
lea rdx, str.Type
lea rax, [rbp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov esi, 0x80070000
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000571a
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultDrive
lea rax, [rbp + 0x8c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000571a
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rax
lea rdx, str.Priority
lea rax, [rbp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000571a
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8, [rbp - 0x80]
mov rcx, r15
call fcn.140005060
mov ebx, eax
test eax, eax
js 0x14000571a
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Properties
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
lea eax, [r13 + 1]
cmp ebx, 0x80070002
cmove ebx, eax
test ebx, ebx
js 0x14000571a
jne 0x140005453
mov edi, 0x100
lea rcx, [rsp + 0x60]
mov edx, edi
call fcn.140010744
mov ebx, eax
test eax, eax
js 0x14000571a
mov esi, r13d
mov dword [rsp + 0x44], 0x200
xor edx, edx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov rax, qword [rsp + 0x60]
lea r8, [rbp + 0x1a0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x14000543e
cmp eax, 0xea
jne 0x1400053ed
mov edx, dword [rsp + 0x44]
mov ecx, edx
mov eax, edi
add rcx, rcx
cmp rax, rcx
jae 0x140005434
lea edi, [rdx*2 + 0x32]
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140010744
mov ebx, eax
test eax, eax
js 0x14000571a
mov rcx, qword [rsp + 0x48]
lea eax, [rdi + rdi]
mov dword [rsp + 0x44], eax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x1a0]
mov rax, qword [rsp + 0x60]
mov edx, esi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000571a
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x1a0]
mov r8, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x14000571a
inc esi
lea eax, [rdi + rdi]
mov dword [rsp + 0x44], eax
mov edx, esi
jmp 0x140005327
mov ebx, 0x8000ffff
jmp 0x14000571a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
mov esi, 0x80070000
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Sources
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
mov eax, 1
cmp ebx, 0x80070002
cmove ebx, eax
test ebx, ebx
js 0x14000571a
jne 0x1400055a8
mov edi, r13d
xor edx, edx
jmp 0x14000553c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000571a
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov r8, qword [rsp + 0x50]
mov r9, r15
mov qword [rsp + 0x20], rdx
lea rdx, [rbp + 0x1a0]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140005528
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x70], r13
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov qword [rsp + 0x50], r13
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x1a0]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400054a6
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070103
cmove ebx, r13d
test ebx, ebx
js 0x14000571a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x48]
mov r15d, 0x20019
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Resources
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov r14d, 1
or ebx, esi
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
cmove ebx, r14d
test ebx, ebx
js 0x14000571a
jne 0x1400056fb
mov edi, r13d
xor edx, edx
jmp 0x140005693
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000571a
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0x50]
lea rdx, [rbp + 0x1a0]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x14000571a
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14000567e
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, r14d
mov qword [rsp + 0x50], r13
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x1a0]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140005600
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070103
cmove ebx, r13d
test ebx, ebx
js 0x14000571a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0x58]
mov ebx, r13d
mov qword [r12], rax
mov qword [rsp + 0x58], r13
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140005739
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140005758
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005767
call fcn.140010d28
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005777
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005787
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400057b9
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400057b9
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400148a0
add rsp, 0x3b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret